<?xml version="1.0" encoding="US-ASCII"?>
<!--XBRL Document Created with Wdesk from Workiva, formerly WebFilings-->
<!-- -->
<linkbase xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" xmlns="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">
  <roleRef roleURI="http://www.nationalmi.com/role/CondensedConsolidatedBalanceSheetsUnaudited" xlink:href="nmih-20150331.xsd#CondensedConsolidatedBalanceSheetsUnaudited" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/CondensedConsolidatedBalanceSheetsUnauditedParenthetical" xlink:href="nmih-20150331.xsd#CondensedConsolidatedBalanceSheetsUnauditedParenthetical" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/CondensedConsolidatedStatementsOfCashFlowsUnaudited" xlink:href="nmih-20150331.xsd#CondensedConsolidatedStatementsOfCashFlowsUnaudited" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/CondensedConsolidatedStatementsOfComprehensiveLossUnaudited" xlink:href="nmih-20150331.xsd#CondensedConsolidatedStatementsOfComprehensiveLossUnaudited" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/CondensedConsolidatedStatementsOfComprehensiveLossUnauditedParentheticals" xlink:href="nmih-20150331.xsd#CondensedConsolidatedStatementsOfComprehensiveLossUnauditedParentheticals" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/CondensedConsolidatedStatementsOfShareholdersEquityUnaudited" xlink:href="nmih-20150331.xsd#CondensedConsolidatedStatementsOfShareholdersEquityUnaudited" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/CondensedConsolidatedStatementsOfShareholdersEquityUnauditedParenthetical" xlink:href="nmih-20150331.xsd#CondensedConsolidatedStatementsOfShareholdersEquityUnauditedParenthetical" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/DocumentAndEntityInformation" xlink:href="nmih-20150331.xsd#DocumentAndEntityInformation" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/FairValueOfFinancialInstruments" xlink:href="nmih-20150331.xsd#FairValueOfFinancialInstruments" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/FairValueOfFinancialInstrumentsAssetsAndLiabilitiesAtFairValueDetails" xlink:href="nmih-20150331.xsd#FairValueOfFinancialInstrumentsAssetsAndLiabilitiesAtFairValueDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/FairValueOfFinancialInstrumentsNarrativeDetails" xlink:href="nmih-20150331.xsd#FairValueOfFinancialInstrumentsNarrativeDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/FairValueOfFinancialInstrumentsRollforwardOfLevel3Details" xlink:href="nmih-20150331.xsd#FairValueOfFinancialInstrumentsRollforwardOfLevel3Details" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/FairValueOfFinancialInstrumentsTables" xlink:href="nmih-20150331.xsd#FairValueOfFinancialInstrumentsTables" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/IncomeTaxes" xlink:href="nmih-20150331.xsd#IncomeTaxes" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/IncomeTaxesNarrativeDetails" xlink:href="nmih-20150331.xsd#IncomeTaxesNarrativeDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/Investments" xlink:href="nmih-20150331.xsd#Investments" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/InvestmentsFairValuesAndGrossUnrealizedGainsAndLossesOnInvestmentsDetails" xlink:href="nmih-20150331.xsd#InvestmentsFairValuesAndGrossUnrealizedGainsAndLossesOnInvestmentsDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/InvestmentsNarrativeDetails" xlink:href="nmih-20150331.xsd#InvestmentsNarrativeDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/InvestmentsScheduledMaturitiesDetails" xlink:href="nmih-20150331.xsd#InvestmentsScheduledMaturitiesDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/InvestmentsTables" xlink:href="nmih-20150331.xsd#InvestmentsTables" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/InvestmentsUnrealizedLossesDetails" xlink:href="nmih-20150331.xsd#InvestmentsUnrealizedLossesDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/OrganizationAndBasisOfPresentation" xlink:href="nmih-20150331.xsd#OrganizationAndBasisOfPresentation" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/OrganizationAndBasisOfPresentationDetails" xlink:href="nmih-20150331.xsd#OrganizationAndBasisOfPresentationDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/ReconciliationOfReserveBalancesForInsuranceClaimsExpensesDetails" xlink:href="nmih-20150331.xsd#ReconciliationOfReserveBalancesForInsuranceClaimsExpensesDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/ReconciliationOfReserveBalancesForInsuranceClaimsExpensesNarrativeDetails" xlink:href="nmih-20150331.xsd#ReconciliationOfReserveBalancesForInsuranceClaimsExpensesNarrativeDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/ReservesForInsuranceClaimsAndClaimExpenses" xlink:href="nmih-20150331.xsd#ReservesForInsuranceClaimsAndClaimExpenses" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/ReservesForInsuranceClaimsAndClaimExpensesTables" xlink:href="nmih-20150331.xsd#ReservesForInsuranceClaimsAndClaimExpensesTables" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/ShareBasedCompensation" xlink:href="nmih-20150331.xsd#ShareBasedCompensation" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/ShareBasedCompensationNarrativeDetails" xlink:href="nmih-20150331.xsd#ShareBasedCompensationNarrativeDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/ShareBasedCompensationRestrictedStockUnitsActivityDetails" xlink:href="nmih-20150331.xsd#ShareBasedCompensationRestrictedStockUnitsActivityDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/ShareBasedCompensationStockOptionActivityDetails" xlink:href="nmih-20150331.xsd#ShareBasedCompensationStockOptionActivityDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/ShareBasedCompensationTables" xlink:href="nmih-20150331.xsd#ShareBasedCompensationTables" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/StatutoryInformation" xlink:href="nmih-20150331.xsd#StatutoryInformation" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/StatutoryInformationNarrativeDetails" xlink:href="nmih-20150331.xsd#StatutoryInformationNarrativeDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/StatutoryInformationRiskToCapitalDetails" xlink:href="nmih-20150331.xsd#StatutoryInformationRiskToCapitalDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/StatutoryInformationStatutoryIncomeDetails" xlink:href="nmih-20150331.xsd#StatutoryInformationStatutoryIncomeDetails" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/StatutoryInformationTables" xlink:href="nmih-20150331.xsd#StatutoryInformationTables" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/Warrants" xlink:href="nmih-20150331.xsd#Warrants" xlink:type="simple" />
  <roleRef roleURI="http://www.nationalmi.com/role/WarrantsDetails" xlink:href="nmih-20150331.xsd#WarrantsDetails" xlink:type="simple" />
  <arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all" xlink:type="simple" />
  <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" />
  <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" />
  <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" />
  <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" />
  <definitionLink xlink:role="http://www.nationalmi.com/role/CondensedConsolidatedBalanceSheetsUnaudited" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_5998F7E4A809B625BADF0BA1BDFC78A6" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_1BE3B7263014F0B6EF280BA1BDFBA371" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_5998F7E4A809B625BADF0BA1BDFC78A6" xlink:to="loc_us-gaap_StatementTable_1BE3B7263014F0B6EF280BA1BDFBA371" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_E7BCE103926223D790A60BA1BDFC68B8" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_1BE3B7263014F0B6EF280BA1BDFBA371" xlink:to="loc_us-gaap_StatementClassOfStockAxis_E7BCE103926223D790A60BA1BDFC68B8" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_60ACC42A184993E544E30BA1BDFC5117_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_E7BCE103926223D790A60BA1BDFC68B8" xlink:to="loc_us-gaap_ClassOfStockDomain_60ACC42A184993E544E30BA1BDFC5117_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_60ACC42A184993E544E30BA1BDFC5117" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_E7BCE103926223D790A60BA1BDFC68B8" xlink:to="loc_us-gaap_ClassOfStockDomain_60ACC42A184993E544E30BA1BDFC5117" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_CommonClassAMember" xlink:label="loc_us-gaap_CommonClassAMember_848B37331D1A0604F50F0BA1BDFCF546" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_60ACC42A184993E544E30BA1BDFC5117" xlink:to="loc_us-gaap_CommonClassAMember_848B37331D1A0604F50F0BA1BDFCF546" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AssetsAbstract" xlink:label="loc_us-gaap_AssetsAbstract_3B52902F6B222E96AB920BA1BDFCCD3F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_5998F7E4A809B625BADF0BA1BDFC78A6" xlink:to="loc_us-gaap_AssetsAbstract_3B52902F6B222E96AB920BA1BDFCCD3F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_8C56C27D354547CA3F380BA1BDFCF828" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_3B52902F6B222E96AB920BA1BDFCCD3F" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_8C56C27D354547CA3F380BA1BDFCF828" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_5D51D2E787A241668B060BA1BDFC5B3A" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_3B52902F6B222E96AB920BA1BDFCCD3F" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_5D51D2E787A241668B060BA1BDFC5B3A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_PremiumsReceivableAtCarryingValue" xlink:label="loc_us-gaap_PremiumsReceivableAtCarryingValue_40DD7D7712C536E000E00BA1BDFC001D" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_3B52902F6B222E96AB920BA1BDFCCD3F" xlink:to="loc_us-gaap_PremiumsReceivableAtCarryingValue_40DD7D7712C536E000E00BA1BDFC001D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AccruedInvestmentIncomeReceivable" xlink:label="loc_us-gaap_AccruedInvestmentIncomeReceivable_DD8F777FBFF8C7788FC80BA1BDFCA291" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_3B52902F6B222E96AB920BA1BDFCCD3F" xlink:to="loc_us-gaap_AccruedInvestmentIncomeReceivable_DD8F777FBFF8C7788FC80BA1BDFCA291" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_PrepaidExpenseCurrentAndNoncurrent" xlink:label="loc_us-gaap_PrepaidExpenseCurrentAndNoncurrent_2F1BB329F79A45C3C8FA0BA1BDFCD5C4" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_3B52902F6B222E96AB920BA1BDFCCD3F" xlink:to="loc_us-gaap_PrepaidExpenseCurrentAndNoncurrent_2F1BB329F79A45C3C8FA0BA1BDFCD5C4" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_DeferredPolicyAcquisitionCosts" xlink:label="loc_us-gaap_DeferredPolicyAcquisitionCosts_B3E85C2138C4379B85D20BA1BDFCA11E" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_3B52902F6B222E96AB920BA1BDFCCD3F" xlink:to="loc_us-gaap_DeferredPolicyAcquisitionCosts_B3E85C2138C4379B85D20BA1BDFCA11E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_FDD0067E946F65F72F8B0BA1BDFD0DB4" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_3B52902F6B222E96AB920BA1BDFCCD3F" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_FDD0067E946F65F72F8B0BA1BDFD0DB4" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_IntangibleAssetsNetIncludingGoodwill" xlink:label="loc_us-gaap_IntangibleAssetsNetIncludingGoodwill_8DBD820D0B34430EC92F0BA1BDFD9F92" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_3B52902F6B222E96AB920BA1BDFCCD3F" xlink:to="loc_us-gaap_IntangibleAssetsNetIncludingGoodwill_8DBD820D0B34430EC92F0BA1BDFD9F92" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_OtherAssets" xlink:label="loc_us-gaap_OtherAssets_22F4121254FDF9C12DED0BA1BDFD3427" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_3B52902F6B222E96AB920BA1BDFCCD3F" xlink:to="loc_us-gaap_OtherAssets_22F4121254FDF9C12DED0BA1BDFD3427" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_B9521B0ECFCD5FB13D900BA1BDFDF269" xlink:type="locator" />
    <definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_3B52902F6B222E96AB920BA1BDFCCD3F" xlink:to="loc_us-gaap_Assets_B9521B0ECFCD5FB13D900BA1BDFDF269" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_LiabilitiesAbstract" xlink:label="loc_us-gaap_LiabilitiesAbstract_7BA7FD0B376CDA2BB70C0BA1BDFDBAFE" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_5998F7E4A809B625BADF0BA1BDFC78A6" xlink:to="loc_us-gaap_LiabilitiesAbstract_7BA7FD0B376CDA2BB70C0BA1BDFDBAFE" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_UnearnedPremiums" xlink:label="loc_us-gaap_UnearnedPremiums_D73A10C35DD753AE130F0BA1BDFD0DC4" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_7BA7FD0B376CDA2BB70C0BA1BDFDBAFE" xlink:to="loc_us-gaap_UnearnedPremiums_D73A10C35DD753AE130F0BA1BDFD0DC4" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpense" xlink:label="loc_us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpense_E3FC66FE0BA0BFC43A800BA1BDFDA578" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_7BA7FD0B376CDA2BB70C0BA1BDFDBAFE" xlink:to="loc_us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpense_E3FC66FE0BA0BFC43A800BA1BDFDA578" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AccountsPayableAndAccruedLiabilitiesCurrentAndNoncurrent" xlink:label="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrentAndNoncurrent_50F9E0E1F2A8C96CFB7B0BA1BDFDE6C4" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_7BA7FD0B376CDA2BB70C0BA1BDFDBAFE" xlink:to="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrentAndNoncurrent_50F9E0E1F2A8C96CFB7B0BA1BDFDE6C4" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_WarrantLiability" xlink:label="loc_nmih_WarrantLiability_9D9C11C5FFD239605FF80BA1BDFD367E" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_7BA7FD0B376CDA2BB70C0BA1BDFDBAFE" xlink:to="loc_nmih_WarrantLiability_9D9C11C5FFD239605FF80BA1BDFD367E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_TaxesPayableCurrent" xlink:label="loc_us-gaap_TaxesPayableCurrent_BCFF212B15E6A0A808E70BA1BDFDAFB0" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_7BA7FD0B376CDA2BB70C0BA1BDFDBAFE" xlink:to="loc_us-gaap_TaxesPayableCurrent_BCFF212B15E6A0A808E70BA1BDFDAFB0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_DeferredTaxLiabilities" xlink:label="loc_us-gaap_DeferredTaxLiabilities_A4128463FDBAF9C31FA10BA1BDFE2406" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_7BA7FD0B376CDA2BB70C0BA1BDFDBAFE" xlink:to="loc_us-gaap_DeferredTaxLiabilities_A4128463FDBAF9C31FA10BA1BDFE2406" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaap_Liabilities_5A76955624F8FCE9CCC80BA1BDFE9091" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_7BA7FD0B376CDA2BB70C0BA1BDFDBAFE" xlink:to="loc_us-gaap_Liabilities_5A76955624F8FCE9CCC80BA1BDFE9091" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_CommitmentsAndContingencies" xlink:label="loc_us-gaap_CommitmentsAndContingencies_A90C2EB1385B2475A62E0BA1BDFE4EB2" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_5998F7E4A809B625BADF0BA1BDFC78A6" xlink:to="loc_us-gaap_CommitmentsAndContingencies_A90C2EB1385B2475A62E0BA1BDFE4EB2" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StockholdersEquityAbstract" xlink:label="loc_us-gaap_StockholdersEquityAbstract_0F2C39B3B9A6ECEE3D610BA1BDFE1F1C" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_5998F7E4A809B625BADF0BA1BDFC78A6" xlink:to="loc_us-gaap_StockholdersEquityAbstract_0F2C39B3B9A6ECEE3D610BA1BDFE1F1C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_CommonStockValueOutstanding" xlink:label="loc_us-gaap_CommonStockValueOutstanding_4693B5D340FFA37CD3590BA1BDFEC05E" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_0F2C39B3B9A6ECEE3D610BA1BDFE1F1C" xlink:to="loc_us-gaap_CommonStockValueOutstanding_4693B5D340FFA37CD3590BA1BDFEC05E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AdditionalPaidInCapital" xlink:label="loc_us-gaap_AdditionalPaidInCapital_5DC8869571BAB8D481AA0BA1BDFE88EE" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_0F2C39B3B9A6ECEE3D610BA1BDFE1F1C" xlink:to="loc_us-gaap_AdditionalPaidInCapital_5DC8869571BAB8D481AA0BA1BDFE88EE" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_51455E987F36B3D628B30BA1BDFEF2B6" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_0F2C39B3B9A6ECEE3D610BA1BDFE1F1C" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_51455E987F36B3D628B30BA1BDFEF2B6" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_D5CE37AEA0B19CDF32110BA1BDFEDABD" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_0F2C39B3B9A6ECEE3D610BA1BDFE1F1C" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_D5CE37AEA0B19CDF32110BA1BDFEDABD" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_0E7868849FA5776594330BA1BDFEBCC9" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_0F2C39B3B9A6ECEE3D610BA1BDFE1F1C" xlink:to="loc_us-gaap_StockholdersEquity_0E7868849FA5776594330BA1BDFEBCC9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_CA31342866844E5C6F190BA1BDFE1388" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_5998F7E4A809B625BADF0BA1BDFC78A6" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquity_CA31342866844E5C6F190BA1BDFE1388" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.nationalmi.com/role/CondensedConsolidatedBalanceSheetsUnauditedParenthetical" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_AB9A1D37921FDFF62B19F7D75E031443" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_56F9E9725759297A013FF7D75E034DE6" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_AB9A1D37921FDFF62B19F7D75E031443" xlink:to="loc_us-gaap_StatementTable_56F9E9725759297A013FF7D75E034DE6" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_811842408EF71EF3593FF7D75E033571" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_56F9E9725759297A013FF7D75E034DE6" xlink:to="loc_us-gaap_StatementClassOfStockAxis_811842408EF71EF3593FF7D75E033571" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_D9D043D6D4E3AF40C8B1F7D75E037B34_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_811842408EF71EF3593FF7D75E033571" xlink:to="loc_us-gaap_ClassOfStockDomain_D9D043D6D4E3AF40C8B1F7D75E037B34_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_D9D043D6D4E3AF40C8B1F7D75E037B34" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_811842408EF71EF3593FF7D75E033571" xlink:to="loc_us-gaap_ClassOfStockDomain_D9D043D6D4E3AF40C8B1F7D75E037B34" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_CommonClassAMember" xlink:label="loc_us-gaap_CommonClassAMember_6FBF8ECC7B3B48C919A9F7D75E03A472" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_D9D043D6D4E3AF40C8B1F7D75E037B34" xlink:to="loc_us-gaap_CommonClassAMember_6FBF8ECC7B3B48C919A9F7D75E03A472" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_C83006F6583EA21234E1F7D75E0321F8" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_AB9A1D37921FDFF62B19F7D75E031443" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_C83006F6583EA21234E1F7D75E0321F8" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_CommonStockParOrStatedValuePerShare" xlink:label="loc_us-gaap_CommonStockParOrStatedValuePerShare_8AB8DDFCD5828279E19CF7D75E03E7B9" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_AB9A1D37921FDFF62B19F7D75E031443" xlink:to="loc_us-gaap_CommonStockParOrStatedValuePerShare_8AB8DDFCD5828279E19CF7D75E03E7B9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_CommonStockSharesIssued" xlink:label="loc_us-gaap_CommonStockSharesIssued_B2215156205B1D721D73F7D75E033B23" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_AB9A1D37921FDFF62B19F7D75E031443" xlink:to="loc_us-gaap_CommonStockSharesIssued_B2215156205B1D721D73F7D75E033B23" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_CommonStockSharesOutstanding" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_C62BFA8B0530A9818580F7D75E035ED5" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_AB9A1D37921FDFF62B19F7D75E031443" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_C62BFA8B0530A9818580F7D75E035ED5" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_CommonStockSharesAuthorized" xlink:label="loc_us-gaap_CommonStockSharesAuthorized_25D63A323C88BB32B390F7D75E03095B" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_AB9A1D37921FDFF62B19F7D75E031443" xlink:to="loc_us-gaap_CommonStockSharesAuthorized_25D63A323C88BB32B390F7D75E03095B" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.nationalmi.com/role/CondensedConsolidatedStatementsOfCashFlowsUnaudited" xlink:type="extended" />
  <definitionLink xlink:role="http://www.nationalmi.com/role/CondensedConsolidatedStatementsOfComprehensiveLossUnaudited" xlink:type="extended" />
  <definitionLink xlink:role="http://www.nationalmi.com/role/CondensedConsolidatedStatementsOfComprehensiveLossUnauditedParentheticals" xlink:type="extended" />
  <definitionLink xlink:role="http://www.nationalmi.com/role/CondensedConsolidatedStatementsOfShareholdersEquityUnaudited" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_FBEF933837AB5C331FCB02D1C64CAEFF" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_019816BAC7C5B984FEA202D1C64B8663" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_FBEF933837AB5C331FCB02D1C64CAEFF" xlink:to="loc_us-gaap_StatementTable_019816BAC7C5B984FEA202D1C64B8663" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_FC50808D99F3C400ADF602D1C64B3B43" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_019816BAC7C5B984FEA202D1C64B8663" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_FC50808D99F3C400ADF602D1C64B3B43" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_9294577D848AACE9140902D1C64B0B5D_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_FC50808D99F3C400ADF602D1C64B3B43" xlink:to="loc_us-gaap_EquityComponentDomain_9294577D848AACE9140902D1C64B0B5D_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_9294577D848AACE9140902D1C64B0B5D" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_FC50808D99F3C400ADF602D1C64B3B43" xlink:to="loc_us-gaap_EquityComponentDomain_9294577D848AACE9140902D1C64B0B5D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_CommonStockMember" xlink:label="loc_us-gaap_CommonStockMember_D5AB8EC48E0C90B35C3702D1C64BC278" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_9294577D848AACE9140902D1C64B0B5D" xlink:to="loc_us-gaap_CommonStockMember_D5AB8EC48E0C90B35C3702D1C64BC278" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AdditionalPaidInCapitalMember" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_8DAB274E608DF8DE793C02D1C64BF5B5" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_9294577D848AACE9140902D1C64B0B5D" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_8DAB274E608DF8DE793C02D1C64BF5B5" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_C852F6B9B4962027E04102D1C64BF3B3" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_9294577D848AACE9140902D1C64B0B5D" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_C852F6B9B4962027E04102D1C64BF3B3" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_RetainedEarningsMember" xlink:label="loc_us-gaap_RetainedEarningsMember_884B4DDAF6E9FEF403A602D1C64BA419" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_9294577D848AACE9140902D1C64B0B5D" xlink:to="loc_us-gaap_RetainedEarningsMember_884B4DDAF6E9FEF403A602D1C64BA419" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_0C2F8CC4CAC7FD4B11B902D1C64BD100" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_019816BAC7C5B984FEA202D1C64B8663" xlink:to="loc_us-gaap_StatementClassOfStockAxis_0C2F8CC4CAC7FD4B11B902D1C64BD100" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_F74883B6BE52CE7FFBA402D1C64BD5D0_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_0C2F8CC4CAC7FD4B11B902D1C64BD100" xlink:to="loc_us-gaap_ClassOfStockDomain_F74883B6BE52CE7FFBA402D1C64BD5D0_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_F74883B6BE52CE7FFBA402D1C64BD5D0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_0C2F8CC4CAC7FD4B11B902D1C64BD100" xlink:to="loc_us-gaap_ClassOfStockDomain_F74883B6BE52CE7FFBA402D1C64BD5D0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_CommonClassAMember" xlink:label="loc_us-gaap_CommonClassAMember_4B82FC7EC4B0DAF973CD02D1C64B8AC6" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_F74883B6BE52CE7FFBA402D1C64BD5D0" xlink:to="loc_us-gaap_CommonClassAMember_4B82FC7EC4B0DAF973CD02D1C64B8AC6" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_CommonClassBMember" xlink:label="loc_us-gaap_CommonClassBMember_627A17A655956ABCA58902D1C64C96E9" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_F74883B6BE52CE7FFBA402D1C64BD5D0" xlink:to="loc_us-gaap_CommonClassBMember_627A17A655956ABCA58902D1C64C96E9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_5A5B5F9F8D14ADE82FA202D1C64CBFA7" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_FBEF933837AB5C331FCB02D1C64CAEFF" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_5A5B5F9F8D14ADE82FA202D1C64CBFA7" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_9F684439679621C0B6D002D1C64C8869" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_5A5B5F9F8D14ADE82FA202D1C64CBFA7" xlink:to="loc_us-gaap_StockholdersEquity_9F684439679621C0B6D002D1C64C8869" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StockAndWarrantsIssuedDuringPeriodValuePreferredStockAndWarrants" xlink:label="loc_us-gaap_StockAndWarrantsIssuedDuringPeriodValuePreferredStockAndWarrants_C6355FC4045B0439E64402E4257D8C8A" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_5A5B5F9F8D14ADE82FA202D1C64CBFA7" xlink:to="loc_us-gaap_StockAndWarrantsIssuedDuringPeriodValuePreferredStockAndWarrants_C6355FC4045B0439E64402E4257D8C8A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_283CD720BA9F46EC90B002D1C64C71AC" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_5A5B5F9F8D14ADE82FA202D1C64CBFA7" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_283CD720BA9F46EC90B002D1C64C71AC" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_9716F1081D1E8A5B408D02D1C64C6E47" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_5A5B5F9F8D14ADE82FA202D1C64CBFA7" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_9716F1081D1E8A5B408D02D1C64C6E47" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_E9142316F399178B685B02D1C64CD890" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_5A5B5F9F8D14ADE82FA202D1C64CBFA7" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_E9142316F399178B685B02D1C64CD890" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_A1006195467C0C1D7FE102D1C64CDCFC" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_5A5B5F9F8D14ADE82FA202D1C64CBFA7" xlink:to="loc_us-gaap_NetIncomeLoss_A1006195467C0C1D7FE102D1C64CDCFC" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.nationalmi.com/role/CondensedConsolidatedStatementsOfShareholdersEquityUnauditedParenthetical" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_1D3D0B68FF97D597F16C0BA1BDE777FB" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_6C08AAACC5616603E9040BA1BDE66410" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_1D3D0B68FF97D597F16C0BA1BDE777FB" xlink:to="loc_us-gaap_StatementTable_6C08AAACC5616603E9040BA1BDE66410" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_945DAFC0D94FC7B4B9CE0BA1BDE670C8" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_6C08AAACC5616603E9040BA1BDE66410" xlink:to="loc_us-gaap_StatementClassOfStockAxis_945DAFC0D94FC7B4B9CE0BA1BDE670C8" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_B526092C942EE041B75A0BA1BDE63941_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_945DAFC0D94FC7B4B9CE0BA1BDE670C8" xlink:to="loc_us-gaap_ClassOfStockDomain_B526092C942EE041B75A0BA1BDE63941_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_B526092C942EE041B75A0BA1BDE63941" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_945DAFC0D94FC7B4B9CE0BA1BDE670C8" xlink:to="loc_us-gaap_ClassOfStockDomain_B526092C942EE041B75A0BA1BDE63941" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_CommonClassAMember" xlink:label="loc_us-gaap_CommonClassAMember_C777BF495252A22B40060BA1BDE657DC" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_B526092C942EE041B75A0BA1BDE63941" xlink:to="loc_us-gaap_CommonClassAMember_C777BF495252A22B40060BA1BDE657DC" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_6884F2A5157598A796B80BA1BDE61B7E" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_6C08AAACC5616603E9040BA1BDE66410" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_6884F2A5157598A796B80BA1BDE61B7E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_1F5F2C47D65FF1BEF3C30BA1BDE6900D_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_6884F2A5157598A796B80BA1BDE61B7E" xlink:to="loc_us-gaap_EquityComponentDomain_1F5F2C47D65FF1BEF3C30BA1BDE6900D_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_1F5F2C47D65FF1BEF3C30BA1BDE6900D" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_6884F2A5157598A796B80BA1BDE61B7E" xlink:to="loc_us-gaap_EquityComponentDomain_1F5F2C47D65FF1BEF3C30BA1BDE6900D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_CommonStockMember" xlink:label="loc_us-gaap_CommonStockMember_D6F7D93C3F7305E951110BA1BDE60AE2" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_1F5F2C47D65FF1BEF3C30BA1BDE6900D" xlink:to="loc_us-gaap_CommonStockMember_D6F7D93C3F7305E951110BA1BDE60AE2" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax_B5A965FCE16FC6DACBBA0BA1BDE7028C" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_1D3D0B68FF97D597F16C0BA1BDE777FB" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax_B5A965FCE16FC6DACBBA0BA1BDE7028C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesOther" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesOther_ACCC0753AEFB6DE8F1E50BA1BDE798CB" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_1D3D0B68FF97D597F16C0BA1BDE777FB" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesOther_ACCC0753AEFB6DE8F1E50BA1BDE798CB" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_CommonStockParOrStatedValuePerShare" xlink:label="loc_us-gaap_CommonStockParOrStatedValuePerShare_ABD6CCA01DE7BBEC2DC20BA1BDE7397C" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_1D3D0B68FF97D597F16C0BA1BDE777FB" xlink:to="loc_us-gaap_CommonStockParOrStatedValuePerShare_ABD6CCA01DE7BBEC2DC20BA1BDE7397C" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.nationalmi.com/role/DocumentAndEntityInformation" xlink:type="extended" />
  <definitionLink xlink:role="http://www.nationalmi.com/role/FairValueOfFinancialInstruments" xlink:type="extended" />
  <definitionLink xlink:role="http://www.nationalmi.com/role/FairValueOfFinancialInstrumentsAssetsAndLiabilitiesAtFairValueDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_BE4C549F080AAF76FB6BF7D8EF8EF155" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_5AC1719A59B340E151F6F7D8EF8D7032" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_BE4C549F080AAF76FB6BF7D8EF8EF155" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_5AC1719A59B340E151F6F7D8EF8D7032" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueByMeasurementFrequencyAxis" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_BA3DD26F526B21265772F7D8EF8D0FAB" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_5AC1719A59B340E151F6F7D8EF8D7032" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_BA3DD26F526B21265772F7D8EF8D0FAB" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_C65816D42658621E769DF7D8EF8DF444_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_BA3DD26F526B21265772F7D8EF8D0FAB" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_C65816D42658621E769DF7D8EF8DF444_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_C65816D42658621E769DF7D8EF8DF444" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_BA3DD26F526B21265772F7D8EF8D0FAB" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_C65816D42658621E769DF7D8EF8DF444" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueMeasurementsRecurringMember" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_BFBEE2FCBE6E1F6D6200F7D8EF8DF53D" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_C65816D42658621E769DF7D8EF8DF444" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_BFBEE2FCBE6E1F6D6200F7D8EF8DF53D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_1C814F3F0C7CFF9292A8F7D8EF8DAD35" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_5AC1719A59B340E151F6F7D8EF8D7032" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_1C814F3F0C7CFF9292A8F7D8EF8DAD35" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_DCD0A64AA7687E0F3B0AF7D8EF8D745F_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_1C814F3F0C7CFF9292A8F7D8EF8DAD35" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_DCD0A64AA7687E0F3B0AF7D8EF8D745F_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_DCD0A64AA7687E0F3B0AF7D8EF8D745F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_1C814F3F0C7CFF9292A8F7D8EF8DAD35" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_DCD0A64AA7687E0F3B0AF7D8EF8D745F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueInputsLevel1Member" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_11D4C9CF2BF68F2E73F7F7D8EF8D09C0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_DCD0A64AA7687E0F3B0AF7D8EF8D745F" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_11D4C9CF2BF68F2E73F7F7D8EF8D09C0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueInputsLevel2Member" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_1E202903E3FEEA0CFB7BF7D8EF8DC8CD" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_DCD0A64AA7687E0F3B0AF7D8EF8D745F" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_1E202903E3FEEA0CFB7BF7D8EF8DC8CD" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueInputsLevel3Member" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_DA58A867A61B9F3D9F81F7D8EF8DF6DC" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_DCD0A64AA7687E0F3B0AF7D8EF8D745F" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_DA58A867A61B9F3D9F81F7D8EF8DF6DC" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis" xlink:label="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis_244B5DADB3D8552A487DF7D8EF8DFE40" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_5AC1719A59B340E151F6F7D8EF8D7032" xlink:to="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis_244B5DADB3D8552A487DF7D8EF8DFE40" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain" xlink:label="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_3695621C008912DDB9A9F7D8EF8DC191_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis_244B5DADB3D8552A487DF7D8EF8DFE40" xlink:to="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_3695621C008912DDB9A9F7D8EF8DC191_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain" xlink:label="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_3695621C008912DDB9A9F7D8EF8DC191" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis_244B5DADB3D8552A487DF7D8EF8DFE40" xlink:to="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_3695621C008912DDB9A9F7D8EF8DC191" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_USTreasuryAndGovernmentMember" xlink:label="loc_us-gaap_USTreasuryAndGovernmentMember_B16B4A4AB9245EA02609F7D8EF8D42F0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_3695621C008912DDB9A9F7D8EF8DC191" xlink:to="loc_us-gaap_USTreasuryAndGovernmentMember_B16B4A4AB9245EA02609F7D8EF8D42F0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_USStatesAndPoliticalSubdivisionsMember" xlink:label="loc_us-gaap_USStatesAndPoliticalSubdivisionsMember_C300463E9C85122295DAF7D8EF8D1E32" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_3695621C008912DDB9A9F7D8EF8DC191" xlink:to="loc_us-gaap_USStatesAndPoliticalSubdivisionsMember_C300463E9C85122295DAF7D8EF8D1E32" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_CorporateDebtSecuritiesMember" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_218F629300900DF7879AF7D8EF8D857E" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_3695621C008912DDB9A9F7D8EF8DC191" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_218F629300900DF7879AF7D8EF8D857E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AssetBackedSecuritiesMember" xlink:label="loc_us-gaap_AssetBackedSecuritiesMember_AE80020D72E21590E944F7D8EF8E9F19" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_3695621C008912DDB9A9F7D8EF8DC191" xlink:to="loc_us-gaap_AssetBackedSecuritiesMember_AE80020D72E21590E944F7D8EF8E9F19" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AvailableForSaleSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecurities_CBDEBF9EA66E3D9EFD88F7D8EF8E025B" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_BE4C549F080AAF76FB6BF7D8EF8EF155" xlink:to="loc_us-gaap_AvailableForSaleSecurities_CBDEBF9EA66E3D9EFD88F7D8EF8E025B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_F54D1F16DCC63BD771BEF7D8EF8E484B" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_BE4C549F080AAF76FB6BF7D8EF8EF155" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_F54D1F16DCC63BD771BEF7D8EF8E484B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AssetsFairValueDisclosure" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_3366572FE601E63C7279F7D8EF8E4F75" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_BE4C549F080AAF76FB6BF7D8EF8EF155" xlink:to="loc_us-gaap_AssetsFairValueDisclosure_3366572FE601E63C7279F7D8EF8E4F75" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_WarrantLiability" xlink:label="loc_nmih_WarrantLiability_78E6BD5204EC4057FC08F7D8EF8E1AD8" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_BE4C549F080AAF76FB6BF7D8EF8EF155" xlink:to="loc_nmih_WarrantLiability_78E6BD5204EC4057FC08F7D8EF8E1AD8" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_LiabilitiesFairValueDisclosure" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_9FD6B62BDDA68C16939EF7D8EF8E8315" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_BE4C549F080AAF76FB6BF7D8EF8EF155" xlink:to="loc_us-gaap_LiabilitiesFairValueDisclosure_9FD6B62BDDA68C16939EF7D8EF8E8315" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.nationalmi.com/role/FairValueOfFinancialInstrumentsNarrativeDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_6D6C79E12137C2A2BD60CE17EE2C1B5E" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_F76AC3A07A25D35C6FD5CE17EE2C9E1C" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_6D6C79E12137C2A2BD60CE17EE2C1B5E" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_F76AC3A07A25D35C6FD5CE17EE2C9E1C" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueByLiabilityClassAxis" xlink:label="loc_us-gaap_FairValueByLiabilityClassAxis_86CD64362CDAF6243B53CE17EE2C3F39" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_F76AC3A07A25D35C6FD5CE17EE2C9E1C" xlink:to="loc_us-gaap_FairValueByLiabilityClassAxis_86CD64362CDAF6243B53CE17EE2C3F39" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_33AF2356D893B77E2CE7CE17EE2C0493_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByLiabilityClassAxis_86CD64362CDAF6243B53CE17EE2C3F39" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_33AF2356D893B77E2CE7CE17EE2C0493_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_33AF2356D893B77E2CE7CE17EE2C0493" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByLiabilityClassAxis_86CD64362CDAF6243B53CE17EE2C3F39" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_33AF2356D893B77E2CE7CE17EE2C0493" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_WarrantLiabilityMember" xlink:label="loc_nmih_WarrantLiabilityMember_52EC08F829F569B01437CE17EE2CD149" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_33AF2356D893B77E2CE7CE17EE2C0493" xlink:to="loc_nmih_WarrantLiabilityMember_52EC08F829F569B01437CE17EE2CD149" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_2D237FFE47E4BE4BF678CE17EE2CDC0C" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_F76AC3A07A25D35C6FD5CE17EE2C9E1C" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_2D237FFE47E4BE4BF678CE17EE2CDC0C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_4341176F1E245568F63DCE17EE2C733F_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_2D237FFE47E4BE4BF678CE17EE2CDC0C" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_4341176F1E245568F63DCE17EE2C733F_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_4341176F1E245568F63DCE17EE2C733F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_2D237FFE47E4BE4BF678CE17EE2CDC0C" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_4341176F1E245568F63DCE17EE2C733F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueInputsLevel3Member" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_9475636971B0C12AA17ACE17EE2CCC9C" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_4341176F1E245568F63DCE17EE2C733F" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_9475636971B0C12AA17ACE17EE2CCC9C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_SharePrice" xlink:label="loc_us-gaap_SharePrice_CC364C1DE4A1C802B385CE17EE2C3334" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_6D6C79E12137C2A2BD60CE17EE2C1B5E" xlink:to="loc_us-gaap_SharePrice_CC364C1DE4A1C802B385CE17EE2C3334" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueAssumptionsRiskFreeInterestRate" xlink:label="loc_us-gaap_FairValueAssumptionsRiskFreeInterestRate_620A593BD238ECA82C42CE17EE2C2C77" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_6D6C79E12137C2A2BD60CE17EE2C1B5E" xlink:to="loc_us-gaap_FairValueAssumptionsRiskFreeInterestRate_620A593BD238ECA82C42CE17EE2C2C77" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueAssumptionsExpectedTerm" xlink:label="loc_us-gaap_FairValueAssumptionsExpectedTerm_358B5376B3FF29E7043ACE17EE2C95FF" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_6D6C79E12137C2A2BD60CE17EE2C1B5E" xlink:to="loc_us-gaap_FairValueAssumptionsExpectedTerm_358B5376B3FF29E7043ACE17EE2C95FF" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueAssumptionsExpectedVolatilityRate" xlink:label="loc_us-gaap_FairValueAssumptionsExpectedVolatilityRate_DC3EBEC3A6C96AED9A61CE17EE2DC198" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_6D6C79E12137C2A2BD60CE17EE2C1B5E" xlink:to="loc_us-gaap_FairValueAssumptionsExpectedVolatilityRate_DC3EBEC3A6C96AED9A61CE17EE2DC198" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueAssumptionsExpectedDividendRate" xlink:label="loc_us-gaap_FairValueAssumptionsExpectedDividendRate_51C2B5CE534AC860DFDCCE17EE2DFE4D" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_6D6C79E12137C2A2BD60CE17EE2C1B5E" xlink:to="loc_us-gaap_FairValueAssumptionsExpectedDividendRate_51C2B5CE534AC860DFDCCE17EE2DFE4D" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.nationalmi.com/role/FairValueOfFinancialInstrumentsRollforwardOfLevel3Details" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_6967DAC8B073A9AEE50AFB33E1DE5AFD" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTable" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTable_6F18D4890DAD7152AE46FB33E1DDFE8F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_6967DAC8B073A9AEE50AFB33E1DE5AFD" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTable_6F18D4890DAD7152AE46FB33E1DDFE8F" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_05543AB079014879FA52FB33E1DDF8C6" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTable_6F18D4890DAD7152AE46FB33E1DDFE8F" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_05543AB079014879FA52FB33E1DDF8C6" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_C87737B8210656009F05FB33E1DE8444_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_05543AB079014879FA52FB33E1DDF8C6" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_C87737B8210656009F05FB33E1DE8444_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_C87737B8210656009F05FB33E1DE8444" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_05543AB079014879FA52FB33E1DDF8C6" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_C87737B8210656009F05FB33E1DE8444" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueInputsLevel3Member" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_D638EC79F016D3B4E575FB33E1DE263D" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_C87737B8210656009F05FB33E1DE8444" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_D638EC79F016D3B4E575FB33E1DE263D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueByLiabilityClassAxis" xlink:label="loc_us-gaap_FairValueByLiabilityClassAxis_7861207BBE7BD69537E7FB33E1DEF854" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTable_6F18D4890DAD7152AE46FB33E1DDFE8F" xlink:to="loc_us-gaap_FairValueByLiabilityClassAxis_7861207BBE7BD69537E7FB33E1DEF854" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_BAC043815576FE89FF04FB33E1DE7CD7_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByLiabilityClassAxis_7861207BBE7BD69537E7FB33E1DEF854" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_BAC043815576FE89FF04FB33E1DE7CD7_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_BAC043815576FE89FF04FB33E1DE7CD7" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByLiabilityClassAxis_7861207BBE7BD69537E7FB33E1DEF854" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_BAC043815576FE89FF04FB33E1DE7CD7" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_WarrantLiabilityMember" xlink:label="loc_nmih_WarrantLiabilityMember_F363E37819CF3A5043D1FB33E1DE6AEE" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_BAC043815576FE89FF04FB33E1DE7CD7" xlink:to="loc_nmih_WarrantLiabilityMember_F363E37819CF3A5043D1FB33E1DE6AEE" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_7CADE47F30EF0E98A4A9FB33E1DEF131" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_6967DAC8B073A9AEE50AFB33E1DE5AFD" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_7CADE47F30EF0E98A4A9FB33E1DEF131" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue_E6C9B1C6BF46260B37B3FB33E1DEE46E" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_7CADE47F30EF0E98A4A9FB33E1DEF131" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue_E6C9B1C6BF46260B37B3FB33E1DEE46E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings_95EEE8CFEE912E3C6C8FFB33E1DE3299" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_7CADE47F30EF0E98A4A9FB33E1DEF131" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings_95EEE8CFEE912E3C6C8FFB33E1DE3299" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_WarrantLiabilityReductionTransferredtoEquity" xlink:label="loc_nmih_WarrantLiabilityReductionTransferredtoEquity_ADC9946CDB479CB27AC2FB33E1DED098" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_7CADE47F30EF0E98A4A9FB33E1DEF131" xlink:to="loc_nmih_WarrantLiabilityReductionTransferredtoEquity_ADC9946CDB479CB27AC2FB33E1DED098" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlements" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlements_9F7E558C93E11B971AB0FB33E1DE4A51" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_7CADE47F30EF0E98A4A9FB33E1DEF131" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlements_9F7E558C93E11B971AB0FB33E1DE4A51" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.nationalmi.com/role/FairValueOfFinancialInstrumentsTables" xlink:type="extended" />
  <definitionLink xlink:role="http://www.nationalmi.com/role/IncomeTaxes" xlink:type="extended" />
  <definitionLink xlink:role="http://www.nationalmi.com/role/IncomeTaxesNarrativeDetails" xlink:type="extended" />
  <definitionLink xlink:role="http://www.nationalmi.com/role/Investments" xlink:type="extended" />
  <definitionLink xlink:role="http://www.nationalmi.com/role/InvestmentsFairValuesAndGrossUnrealizedGainsAndLossesOnInvestmentsDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_C3CC093F61D027199460CE0DE893D8BD" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesTable" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_9118FB063A64AE9E68EFCE0DE8932AC1" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_C3CC093F61D027199460CE0DE893D8BD" xlink:to="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_9118FB063A64AE9E68EFCE0DE8932AC1" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis" xlink:label="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis_10B5A4DDC9270B024FE7CE0DE8939371" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_9118FB063A64AE9E68EFCE0DE8932AC1" xlink:to="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis_10B5A4DDC9270B024FE7CE0DE8939371" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain" xlink:label="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_B004092DBC8D4B3352BECE0DE893EC68_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis_10B5A4DDC9270B024FE7CE0DE8939371" xlink:to="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_B004092DBC8D4B3352BECE0DE893EC68_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain" xlink:label="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_B004092DBC8D4B3352BECE0DE893EC68" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis_10B5A4DDC9270B024FE7CE0DE8939371" xlink:to="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_B004092DBC8D4B3352BECE0DE893EC68" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_USTreasuryAndGovernmentMember" xlink:label="loc_us-gaap_USTreasuryAndGovernmentMember_C3F7E264A30EA10AD309CE0DE89309F4" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_B004092DBC8D4B3352BECE0DE893EC68" xlink:to="loc_us-gaap_USTreasuryAndGovernmentMember_C3F7E264A30EA10AD309CE0DE89309F4" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_USStatesAndPoliticalSubdivisionsMember" xlink:label="loc_us-gaap_USStatesAndPoliticalSubdivisionsMember_FBE2DB47C687C42F486CCE0DE893A83C" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_B004092DBC8D4B3352BECE0DE893EC68" xlink:to="loc_us-gaap_USStatesAndPoliticalSubdivisionsMember_FBE2DB47C687C42F486CCE0DE893A83C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_CorporateDebtSecuritiesMember" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_B911E68D6544CB70B48ACE0DE8937A56" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_B004092DBC8D4B3352BECE0DE893EC68" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_B911E68D6544CB70B48ACE0DE8937A56" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AssetBackedSecuritiesMember" xlink:label="loc_us-gaap_AssetBackedSecuritiesMember_7B622A4AD6B831596B21CE0DE893BE58" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_B004092DBC8D4B3352BECE0DE893EC68" xlink:to="loc_us-gaap_AssetBackedSecuritiesMember_7B622A4AD6B831596B21CE0DE893BE58" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AvailableForSaleSecuritiesAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesAmortizedCost_F51B8F3214A950A741E0CE0DE893EEEB" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_C3CC093F61D027199460CE0DE893D8BD" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesAmortizedCost_F51B8F3214A950A741E0CE0DE893EEEB" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_1189690AB6A5E74A806BCE0DE894BE7F" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_C3CC093F61D027199460CE0DE893D8BD" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_1189690AB6A5E74A806BCE0DE894BE7F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_AF82EDDDD0FA663D129DCE0DE8940FD6" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_C3CC093F61D027199460CE0DE893D8BD" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_AF82EDDDD0FA663D129DCE0DE8940FD6" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AvailableForSaleSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecurities_3E384715F4A086D87B4ACE0DE8945B56" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_C3CC093F61D027199460CE0DE893D8BD" xlink:to="loc_us-gaap_AvailableForSaleSecurities_3E384715F4A086D87B4ACE0DE8945B56" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.nationalmi.com/role/InvestmentsNarrativeDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_AE5F608BD1B91D8BFE1A1F9EDA4946CB" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesTable" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_4B244ABC1D38556DCDD91F9EDA49497A" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_AE5F608BD1B91D8BFE1A1F9EDA4946CB" xlink:to="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_4B244ABC1D38556DCDD91F9EDA49497A" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_InvestmentTypeAxis" xlink:label="loc_us-gaap_InvestmentTypeAxis_11015960F58DA23F795F1F9EDA492CAA" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_4B244ABC1D38556DCDD91F9EDA49497A" xlink:to="loc_us-gaap_InvestmentTypeAxis_11015960F58DA23F795F1F9EDA492CAA" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_InvestmentTypeCategorizationMember" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_949C63A9BBD350EBC8DF1F9EDA4919A4_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InvestmentTypeAxis_11015960F58DA23F795F1F9EDA492CAA" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_949C63A9BBD350EBC8DF1F9EDA4919A4_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_InvestmentTypeCategorizationMember" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_949C63A9BBD350EBC8DF1F9EDA4919A4" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InvestmentTypeAxis_11015960F58DA23F795F1F9EDA492CAA" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_949C63A9BBD350EBC8DF1F9EDA4919A4" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FixedMaturitiesMember" xlink:label="loc_us-gaap_FixedMaturitiesMember_7ECF8DC6ABB8D4C4CB951F9EDA493F50" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_949C63A9BBD350EBC8DF1F9EDA4919A4" xlink:to="loc_us-gaap_FixedMaturitiesMember_7ECF8DC6ABB8D4C4CB951F9EDA493F50" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis" xlink:label="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis_92D68ACDC7091111E6231F9EDA49D429" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_4B244ABC1D38556DCDD91F9EDA49497A" xlink:to="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis_92D68ACDC7091111E6231F9EDA49D429" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain" xlink:label="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_29FE7E16B225CD00C2A91F9EDA498876_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis_92D68ACDC7091111E6231F9EDA49D429" xlink:to="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_29FE7E16B225CD00C2A91F9EDA498876_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain" xlink:label="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_29FE7E16B225CD00C2A91F9EDA498876" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis_92D68ACDC7091111E6231F9EDA49D429" xlink:to="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_29FE7E16B225CD00C2A91F9EDA498876" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_USTreasuryAndGovernmentMember" xlink:label="loc_us-gaap_USTreasuryAndGovernmentMember_3EC1A9B466753CA8DC9B1F9EDA4990B6" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_29FE7E16B225CD00C2A91F9EDA498876" xlink:to="loc_us-gaap_USTreasuryAndGovernmentMember_3EC1A9B466753CA8DC9B1F9EDA4990B6" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AvailableForSaleSecuritiesGrossRealizedGains" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesGrossRealizedGains_3DAC6903DC9C93FBA4EE1F9EDA49D370" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_AE5F608BD1B91D8BFE1A1F9EDA4946CB" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesGrossRealizedGains_3DAC6903DC9C93FBA4EE1F9EDA49D370" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AvailableforsaleSecuritiesGrossRealizedLossesExcludingOtherThanTemporaryImpairments" xlink:label="loc_us-gaap_AvailableforsaleSecuritiesGrossRealizedLossesExcludingOtherThanTemporaryImpairments_104CA38DB5EF4F465B8D1F9EDA491077" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_AE5F608BD1B91D8BFE1A1F9EDA4946CB" xlink:to="loc_us-gaap_AvailableforsaleSecuritiesGrossRealizedLossesExcludingOtherThanTemporaryImpairments_104CA38DB5EF4F465B8D1F9EDA491077" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLoss" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_900746A28C9EF8D6B3421F9EDA49C763" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_AE5F608BD1B91D8BFE1A1F9EDA4946CB" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_900746A28C9EF8D6B3421F9EDA49C763" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_621DF5639CA8C8A440371F9EDA49EC23" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_AE5F608BD1B91D8BFE1A1F9EDA4946CB" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_621DF5639CA8C8A440371F9EDA49EC23" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_InvestmentIncomeGross" xlink:label="loc_nmih_InvestmentIncomeGross_01F1AA4206CAB71E0F461F9EDA4953F4" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_AE5F608BD1B91D8BFE1A1F9EDA4946CB" xlink:to="loc_nmih_InvestmentIncomeGross_01F1AA4206CAB71E0F461F9EDA4953F4" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_InvestmentIncomeInvestmentExpense" xlink:label="loc_us-gaap_InvestmentIncomeInvestmentExpense_3D60298A1ED8FDEB0DF91F9EDA4AD449" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_AE5F608BD1B91D8BFE1A1F9EDA4946CB" xlink:to="loc_us-gaap_InvestmentIncomeInvestmentExpense_3D60298A1ED8FDEB0DF91F9EDA4AD449" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_CashCashEquivalentsAndShortTermInvestments" xlink:label="loc_us-gaap_CashCashEquivalentsAndShortTermInvestments_BA12193A8DFF7BF533671F9EDA4905BE" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_AE5F608BD1B91D8BFE1A1F9EDA4946CB" xlink:to="loc_us-gaap_CashCashEquivalentsAndShortTermInvestments_BA12193A8DFF7BF533671F9EDA4905BE" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.nationalmi.com/role/InvestmentsScheduledMaturitiesDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_11FAF44D2036633A90FDF7D8EF99CCDE" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesTable" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_E024EDD3006A90C772A7F7D8EF9927BB" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_11FAF44D2036633A90FDF7D8EF99CCDE" xlink:to="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_E024EDD3006A90C772A7F7D8EF9927BB" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis" xlink:label="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis_93BCDB9A2D5D3D6B357FF7D8EF998498" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_E024EDD3006A90C772A7F7D8EF9927BB" xlink:to="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis_93BCDB9A2D5D3D6B357FF7D8EF998498" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain" xlink:label="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_39AA67E1AAF4BAFEBC07F7D8EF99ADC5_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis_93BCDB9A2D5D3D6B357FF7D8EF998498" xlink:to="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_39AA67E1AAF4BAFEBC07F7D8EF99ADC5_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain" xlink:label="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_39AA67E1AAF4BAFEBC07F7D8EF99ADC5" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis_93BCDB9A2D5D3D6B357FF7D8EF998498" xlink:to="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_39AA67E1AAF4BAFEBC07F7D8EF99ADC5" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AssetBackedSecuritiesMember" xlink:label="loc_us-gaap_AssetBackedSecuritiesMember_C0A19A330E9C449A0A83F7D8EF998AD4" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_39AA67E1AAF4BAFEBC07F7D8EF99ADC5" xlink:to="loc_us-gaap_AssetBackedSecuritiesMember_C0A19A330E9C449A0A83F7D8EF998AD4" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract_4DAE5C3D21DDE49017FFF7D8EF99683C" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_11FAF44D2036633A90FDF7D8EF99CCDE" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract_4DAE5C3D21DDE49017FFF7D8EF99683C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_74E8BBE282D40ACC31F7F7D8EF990CC5" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract_4DAE5C3D21DDE49017FFF7D8EF99683C" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_74E8BBE282D40ACC31F7F7D8EF990CC5" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_919F80AC710B0BD0F7AAF7D8EF99A0C0" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract_4DAE5C3D21DDE49017FFF7D8EF99683C" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_919F80AC710B0BD0F7AAF7D8EF99A0C0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_74DE400B19BF3DBC2605F7D8EF99BC53" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract_4DAE5C3D21DDE49017FFF7D8EF99683C" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_74DE400B19BF3DBC2605F7D8EF99BC53" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_808A76E38801604BF5FAF7D8EF99A076" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract_4DAE5C3D21DDE49017FFF7D8EF99683C" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_808A76E38801604BF5FAF7D8EF99A076" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AvailableForSaleSecuritiesAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesAmortizedCost_3B691E39341305FC1EACF7D8EF99D4A0" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract_4DAE5C3D21DDE49017FFF7D8EF99683C" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesAmortizedCost_3B691E39341305FC1EACF7D8EF99D4A0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAbstract" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAbstract_1DA4FE0925FBD7BAEF14F7D8EF999EEA" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_11FAF44D2036633A90FDF7D8EF99CCDE" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAbstract_1DA4FE0925FBD7BAEF14F7D8EF999EEA" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_129E2FDA72D52F3950A2F7D8EF99676F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAbstract_1DA4FE0925FBD7BAEF14F7D8EF999EEA" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_129E2FDA72D52F3950A2F7D8EF99676F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_E0152D15159A6F5D59E4F7D8EF9A3EBF" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAbstract_1DA4FE0925FBD7BAEF14F7D8EF999EEA" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_E0152D15159A6F5D59E4F7D8EF9A3EBF" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_C6890CD437DEBAC9C59AF7D8EF9ABBAE" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAbstract_1DA4FE0925FBD7BAEF14F7D8EF999EEA" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_C6890CD437DEBAC9C59AF7D8EF9ABBAE" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_3C52C2FC72521B865E9FF7D8EF9ADA97" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAbstract_1DA4FE0925FBD7BAEF14F7D8EF999EEA" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_3C52C2FC72521B865E9FF7D8EF9ADA97" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AvailableForSaleSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecurities_B3C911B1F5CF92ED8E83F7D8EF9A24AB" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAbstract_1DA4FE0925FBD7BAEF14F7D8EF999EEA" xlink:to="loc_us-gaap_AvailableForSaleSecurities_B3C911B1F5CF92ED8E83F7D8EF9A24AB" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.nationalmi.com/role/InvestmentsTables" xlink:type="extended" />
  <definitionLink xlink:role="http://www.nationalmi.com/role/InvestmentsUnrealizedLossesDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_40E8A7897FBE64AEDE2DCE0E1918E114" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesTable" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_2161FE0C44CEBB09C2CCCE0E1917A164" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_40E8A7897FBE64AEDE2DCE0E1918E114" xlink:to="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_2161FE0C44CEBB09C2CCCE0E1917A164" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis" xlink:label="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis_2DEDC28214A97692F27ACE0E19172E5A" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_2161FE0C44CEBB09C2CCCE0E1917A164" xlink:to="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis_2DEDC28214A97692F27ACE0E19172E5A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain" xlink:label="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_C43607D032074CEB1B8ECE0E191731D2_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis_2DEDC28214A97692F27ACE0E19172E5A" xlink:to="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_C43607D032074CEB1B8ECE0E191731D2_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain" xlink:label="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_C43607D032074CEB1B8ECE0E191731D2" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis_2DEDC28214A97692F27ACE0E19172E5A" xlink:to="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_C43607D032074CEB1B8ECE0E191731D2" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_USTreasuryAndGovernmentMember" xlink:label="loc_us-gaap_USTreasuryAndGovernmentMember_4D896A749E257331530DCE0E191708C8" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_C43607D032074CEB1B8ECE0E191731D2" xlink:to="loc_us-gaap_USTreasuryAndGovernmentMember_4D896A749E257331530DCE0E191708C8" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_USStatesAndPoliticalSubdivisionsMember" xlink:label="loc_us-gaap_USStatesAndPoliticalSubdivisionsMember_116AB93CB34759D42FE5CE0E1918D651" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_C43607D032074CEB1B8ECE0E191731D2" xlink:to="loc_us-gaap_USStatesAndPoliticalSubdivisionsMember_116AB93CB34759D42FE5CE0E1918D651" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_CorporateDebtSecuritiesMember" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_003DF2E660C5746BAA37CE0E1918F557" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_C43607D032074CEB1B8ECE0E191731D2" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_003DF2E660C5746BAA37CE0E1918F557" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AssetBackedSecuritiesMember" xlink:label="loc_us-gaap_AssetBackedSecuritiesMember_4A92B2971335FF55615BCE0E191832E4" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_C43607D032074CEB1B8ECE0E191731D2" xlink:to="loc_us-gaap_AssetBackedSecuritiesMember_4A92B2971335FF55615BCE0E191832E4" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AvailableForSaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsLessThanOneYear" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsLessThanOneYear_4A9F396F7230020BE526CE0E19189D60" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_40E8A7897FBE64AEDE2DCE0E1918E114" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsLessThanOneYear_4A9F396F7230020BE526CE0E19189D60" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_D3F8B0E40A1830BF4F29CE0E1919B818" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_40E8A7897FBE64AEDE2DCE0E1918E114" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_D3F8B0E40A1830BF4F29CE0E1919B818" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_F3986EED639E37409714CE0E19191F98" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_40E8A7897FBE64AEDE2DCE0E1918E114" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_F3986EED639E37409714CE0E19191F98" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AvailableforsaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsGreaterThanOrEqualToOneYear" xlink:label="loc_us-gaap_AvailableforsaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsGreaterThanOrEqualToOneYear_11BD8D761B2859EF452DCE0E19199359" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_40E8A7897FBE64AEDE2DCE0E1918E114" xlink:to="loc_us-gaap_AvailableforsaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsGreaterThanOrEqualToOneYear_11BD8D761B2859EF452DCE0E19199359" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_66CEF921C5B6F26BC136CE0E1919AFF6" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_40E8A7897FBE64AEDE2DCE0E1918E114" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_66CEF921C5B6F26BC136CE0E1919AFF6" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_50E7E721AEA158AE0FD6CE0E1919076E" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_40E8A7897FBE64AEDE2DCE0E1918E114" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_50E7E721AEA158AE0FD6CE0E1919076E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AvailableforsaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions1" xlink:label="loc_us-gaap_AvailableforsaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions1_B0165073816B3B0BAEF9CE0E19195252" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_40E8A7897FBE64AEDE2DCE0E1918E114" xlink:to="loc_us-gaap_AvailableforsaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions1_B0165073816B3B0BAEF9CE0E19195252" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValue_71F05C4E712EFECCA80CCE0E19195B33" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_40E8A7897FBE64AEDE2DCE0E1918E114" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValue_71F05C4E712EFECCA80CCE0E19195B33" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLoss" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_200C4064216516ECAE5FCE0E191904D4" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_40E8A7897FBE64AEDE2DCE0E1918E114" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_200C4064216516ECAE5FCE0E191904D4" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.nationalmi.com/role/OrganizationAndBasisOfPresentation" xlink:type="extended" />
  <definitionLink xlink:role="http://www.nationalmi.com/role/OrganizationAndBasisOfPresentationDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_45F8B1DD8A9A33F6A17E1A9D1C74B0EE" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_431F24E78A7D71D5C0DA1A9D1C7427BD" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_45F8B1DD8A9A33F6A17E1A9D1C74B0EE" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_431F24E78A7D71D5C0DA1A9D1C7427BD" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_dei_LegalEntityAxis_3B0454BAEE5E92732B9E1A9D1C749F5D" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_431F24E78A7D71D5C0DA1A9D1C7427BD" xlink:to="loc_dei_LegalEntityAxis_3B0454BAEE5E92732B9E1A9D1C749F5D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_EAC4F00DAC3DF70F10231A9D1C740E0E_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_3B0454BAEE5E92732B9E1A9D1C749F5D" xlink:to="loc_dei_EntityDomain_EAC4F00DAC3DF70F10231A9D1C740E0E_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_EAC4F00DAC3DF70F10231A9D1C740E0E" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_3B0454BAEE5E92732B9E1A9D1C749F5D" xlink:to="loc_dei_EntityDomain_EAC4F00DAC3DF70F10231A9D1C740E0E" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_NMicandReoneCombinedMember" xlink:label="loc_nmih_NMicandReoneCombinedMember_60F4FE7EEBF840ED24121A9D1C743A72" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_EAC4F00DAC3DF70F10231A9D1C740E0E" xlink:to="loc_nmih_NMicandReoneCombinedMember_60F4FE7EEBF840ED24121A9D1C743A72" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_MortgageInsuranceinForcePrimary" xlink:label="loc_nmih_MortgageInsuranceinForcePrimary_6A149BA4286742E5324A1A9D1C74D481" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_45F8B1DD8A9A33F6A17E1A9D1C74B0EE" xlink:to="loc_nmih_MortgageInsuranceinForcePrimary_6A149BA4286742E5324A1A9D1C74D481" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_MortgageInsuranceinForcePool" xlink:label="loc_nmih_MortgageInsuranceinForcePool_64FF47FF1188B048EE471A9D1C74D137" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_45F8B1DD8A9A33F6A17E1A9D1C74B0EE" xlink:to="loc_nmih_MortgageInsuranceinForcePool_64FF47FF1188B048EE471A9D1C74D137" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_MortgageInsuranceRiskinForcePrimary" xlink:label="loc_nmih_MortgageInsuranceRiskinForcePrimary_519CEEED3CE6F9C608EF1A9D1C74E1FE" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_45F8B1DD8A9A33F6A17E1A9D1C74B0EE" xlink:to="loc_nmih_MortgageInsuranceRiskinForcePrimary_519CEEED3CE6F9C608EF1A9D1C74E1FE" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_MortgageInsuranceinForceGrossPool" xlink:label="loc_nmih_MortgageInsuranceinForceGrossPool_0A3DD5E0B3B1D99BACDF1A9D1C74595A" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_45F8B1DD8A9A33F6A17E1A9D1C74B0EE" xlink:to="loc_nmih_MortgageInsuranceinForceGrossPool_0A3DD5E0B3B1D99BACDF1A9D1C74595A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_0A7A1E1D5184DBEFD1851A9D1C757AB3" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_45F8B1DD8A9A33F6A17E1A9D1C74B0EE" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_0A7A1E1D5184DBEFD1851A9D1C757AB3" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_DeferredPolicyAcquisitionCostAmortizationExpense" xlink:label="loc_us-gaap_DeferredPolicyAcquisitionCostAmortizationExpense_64A995637918883A29251A9D1C75399A" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_45F8B1DD8A9A33F6A17E1A9D1C74B0EE" xlink:to="loc_us-gaap_DeferredPolicyAcquisitionCostAmortizationExpense_64A995637918883A29251A9D1C75399A" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.nationalmi.com/role/ReconciliationOfReserveBalancesForInsuranceClaimsExpensesDetails" xlink:type="extended" />
  <definitionLink xlink:role="http://www.nationalmi.com/role/ReconciliationOfReserveBalancesForInsuranceClaimsExpensesNarrativeDetails" xlink:type="extended">
    <loc xlink:href="nmih-20150331.xsd#nmih_InsuranceAgreementLineItems" xlink:label="loc_nmih_InsuranceAgreementLineItems_B42B4E88FA347C6D83511A9D1C120053" xlink:type="locator" />
    <loc xlink:href="nmih-20150331.xsd#nmih_InsuranceAgreementTable" xlink:label="loc_nmih_InsuranceAgreementTable_9CEB2315FE1B351FD9281A9D1C11E14C" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_nmih_InsuranceAgreementLineItems_B42B4E88FA347C6D83511A9D1C120053" xlink:to="loc_nmih_InsuranceAgreementTable_9CEB2315FE1B351FD9281A9D1C11E14C" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_CounterpartyNameAxis" xlink:label="loc_us-gaap_CounterpartyNameAxis_844C821B2DCFBC53A31D1A9D1C119AAF" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_nmih_InsuranceAgreementTable_9CEB2315FE1B351FD9281A9D1C11E14C" xlink:to="loc_us-gaap_CounterpartyNameAxis_844C821B2DCFBC53A31D1A9D1C119AAF" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_RepurchaseAgreementCounterpartyNameDomain" xlink:label="loc_us-gaap_RepurchaseAgreementCounterpartyNameDomain_90EE40FC2BFF7D3CA7CC1A9D1C11E830_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CounterpartyNameAxis_844C821B2DCFBC53A31D1A9D1C119AAF" xlink:to="loc_us-gaap_RepurchaseAgreementCounterpartyNameDomain_90EE40FC2BFF7D3CA7CC1A9D1C11E830_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_RepurchaseAgreementCounterpartyNameDomain" xlink:label="loc_us-gaap_RepurchaseAgreementCounterpartyNameDomain_90EE40FC2BFF7D3CA7CC1A9D1C11E830" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CounterpartyNameAxis_844C821B2DCFBC53A31D1A9D1C119AAF" xlink:to="loc_us-gaap_RepurchaseAgreementCounterpartyNameDomain_90EE40FC2BFF7D3CA7CC1A9D1C11E830" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_FannieMaeMember" xlink:label="loc_nmih_FannieMaeMember_72CBC83AD01A661C296F1A9D1C12136D" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RepurchaseAgreementCounterpartyNameDomain_90EE40FC2BFF7D3CA7CC1A9D1C11E830" xlink:to="loc_nmih_FannieMaeMember_72CBC83AD01A661C296F1A9D1C12136D" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_LoansInPoolPastDue60DaysOrMoreNumberOfLoans" xlink:label="loc_nmih_LoansInPoolPastDue60DaysOrMoreNumberOfLoans_3BCC62F7B40C2FDE6DE81A9D1C120338" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nmih_InsuranceAgreementLineItems_B42B4E88FA347C6D83511A9D1C120053" xlink:to="loc_nmih_LoansInPoolPastDue60DaysOrMoreNumberOfLoans_3BCC62F7B40C2FDE6DE81A9D1C120338" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_LoansInPoolPastDue60DaysOrMoreLoanRiskinForce" xlink:label="loc_nmih_LoansInPoolPastDue60DaysOrMoreLoanRiskinForce_C95E29743EF2DD22D2801A9D1C12C39F" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nmih_InsuranceAgreementLineItems_B42B4E88FA347C6D83511A9D1C120053" xlink:to="loc_nmih_LoansInPoolPastDue60DaysOrMoreLoanRiskinForce_C95E29743EF2DD22D2801A9D1C12C39F" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_MortgagePoolInsuranceClaimDeductible" xlink:label="loc_nmih_MortgagePoolInsuranceClaimDeductible_E23FAA6E4E6D559C1D0F1A9D1C121E14" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nmih_InsuranceAgreementLineItems_B42B4E88FA347C6D83511A9D1C120053" xlink:to="loc_nmih_MortgagePoolInsuranceClaimDeductible_E23FAA6E4E6D559C1D0F1A9D1C121E14" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_LoansInPoolLoanToValueRatio" xlink:label="loc_nmih_LoansInPoolLoanToValueRatio_022B25D03D6791EEC3CA1A9D1C12EDBB" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nmih_InsuranceAgreementLineItems_B42B4E88FA347C6D83511A9D1C120053" xlink:to="loc_nmih_LoansInPoolLoanToValueRatio_022B25D03D6791EEC3CA1A9D1C12EDBB" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpense" xlink:label="loc_us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpense_89BD44F2FF38F78AB7901A9D1C121569" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nmih_InsuranceAgreementLineItems_B42B4E88FA347C6D83511A9D1C120053" xlink:to="loc_us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpense_89BD44F2FF38F78AB7901A9D1C121569" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersPriorYearClaimsAndClaimsAdjustmentExpense" xlink:label="loc_us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersPriorYearClaimsAndClaimsAdjustmentExpense_1FD6DD88E2650584038D1A9D1C120232" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nmih_InsuranceAgreementLineItems_B42B4E88FA347C6D83511A9D1C120053" xlink:to="loc_us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersPriorYearClaimsAndClaimsAdjustmentExpense_1FD6DD88E2650584038D1A9D1C120232" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_LiabilityforPriorYearClaimsandClaimsAdjustmentExpense" xlink:label="loc_nmih_LiabilityforPriorYearClaimsandClaimsAdjustmentExpense_239526E31BBCB1D8CD1A1A9D1C125DBA" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nmih_InsuranceAgreementLineItems_B42B4E88FA347C6D83511A9D1C120053" xlink:to="loc_nmih_LiabilityforPriorYearClaimsandClaimsAdjustmentExpense_239526E31BBCB1D8CD1A1A9D1C125DBA" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.nationalmi.com/role/ReservesForInsuranceClaimsAndClaimExpenses" xlink:type="extended" />
  <definitionLink xlink:role="http://www.nationalmi.com/role/ReservesForInsuranceClaimsAndClaimExpensesTables" xlink:type="extended" />
  <definitionLink xlink:role="http://www.nationalmi.com/role/ShareBasedCompensation" xlink:type="extended" />
  <definitionLink xlink:role="http://www.nationalmi.com/role/ShareBasedCompensationNarrativeDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_F21A42A20A9D9D49B60DFB33E19C740C" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_D1A9F692E0CCA0C1C5CFFB33E19BA2CD" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_F21A42A20A9D9D49B60DFB33E19C740C" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_D1A9F692E0CCA0C1C5CFFB33E19BA2CD" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_VestingAxis" xlink:label="loc_us-gaap_VestingAxis_22FD82447727D5F63614FB33E19B7265" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_D1A9F692E0CCA0C1C5CFFB33E19BA2CD" xlink:to="loc_us-gaap_VestingAxis_22FD82447727D5F63614FB33E19B7265" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_VestingDomain" xlink:label="loc_us-gaap_VestingDomain_3E33001AEB05E1252674FB33E19BC886_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VestingAxis_22FD82447727D5F63614FB33E19B7265" xlink:to="loc_us-gaap_VestingDomain_3E33001AEB05E1252674FB33E19BC886_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_VestingDomain" xlink:label="loc_us-gaap_VestingDomain_3E33001AEB05E1252674FB33E19BC886" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VestingAxis_22FD82447727D5F63614FB33E19B7265" xlink:to="loc_us-gaap_VestingDomain_3E33001AEB05E1252674FB33E19BC886" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_SubjecttoMarketandServiceConditionsMember" xlink:label="loc_nmih_SubjecttoMarketandServiceConditionsMember_CDD628FF41D6FD7A8012FB33E19B512A" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VestingDomain_3E33001AEB05E1252674FB33E19BC886" xlink:to="loc_nmih_SubjecttoMarketandServiceConditionsMember_CDD628FF41D6FD7A8012FB33E19B512A" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_SubjecttoServiceConditionsMember" xlink:label="loc_nmih_SubjecttoServiceConditionsMember_501AFF2435ABC760AEE7FB33E19B6CCB" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VestingDomain_3E33001AEB05E1252674FB33E19BC886" xlink:to="loc_nmih_SubjecttoServiceConditionsMember_501AFF2435ABC760AEE7FB33E19B6CCB" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationAwardTrancheOneMember" xlink:label="loc_us-gaap_ShareBasedCompensationAwardTrancheOneMember_C730923AE16BE5DBD653FB475CF16BBF" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VestingDomain_3E33001AEB05E1252674FB33E19BC886" xlink:to="loc_us-gaap_ShareBasedCompensationAwardTrancheOneMember_C730923AE16BE5DBD653FB475CF16BBF" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationAwardTrancheTwoMember" xlink:label="loc_us-gaap_ShareBasedCompensationAwardTrancheTwoMember_0DA308CB08FB95D74A93FB477D252450" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VestingDomain_3E33001AEB05E1252674FB33E19BC886" xlink:to="loc_us-gaap_ShareBasedCompensationAwardTrancheTwoMember_0DA308CB08FB95D74A93FB477D252450" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_89F3A6B94E592577AF54FB33E19B6621" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_D1A9F692E0CCA0C1C5CFFB33E19BA2CD" xlink:to="loc_us-gaap_RangeAxis_89F3A6B94E592577AF54FB33E19B6621" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_56874868522968683C94FB33E19BF09A_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_89F3A6B94E592577AF54FB33E19B6621" xlink:to="loc_us-gaap_RangeMember_56874868522968683C94FB33E19BF09A_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_56874868522968683C94FB33E19BF09A" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_89F3A6B94E592577AF54FB33E19B6621" xlink:to="loc_us-gaap_RangeMember_56874868522968683C94FB33E19BF09A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_E0593A9A458AD345B0D8FB33E19B5326" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_56874868522968683C94FB33E19BF09A" xlink:to="loc_us-gaap_MinimumMember_E0593A9A458AD345B0D8FB33E19B5326" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_D8A89E4B0B5ED40D561BFB33E19B1FB4" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_56874868522968683C94FB33E19BF09A" xlink:to="loc_us-gaap_MaximumMember_D8A89E4B0B5ED40D561BFB33E19B1FB4" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_PlanNameAxis" xlink:label="loc_us-gaap_PlanNameAxis_1BD2401BC00589A7E962FB33E19BD175" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_D1A9F692E0CCA0C1C5CFFB33E19BA2CD" xlink:to="loc_us-gaap_PlanNameAxis_1BD2401BC00589A7E962FB33E19BD175" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_PlanNameDomain" xlink:label="loc_us-gaap_PlanNameDomain_25351F0C69BA8E20F115FB33E19BE913_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_1BD2401BC00589A7E962FB33E19BD175" xlink:to="loc_us-gaap_PlanNameDomain_25351F0C69BA8E20F115FB33E19BE913_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_PlanNameDomain" xlink:label="loc_us-gaap_PlanNameDomain_25351F0C69BA8E20F115FB33E19BE913" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_1BD2401BC00589A7E962FB33E19BD175" xlink:to="loc_us-gaap_PlanNameDomain_25351F0C69BA8E20F115FB33E19BE913" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_The2012StockIncentivePlanMember" xlink:label="loc_nmih_The2012StockIncentivePlanMember_01B64D851EA960BB6CEAFB33E19B97EE" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_25351F0C69BA8E20F115FB33E19BE913" xlink:to="loc_nmih_The2012StockIncentivePlanMember_01B64D851EA960BB6CEAFB33E19B97EE" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_330B4C37E11518E48015FB33E19BE5B1" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_D1A9F692E0CCA0C1C5CFFB33E19BA2CD" xlink:to="loc_us-gaap_AwardTypeAxis_330B4C37E11518E48015FB33E19BE5B1" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_3593EA440FA4DB64426EFB33E19B2828_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_330B4C37E11518E48015FB33E19BE5B1" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_3593EA440FA4DB64426EFB33E19B2828_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_3593EA440FA4DB64426EFB33E19B2828" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_330B4C37E11518E48015FB33E19BE5B1" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_3593EA440FA4DB64426EFB33E19B2828" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_41AB501BD6E312923368FB33E19C36B7" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_3593EA440FA4DB64426EFB33E19B2828" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_41AB501BD6E312923368FB33E19C36B7" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_36F79BEC5C674917FDC9FB33E19C6D90" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_F21A42A20A9D9D49B60DFB33E19C740C" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_36F79BEC5C674917FDC9FB33E19C6D90" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableNumber_6A86CCE1D15ACFE589A4FB33E19C3893" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_F21A42A20A9D9D49B60DFB33E19C740C" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableNumber_6A86CCE1D15ACFE589A4FB33E19C3893" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageExercisePrice_5E7FC07DB91C64AFCEC0FB33E19CA0E0" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_F21A42A20A9D9D49B60DFB33E19C740C" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageExercisePrice_5E7FC07DB91C64AFCEC0FB33E19CA0E0" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageRemainingContractualTerm1" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageRemainingContractualTerm1_613C5E124F855EEF942EFB33E19CD1B1" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_F21A42A20A9D9D49B60DFB33E19C740C" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageRemainingContractualTerm1_613C5E124F855EEF942EFB33E19CD1B1" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableAggregateIntrinsicValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableAggregateIntrinsicValue_F46CDBE46A72BF30B07DFB33E19C3B74" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_F21A42A20A9D9D49B60DFB33E19C740C" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableAggregateIntrinsicValue_F46CDBE46A72BF30B07DFB33E19C3B74" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_F54F8692BDC84C277F9DFB33E19C2F90" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_F21A42A20A9D9D49B60DFB33E19C740C" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_F54F8692BDC84C277F9DFB33E19C2F90" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage_5338C23C8DE4008C52AFFB471421C2D4" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_F21A42A20A9D9D49B60DFB33E19C740C" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage_5338C23C8DE4008C52AFFB471421C2D4" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_E35FFB83499D14FB4F8FFB33E19C2154" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_F21A42A20A9D9D49B60DFB33E19C740C" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_E35FFB83499D14FB4F8FFB33E19C2154" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_PresentValueOfAnticipatedDividends" xlink:label="loc_nmih_PresentValueOfAnticipatedDividends_547B024A96EFAFFDF953FB33E19C8E23" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_F21A42A20A9D9D49B60DFB33E19C740C" xlink:to="loc_nmih_PresentValueOfAnticipatedDividends_547B024A96EFAFFDF953FB33E19C8E23" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.nationalmi.com/role/ShareBasedCompensationRestrictedStockUnitsActivityDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4C4D91063FF9DACFB2CBD2488A8087CA" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_8E325F591F9715F20190D2488A7F21DA" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4C4D91063FF9DACFB2CBD2488A8087CA" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_8E325F591F9715F20190D2488A7F21DA" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_PlanNameAxis" xlink:label="loc_us-gaap_PlanNameAxis_F8E0641D1D1A578C444DD2488A7F6779" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_8E325F591F9715F20190D2488A7F21DA" xlink:to="loc_us-gaap_PlanNameAxis_F8E0641D1D1A578C444DD2488A7F6779" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_PlanNameDomain" xlink:label="loc_us-gaap_PlanNameDomain_80FA8F051DFF3751B23AD2488A7FD675_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_F8E0641D1D1A578C444DD2488A7F6779" xlink:to="loc_us-gaap_PlanNameDomain_80FA8F051DFF3751B23AD2488A7FD675_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_PlanNameDomain" xlink:label="loc_us-gaap_PlanNameDomain_80FA8F051DFF3751B23AD2488A7FD675" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_F8E0641D1D1A578C444DD2488A7F6779" xlink:to="loc_us-gaap_PlanNameDomain_80FA8F051DFF3751B23AD2488A7FD675" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_The2012StockIncentivePlanMember" xlink:label="loc_nmih_The2012StockIncentivePlanMember_3EEB02BB227153B98534D2488A7FCA91" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_80FA8F051DFF3751B23AD2488A7FD675" xlink:to="loc_nmih_The2012StockIncentivePlanMember_3EEB02BB227153B98534D2488A7FCA91" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_6E1FBF4BD9A6828C8C5CD2488A80E75D" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_8E325F591F9715F20190D2488A7F21DA" xlink:to="loc_us-gaap_AwardTypeAxis_6E1FBF4BD9A6828C8C5CD2488A80E75D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_E62FB3FA2C413F24D3F3D2488A80D5DE_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_6E1FBF4BD9A6828C8C5CD2488A80E75D" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_E62FB3FA2C413F24D3F3D2488A80D5DE_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_E62FB3FA2C413F24D3F3D2488A80D5DE" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_6E1FBF4BD9A6828C8C5CD2488A80E75D" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_E62FB3FA2C413F24D3F3D2488A80D5DE" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_EF81FF4020426D7AF479D2488A800ABE" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_E62FB3FA2C413F24D3F3D2488A80D5DE" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_EF81FF4020426D7AF479D2488A800ABE" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_C3D4D2B32B9E35B19162D2488A803952" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4C4D91063FF9DACFB2CBD2488A8087CA" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_C3D4D2B32B9E35B19162D2488A803952" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_087EC8424381E268FF13D2488A80328E" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_C3D4D2B32B9E35B19162D2488A803952" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_087EC8424381E268FF13D2488A80328E" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_9974E7E2F46553D45733D2488A80C155" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_C3D4D2B32B9E35B19162D2488A803952" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_9974E7E2F46553D45733D2488A80C155" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_6724B5244D4D491B7C9ED2488A804730" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_C3D4D2B32B9E35B19162D2488A803952" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_6724B5244D4D491B7C9ED2488A804730" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_527BA88D503D4EDFDFF4D2488A80AA02" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_C3D4D2B32B9E35B19162D2488A803952" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_527BA88D503D4EDFDFF4D2488A80AA02" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_42F3E7749D3754E2C7E0D2488A801105" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4C4D91063FF9DACFB2CBD2488A8087CA" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_42F3E7749D3754E2C7E0D2488A801105" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_A47618A811CC04E73625D2488A80FCDD" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_42F3E7749D3754E2C7E0D2488A801105" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_A47618A811CC04E73625D2488A80FCDD" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_4A76E2557B9CBB6DE2F1D2488A8040BE" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_42F3E7749D3754E2C7E0D2488A801105" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_4A76E2557B9CBB6DE2F1D2488A8040BE" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_2176D69D163574D0D7EAD2488A800214" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_42F3E7749D3754E2C7E0D2488A801105" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_2176D69D163574D0D7EAD2488A800214" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_35C298B208A5EE0671FCD2488A813F3D" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_42F3E7749D3754E2C7E0D2488A801105" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_35C298B208A5EE0671FCD2488A813F3D" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.nationalmi.com/role/ShareBasedCompensationStockOptionActivityDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_1911F563824B330A9136D23521060B5A" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_9B592868BCB4B11B206BD23521060C7F" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_1911F563824B330A9136D23521060B5A" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_9B592868BCB4B11B206BD23521060C7F" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_PlanNameAxis" xlink:label="loc_us-gaap_PlanNameAxis_14840855D26AF738EC02D23521061F19" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_9B592868BCB4B11B206BD23521060C7F" xlink:to="loc_us-gaap_PlanNameAxis_14840855D26AF738EC02D23521061F19" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_PlanNameDomain" xlink:label="loc_us-gaap_PlanNameDomain_953F75AE03C1480CE37CD23521067414_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_14840855D26AF738EC02D23521061F19" xlink:to="loc_us-gaap_PlanNameDomain_953F75AE03C1480CE37CD23521067414_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_PlanNameDomain" xlink:label="loc_us-gaap_PlanNameDomain_953F75AE03C1480CE37CD23521067414" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_14840855D26AF738EC02D23521061F19" xlink:to="loc_us-gaap_PlanNameDomain_953F75AE03C1480CE37CD23521067414" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_The2012StockIncentivePlanMember" xlink:label="loc_nmih_The2012StockIncentivePlanMember_67D8DDCED1EFEA123D9AD23521063635" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_953F75AE03C1480CE37CD23521067414" xlink:to="loc_nmih_The2012StockIncentivePlanMember_67D8DDCED1EFEA123D9AD23521063635" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_3AE02DC55CD84C4FD151D23521064C76" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_1911F563824B330A9136D23521060B5A" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_3AE02DC55CD84C4FD151D23521064C76" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_FB6C8C2061760EE7A114D2352106EAED" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_3AE02DC55CD84C4FD151D23521064C76" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_FB6C8C2061760EE7A114D2352106EAED" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_F0F2BEFA9242E33352A8D235210650A1" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_3AE02DC55CD84C4FD151D23521064C76" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_F0F2BEFA9242E33352A8D235210650A1" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_E0AFFCDD5A9E4281298BD24AF579127F" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_3AE02DC55CD84C4FD151D23521064C76" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_E0AFFCDD5A9E4281298BD24AF579127F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresInPeriod_E1711FB493771CE59FFDD2352106AEB9" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_3AE02DC55CD84C4FD151D23521064C76" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresInPeriod_E1711FB493771CE59FFDD2352106AEB9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfSharesRollForward" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfSharesRollForward_968167753FE2623376B2D235210B2FFD" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_1911F563824B330A9136D23521060B5A" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfSharesRollForward_968167753FE2623376B2D235210B2FFD" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedWeightedAverageGrantDateFairValue_9B0977519D1797B0E948D235210B8039" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfSharesRollForward_968167753FE2623376B2D235210B2FFD" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedWeightedAverageGrantDateFairValue_9B0977519D1797B0E948D235210B8039" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_BADD7570B7A65536C016D235210B3C7C" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfSharesRollForward_968167753FE2623376B2D235210B2FFD" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_BADD7570B7A65536C016D235210B3C7C" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_SharebasedCompensationArrangementbySharebasedPaymentAwardOptionsExercisesinPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_nmih_SharebasedCompensationArrangementbySharebasedPaymentAwardOptionsExercisesinPeriodWeightedAverageGrantDateFairValue_985A35799BF02FD0315FD2453AF745E2" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfSharesRollForward_968167753FE2623376B2D235210B2FFD" xlink:to="loc_nmih_SharebasedCompensationArrangementbySharebasedPaymentAwardOptionsExercisesinPeriodWeightedAverageGrantDateFairValue_985A35799BF02FD0315FD2453AF745E2" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedOptionsForfeitedWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedOptionsForfeitedWeightedAverageGrantDateFairValue_B0B7F4C3953F894DD056D235210B5D36" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfSharesRollForward_968167753FE2623376B2D235210B2FFD" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedOptionsForfeitedWeightedAverageGrantDateFairValue_B0B7F4C3953F894DD056D235210B5D36" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_1C297C3527C012520DF9D235210B8F32" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_1911F563824B330A9136D23521060B5A" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_1C297C3527C012520DF9D235210B8F32" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice_CECC266681CBF480C553D235210B6F27" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_1C297C3527C012520DF9D235210B8F32" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice_CECC266681CBF480C553D235210B6F27" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice_D1DB21F19AF09849875BD23577A4484C" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_1C297C3527C012520DF9D235210B8F32" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice_D1DB21F19AF09849875BD23577A4484C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice_0A212010B13FEBA48FF0D2414D3285F8" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_1C297C3527C012520DF9D235210B8F32" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice_0A212010B13FEBA48FF0D2414D3285F8" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice_D790F88E6571C6E667F8D23631B74C22" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_1C297C3527C012520DF9D235210B8F32" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice_D790F88E6571C6E667F8D23631B74C22" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.nationalmi.com/role/ShareBasedCompensationTables" xlink:type="extended" />
  <definitionLink xlink:role="http://www.nationalmi.com/role/StatutoryInformation" xlink:type="extended" />
  <definitionLink xlink:role="http://www.nationalmi.com/role/StatutoryInformationNarrativeDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StatutoryAccountingPracticesLineItems" xlink:label="loc_us-gaap_StatutoryAccountingPracticesLineItems_61C4A7312874E5DBEF2A0BA15A1EE521" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StatutoryAccountingPracticesTable" xlink:label="loc_us-gaap_StatutoryAccountingPracticesTable_160C10FF62FED3F599DA0BA15A1CE9FB" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatutoryAccountingPracticesLineItems_61C4A7312874E5DBEF2A0BA15A1EE521" xlink:to="loc_us-gaap_StatutoryAccountingPracticesTable_160C10FF62FED3F599DA0BA15A1CE9FB" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_dei_LegalEntityAxis_02DE45BAE291FE72E0FF0BA15A1D1C3C" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatutoryAccountingPracticesTable_160C10FF62FED3F599DA0BA15A1CE9FB" xlink:to="loc_dei_LegalEntityAxis_02DE45BAE291FE72E0FF0BA15A1D1C3C" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_34D15617F863D6224B110BA15A1DA1A0_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_02DE45BAE291FE72E0FF0BA15A1D1C3C" xlink:to="loc_dei_EntityDomain_34D15617F863D6224B110BA15A1DA1A0_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_34D15617F863D6224B110BA15A1DA1A0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_02DE45BAE291FE72E0FF0BA15A1D1C3C" xlink:to="loc_dei_EntityDomain_34D15617F863D6224B110BA15A1DA1A0" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_NMicandReoneCombinedMember" xlink:label="loc_nmih_NMicandReoneCombinedMember_6F339A242743D5725B240BA15A1EC499" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_34D15617F863D6224B110BA15A1DA1A0" xlink:to="loc_nmih_NMicandReoneCombinedMember_6F339A242743D5725B240BA15A1EC499" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_NMICMember" xlink:label="loc_nmih_NMICMember_B584A243A4DA680A4A120BA15A1E1422" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_34D15617F863D6224B110BA15A1DA1A0" xlink:to="loc_nmih_NMICMember_B584A243A4DA680A4A120BA15A1E1422" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_SubsidiariesMember" xlink:label="loc_us-gaap_SubsidiariesMember_66FDF2BAE8397AEE14230BA15A1EFC5A" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_34D15617F863D6224B110BA15A1DA1A0" xlink:to="loc_us-gaap_SubsidiariesMember_66FDF2BAE8397AEE14230BA15A1EFC5A" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_MortgageInsurancePercentageofIndebtednessonSingleLoanLimit" xlink:label="loc_nmih_MortgageInsurancePercentageofIndebtednessonSingleLoanLimit_531F0B14CA7A49F8DF390BA15A1ED928" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatutoryAccountingPracticesLineItems_61C4A7312874E5DBEF2A0BA15A1EE521" xlink:to="loc_nmih_MortgageInsurancePercentageofIndebtednessonSingleLoanLimit_531F0B14CA7A49F8DF390BA15A1ED928" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_NumberofStatesEntityisLicensedtoWriteMortgageInsurance" xlink:label="loc_nmih_NumberofStatesEntityisLicensedtoWriteMortgageInsurance_A74D22AF4E66A41D2B520BA15A231341" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatutoryAccountingPracticesLineItems_61C4A7312874E5DBEF2A0BA15A1EE521" xlink:to="loc_nmih_NumberofStatesEntityisLicensedtoWriteMortgageInsurance_A74D22AF4E66A41D2B520BA15A231341" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_NumberofStatesWhichRequireMinimumAmountofStatutoryCapitalRelativetoRiskInForce" xlink:label="loc_nmih_NumberofStatesWhichRequireMinimumAmountofStatutoryCapitalRelativetoRiskInForce_CE28DD5AFA61AB0A055F0BA15A23D7EA" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatutoryAccountingPracticesLineItems_61C4A7312874E5DBEF2A0BA15A1EE521" xlink:to="loc_nmih_NumberofStatesWhichRequireMinimumAmountofStatutoryCapitalRelativetoRiskInForce_CE28DD5AFA61AB0A055F0BA15A23D7EA" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_RiskToCapitalRatioRegulatoryMaximum" xlink:label="loc_nmih_RiskToCapitalRatioRegulatoryMaximum_3EEFE9C06112E97C58570BA15A236586" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatutoryAccountingPracticesLineItems_61C4A7312874E5DBEF2A0BA15A1EE521" xlink:to="loc_nmih_RiskToCapitalRatioRegulatoryMaximum_3EEFE9C06112E97C58570BA15A236586" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_RequiredRisktoCapitalRatioonAgreementsPerGSEApprovalMaximum" xlink:label="loc_nmih_RequiredRisktoCapitalRatioonAgreementsPerGSEApprovalMaximum_2C51EA1D165B343A983F0BA15A2332DE" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatutoryAccountingPracticesLineItems_61C4A7312874E5DBEF2A0BA15A1EE521" xlink:to="loc_nmih_RequiredRisktoCapitalRatioonAgreementsPerGSEApprovalMaximum_2C51EA1D165B343A983F0BA15A2332DE" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_RequiredMaximumRisktoCapitalRatioonAgreementsPerGSEApprovalTimePeriod" xlink:label="loc_nmih_RequiredMaximumRisktoCapitalRatioonAgreementsPerGSEApprovalTimePeriod_384BE477E234E7137EB30BA15A23A089" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatutoryAccountingPracticesLineItems_61C4A7312874E5DBEF2A0BA15A1EE521" xlink:to="loc_nmih_RequiredMaximumRisktoCapitalRatioonAgreementsPerGSEApprovalTimePeriod_384BE477E234E7137EB30BA15A23A089" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_MortgageInsuranceRiskinForce" xlink:label="loc_nmih_MortgageInsuranceRiskinForce_B3EEE870D29E76EDE8A10BA15A23AA91" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatutoryAccountingPracticesLineItems_61C4A7312874E5DBEF2A0BA15A1EE521" xlink:to="loc_nmih_MortgageInsuranceRiskinForce_B3EEE870D29E76EDE8A10BA15A23AA91" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_RiskToCapitalRatioRegulatoryActual" xlink:label="loc_nmih_RiskToCapitalRatioRegulatoryActual_EE4815CA501FEA0D03FE0BA15A248556" xlink:type="locator" />
    <definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatutoryAccountingPracticesLineItems_61C4A7312874E5DBEF2A0BA15A1EE521" xlink:to="loc_nmih_RiskToCapitalRatioRegulatoryActual_EE4815CA501FEA0D03FE0BA15A248556" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_93AB773D2AA6DDDB98240BA15A24A05F" xlink:type="locator" />
    <definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatutoryAccountingPracticesLineItems_61C4A7312874E5DBEF2A0BA15A1EE521" xlink:to="loc_us-gaap_StockholdersEquity_93AB773D2AA6DDDB98240BA15A24A05F" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_EquityMethodInvestments" xlink:label="loc_us-gaap_EquityMethodInvestments_0691F296775A5146857F0BA15A24EEC0" xlink:type="locator" />
    <definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatutoryAccountingPracticesLineItems_61C4A7312874E5DBEF2A0BA15A1EE521" xlink:to="loc_us-gaap_EquityMethodInvestments_0691F296775A5146857F0BA15A24EEC0" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_OrdinaryDividendsRestrictionwithRegardstoCapitalSurplus" xlink:label="loc_nmih_OrdinaryDividendsRestrictionwithRegardstoCapitalSurplus_0CC984EA71EEB9869DCC0BA15A2461FE" xlink:type="locator" />
    <definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatutoryAccountingPracticesLineItems_61C4A7312874E5DBEF2A0BA15A1EE521" xlink:to="loc_nmih_OrdinaryDividendsRestrictionwithRegardstoCapitalSurplus_0CC984EA71EEB9869DCC0BA15A2461FE" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.nationalmi.com/role/StatutoryInformationRiskToCapitalDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StatutoryAccountingPracticesLineItems" xlink:label="loc_us-gaap_StatutoryAccountingPracticesLineItems_BF0D104312EFE78C15FFD24B5E27D75F" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StatutoryAccountingPracticesTable" xlink:label="loc_us-gaap_StatutoryAccountingPracticesTable_8337E17EC4C51A219A8DD24B5E27A4B0" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatutoryAccountingPracticesLineItems_BF0D104312EFE78C15FFD24B5E27D75F" xlink:to="loc_us-gaap_StatutoryAccountingPracticesTable_8337E17EC4C51A219A8DD24B5E27A4B0" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_dei_LegalEntityAxis_C0D366808E21035C9822D24B5E27FE29" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatutoryAccountingPracticesTable_8337E17EC4C51A219A8DD24B5E27A4B0" xlink:to="loc_dei_LegalEntityAxis_C0D366808E21035C9822D24B5E27FE29" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_7586E00F5F658265F744D24B5E270625_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_C0D366808E21035C9822D24B5E27FE29" xlink:to="loc_dei_EntityDomain_7586E00F5F658265F744D24B5E270625_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_7586E00F5F658265F744D24B5E270625" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_C0D366808E21035C9822D24B5E27FE29" xlink:to="loc_dei_EntityDomain_7586E00F5F658265F744D24B5E270625" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_NMICMember" xlink:label="loc_nmih_NMICMember_978FCFFD1516D05BD77AD24B5E2789C9" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_7586E00F5F658265F744D24B5E270625" xlink:to="loc_nmih_NMICMember_978FCFFD1516D05BD77AD24B5E2789C9" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_NMIReOneMember" xlink:label="loc_nmih_NMIReOneMember_B27317868AB7A3C8D566D24B5E27F0E6" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_7586E00F5F658265F744D24B5E270625" xlink:to="loc_nmih_NMIReOneMember_B27317868AB7A3C8D566D24B5E27F0E6" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_NMicandReoneCombinedMember" xlink:label="loc_nmih_NMicandReoneCombinedMember_C078AB0795D6A657DC21D24B5E273E79" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_7586E00F5F658265F744D24B5E270625" xlink:to="loc_nmih_NMicandReoneCombinedMember_C078AB0795D6A657DC21D24B5E273E79" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_PrimaryRiskinForceAbstract" xlink:label="loc_nmih_PrimaryRiskinForceAbstract_E64F0DC34AE12F828F07D24B5E271D00" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatutoryAccountingPracticesLineItems_BF0D104312EFE78C15FFD24B5E27D75F" xlink:to="loc_nmih_PrimaryRiskinForceAbstract_E64F0DC34AE12F828F07D24B5E271D00" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_PrimaryRiskinForceGross" xlink:label="loc_nmih_PrimaryRiskinForceGross_942BA2FF10233DE3233FD24B5E2776BF" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nmih_PrimaryRiskinForceAbstract_E64F0DC34AE12F828F07D24B5E271D00" xlink:to="loc_nmih_PrimaryRiskinForceGross_942BA2FF10233DE3233FD24B5E2776BF" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_PrimaryRiskinForceAssumed" xlink:label="loc_nmih_PrimaryRiskinForceAssumed_7A5912112B40D70932AAD24B5E27568D" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nmih_PrimaryRiskinForceAbstract_E64F0DC34AE12F828F07D24B5E271D00" xlink:to="loc_nmih_PrimaryRiskinForceAssumed_7A5912112B40D70932AAD24B5E27568D" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_PrimaryRiskinForceCeded" xlink:label="loc_nmih_PrimaryRiskinForceCeded_B8D59E8C7C0D4608FF29D24B5E27AA3F" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nmih_PrimaryRiskinForceAbstract_E64F0DC34AE12F828F07D24B5E271D00" xlink:to="loc_nmih_PrimaryRiskinForceCeded_B8D59E8C7C0D4608FF29D24B5E27AA3F" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_RiskinForcePrimary" xlink:label="loc_nmih_RiskinForcePrimary_BF7DF65B8A96C59BABDFD32D798A890F" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nmih_PrimaryRiskinForceAbstract_E64F0DC34AE12F828F07D24B5E271D00" xlink:to="loc_nmih_RiskinForcePrimary_BF7DF65B8A96C59BABDFD32D798A890F" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_MortgageInsuranceRiskinForcePoolAbstract" xlink:label="loc_nmih_MortgageInsuranceRiskinForcePoolAbstract_D7CAC309D684C2BF8EFFD24B5E27B50A" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatutoryAccountingPracticesLineItems_BF0D104312EFE78C15FFD24B5E27D75F" xlink:to="loc_nmih_MortgageInsuranceRiskinForcePoolAbstract_D7CAC309D684C2BF8EFFD24B5E27B50A" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_MortgageInsuranceinForceGrossPool" xlink:label="loc_nmih_MortgageInsuranceinForceGrossPool_168332DE717C874FBC36D24B5E278021" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nmih_MortgageInsuranceRiskinForcePoolAbstract_D7CAC309D684C2BF8EFFD24B5E27B50A" xlink:to="loc_nmih_MortgageInsuranceinForceGrossPool_168332DE717C874FBC36D24B5E278021" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_MortgageInsuranceinForceAssumedPool" xlink:label="loc_nmih_MortgageInsuranceinForceAssumedPool_9BF98B7D787CDA958E5AD24B5E272221" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nmih_MortgageInsuranceRiskinForcePoolAbstract_D7CAC309D684C2BF8EFFD24B5E27B50A" xlink:to="loc_nmih_MortgageInsuranceinForceAssumedPool_9BF98B7D787CDA958E5AD24B5E272221" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_MortgageInsuranceinForceCededPool" xlink:label="loc_nmih_MortgageInsuranceinForceCededPool_7E2EFE5B6601B72D62A9D24B5E2787EA" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nmih_MortgageInsuranceRiskinForcePoolAbstract_D7CAC309D684C2BF8EFFD24B5E27B50A" xlink:to="loc_nmih_MortgageInsuranceinForceCededPool_7E2EFE5B6601B72D62A9D24B5E2787EA" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_MortgageInsuranceRiskInForcePool" xlink:label="loc_nmih_MortgageInsuranceRiskInForcePool_6FB02F78FA9678DBDDBCD24B5E2704B0" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nmih_MortgageInsuranceRiskinForcePoolAbstract_D7CAC309D684C2BF8EFFD24B5E27B50A" xlink:to="loc_nmih_MortgageInsuranceRiskInForcePool_6FB02F78FA9678DBDDBCD24B5E2704B0" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_MortgageInsuranceRiskinForce" xlink:label="loc_nmih_MortgageInsuranceRiskinForce_71A4C78981C6F2367D61D24B5E27FF9B" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatutoryAccountingPracticesLineItems_BF0D104312EFE78C15FFD24B5E27D75F" xlink:to="loc_nmih_MortgageInsuranceRiskinForce_71A4C78981C6F2367D61D24B5E27FF9B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StatutoryAccountingPracticesStatutoryCapitalAndSurplusBalance" xlink:label="loc_us-gaap_StatutoryAccountingPracticesStatutoryCapitalAndSurplusBalance_19A69D9BEFE5B2383464D24B5E273AAA" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatutoryAccountingPracticesLineItems_BF0D104312EFE78C15FFD24B5E27D75F" xlink:to="loc_us-gaap_StatutoryAccountingPracticesStatutoryCapitalAndSurplusBalance_19A69D9BEFE5B2383464D24B5E273AAA" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_ContingencyReserve" xlink:label="loc_nmih_ContingencyReserve_347C881B1B9262FC1C20D33031B91A4B" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatutoryAccountingPracticesLineItems_BF0D104312EFE78C15FFD24B5E27D75F" xlink:to="loc_nmih_ContingencyReserve_347C881B1B9262FC1C20D33031B91A4B" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_StatutoryAccountingPracticesStatutoryPolicyholdersSurplusPlusContingencyReserves" xlink:label="loc_nmih_StatutoryAccountingPracticesStatutoryPolicyholdersSurplusPlusContingencyReserves_13651F28CFEE39DF75FFD24B5E285BC4" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatutoryAccountingPracticesLineItems_BF0D104312EFE78C15FFD24B5E27D75F" xlink:to="loc_nmih_StatutoryAccountingPracticesStatutoryPolicyholdersSurplusPlusContingencyReserves_13651F28CFEE39DF75FFD24B5E285BC4" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_RiskToCapitalRatioRegulatoryActual" xlink:label="loc_nmih_RiskToCapitalRatioRegulatoryActual_274C0D6EEAC3B02B5F07D24B5E2820B8" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatutoryAccountingPracticesLineItems_BF0D104312EFE78C15FFD24B5E27D75F" xlink:to="loc_nmih_RiskToCapitalRatioRegulatoryActual_274C0D6EEAC3B02B5F07D24B5E2820B8" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.nationalmi.com/role/StatutoryInformationStatutoryIncomeDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StatutoryAccountingPracticesLineItems" xlink:label="loc_us-gaap_StatutoryAccountingPracticesLineItems_E876107B313BE690322AD24B5E3060B0" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StatutoryAccountingPracticesTable" xlink:label="loc_us-gaap_StatutoryAccountingPracticesTable_C2524F6480C304D2922DD24B5E30F8C4" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatutoryAccountingPracticesLineItems_E876107B313BE690322AD24B5E3060B0" xlink:to="loc_us-gaap_StatutoryAccountingPracticesTable_C2524F6480C304D2922DD24B5E30F8C4" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_dei_LegalEntityAxis_046AD3752550C29D5469D24B5E3030F9" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatutoryAccountingPracticesTable_C2524F6480C304D2922DD24B5E30F8C4" xlink:to="loc_dei_LegalEntityAxis_046AD3752550C29D5469D24B5E3030F9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_80E8371AE6FBFC448E00D24B5E30B8E7_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_046AD3752550C29D5469D24B5E3030F9" xlink:to="loc_dei_EntityDomain_80E8371AE6FBFC448E00D24B5E30B8E7_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_80E8371AE6FBFC448E00D24B5E30B8E7" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_046AD3752550C29D5469D24B5E3030F9" xlink:to="loc_dei_EntityDomain_80E8371AE6FBFC448E00D24B5E30B8E7" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_NMicandReoneCombinedMember" xlink:label="loc_nmih_NMicandReoneCombinedMember_3A9608AF8CF95FE47356D24B5E302A2D" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_80E8371AE6FBFC448E00D24B5E30B8E7" xlink:to="loc_nmih_NMicandReoneCombinedMember_3A9608AF8CF95FE47356D24B5E302A2D" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StatutoryAccountingPracticesStatutoryNetIncomeAmount" xlink:label="loc_us-gaap_StatutoryAccountingPracticesStatutoryNetIncomeAmount_7BF0E8F56A789D99C4B3D24B5E304A80" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatutoryAccountingPracticesLineItems_E876107B313BE690322AD24B5E3060B0" xlink:to="loc_us-gaap_StatutoryAccountingPracticesStatutoryNetIncomeAmount_7BF0E8F56A789D99C4B3D24B5E304A80" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StatutoryAccountingPracticesStatutoryCapitalAndSurplusBalance" xlink:label="loc_us-gaap_StatutoryAccountingPracticesStatutoryCapitalAndSurplusBalance_C63D13E7172B5923A4ABD24B5E3058A6" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatutoryAccountingPracticesLineItems_E876107B313BE690322AD24B5E3060B0" xlink:to="loc_us-gaap_StatutoryAccountingPracticesStatutoryCapitalAndSurplusBalance_C63D13E7172B5923A4ABD24B5E3058A6" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_StatutoryAccountingPracticesContingencyReserve" xlink:label="loc_nmih_StatutoryAccountingPracticesContingencyReserve_121DDE35734F6AD8EC33D24B5E308E7F" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatutoryAccountingPracticesLineItems_E876107B313BE690322AD24B5E3060B0" xlink:to="loc_nmih_StatutoryAccountingPracticesContingencyReserve_121DDE35734F6AD8EC33D24B5E308E7F" xlink:type="arc" />
  </definitionLink>
  <definitionLink xlink:role="http://www.nationalmi.com/role/StatutoryInformationTables" xlink:type="extended" />
  <definitionLink xlink:role="http://www.nationalmi.com/role/Warrants" xlink:type="extended" />
  <definitionLink xlink:role="http://www.nationalmi.com/role/WarrantsDetails" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_LineOfCreditFacilityLineItems" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_10296FFE6A0AFE98367BD21C27A3930A" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_LineOfCreditFacilityTable" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_7C5BA696CF5349524ACED21C27A2C989" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_10296FFE6A0AFE98367BD21C27A3930A" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_7C5BA696CF5349524ACED21C27A2C989" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_87B6449A027FEC2BDBD5D21C27A3DD1A" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_7C5BA696CF5349524ACED21C27A2C989" xlink:to="loc_us-gaap_StatementClassOfStockAxis_87B6449A027FEC2BDBD5D21C27A3DD1A" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_9735C7E9C4A32561978DD21C27A30014_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_87B6449A027FEC2BDBD5D21C27A3DD1A" xlink:to="loc_us-gaap_ClassOfStockDomain_9735C7E9C4A32561978DD21C27A30014_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_9735C7E9C4A32561978DD21C27A30014" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_87B6449A027FEC2BDBD5D21C27A3DD1A" xlink:to="loc_us-gaap_ClassOfStockDomain_9735C7E9C4A32561978DD21C27A30014" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_CommonClassAMember" xlink:label="loc_us-gaap_CommonClassAMember_B7CA3708701745055AFCD21C27A3ACC2" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_9735C7E9C4A32561978DD21C27A30014" xlink:to="loc_us-gaap_CommonClassAMember_B7CA3708701745055AFCD21C27A3ACC2" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_D6BD46CD4016A9D721DED21C27A3E259" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_7C5BA696CF5349524ACED21C27A2C989" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_D6BD46CD4016A9D721DED21C27A3E259" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_AC9D9F78C9FABB67F9F7D21C27A3CDA9_default" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_D6BD46CD4016A9D721DED21C27A3E259" xlink:to="loc_us-gaap_EquityComponentDomain_AC9D9F78C9FABB67F9F7D21C27A3CDA9_default" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_AC9D9F78C9FABB67F9F7D21C27A3CDA9" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_D6BD46CD4016A9D721DED21C27A3E259" xlink:to="loc_us-gaap_EquityComponentDomain_AC9D9F78C9FABB67F9F7D21C27A3CDA9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_CommonStockMember" xlink:label="loc_us-gaap_CommonStockMember_B70C5CDEE6F8744C38FFD21C27A327F3" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_AC9D9F78C9FABB67F9F7D21C27A3CDA9" xlink:to="loc_us-gaap_CommonStockMember_B70C5CDEE6F8744C38FFD21C27A327F3" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ClassOfWarrantOrRightNumberOfSecuritiesCalledByWarrantsOrRights" xlink:label="loc_us-gaap_ClassOfWarrantOrRightNumberOfSecuritiesCalledByWarrantsOrRights_C718D4EF32C5B2BA5B98D21C27A319D3" xlink:type="locator" />
    <definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_10296FFE6A0AFE98367BD21C27A3930A" xlink:to="loc_us-gaap_ClassOfWarrantOrRightNumberOfSecuritiesCalledByWarrantsOrRights_C718D4EF32C5B2BA5B98D21C27A319D3" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_WarrantsAndRightsOutstanding" xlink:label="loc_us-gaap_WarrantsAndRightsOutstanding_91E4879AA0131858DABFD21C27A38FB1" xlink:type="locator" />
    <definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_10296FFE6A0AFE98367BD21C27A3930A" xlink:to="loc_us-gaap_WarrantsAndRightsOutstanding_91E4879AA0131858DABFD21C27A38FB1" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_NumberOfSharesRightToPurchasePerWarrant" xlink:label="loc_nmih_NumberOfSharesRightToPurchasePerWarrant_BFE1A8C8087CD259B8C2D2209BAE591B" xlink:type="locator" />
    <definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_10296FFE6A0AFE98367BD21C27A3930A" xlink:to="loc_nmih_NumberOfSharesRightToPurchasePerWarrant_BFE1A8C8087CD259B8C2D2209BAE591B" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1" xlink:label="loc_us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1_6A139D4CF317A7A812B1D21C27A30781" xlink:type="locator" />
    <definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_10296FFE6A0AFE98367BD21C27A3930A" xlink:to="loc_us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1_6A139D4CF317A7A812B1D21C27A30781" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_ClassofWarrantorRightNumberofWarrantsExercisedDuringPeriod" xlink:label="loc_nmih_ClassofWarrantorRightNumberofWarrantsExercisedDuringPeriod_E3D96414B11407822004D21C27A38301" xlink:type="locator" />
    <definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_10296FFE6A0AFE98367BD21C27A3930A" xlink:to="loc_nmih_ClassofWarrantorRightNumberofWarrantsExercisedDuringPeriod_E3D96414B11407822004D21C27A38301" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesOther" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesOther_6A4EAC946834AF14978CD21C27A327F5" xlink:type="locator" />
    <definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_10296FFE6A0AFE98367BD21C27A3930A" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesOther_6A4EAC946834AF14978CD21C27A327F5" xlink:type="arc" />
    <loc xlink:href="nmih-20150331.xsd#nmih_GainLossFromSettlementofWarrants" xlink:label="loc_nmih_GainLossFromSettlementofWarrants_F6E46B6DA4AB96B13D7CD21C27A31E33" xlink:type="locator" />
    <definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_10296FFE6A0AFE98367BD21C27A3930A" xlink:to="loc_nmih_GainLossFromSettlementofWarrants_F6E46B6DA4AB96B13D7CD21C27A31E33" xlink:type="arc" />
  </definitionLink>
</linkbase>
