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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2021 Workiva-->
<!--r:15542fda-05f4-46bb-a741-9bb2900a4c21,g:42abe8dc-8bcc-43e7-b875-30e09af15c9c-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member"/>
  <link:roleRef roleURI="http://www.mgic.com/role/DocumentandEntityInformation" xlink:type="simple" xlink:href="mtg-20201231.xsd#DocumentandEntityInformation"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/DocumentandEntityInformation" xlink:type="extended" id="i64a0265e43f84680834e99bda011db54_DocumentandEntityInformation"/>
  <link:roleRef roleURI="http://www.mgic.com/role/CONSOLIDATEDBALANCESHEETS" xlink:type="simple" xlink:href="mtg-20201231.xsd#CONSOLIDATEDBALANCESHEETS"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/CONSOLIDATEDBALANCESHEETS" xlink:type="extended" id="i73b739812a1146d49e129f6669b7f253_CONSOLIDATEDBALANCESHEETS"/>
  <link:roleRef roleURI="http://www.mgic.com/role/CONSOLIDATEDBALANCESHEETSParenthetical" xlink:type="simple" xlink:href="mtg-20201231.xsd#CONSOLIDATEDBALANCESHEETSParenthetical"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/CONSOLIDATEDBALANCESHEETSParenthetical" xlink:type="extended" id="ia2de2c4897bd4313b043e62c8127933f_CONSOLIDATEDBALANCESHEETSParenthetical"/>
  <link:roleRef roleURI="http://www.mgic.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="simple" xlink:href="mtg-20201231.xsd#CONSOLIDATEDSTATEMENTSOFOPERATIONS"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="extended" id="ia53bdcefcd094d15bc0d4c804fa630e1_CONSOLIDATEDSTATEMENTSOFOPERATIONS"/>
  <link:roleRef roleURI="http://www.mgic.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME" xlink:type="simple" xlink:href="mtg-20201231.xsd#CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME" xlink:type="extended" id="i454cfb8772f64831912a9b355de13213_CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME"/>
  <link:roleRef roleURI="http://www.mgic.com/role/CONSOLIDATEDSTATEMENTSOFSHAREHOLDERSEQUITY" xlink:type="simple" xlink:href="mtg-20201231.xsd#CONSOLIDATEDSTATEMENTSOFSHAREHOLDERSEQUITY"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/CONSOLIDATEDSTATEMENTSOFSHAREHOLDERSEQUITY" xlink:type="extended" id="ie9e2dfd1f5bc41ffa9698ff9367b8b0e_CONSOLIDATEDSTATEMENTSOFSHAREHOLDERSEQUITY">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_87097465-0ecc-4942-8b56-5d4fd7399aae" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2a488468-18e0-4999-9b25-d9edf89cfaba" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_87097465-0ecc-4942-8b56-5d4fd7399aae" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2a488468-18e0-4999-9b25-d9edf89cfaba" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_8cd9512d-1155-459a-a697-d97b6f394cab" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2a488468-18e0-4999-9b25-d9edf89cfaba" xlink:to="loc_us-gaap_StockholdersEquity_8cd9512d-1155-459a-a697-d97b6f394cab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_7bdee666-635c-4050-b430-db918d1dd2a0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2a488468-18e0-4999-9b25-d9edf89cfaba" xlink:to="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_7bdee666-635c-4050-b430-db918d1dd2a0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation_ed737ce7-0d46-4e9c-acb0-da45c945aaf6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2a488468-18e0-4999-9b25-d9edf89cfaba" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation_ed737ce7-0d46-4e9c-acb0-da45c945aaf6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalEquityComponentOfConvertibleDebtSubsequentAdjustments_c61d2b6c-5230-45e7-a720-93c5ac1a45b5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalEquityComponentOfConvertibleDebtSubsequentAdjustments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2a488468-18e0-4999-9b25-d9edf89cfaba" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalEquityComponentOfConvertibleDebtSubsequentAdjustments_c61d2b6c-5230-45e7-a720-93c5ac1a45b5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_StockIssuedDuringPeriodValueTreasuryStockReissuedForShareBasedCompensation_86f8bbf5-cdf7-4163-aa02-075430debd26" xlink:href="mtg-20201231.xsd#mtg_StockIssuedDuringPeriodValueTreasuryStockReissuedForShareBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2a488468-18e0-4999-9b25-d9edf89cfaba" xlink:to="loc_mtg_StockIssuedDuringPeriodValueTreasuryStockReissuedForShareBasedCompensation_86f8bbf5-cdf7-4163-aa02-075430debd26" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_967f52b7-4056-4c22-9060-30bd55169b0f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2a488468-18e0-4999-9b25-d9edf89cfaba" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_967f52b7-4056-4c22-9060-30bd55169b0f" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_6ebd6755-36c1-4181-bb4b-75b001daec1f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2a488468-18e0-4999-9b25-d9edf89cfaba" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_6ebd6755-36c1-4181-bb4b-75b001daec1f" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_e7624050-132a-4cc6-b079-131b2fc95a96" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2a488468-18e0-4999-9b25-d9edf89cfaba" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_e7624050-132a-4cc6-b079-131b2fc95a96" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_27a6b9fa-6419-44ff-bfb8-2e73b68c09e0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2a488468-18e0-4999-9b25-d9edf89cfaba" xlink:to="loc_us-gaap_NetIncomeLoss_27a6b9fa-6419-44ff-bfb8-2e73b68c09e0" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsCash_822acf41-f73d-4f7b-9dff-56de640877e7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DividendsCash"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2a488468-18e0-4999-9b25-d9edf89cfaba" xlink:to="loc_us-gaap_DividendsCash_822acf41-f73d-4f7b-9dff-56de640877e7" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_c44b19a9-f8ae-4126-b7f1-43704b3283c3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_e6222e21-0283-47e9-979b-fa67ae45fe2b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_87097465-0ecc-4942-8b56-5d4fd7399aae" xlink:to="loc_us-gaap_StatementTable_e6222e21-0283-47e9-979b-fa67ae45fe2b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_CumulativeEffectofAdoptinganAccountingStandardUpdateAxis_f6f86954-ba4c-4317-9f3f-d8b296e77562" xlink:href="mtg-20201231.xsd#mtg_CumulativeEffectofAdoptinganAccountingStandardUpdateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_e6222e21-0283-47e9-979b-fa67ae45fe2b" xlink:to="loc_mtg_CumulativeEffectofAdoptinganAccountingStandardUpdateAxis_f6f86954-ba4c-4317-9f3f-d8b296e77562" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_CumulativeEffectofAdoptinganAccountingStandardUpdateDomain_f6f86954-ba4c-4317-9f3f-d8b296e77562_default" xlink:href="mtg-20201231.xsd#mtg_CumulativeEffectofAdoptinganAccountingStandardUpdateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_mtg_CumulativeEffectofAdoptinganAccountingStandardUpdateAxis_f6f86954-ba4c-4317-9f3f-d8b296e77562" xlink:to="loc_mtg_CumulativeEffectofAdoptinganAccountingStandardUpdateDomain_f6f86954-ba4c-4317-9f3f-d8b296e77562_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_CumulativeEffectofAdoptinganAccountingStandardUpdateDomain_efcdce20-c1be-4922-8d9d-c7b0d05e860f" xlink:href="mtg-20201231.xsd#mtg_CumulativeEffectofAdoptinganAccountingStandardUpdateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_mtg_CumulativeEffectofAdoptinganAccountingStandardUpdateAxis_f6f86954-ba4c-4317-9f3f-d8b296e77562" xlink:to="loc_mtg_CumulativeEffectofAdoptinganAccountingStandardUpdateDomain_efcdce20-c1be-4922-8d9d-c7b0d05e860f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountingStandardsUpdate201601Member_ce5d1c8d-1f88-48d6-a504-5d77255efa90" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccountingStandardsUpdate201601Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtg_CumulativeEffectofAdoptinganAccountingStandardUpdateDomain_efcdce20-c1be-4922-8d9d-c7b0d05e860f" xlink:to="loc_us-gaap_AccountingStandardsUpdate201601Member_ce5d1c8d-1f88-48d6-a504-5d77255efa90" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_c99d732e-176a-410e-a9d8-463c98dc8a85" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_e6222e21-0283-47e9-979b-fa67ae45fe2b" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_c99d732e-176a-410e-a9d8-463c98dc8a85" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_c99d732e-176a-410e-a9d8-463c98dc8a85_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_c99d732e-176a-410e-a9d8-463c98dc8a85" xlink:to="loc_us-gaap_EquityComponentDomain_c99d732e-176a-410e-a9d8-463c98dc8a85_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_e962b6e6-c7e2-446f-b34a-6aafdbd09289" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_c99d732e-176a-410e-a9d8-463c98dc8a85" xlink:to="loc_us-gaap_EquityComponentDomain_e962b6e6-c7e2-446f-b34a-6aafdbd09289" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_67722472-ed37-4a6d-995a-d999dcb06e0c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_e962b6e6-c7e2-446f-b34a-6aafdbd09289" xlink:to="loc_us-gaap_CommonStockMember_67722472-ed37-4a6d-995a-d999dcb06e0c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_21df13e9-23a5-4bff-8fbc-32733935ef30" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_e962b6e6-c7e2-446f-b34a-6aafdbd09289" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_21df13e9-23a5-4bff-8fbc-32733935ef30" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockMember_8c6bfe40-d5ed-4e85-9383-ee55b8f19a1f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TreasuryStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_e962b6e6-c7e2-446f-b34a-6aafdbd09289" xlink:to="loc_us-gaap_TreasuryStockMember_8c6bfe40-d5ed-4e85-9383-ee55b8f19a1f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_fcbfb6e0-c305-4e1b-a3ae-4e798352cd3c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_e962b6e6-c7e2-446f-b34a-6aafdbd09289" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_fcbfb6e0-c305-4e1b-a3ae-4e798352cd3c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_406f692c-8786-4e31-befd-5d1861dd7127" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_e962b6e6-c7e2-446f-b34a-6aafdbd09289" xlink:to="loc_us-gaap_RetainedEarningsMember_406f692c-8786-4e31-befd-5d1861dd7127" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="mtg-20201231.xsd#CONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="extended" id="i13a395907a5c4e68b487d48c09d9932a_CONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:roleRef roleURI="http://www.mgic.com/role/NatureofBusiness" xlink:type="simple" xlink:href="mtg-20201231.xsd#NatureofBusiness"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/NatureofBusiness" xlink:type="extended" id="id4d33f21313b4c50811cf45092347a95_NatureofBusiness"/>
  <link:roleRef roleURI="http://www.mgic.com/role/NatureofBusinessDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#NatureofBusinessDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/NatureofBusinessDetails" xlink:type="extended" id="i8e6eb555e00f42078b674b5c5ccf0a0e_NatureofBusinessDetails"/>
  <link:roleRef roleURI="http://www.mgic.com/role/BasisofPresentation" xlink:type="simple" xlink:href="mtg-20201231.xsd#BasisofPresentation"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/BasisofPresentation" xlink:type="extended" id="if6dc9334049d46bfa05a99b23859d39e_BasisofPresentation"/>
  <link:roleRef roleURI="http://www.mgic.com/role/SignificantAccountingPolicies" xlink:type="simple" xlink:href="mtg-20201231.xsd#SignificantAccountingPolicies"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/SignificantAccountingPolicies" xlink:type="extended" id="i0e4745dbf8934fbc91030fce8cf6b6a7_SignificantAccountingPolicies"/>
  <link:roleRef roleURI="http://www.mgic.com/role/SignificantAccountingPoliciesPolicies" xlink:type="simple" xlink:href="mtg-20201231.xsd#SignificantAccountingPoliciesPolicies"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/SignificantAccountingPoliciesPolicies" xlink:type="extended" id="i5caf05cc88584c51af228a53bfd094e6_SignificantAccountingPoliciesPolicies"/>
  <link:roleRef roleURI="http://www.mgic.com/role/SignificantAccountingPoliciesTables" xlink:type="simple" xlink:href="mtg-20201231.xsd#SignificantAccountingPoliciesTables"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/SignificantAccountingPoliciesTables" xlink:type="extended" id="ided00323cf384e4080d1ce16371fcfa6_SignificantAccountingPoliciesTables"/>
  <link:roleRef roleURI="http://www.mgic.com/role/SignificantAccountingPoliciesDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#SignificantAccountingPoliciesDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/SignificantAccountingPoliciesDetails" xlink:type="extended" id="if58c2d2a5de34da3be5045f015cbdf68_SignificantAccountingPoliciesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_12ca5e7d-629e-4012-8683-13ce3287e082" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAbstract_1a4c17e9-2b28-49e6-8f81-d046873fc776" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_12ca5e7d-629e-4012-8683-13ce3287e082" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAbstract_1a4c17e9-2b28-49e6-8f81-d046873fc776" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_7a97b572-5efd-46c7-8943-9e6ce77af9b5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentUsefulLife"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentAbstract_1a4c17e9-2b28-49e6-8f81-d046873fc776" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_7a97b572-5efd-46c7-8943-9e6ce77af9b5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_c56f36a3-3427-41a9-8214-a7e870a9c69d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentAbstract_1a4c17e9-2b28-49e6-8f81-d046873fc776" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_c56f36a3-3427-41a9-8214-a7e870a9c69d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Depreciation_c84ec58e-e4aa-4da3-98ee-8c7b57a8d557" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Depreciation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentAbstract_1a4c17e9-2b28-49e6-8f81-d046873fc776" xlink:to="loc_us-gaap_Depreciation_c84ec58e-e4aa-4da3-98ee-8c7b57a8d557" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_MinimumNumberOfPaymentsPastDueToBeInDefault_ab668068-9afd-43a7-9a93-26480c28c4b9" xlink:href="mtg-20201231.xsd#mtg_MinimumNumberOfPaymentsPastDueToBeInDefault"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_12ca5e7d-629e-4012-8683-13ce3287e082" xlink:to="loc_mtg_MinimumNumberOfPaymentsPastDueToBeInDefault_ab668068-9afd-43a7-9a93-26480c28c4b9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_PostretirementBenefitsLiabilityMaximumAgeForQualifiedEmployees_0d12c7a7-0706-4c5a-b295-2f83782a4579" xlink:href="mtg-20201231.xsd#mtg_PostretirementBenefitsLiabilityMaximumAgeForQualifiedEmployees"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_12ca5e7d-629e-4012-8683-13ce3287e082" xlink:to="loc_mtg_PostretirementBenefitsLiabilityMaximumAgeForQualifiedEmployees_0d12c7a7-0706-4c5a-b295-2f83782a4579" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_6be8cd57-221f-4e0d-8f36-50b55907cf0c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_12ca5e7d-629e-4012-8683-13ce3287e082" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_6be8cd57-221f-4e0d-8f36-50b55907cf0c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionAmountsOfTransaction_f7f286f8-1945-4ca7-a409-a9a621567842" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyTransactionAmountsOfTransaction"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_12ca5e7d-629e-4012-8683-13ce3287e082" xlink:to="loc_us-gaap_RelatedPartyTransactionAmountsOfTransaction_f7f286f8-1945-4ca7-a409-a9a621567842" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_975a3ac9-f61d-4e3e-b264-450ad2d6c3d9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_12ca5e7d-629e-4012-8683-13ce3287e082" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_975a3ac9-f61d-4e3e-b264-450ad2d6c3d9" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_89d52210-0eb5-4310-8d47-8b3c6d9ab679" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_975a3ac9-f61d-4e3e-b264-450ad2d6c3d9" xlink:to="loc_srt_RangeAxis_89d52210-0eb5-4310-8d47-8b3c6d9ab679" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_89d52210-0eb5-4310-8d47-8b3c6d9ab679_default" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_89d52210-0eb5-4310-8d47-8b3c6d9ab679" xlink:to="loc_srt_RangeMember_89d52210-0eb5-4310-8d47-8b3c6d9ab679_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_024366e1-1967-490e-ac11-23bfa9a55ba7" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_89d52210-0eb5-4310-8d47-8b3c6d9ab679" xlink:to="loc_srt_RangeMember_024366e1-1967-490e-ac11-23bfa9a55ba7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_5d7217de-447e-4fea-9fe3-be400ac1a716" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_024366e1-1967-490e-ac11-23bfa9a55ba7" xlink:to="loc_srt_MinimumMember_5d7217de-447e-4fea-9fe3-be400ac1a716" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_638e0d6c-e5d3-4e3f-aea9-f90f61efc847" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_024366e1-1967-490e-ac11-23bfa9a55ba7" xlink:to="loc_srt_MaximumMember_638e0d6c-e5d3-4e3f-aea9-f90f61efc847" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/EarningsperShare" xlink:type="simple" xlink:href="mtg-20201231.xsd#EarningsperShare"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/EarningsperShare" xlink:type="extended" id="i6ee1e3bda4084ee1bfa0cd0f304bc44f_EarningsperShare"/>
  <link:roleRef roleURI="http://www.mgic.com/role/EarningsperShareTables" xlink:type="simple" xlink:href="mtg-20201231.xsd#EarningsperShareTables"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/EarningsperShareTables" xlink:type="extended" id="i72b5b4b0497a4f3e9a2d9545534f89ff_EarningsperShareTables"/>
  <link:roleRef roleURI="http://www.mgic.com/role/EarningsperShareDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#EarningsperShareDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/EarningsperShareDetails" xlink:type="extended" id="idc4d55110c7342cab5a1d3e419e0f66d_EarningsperShareDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_4c2fa4d2-0628-439a-ab80-c2462011efff" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasicAbstract_8363be31-13fa-4baf-91ef-b918c6536d98" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EarningsPerShareBasicAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_4c2fa4d2-0628-439a-ab80-c2462011efff" xlink:to="loc_us-gaap_EarningsPerShareBasicAbstract_8363be31-13fa-4baf-91ef-b918c6536d98" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_c2bb7b15-f75e-4c7b-b437-205df71c30b6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicAbstract_8363be31-13fa-4baf-91ef-b918c6536d98" xlink:to="loc_us-gaap_NetIncomeLoss_c2bb7b15-f75e-4c7b-b437-205df71c30b6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_4133f5bb-972a-4fcb-918d-d0964e208e6e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicAbstract_8363be31-13fa-4baf-91ef-b918c6536d98" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_4133f5bb-972a-4fcb-918d-d0964e208e6e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasic_00da5e48-0006-499d-9a50-edfb7bedaefd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EarningsPerShareBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicAbstract_8363be31-13fa-4baf-91ef-b918c6536d98" xlink:to="loc_us-gaap_EarningsPerShareBasic_00da5e48-0006-499d-9a50-edfb7bedaefd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDilutedAbstract_41349710-8b19-4032-a54b-5656b62c0bd4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EarningsPerShareDilutedAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_4c2fa4d2-0628-439a-ab80-c2462011efff" xlink:to="loc_us-gaap_EarningsPerShareDilutedAbstract_41349710-8b19-4032-a54b-5656b62c0bd4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_8c48cd2b-4126-4654-8592-1561f833739b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DilutiveSecurities_b6249c3e-e24a-412e-a080-7967a69ec905" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DilutiveSecurities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedAbstract_41349710-8b19-4032-a54b-5656b62c0bd4" xlink:to="loc_us-gaap_DilutiveSecurities_b6249c3e-e24a-412e-a080-7967a69ec905" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_e53ca21b-04c8-4cff-b61e-dd3b693612ee" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedAbstract_41349710-8b19-4032-a54b-5656b62c0bd4" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_e53ca21b-04c8-4cff-b61e-dd3b693612ee" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_36ac0309-caa3-4eac-818c-681f7a01e305" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DilutiveSecuritiesAbstract_e85e7f38-fa69-490e-b810-fb20559d34b2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DilutiveSecuritiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedAbstract_41349710-8b19-4032-a54b-5656b62c0bd4" xlink:to="loc_us-gaap_DilutiveSecuritiesAbstract_e85e7f38-fa69-490e-b810-fb20559d34b2" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_ab7c933d-aef0-4a4b-ae34-1ac59d188a59" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DilutiveSecuritiesAbstract_e85e7f38-fa69-490e-b810-fb20559d34b2" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_ab7c933d-aef0-4a4b-ae34-1ac59d188a59" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment_3a8dd043-8267-47cc-b6c0-6b9bf83f8a39" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DilutiveSecuritiesAbstract_e85e7f38-fa69-490e-b810-fb20559d34b2" xlink:to="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment_3a8dd043-8267-47cc-b6c0-6b9bf83f8a39" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_f40e342b-912a-4c3a-b5ee-a6deaf1fef42" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedAbstract_41349710-8b19-4032-a54b-5656b62c0bd4" xlink:to="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_f40e342b-912a-4c3a-b5ee-a6deaf1fef42" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDiluted_a04d3b87-db2a-4562-8675-ff8a530b330b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EarningsPerShareDiluted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedAbstract_41349710-8b19-4032-a54b-5656b62c0bd4" xlink:to="loc_us-gaap_EarningsPerShareDiluted_a04d3b87-db2a-4562-8675-ff8a530b330b" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_b32202dc-26e6-4d72-b2c4-1db8c6102ef4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_4c2fa4d2-0628-439a-ab80-c2462011efff" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_b32202dc-26e6-4d72-b2c4-1db8c6102ef4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_1c903733-8beb-417a-a036-257496c285a5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_4c2fa4d2-0628-439a-ab80-c2462011efff" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_1c903733-8beb-417a-a036-257496c285a5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_76e984dc-8081-4553-822a-0aa68a44c3a4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_4c2fa4d2-0628-439a-ab80-c2462011efff" xlink:to="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_76e984dc-8081-4553-822a-0aa68a44c3a4" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_833a7d3e-f2a1-42ee-980d-a352a3bdc58b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_76e984dc-8081-4553-822a-0aa68a44c3a4" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_833a7d3e-f2a1-42ee-980d-a352a3bdc58b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_833a7d3e-f2a1-42ee-980d-a352a3bdc58b_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_833a7d3e-f2a1-42ee-980d-a352a3bdc58b" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_833a7d3e-f2a1-42ee-980d-a352a3bdc58b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_3770b369-a7be-4fe8-a10a-eb4ce0e6d75f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_833a7d3e-f2a1-42ee-980d-a352a3bdc58b" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_3770b369-a7be-4fe8-a10a-eb4ce0e6d75f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_ConvertibleJuniorDebenturesat9perannumDue2063Member_ddfad1c3-986a-401b-b198-55d4760c01f7" xlink:href="mtg-20201231.xsd#mtg_ConvertibleJuniorDebenturesat9perannumDue2063Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_3770b369-a7be-4fe8-a10a-eb4ce0e6d75f" xlink:to="loc_mtg_ConvertibleJuniorDebenturesat9perannumDue2063Member_ddfad1c3-986a-401b-b198-55d4760c01f7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_UnvestedRestrictedStockUnitsMember_2e9926d1-1e82-420d-97a2-b8f8953f3a9a" xlink:href="mtg-20201231.xsd#mtg_UnvestedRestrictedStockUnitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_3770b369-a7be-4fe8-a10a-eb4ce0e6d75f" xlink:to="loc_mtg_UnvestedRestrictedStockUnitsMember_2e9926d1-1e82-420d-97a2-b8f8953f3a9a" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/Investments" xlink:type="simple" xlink:href="mtg-20201231.xsd#Investments"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/Investments" xlink:type="extended" id="if6d58f0d82c34e9b9b550490682622ee_Investments"/>
  <link:roleRef roleURI="http://www.mgic.com/role/InvestmentsTables" xlink:type="simple" xlink:href="mtg-20201231.xsd#InvestmentsTables"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/InvestmentsTables" xlink:type="extended" id="i7380ba54ed7e4a7d9a3cb6435fa575d7_InvestmentsTables"/>
  <link:roleRef roleURI="http://www.mgic.com/role/InvestmentsDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#InvestmentsDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/InvestmentsDetails" xlink:type="extended" id="i0134acac98614ec8b8dfa73d771d380d_InvestmentsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_5751129e-aa0c-4ee8-ac04-584e4408cff6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_337d2489-d662-4ad6-9a46-7ec3208fb31b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_5751129e-aa0c-4ee8-ac04-584e4408cff6" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_337d2489-d662-4ad6-9a46-7ec3208fb31b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAllowanceForCreditLoss_cea52230-531d-4e83-bb16-baaf04fc4a10" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_5751129e-aa0c-4ee8-ac04-584e4408cff6" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleAllowanceForCreditLoss_cea52230-531d-4e83-bb16-baaf04fc4a10" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_3b5d52a1-024b-4aa3-86c5-6241293ea29e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_5751129e-aa0c-4ee8-ac04-584e4408cff6" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_3b5d52a1-024b-4aa3-86c5-6241293ea29e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_6e59ab89-f9b7-4974-b02b-97d081eaaa16" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_5751129e-aa0c-4ee8-ac04-584e4408cff6" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_6e59ab89-f9b7-4974-b02b-97d081eaaa16" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_510aed80-3397-498e-9dfe-8487f20f59cb" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_5751129e-aa0c-4ee8-ac04-584e4408cff6" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_510aed80-3397-498e-9dfe-8487f20f59cb" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsHeldByInsuranceRegulators_b83a8086-0e11-4c17-95c7-aa1f759fe6b7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsHeldByInsuranceRegulators"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_5751129e-aa0c-4ee8-ac04-584e4408cff6" xlink:to="loc_us-gaap_AssetsHeldByInsuranceRegulators_b83a8086-0e11-4c17-95c7-aa1f759fe6b7" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsHeldInTrust_e11b4a77-23a9-4172-955d-687ff74508dd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsHeldInTrust"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_5751129e-aa0c-4ee8-ac04-584e4408cff6" xlink:to="loc_us-gaap_AssetsHeldInTrust_e11b4a77-23a9-4172-955d-687ff74508dd" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_FederalHomeLoanBankAdvancesCollateralMarketValueOfPrincipalPercent_d063bb6e-db77-4249-9b8b-9d9501415be3" xlink:href="mtg-20201231.xsd#mtg_FederalHomeLoanBankAdvancesCollateralMarketValueOfPrincipalPercent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_5751129e-aa0c-4ee8-ac04-584e4408cff6" xlink:to="loc_mtg_FederalHomeLoanBankAdvancesCollateralMarketValueOfPrincipalPercent_d063bb6e-db77-4249-9b8b-9d9501415be3" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesGeneralDebtObligationsDisclosuresCollateralPledged1_79dcef9e-86e0-40ee-8716-1eae557a1168" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FederalHomeLoanBankAdvancesGeneralDebtObligationsDisclosuresCollateralPledged1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_5751129e-aa0c-4ee8-ac04-584e4408cff6" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesGeneralDebtObligationsDisclosuresCollateralPledged1_79dcef9e-86e0-40ee-8716-1eae557a1168" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract_5b41c436-4d0f-4cf9-9aa7-667c1e634a9f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_5751129e-aa0c-4ee8-ac04-584e4408cff6" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract_5b41c436-4d0f-4cf9-9aa7-667c1e634a9f" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_d900d618-3573-426a-83f6-92f255459fb2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract_5b41c436-4d0f-4cf9-9aa7-667c1e634a9f" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_d900d618-3573-426a-83f6-92f255459fb2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_94442f37-9727-4538-a07c-775aaead632f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract_5b41c436-4d0f-4cf9-9aa7-667c1e634a9f" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_94442f37-9727-4538-a07c-775aaead632f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_d393a106-4c98-4041-8cca-61bb8740a5d9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract_5b41c436-4d0f-4cf9-9aa7-667c1e634a9f" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_d393a106-4c98-4041-8cca-61bb8740a5d9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_f6f72939-7d4e-4d3f-9c0b-b496d37fe96d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract_5b41c436-4d0f-4cf9-9aa7-667c1e634a9f" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_f6f72939-7d4e-4d3f-9c0b-b496d37fe96d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateAmortizedCost_9894719d-f1d0-4c4a-b96f-0b0dac2fef7d" xlink:href="mtg-20201231.xsd#mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateAmortizedCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract_5b41c436-4d0f-4cf9-9aa7-667c1e634a9f" xlink:to="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateAmortizedCost_9894719d-f1d0-4c4a-b96f-0b0dac2fef7d" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateAmortizedCost_b0a13c56-4d79-4e3d-8324-a4bc4d7a20e8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateAmortizedCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract_5b41c436-4d0f-4cf9-9aa7-667c1e634a9f" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateAmortizedCost_b0a13c56-4d79-4e3d-8324-a4bc4d7a20e8" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_ad7d076e-930a-4ef4-97b3-3020c7d844a8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract_f9280ad0-3ca4-45df-9650-d966acb967cf" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_5751129e-aa0c-4ee8-ac04-584e4408cff6" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract_f9280ad0-3ca4-45df-9650-d966acb967cf" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_5160c6b9-0c5a-44a8-95ee-c47ec9c2caa4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract_f9280ad0-3ca4-45df-9650-d966acb967cf" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_5160c6b9-0c5a-44a8-95ee-c47ec9c2caa4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_83e898f5-c873-4b43-9584-8cb9ddd7318e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract_f9280ad0-3ca4-45df-9650-d966acb967cf" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_83e898f5-c873-4b43-9584-8cb9ddd7318e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_3eca54d7-c4fd-4738-a01b-7c7241c39e21" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract_f9280ad0-3ca4-45df-9650-d966acb967cf" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_3eca54d7-c4fd-4738-a01b-7c7241c39e21" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_eac9f834-887e-4b56-857d-18014110bd80" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract_f9280ad0-3ca4-45df-9650-d966acb967cf" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_eac9f834-887e-4b56-857d-18014110bd80" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateFairValue_38ec6388-b0aa-4e64-927c-274fa1939a41" xlink:href="mtg-20201231.xsd#mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract_f9280ad0-3ca4-45df-9650-d966acb967cf" xlink:to="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateFairValue_38ec6388-b0aa-4e64-927c-274fa1939a41" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue_fb5b9bf2-a5d5-4c8a-af6e-2148cc39f26d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract_f9280ad0-3ca4-45df-9650-d966acb967cf" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue_fb5b9bf2-a5d5-4c8a-af6e-2148cc39f26d" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_7360c606-f461-4f9d-938c-1227498558d9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_889123d6-ef8a-4d0d-8327-79384b7ab5dd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_5751129e-aa0c-4ee8-ac04-584e4408cff6" xlink:to="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_889123d6-ef8a-4d0d-8327-79384b7ab5dd" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesGrossRealizedGains_0516b5fb-45fe-49aa-98f3-c993732a0ba6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesGrossRealizedGains"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_5751129e-aa0c-4ee8-ac04-584e4408cff6" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesGrossRealizedGains_0516b5fb-45fe-49aa-98f3-c993732a0ba6" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableforsaleSecuritiesGrossRealizedLossesExcludingOtherThanTemporaryImpairments_1a4d99c2-a358-4199-960e-a61f9e85b630" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableforsaleSecuritiesGrossRealizedLossesExcludingOtherThanTemporaryImpairments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_5751129e-aa0c-4ee8-ac04-584e4408cff6" xlink:to="loc_us-gaap_AvailableforsaleSecuritiesGrossRealizedLossesExcludingOtherThanTemporaryImpairments_1a4d99c2-a358-4199-960e-a61f9e85b630" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_DebtSecuritiesAvailableforSaleImpairmentChargesIntentToSellNoAllowancePreviouslyRecordedRecognizedinNetRealizedInvestmentGainsLosses_aaefc875-ba76-4c96-a1ce-3423cb14357c" xlink:href="mtg-20201231.xsd#mtg_DebtSecuritiesAvailableforSaleImpairmentChargesIntentToSellNoAllowancePreviouslyRecordedRecognizedinNetRealizedInvestmentGainsLosses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_5751129e-aa0c-4ee8-ac04-584e4408cff6" xlink:to="loc_mtg_DebtSecuritiesAvailableforSaleImpairmentChargesIntentToSellNoAllowancePreviouslyRecordedRecognizedinNetRealizedInvestmentGainsLosses_aaefc875-ba76-4c96-a1ce-3423cb14357c" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAllowanceForCreditLossPeriodIncreaseDecrease_cbc41318-0890-4775-8a17-ab425b6b6b49" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleAllowanceForCreditLossPeriodIncreaseDecrease"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_5751129e-aa0c-4ee8-ac04-584e4408cff6" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleAllowanceForCreditLossPeriodIncreaseDecrease_cbc41318-0890-4775-8a17-ab425b6b6b49" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherThanTemporaryImpairmentLossesInvestmentsPortionRecognizedInEarningsNet_6c8a426f-aa9d-445e-87fb-b554fd981936" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherThanTemporaryImpairmentLossesInvestmentsPortionRecognizedInEarningsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_5751129e-aa0c-4ee8-ac04-584e4408cff6" xlink:to="loc_us-gaap_OtherThanTemporaryImpairmentLossesInvestmentsPortionRecognizedInEarningsNet_6c8a426f-aa9d-445e-87fb-b554fd981936" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNiGainLossAbstract_304a45ae-ed50-4944-b68b-451a771927af" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquitySecuritiesFvNiGainLossAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_5751129e-aa0c-4ee8-ac04-584e4408cff6" xlink:to="loc_us-gaap_EquitySecuritiesFvNiGainLossAbstract_304a45ae-ed50-4944-b68b-451a771927af" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNiCost_77682d01-dad1-49bc-96be-17f0e756b892" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquitySecuritiesFvNiCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesFvNiGainLossAbstract_304a45ae-ed50-4944-b68b-451a771927af" xlink:to="loc_us-gaap_EquitySecuritiesFvNiCost_77682d01-dad1-49bc-96be-17f0e756b892" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNiUnrealizedGain_88dfdad9-86a0-4eab-904e-c3cdd8507935" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquitySecuritiesFvNiUnrealizedGain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesFvNiGainLossAbstract_304a45ae-ed50-4944-b68b-451a771927af" xlink:to="loc_us-gaap_EquitySecuritiesFvNiUnrealizedGain_88dfdad9-86a0-4eab-904e-c3cdd8507935" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNiUnrealizedLoss_064e2a48-cb46-4ab8-82d7-ee1d90019f37" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquitySecuritiesFvNiUnrealizedLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesFvNiGainLossAbstract_304a45ae-ed50-4944-b68b-451a771927af" xlink:to="loc_us-gaap_EquitySecuritiesFvNiUnrealizedLoss_064e2a48-cb46-4ab8-82d7-ee1d90019f37" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNi_0905aa71-9ae8-41cb-9744-eb8e8186c20e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquitySecuritiesFvNi"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesFvNiGainLossAbstract_304a45ae-ed50-4944-b68b-451a771927af" xlink:to="loc_us-gaap_EquitySecuritiesFvNi_0905aa71-9ae8-41cb-9744-eb8e8186c20e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_ProceedsFromSaleOfEquitySecurities_10d78153-ab4c-4048-98f8-d1d6f4c8be63" xlink:href="mtg-20201231.xsd#mtg_ProceedsFromSaleOfEquitySecurities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_5751129e-aa0c-4ee8-ac04-584e4408cff6" xlink:to="loc_mtg_ProceedsFromSaleOfEquitySecurities_10d78153-ab4c-4048-98f8-d1d6f4c8be63" xlink:type="arc" order="18"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNiRealizedGain_4b7a095c-5d50-4ff8-9cff-e24e9dae0e0a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquitySecuritiesFvNiRealizedGain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_5751129e-aa0c-4ee8-ac04-584e4408cff6" xlink:to="loc_us-gaap_EquitySecuritiesFvNiRealizedGain_4b7a095c-5d50-4ff8-9cff-e24e9dae0e0a" xlink:type="arc" order="19"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNiRealizedLoss_44b85f6a-97b3-4103-b1e3-2d37837f5aba" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquitySecuritiesFvNiRealizedLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_5751129e-aa0c-4ee8-ac04-584e4408cff6" xlink:to="loc_us-gaap_EquitySecuritiesFvNiRealizedLoss_44b85f6a-97b3-4103-b1e3-2d37837f5aba" xlink:type="arc" order="20"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNiUnrealizedGainLoss_8b6fdc96-86d1-4436-9c85-5bcaba8f0517" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquitySecuritiesFvNiUnrealizedGainLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_5751129e-aa0c-4ee8-ac04-584e4408cff6" xlink:to="loc_us-gaap_EquitySecuritiesFvNiUnrealizedGainLoss_8b6fdc96-86d1-4436-9c85-5bcaba8f0517" xlink:type="arc" order="21"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_4d80032a-55b4-484d-82e9-1259d33f534e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_5751129e-aa0c-4ee8-ac04-584e4408cff6" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_4d80032a-55b4-484d-82e9-1259d33f534e" xlink:type="arc" order="22"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_1c0cc35d-7382-4ade-85aa-4301f7221cc2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_4d80032a-55b4-484d-82e9-1259d33f534e" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_1c0cc35d-7382-4ade-85aa-4301f7221cc2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_f0366cb0-7081-4db5-802e-ecddf09464a9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_4d80032a-55b4-484d-82e9-1259d33f534e" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_f0366cb0-7081-4db5-802e-ecddf09464a9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_850ec474-9a3d-4f65-8dff-a118073b99b3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_4d80032a-55b4-484d-82e9-1259d33f534e" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_850ec474-9a3d-4f65-8dff-a118073b99b3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_06261e17-b43a-48fe-b018-fa9096422f13" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_4d80032a-55b4-484d-82e9-1259d33f534e" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_06261e17-b43a-48fe-b018-fa9096422f13" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_6c1424d7-677d-401e-8b03-49591ce3af00" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_4d80032a-55b4-484d-82e9-1259d33f534e" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_6c1424d7-677d-401e-8b03-49591ce3af00" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_65872d4e-4978-437d-8ec8-4138ec46c3ba" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_4d80032a-55b4-484d-82e9-1259d33f534e" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_65872d4e-4978-437d-8ec8-4138ec46c3ba" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableforsaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions1_557f1748-cf97-4c2b-9fda-13e78caa44d7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableforsaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_5751129e-aa0c-4ee8-ac04-584e4408cff6" xlink:to="loc_us-gaap_AvailableforsaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions1_557f1748-cf97-4c2b-9fda-13e78caa44d7" xlink:type="arc" order="23"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_PercentageOfFairValueToAmortizedCostSecuritiesinUnrealizedLossPosition_e3a17286-b8c6-44f4-9450-e28d7a10804e" xlink:href="mtg-20201231.xsd#mtg_PercentageOfFairValueToAmortizedCostSecuritiesinUnrealizedLossPosition"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_5751129e-aa0c-4ee8-ac04-584e4408cff6" xlink:to="loc_mtg_PercentageOfFairValueToAmortizedCostSecuritiesinUnrealizedLossPosition_e3a17286-b8c6-44f4-9450-e28d7a10804e" xlink:type="arc" order="24"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_PercentageBackedByUsGovernment_faf8f833-a759-4424-ba0b-30b276d2f938" xlink:href="mtg-20201231.xsd#mtg_PercentageBackedByUsGovernment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_5751129e-aa0c-4ee8-ac04-584e4408cff6" xlink:to="loc_mtg_PercentageBackedByUsGovernment_faf8f833-a759-4424-ba0b-30b276d2f938" xlink:type="arc" order="25"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_5f7880f2-3156-4744-92df-0b699ed9a911" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_5751129e-aa0c-4ee8-ac04-584e4408cff6" xlink:to="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_5f7880f2-3156-4744-92df-0b699ed9a911" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_4e8da2e1-fd46-4c60-9332-74ceb40ede60" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_5f7880f2-3156-4744-92df-0b699ed9a911" xlink:to="loc_us-gaap_FinancialInstrumentAxis_4e8da2e1-fd46-4c60-9332-74ceb40ede60" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_4e8da2e1-fd46-4c60-9332-74ceb40ede60_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_4e8da2e1-fd46-4c60-9332-74ceb40ede60" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_4e8da2e1-fd46-4c60-9332-74ceb40ede60_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_8584e6e5-11b2-489a-bbad-8645154fa0d6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_4e8da2e1-fd46-4c60-9332-74ceb40ede60" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_8584e6e5-11b2-489a-bbad-8645154fa0d6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesMember_3b8addf3-0317-478c-9029-3691c0f6cd96" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_8584e6e5-11b2-489a-bbad-8645154fa0d6" xlink:to="loc_us-gaap_DebtSecuritiesMember_3b8addf3-0317-478c-9029-3691c0f6cd96" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USTreasuryAndGovernmentMember_34b470e6-de6d-4c36-aec6-59e4e96eb0e8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_USTreasuryAndGovernmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesMember_3b8addf3-0317-478c-9029-3691c0f6cd96" xlink:to="loc_us-gaap_USTreasuryAndGovernmentMember_34b470e6-de6d-4c36-aec6-59e4e96eb0e8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USStatesAndPoliticalSubdivisionsMember_b5b71adc-389b-4d45-b34c-c0df8e9f3576" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_USStatesAndPoliticalSubdivisionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesMember_3b8addf3-0317-478c-9029-3691c0f6cd96" xlink:to="loc_us-gaap_USStatesAndPoliticalSubdivisionsMember_b5b71adc-389b-4d45-b34c-c0df8e9f3576" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_4da12d51-db33-421e-9982-fabd9c517a6f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CorporateDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesMember_3b8addf3-0317-478c-9029-3691c0f6cd96" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_4da12d51-db33-421e-9982-fabd9c517a6f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetBackedSecuritiesMember_290e3971-6755-4ca3-931c-4f7b00da360f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetBackedSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesMember_3b8addf3-0317-478c-9029-3691c0f6cd96" xlink:to="loc_us-gaap_AssetBackedSecuritiesMember_290e3971-6755-4ca3-931c-4f7b00da360f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResidentialMortgageBackedSecuritiesMember_0ede3dcc-a78d-4a1b-aa16-73b00dba1677" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ResidentialMortgageBackedSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesMember_3b8addf3-0317-478c-9029-3691c0f6cd96" xlink:to="loc_us-gaap_ResidentialMortgageBackedSecuritiesMember_0ede3dcc-a78d-4a1b-aa16-73b00dba1677" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialMortgageBackedSecuritiesMember_6f18bc34-7f62-401e-9d6e-007ad0e75a3d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommercialMortgageBackedSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesMember_3b8addf3-0317-478c-9029-3691c0f6cd96" xlink:to="loc_us-gaap_CommercialMortgageBackedSecuritiesMember_6f18bc34-7f62-401e-9d6e-007ad0e75a3d" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollateralizedDebtObligationsMember_f28164d5-75b4-4094-b3d4-4a45fd74c152" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CollateralizedDebtObligationsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesMember_3b8addf3-0317-478c-9029-3691c0f6cd96" xlink:to="loc_us-gaap_CollateralizedDebtObligationsMember_f28164d5-75b4-4094-b3d4-4a45fd74c152" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SovereignDebtSecuritiesMember_a5bfe638-6296-4417-868c-2c3da50a6d50" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SovereignDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesMember_3b8addf3-0317-478c-9029-3691c0f6cd96" xlink:to="loc_us-gaap_SovereignDebtSecuritiesMember_a5bfe638-6296-4417-868c-2c3da50a6d50" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherDebtSecuritiesMember_91dcc40d-a889-44e9-ada4-b6e32df5fe4b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesMember_3b8addf3-0317-478c-9029-3691c0f6cd96" xlink:to="loc_us-gaap_OtherDebtSecuritiesMember_91dcc40d-a889-44e9-ada4-b6e32df5fe4b" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesMember_4ffb7702-97d1-4c68-b63e-1778c3c58971" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquitySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_8584e6e5-11b2-489a-bbad-8645154fa0d6" xlink:to="loc_us-gaap_EquitySecuritiesMember_4ffb7702-97d1-4c68-b63e-1778c3c58971" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/InvestmentsInvestmentIncomeByCategoryDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#InvestmentsInvestmentIncomeByCategoryDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/InvestmentsInvestmentIncomeByCategoryDetails" xlink:type="extended" id="i210dd1c3bcdf4919975e2d539fb82248_InvestmentsInvestmentIncomeByCategoryDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfInvestmentIncomeReportedAmountsByCategoryLineItems_f12ec481-8cc0-49e0-aad2-1e2a332f3bc9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfInvestmentIncomeReportedAmountsByCategoryLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossInvestmentIncomeOperating_96f720e0-d4b0-4d11-bbee-7949741b3d1f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GrossInvestmentIncomeOperating"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentIncomeReportedAmountsByCategoryLineItems_f12ec481-8cc0-49e0-aad2-1e2a332f3bc9" xlink:to="loc_us-gaap_GrossInvestmentIncomeOperating_96f720e0-d4b0-4d11-bbee-7949741b3d1f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInvestmentExpense_83d965fa-b18f-42d0-80ef-4f903c41f897" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InvestmentIncomeInvestmentExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentIncomeReportedAmountsByCategoryLineItems_f12ec481-8cc0-49e0-aad2-1e2a332f3bc9" xlink:to="loc_us-gaap_InvestmentIncomeInvestmentExpense_83d965fa-b18f-42d0-80ef-4f903c41f897" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetInvestmentIncome_73f5d0df-7399-4892-a2e4-e1b54868838c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetInvestmentIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentIncomeReportedAmountsByCategoryLineItems_f12ec481-8cc0-49e0-aad2-1e2a332f3bc9" xlink:to="loc_us-gaap_NetInvestmentIncome_73f5d0df-7399-4892-a2e4-e1b54868838c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfInvestmentIncomeReportedAmountsByCategoryTable_8f177ae1-54ba-4a07-adb8-26b9a16fd6a1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfInvestmentIncomeReportedAmountsByCategoryTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfInvestmentIncomeReportedAmountsByCategoryLineItems_f12ec481-8cc0-49e0-aad2-1e2a332f3bc9" xlink:to="loc_us-gaap_ScheduleOfInvestmentIncomeReportedAmountsByCategoryTable_8f177ae1-54ba-4a07-adb8-26b9a16fd6a1" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeAxis_092446ee-d7c3-4552-ad74-34190354ee44" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InvestmentTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfInvestmentIncomeReportedAmountsByCategoryTable_8f177ae1-54ba-4a07-adb8-26b9a16fd6a1" xlink:to="loc_us-gaap_InvestmentTypeAxis_092446ee-d7c3-4552-ad74-34190354ee44" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_092446ee-d7c3-4552-ad74-34190354ee44_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InvestmentTypeAxis_092446ee-d7c3-4552-ad74-34190354ee44" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_092446ee-d7c3-4552-ad74-34190354ee44_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_7c0ade58-311a-46ec-8886-2f2949a9d7bb" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InvestmentTypeAxis_092446ee-d7c3-4552-ad74-34190354ee44" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_7c0ade58-311a-46ec-8886-2f2949a9d7bb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesMember_1a0331cc-ae0f-4471-9715-623abb919e2e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_7c0ade58-311a-46ec-8886-2f2949a9d7bb" xlink:to="loc_us-gaap_DebtSecuritiesMember_1a0331cc-ae0f-4471-9715-623abb919e2e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesMember_3e3da9ff-0990-4bf2-bcfc-5d0420e4b593" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquitySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_7c0ade58-311a-46ec-8886-2f2949a9d7bb" xlink:to="loc_us-gaap_EquitySecuritiesMember_3e3da9ff-0990-4bf2-bcfc-5d0420e4b593" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsMember_26269840-fa31-46a4-9ad9-ff1a5bf9c83a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashAndCashEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_7c0ade58-311a-46ec-8886-2f2949a9d7bb" xlink:to="loc_us-gaap_CashAndCashEquivalentsMember_26269840-fa31-46a4-9ad9-ff1a5bf9c83a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherDebtSecuritiesMember_73845722-a523-43a4-a327-b0e339a2e5ae" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_7c0ade58-311a-46ec-8886-2f2949a9d7bb" xlink:to="loc_us-gaap_OtherDebtSecuritiesMember_73845722-a523-43a4-a327-b0e339a2e5ae" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/InvestmentsGainLossonInvestmentsDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#InvestmentsGainLossonInvestmentsDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/InvestmentsGainLossonInvestmentsDetails" xlink:type="extended" id="i5e9b04f5fc764fb5b2ae660e51d2a08e_InvestmentsGainLossonInvestmentsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfGainLossOnInvestmentsIncludingMarketableSecuritiesAndInvestmentsHeldAtCostIncomeStatementReportedAmountsSummaryLineItems_b2ed037d-68da-4222-b909-60c36a015945" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfGainLossOnInvestmentsIncludingMarketableSecuritiesAndInvestmentsHeldAtCostIncomeStatementReportedAmountsSummaryLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeTax_408d064d-5943-4410-b463-5f0befa93809" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfGainLossOnInvestmentsIncludingMarketableSecuritiesAndInvestmentsHeldAtCostIncomeStatementReportedAmountsSummaryLineItems_b2ed037d-68da-4222-b909-60c36a015945" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeTax_408d064d-5943-4410-b463-5f0befa93809" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfGainLossOnInvestmentsTable_cffeb0e7-8a27-4990-b1b6-61c0d90b6879" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfGainLossOnInvestmentsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfGainLossOnInvestmentsIncludingMarketableSecuritiesAndInvestmentsHeldAtCostIncomeStatementReportedAmountsSummaryLineItems_b2ed037d-68da-4222-b909-60c36a015945" xlink:to="loc_us-gaap_ScheduleOfGainLossOnInvestmentsTable_cffeb0e7-8a27-4990-b1b6-61c0d90b6879" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InformationByCategoryOfDebtSecurityAxis_c030dd43-432c-4859-93b7-31d14ed99e81" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InformationByCategoryOfDebtSecurityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGainLossOnInvestmentsTable_cffeb0e7-8a27-4990-b1b6-61c0d90b6879" xlink:to="loc_us-gaap_InformationByCategoryOfDebtSecurityAxis_c030dd43-432c-4859-93b7-31d14ed99e81" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_c030dd43-432c-4859-93b7-31d14ed99e81_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InformationByCategoryOfDebtSecurityAxis_c030dd43-432c-4859-93b7-31d14ed99e81" xlink:to="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_c030dd43-432c-4859-93b7-31d14ed99e81_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_bd0a4a1a-9ddc-45fa-9182-143c9341325f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InformationByCategoryOfDebtSecurityAxis_c030dd43-432c-4859-93b7-31d14ed99e81" xlink:to="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_bd0a4a1a-9ddc-45fa-9182-143c9341325f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableforsaleSecuritiesMember_621b754c-9706-45ac-a0a3-cfda7495f177" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableforsaleSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain_bd0a4a1a-9ddc-45fa-9182-143c9341325f" xlink:to="loc_us-gaap_AvailableforsaleSecuritiesMember_621b754c-9706-45ac-a0a3-cfda7495f177" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeAxis_ae38b5cf-d866-41e8-9026-3f427a9e3300" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InvestmentTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGainLossOnInvestmentsTable_cffeb0e7-8a27-4990-b1b6-61c0d90b6879" xlink:to="loc_us-gaap_InvestmentTypeAxis_ae38b5cf-d866-41e8-9026-3f427a9e3300" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_ae38b5cf-d866-41e8-9026-3f427a9e3300_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InvestmentTypeAxis_ae38b5cf-d866-41e8-9026-3f427a9e3300" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_ae38b5cf-d866-41e8-9026-3f427a9e3300_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_1caca567-025e-47b1-a005-17e2575377a9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InvestmentTypeAxis_ae38b5cf-d866-41e8-9026-3f427a9e3300" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_1caca567-025e-47b1-a005-17e2575377a9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FixedMaturitiesMember_0e9bdf49-b07b-4882-97a0-9d58d42e2409" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FixedMaturitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_1caca567-025e-47b1-a005-17e2575377a9" xlink:to="loc_us-gaap_FixedMaturitiesMember_0e9bdf49-b07b-4882-97a0-9d58d42e2409" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesInvestmentSummaryMember_2270306e-d77e-4784-9d75-129a4aace812" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquitySecuritiesInvestmentSummaryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_1caca567-025e-47b1-a005-17e2575377a9" xlink:to="loc_us-gaap_EquitySecuritiesInvestmentSummaryMember_2270306e-d77e-4784-9d75-129a4aace812" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/FairValueMeasurements" xlink:type="simple" xlink:href="mtg-20201231.xsd#FairValueMeasurements"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/FairValueMeasurements" xlink:type="extended" id="i07ccc11cc48f4273badd38fb5b3b8a5a_FairValueMeasurements"/>
  <link:roleRef roleURI="http://www.mgic.com/role/FairValueMeasurementsTables" xlink:type="simple" xlink:href="mtg-20201231.xsd#FairValueMeasurementsTables"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/FairValueMeasurementsTables" xlink:type="extended" id="i9c1370e99edf41f4b24fcda23434f05d_FairValueMeasurementsTables"/>
  <link:roleRef roleURI="http://www.mgic.com/role/FairValueMeasurementsDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#FairValueMeasurementsDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/FairValueMeasurementsDetails" xlink:type="extended" id="i4d34bc04bd7b4136a1f5912e8c144727_FairValueMeasurementsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_aa869ef1-aebb-44b7-88d0-773fe448a8fd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_1870345e-6168-460c-a65b-053e06f5d7be" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_aa869ef1-aebb-44b7-88d0-773fe448a8fd" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_1870345e-6168-460c-a65b-053e06f5d7be" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNi_892a8b5f-3cba-4244-bfba-15e51e9edd78" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquitySecuritiesFvNi"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_aa869ef1-aebb-44b7-88d0-773fe448a8fd" xlink:to="loc_us-gaap_EquitySecuritiesFvNi_892a8b5f-3cba-4244-bfba-15e51e9edd78" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsFairValueDisclosure_6067867b-c4db-4c61-959e-6e090b23706a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherAssetsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_aa869ef1-aebb-44b7-88d0-773fe448a8fd" xlink:to="loc_us-gaap_OtherAssetsFairValueDisclosure_6067867b-c4db-4c61-959e-6e090b23706a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_RealEstateAssetsAcquiredFairValueDisclosure_4db1087c-daa5-4e25-a4e5-8896923d554e" xlink:href="mtg-20201231.xsd#mtg_RealEstateAssetsAcquiredFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_aa869ef1-aebb-44b7-88d0-773fe448a8fd" xlink:to="loc_mtg_RealEstateAssetsAcquiredFairValueDisclosure_4db1087c-daa5-4e25-a4e5-8896923d554e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_e459c403-5032-4d5d-9b5a-1bc57bc5d3b5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_aa869ef1-aebb-44b7-88d0-773fe448a8fd" xlink:to="loc_us-gaap_AssetsFairValueDisclosure_e459c403-5032-4d5d-9b5a-1bc57bc5d3b5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_958e5697-16ec-426d-b2a4-24dba3f3ad4d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_aa869ef1-aebb-44b7-88d0-773fe448a8fd" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_958e5697-16ec-426d-b2a4-24dba3f3ad4d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_b69068ab-8547-4da1-b616-5637c36d8073" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_958e5697-16ec-426d-b2a4-24dba3f3ad4d" xlink:to="loc_us-gaap_FinancialInstrumentAxis_b69068ab-8547-4da1-b616-5637c36d8073" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_b69068ab-8547-4da1-b616-5637c36d8073_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_b69068ab-8547-4da1-b616-5637c36d8073" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_b69068ab-8547-4da1-b616-5637c36d8073_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_793995cf-8638-431f-badb-4c148910d8c8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_b69068ab-8547-4da1-b616-5637c36d8073" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_793995cf-8638-431f-badb-4c148910d8c8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesMember_0cbb3cae-1168-4915-9678-b6adda64a2e6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_793995cf-8638-431f-badb-4c148910d8c8" xlink:to="loc_us-gaap_DebtSecuritiesMember_0cbb3cae-1168-4915-9678-b6adda64a2e6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USTreasuryAndGovernmentMember_0543a7cd-04d9-4400-8f98-4794b98b3e3e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_USTreasuryAndGovernmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesMember_0cbb3cae-1168-4915-9678-b6adda64a2e6" xlink:to="loc_us-gaap_USTreasuryAndGovernmentMember_0543a7cd-04d9-4400-8f98-4794b98b3e3e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USStatesAndPoliticalSubdivisionsMember_6e83efb1-3695-4671-a524-42cd5b5a736a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_USStatesAndPoliticalSubdivisionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesMember_0cbb3cae-1168-4915-9678-b6adda64a2e6" xlink:to="loc_us-gaap_USStatesAndPoliticalSubdivisionsMember_6e83efb1-3695-4671-a524-42cd5b5a736a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_1b881fec-f382-4882-aa6b-1129d1f2f173" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CorporateDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesMember_0cbb3cae-1168-4915-9678-b6adda64a2e6" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_1b881fec-f382-4882-aa6b-1129d1f2f173" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetBackedSecuritiesMember_dae1b39b-9352-4e98-b26e-0ae707454552" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetBackedSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesMember_0cbb3cae-1168-4915-9678-b6adda64a2e6" xlink:to="loc_us-gaap_AssetBackedSecuritiesMember_dae1b39b-9352-4e98-b26e-0ae707454552" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResidentialMortgageBackedSecuritiesMember_2a9d6e01-bae3-49d5-9db4-1b5df4ccb6ff" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ResidentialMortgageBackedSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesMember_0cbb3cae-1168-4915-9678-b6adda64a2e6" xlink:to="loc_us-gaap_ResidentialMortgageBackedSecuritiesMember_2a9d6e01-bae3-49d5-9db4-1b5df4ccb6ff" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialMortgageBackedSecuritiesMember_cabe36b7-4daf-4db8-8c37-fabe3fe2d767" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommercialMortgageBackedSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesMember_0cbb3cae-1168-4915-9678-b6adda64a2e6" xlink:to="loc_us-gaap_CommercialMortgageBackedSecuritiesMember_cabe36b7-4daf-4db8-8c37-fabe3fe2d767" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollateralizedDebtObligationsMember_eed47d67-aabc-426d-adb9-8d7c6a50c3ac" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CollateralizedDebtObligationsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesMember_0cbb3cae-1168-4915-9678-b6adda64a2e6" xlink:to="loc_us-gaap_CollateralizedDebtObligationsMember_eed47d67-aabc-426d-adb9-8d7c6a50c3ac" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SovereignDebtSecuritiesMember_84770dda-fac4-442b-9e9d-4a92f1f8cb06" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SovereignDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesMember_0cbb3cae-1168-4915-9678-b6adda64a2e6" xlink:to="loc_us-gaap_SovereignDebtSecuritiesMember_84770dda-fac4-442b-9e9d-4a92f1f8cb06" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherDebtSecuritiesMember_fe5dc0fb-37b0-4068-acdb-4d6f2c608d17" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesMember_0cbb3cae-1168-4915-9678-b6adda64a2e6" xlink:to="loc_us-gaap_OtherDebtSecuritiesMember_fe5dc0fb-37b0-4068-acdb-4d6f2c608d17" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesMember_7d2b9544-79f1-4423-b239-d39af84981ec" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquitySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_793995cf-8638-431f-badb-4c148910d8c8" xlink:to="loc_us-gaap_EquitySecuritiesMember_7d2b9544-79f1-4423-b239-d39af84981ec" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_0a6b9e28-992f-4610-a0dc-e74b4a585da4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_958e5697-16ec-426d-b2a4-24dba3f3ad4d" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_0a6b9e28-992f-4610-a0dc-e74b4a585da4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_0a6b9e28-992f-4610-a0dc-e74b4a585da4_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_0a6b9e28-992f-4610-a0dc-e74b4a585da4" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_0a6b9e28-992f-4610-a0dc-e74b4a585da4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_f5ae4f68-2dde-4d30-a40c-bd1799ef7e02" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_0a6b9e28-992f-4610-a0dc-e74b4a585da4" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_f5ae4f68-2dde-4d30-a40c-bd1799ef7e02" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_cffd481e-782b-452f-a79c-00c2a45a6513" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_f5ae4f68-2dde-4d30-a40c-bd1799ef7e02" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_cffd481e-782b-452f-a79c-00c2a45a6513" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_f163e83e-0da5-490d-a557-72ffbaa7b876" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_f5ae4f68-2dde-4d30-a40c-bd1799ef7e02" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_f163e83e-0da5-490d-a557-72ffbaa7b876" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_15384bca-f32d-48be-88e1-53bb071711e9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_f5ae4f68-2dde-4d30-a40c-bd1799ef7e02" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_15384bca-f32d-48be-88e1-53bb071711e9" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/FairValueMeasurementsUnobservableInputReconciliationDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#FairValueMeasurementsUnobservableInputReconciliationDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/FairValueMeasurementsUnobservableInputReconciliationDetails" xlink:type="extended" id="ib3b936b5654446a2918676706aeb6a70_FairValueMeasurementsUnobservableInputReconciliationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_b83a114a-d692-41d7-921a-ea7ee26dd468" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_cf39d132-f189-40cc-abf2-62cade535a4f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_b83a114a-d692-41d7-921a-ea7ee26dd468" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_cf39d132-f189-40cc-abf2-62cade535a4f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue_09c96600-a18f-44fb-bd86-199e264318d2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_cf39d132-f189-40cc-abf2-62cade535a4f" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue_09c96600-a18f-44fb-bd86-199e264318d2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_TotalRealizedUnrealizedGainsLossesAbstract_0dc9b3a3-2703-440a-b814-d90a4de29901" xlink:href="mtg-20201231.xsd#mtg_TotalRealizedUnrealizedGainsLossesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_cf39d132-f189-40cc-abf2-62cade535a4f" xlink:to="loc_mtg_TotalRealizedUnrealizedGainsLossesAbstract_0dc9b3a3-2703-440a-b814-d90a4de29901" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1_5155bb1b-afa4-4439-981a-1ed0ff62f6c6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtg_TotalRealizedUnrealizedGainsLossesAbstract_0dc9b3a3-2703-440a-b814-d90a4de29901" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1_5155bb1b-afa4-4439-981a-1ed0ff62f6c6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchases_9b65d85b-919f-46c2-a604-0645a3749922" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchases"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_cf39d132-f189-40cc-abf2-62cade535a4f" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchases_9b65d85b-919f-46c2-a604-0645a3749922" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSales_1b73e55c-1c27-44ce-a738-e54eb89643a8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSales"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_cf39d132-f189-40cc-abf2-62cade535a4f" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSales_1b73e55c-1c27-44ce-a738-e54eb89643a8" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue_7c2b8cb5-985f-4a93-aa84-d77b5fc576e6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable_adc41fac-214d-4d24-8402-601142ddcbbd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_b83a114a-d692-41d7-921a-ea7ee26dd468" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable_adc41fac-214d-4d24-8402-601142ddcbbd" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByAssetClassAxis_0b6de6e2-dea3-4fe3-b9b3-3f8208327d72" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueByAssetClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable_adc41fac-214d-4d24-8402-601142ddcbbd" xlink:to="loc_us-gaap_FairValueByAssetClassAxis_0b6de6e2-dea3-4fe3-b9b3-3f8208327d72" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_0b6de6e2-dea3-4fe3-b9b3-3f8208327d72_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_0b6de6e2-dea3-4fe3-b9b3-3f8208327d72" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_0b6de6e2-dea3-4fe3-b9b3-3f8208327d72_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_bcb25743-9bdc-4e9c-8224-c2a96e5f0314" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_0b6de6e2-dea3-4fe3-b9b3-3f8208327d72" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_bcb25743-9bdc-4e9c-8224-c2a96e5f0314" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesMember_de56aa36-2cf2-493b-8bf4-f14a2902ec90" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_bcb25743-9bdc-4e9c-8224-c2a96e5f0314" xlink:to="loc_us-gaap_DebtSecuritiesMember_de56aa36-2cf2-493b-8bf4-f14a2902ec90" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_RealEstateAcquiredMember_31706ee8-f0f4-47b6-aa4d-0ccbb961cec1" xlink:href="mtg-20201231.xsd#mtg_RealEstateAcquiredMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_bcb25743-9bdc-4e9c-8224-c2a96e5f0314" xlink:to="loc_mtg_RealEstateAcquiredMember_31706ee8-f0f4-47b6-aa4d-0ccbb961cec1" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/FairValueMeasurementsAssetsandLiabilitiesNotMeasuredatFairValueDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#FairValueMeasurementsAssetsandLiabilitiesNotMeasuredatFairValueDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/FairValueMeasurementsAssetsandLiabilitiesNotMeasuredatFairValueDetails" xlink:type="extended" id="i308dfdbe8cca43e7af1bca1755990cc4_FairValueMeasurementsAssetsandLiabilitiesNotMeasuredatFairValueDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_77b88db6-c4ab-4281-abca-cf3dd7f45768" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_59b5e276-9a90-4299-b623-d5b65613d01e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_77b88db6-c4ab-4281-abca-cf3dd7f45768" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_59b5e276-9a90-4299-b623-d5b65613d01e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_OtherInvestedAssetsFairValueDisclosure_26d2acaa-aabe-4d11-a8c9-976076df425c" xlink:href="mtg-20201231.xsd#mtg_OtherInvestedAssetsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_77b88db6-c4ab-4281-abca-cf3dd7f45768" xlink:to="loc_mtg_OtherInvestedAssetsFairValueDisclosure_26d2acaa-aabe-4d11-a8c9-976076df425c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesPayableFairValueDisclosure_4d2c9c38-0dfe-4132-8152-6808cf268ad2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NotesPayableFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_77b88db6-c4ab-4281-abca-cf3dd7f45768" xlink:to="loc_us-gaap_NotesPayableFairValueDisclosure_4d2c9c38-0dfe-4132-8152-6808cf268ad2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_SeniorNotesFairValueDisclosure_aefa7b13-c7e7-42c0-8707-04f096067efd" xlink:href="mtg-20201231.xsd#mtg_SeniorNotesFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_77b88db6-c4ab-4281-abca-cf3dd7f45768" xlink:to="loc_mtg_SeniorNotesFairValueDisclosure_aefa7b13-c7e7-42c0-8707-04f096067efd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisSubordinatedDebtObligations_f9ad8071-1210-4dff-9a0a-d81c84d30bb6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisSubordinatedDebtObligations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_77b88db6-c4ab-4281-abca-cf3dd7f45768" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisSubordinatedDebtObligations_f9ad8071-1210-4dff-9a0a-d81c84d30bb6" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFairValue_ad42a3d1-6795-494a-b725-f9a25146a8e4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_77b88db6-c4ab-4281-abca-cf3dd7f45768" xlink:to="loc_us-gaap_DebtInstrumentFairValue_ad42a3d1-6795-494a-b725-f9a25146a8e4" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_9de1dbed-20d0-4689-878b-41cf65683c43" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_77b88db6-c4ab-4281-abca-cf3dd7f45768" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_9de1dbed-20d0-4689-878b-41cf65683c43" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementBasisAxis_2be3ab67-90f7-4212-9093-0f62cc9453ed" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueByMeasurementBasisAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_9de1dbed-20d0-4689-878b-41cf65683c43" xlink:to="loc_us-gaap_FairValueByMeasurementBasisAxis_2be3ab67-90f7-4212-9093-0f62cc9453ed" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_2be3ab67-90f7-4212-9093-0f62cc9453ed_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_2be3ab67-90f7-4212-9093-0f62cc9453ed" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_2be3ab67-90f7-4212-9093-0f62cc9453ed_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueDisclosureItemAmountsDomain_08534176-d290-4ef4-a792-23fa2cae4ad5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueDisclosureItemAmountsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_2be3ab67-90f7-4212-9093-0f62cc9453ed" xlink:to="loc_us-gaap_FairValueDisclosureItemAmountsDomain_08534176-d290-4ef4-a792-23fa2cae4ad5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_8978dfa8-bcdb-4110-b06f-caaded03a3e3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_08534176-d290-4ef4-a792-23fa2cae4ad5" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_8978dfa8-bcdb-4110-b06f-caaded03a3e3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_307c782c-6772-4cc2-a155-5412814f47e8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CarryingReportedAmountFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_8978dfa8-bcdb-4110-b06f-caaded03a3e3" xlink:to="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_307c782c-6772-4cc2-a155-5412814f47e8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_406432ac-0750-4d87-a821-b8ea28da32cd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EstimateOfFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_8978dfa8-bcdb-4110-b06f-caaded03a3e3" xlink:to="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_406432ac-0750-4d87-a821-b8ea28da32cd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_752723dd-2009-4eef-a5d6-71186a3e985d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_9de1dbed-20d0-4689-878b-41cf65683c43" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_752723dd-2009-4eef-a5d6-71186a3e985d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_752723dd-2009-4eef-a5d6-71186a3e985d_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_752723dd-2009-4eef-a5d6-71186a3e985d" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_752723dd-2009-4eef-a5d6-71186a3e985d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_3337e0eb-1ee2-4337-8d5f-30133b556abc" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_752723dd-2009-4eef-a5d6-71186a3e985d" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_3337e0eb-1ee2-4337-8d5f-30133b556abc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_5a6bbd82-c62e-462f-82f7-0cf1e3d0ac66" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_3337e0eb-1ee2-4337-8d5f-30133b556abc" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_5a6bbd82-c62e-462f-82f7-0cf1e3d0ac66" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_7be03fa8-a74b-4de6-aab5-8d4691f251ff" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_9de1dbed-20d0-4689-878b-41cf65683c43" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_7be03fa8-a74b-4de6-aab5-8d4691f251ff" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_7be03fa8-a74b-4de6-aab5-8d4691f251ff_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_7be03fa8-a74b-4de6-aab5-8d4691f251ff" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_7be03fa8-a74b-4de6-aab5-8d4691f251ff_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_186aef12-73b1-4535-b14c-f18eb6662cdb" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_7be03fa8-a74b-4de6-aab5-8d4691f251ff" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_186aef12-73b1-4535-b14c-f18eb6662cdb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotesMember_48fe9c0e-f7ca-432c-b222-9f31b45e6343" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_186aef12-73b1-4535-b14c-f18eb6662cdb" xlink:to="loc_us-gaap_SeniorNotesMember_48fe9c0e-f7ca-432c-b222-9f31b45e6343" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_ConvertibleJuniorDebenturesat9perannumDue2063Member_a4a43838-6e5d-41de-8cc8-96ba1d467218" xlink:href="mtg-20201231.xsd#mtg_ConvertibleJuniorDebenturesat9perannumDue2063Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_186aef12-73b1-4535-b14c-f18eb6662cdb" xlink:to="loc_mtg_ConvertibleJuniorDebenturesat9perannumDue2063Member_a4a43838-6e5d-41de-8cc8-96ba1d467218" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_8970c24f-82bf-4b1a-bbe3-b8f79306c29d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_9de1dbed-20d0-4689-878b-41cf65683c43" xlink:to="loc_us-gaap_DebtInstrumentAxis_8970c24f-82bf-4b1a-bbe3-b8f79306c29d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_8970c24f-82bf-4b1a-bbe3-b8f79306c29d_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_8970c24f-82bf-4b1a-bbe3-b8f79306c29d" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_8970c24f-82bf-4b1a-bbe3-b8f79306c29d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_8fc083eb-b0ba-4b64-b82d-947dafc455f2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_8970c24f-82bf-4b1a-bbe3-b8f79306c29d" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_8fc083eb-b0ba-4b64-b82d-947dafc455f2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_FivePointSevenFivePercentSeniorNotesMember_4285d862-630d-4821-a335-a96931be18a3" xlink:href="mtg-20201231.xsd#mtg_FivePointSevenFivePercentSeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_8fc083eb-b0ba-4b64-b82d-947dafc455f2" xlink:to="loc_mtg_FivePointSevenFivePercentSeniorNotesMember_4285d862-630d-4821-a335-a96931be18a3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_FivePointTwoFivePercentSeniorNotesMember_36cd2967-5467-4ca1-a23c-a68d27a7ba6b" xlink:href="mtg-20201231.xsd#mtg_FivePointTwoFivePercentSeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_8fc083eb-b0ba-4b64-b82d-947dafc455f2" xlink:to="loc_mtg_FivePointTwoFivePercentSeniorNotesMember_36cd2967-5467-4ca1-a23c-a68d27a7ba6b" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/Debt" xlink:type="simple" xlink:href="mtg-20201231.xsd#Debt"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/Debt" xlink:type="extended" id="ie42514f275cc40f8bad8823f1557a667_Debt"/>
  <link:roleRef roleURI="http://www.mgic.com/role/DebtTables" xlink:type="simple" xlink:href="mtg-20201231.xsd#DebtTables"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/DebtTables" xlink:type="extended" id="i3e36400c6dde4048b8bd80a289bb3ab3_DebtTables"/>
  <link:roleRef roleURI="http://www.mgic.com/role/DebtSummaryofObligationsDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#DebtSummaryofObligationsDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/DebtSummaryofObligationsDetails" xlink:type="extended" id="id0336bc19baa435ca29994d83769b467_DebtSummaryofObligationsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_a84c954f-6b46-4507-9cc1-a2fbf1073e33" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_0e4f5c0c-e713-4780-bbc4-0dfe0f721331" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_a84c954f-6b46-4507-9cc1-a2fbf1073e33" xlink:to="loc_us-gaap_LongTermDebt_0e4f5c0c-e713-4780-bbc4-0dfe0f721331" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_7bb23a7e-5b3c-4e08-9574-7a3d31f9b5bd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_a84c954f-6b46-4507-9cc1-a2fbf1073e33" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_7bb23a7e-5b3c-4e08-9574-7a3d31f9b5bd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_880e92ef-149a-4ba5-9fff-f9af7a0c5523" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_a84c954f-6b46-4507-9cc1-a2fbf1073e33" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_880e92ef-149a-4ba5-9fff-f9af7a0c5523" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_1736ec2b-ad2a-4fd1-b6cc-5df0bb66f914" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_a84c954f-6b46-4507-9cc1-a2fbf1073e33" xlink:to="loc_us-gaap_DebtInstrumentTable_1736ec2b-ad2a-4fd1-b6cc-5df0bb66f914" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_be68f909-8a49-4e8c-88b9-e6d35fecfff5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_1736ec2b-ad2a-4fd1-b6cc-5df0bb66f914" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_be68f909-8a49-4e8c-88b9-e6d35fecfff5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_be68f909-8a49-4e8c-88b9-e6d35fecfff5_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_be68f909-8a49-4e8c-88b9-e6d35fecfff5" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_be68f909-8a49-4e8c-88b9-e6d35fecfff5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_e717a394-f3cd-4c69-a36a-514b4f4f1eb2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_be68f909-8a49-4e8c-88b9-e6d35fecfff5" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_e717a394-f3cd-4c69-a36a-514b4f4f1eb2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesMember_365dc39a-13c3-4009-a794-311860002e94" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FederalHomeLoanBankAdvancesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_e717a394-f3cd-4c69-a36a-514b4f4f1eb2" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesMember_365dc39a-13c3-4009-a794-311860002e94" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotesMember_258c3af4-f9ae-4f8c-afc7-b34ae06ff2be" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_e717a394-f3cd-4c69-a36a-514b4f4f1eb2" xlink:to="loc_us-gaap_SeniorNotesMember_258c3af4-f9ae-4f8c-afc7-b34ae06ff2be" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleSubordinatedDebtMember_e1b5a771-f139-4fa4-aead-c4f46d18ba69" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConvertibleSubordinatedDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_e717a394-f3cd-4c69-a36a-514b4f4f1eb2" xlink:to="loc_us-gaap_ConvertibleSubordinatedDebtMember_e1b5a771-f139-4fa4-aead-c4f46d18ba69" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_9b26e519-e0c1-4418-9485-108b35e1ac94" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_1736ec2b-ad2a-4fd1-b6cc-5df0bb66f914" xlink:to="loc_us-gaap_DebtInstrumentAxis_9b26e519-e0c1-4418-9485-108b35e1ac94" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_9b26e519-e0c1-4418-9485-108b35e1ac94_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_9b26e519-e0c1-4418-9485-108b35e1ac94" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_9b26e519-e0c1-4418-9485-108b35e1ac94_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_9fe0d6ef-dad5-4e33-ad71-e97aa086a893" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_9b26e519-e0c1-4418-9485-108b35e1ac94" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_9fe0d6ef-dad5-4e33-ad71-e97aa086a893" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_FivePointSevenFivePercentSeniorNotesMember_0e2e03ba-098c-41d7-8b31-d8d85f23ee63" xlink:href="mtg-20201231.xsd#mtg_FivePointSevenFivePercentSeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_9fe0d6ef-dad5-4e33-ad71-e97aa086a893" xlink:to="loc_mtg_FivePointSevenFivePercentSeniorNotesMember_0e2e03ba-098c-41d7-8b31-d8d85f23ee63" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_FivePointTwoFivePercentSeniorNotesMember_3e97e5f4-4c14-4433-9875-4846c9e61dd5" xlink:href="mtg-20201231.xsd#mtg_FivePointTwoFivePercentSeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_9fe0d6ef-dad5-4e33-ad71-e97aa086a893" xlink:to="loc_mtg_FivePointTwoFivePercentSeniorNotesMember_3e97e5f4-4c14-4433-9875-4846c9e61dd5" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/DebtDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#DebtDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/DebtDetails" xlink:type="extended" id="ib2173de5b51342be81fdd29654ef6d52_DebtDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_568c6428-c961-4a24-9e57-7cb78246ca7f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_5aa42131-aa51-4bf7-b137-4faeb90b31d8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_568c6428-c961-4a24-9e57-7cb78246ca7f" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_5aa42131-aa51-4bf7-b137-4faeb90b31d8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_ae320a9a-5569-4559-a26c-a49e55d31f9a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_568c6428-c961-4a24-9e57-7cb78246ca7f" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_ae320a9a-5569-4559-a26c-a49e55d31f9a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt_6395c0ca-7efd-40d0-8e44-998c5171e6ef" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_568c6428-c961-4a24-9e57-7cb78246ca7f" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt_6395c0ca-7efd-40d0-8e44-998c5171e6ef" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsGross_c955d476-cf25-4d49-9cdb-28b27bf19d27" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredFinanceCostsGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_568c6428-c961-4a24-9e57-7cb78246ca7f" xlink:to="loc_us-gaap_DeferredFinanceCostsGross_c955d476-cf25-4d49-9cdb-28b27bf19d27" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ExtinguishmentOfDebtAmount_f02116ca-d105-481c-846e-3e1307e5f193" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ExtinguishmentOfDebtAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_568c6428-c961-4a24-9e57-7cb78246ca7f" xlink:to="loc_us-gaap_ExtinguishmentOfDebtAmount_f02116ca-d105-481c-846e-3e1307e5f193" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarlyRepaymentOfSeniorDebt_fdfadb31-39c0-47da-9283-8635210c0f21" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EarlyRepaymentOfSeniorDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_568c6428-c961-4a24-9e57-7cb78246ca7f" xlink:to="loc_us-gaap_EarlyRepaymentOfSeniorDebt_fdfadb31-39c0-47da-9283-8635210c0f21" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_f72ed651-68da-4006-a95c-95ed2b747081" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_568c6428-c961-4a24-9e57-7cb78246ca7f" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_f72ed651-68da-4006-a95c-95ed2b747081" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebt_5266219e-78a0-499d-bbd7-77e96a446136" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RepaymentsOfLongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_568c6428-c961-4a24-9e57-7cb78246ca7f" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebt_5266219e-78a0-499d-bbd7-77e96a446136" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalEquityComponentOfConvertibleDebtSubsequentAdjustments_1112284b-fa41-45af-ae8b-691a858d9687" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalEquityComponentOfConvertibleDebtSubsequentAdjustments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_568c6428-c961-4a24-9e57-7cb78246ca7f" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalEquityComponentOfConvertibleDebtSubsequentAdjustments_1112284b-fa41-45af-ae8b-691a858d9687" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_DilutiveSecuritiesReductionInPotentiallyDilutiveSharesDueToDebtExtinguishment_ba857e3e-dbea-4106-b541-c486562eb9e3" xlink:href="mtg-20201231.xsd#mtg_DilutiveSecuritiesReductionInPotentiallyDilutiveSharesDueToDebtExtinguishment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_568c6428-c961-4a24-9e57-7cb78246ca7f" xlink:to="loc_mtg_DilutiveSecuritiesReductionInPotentiallyDilutiveSharesDueToDebtExtinguishment_ba857e3e-dbea-4106-b541-c486562eb9e3" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvances_b28dc696-52e9-4c14-bd1e-93f0f54408b7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FederalHomeLoanBankAdvances"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_568c6428-c961-4a24-9e57-7cb78246ca7f" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvances_b28dc696-52e9-4c14-bd1e-93f0f54408b7" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesInterestRate_6ef79860-0e6d-463c-a75f-c126eda8e6a5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FederalHomeLoanBankAdvancesInterestRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_568c6428-c961-4a24-9e57-7cb78246ca7f" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesInterestRate_6ef79860-0e6d-463c-a75f-c126eda8e6a5" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_FederalHomeLoanBankAdvancesCollateralMarketValueOfPrincipalPercent_f680395a-2c6b-4d9d-856f-592f94a23019" xlink:href="mtg-20201231.xsd#mtg_FederalHomeLoanBankAdvancesCollateralMarketValueOfPrincipalPercent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_568c6428-c961-4a24-9e57-7cb78246ca7f" xlink:to="loc_mtg_FederalHomeLoanBankAdvancesCollateralMarketValueOfPrincipalPercent_f680395a-2c6b-4d9d-856f-592f94a23019" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_57656654-a7f7-4e6c-aa49-dcfcc7043528" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_568c6428-c961-4a24-9e57-7cb78246ca7f" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_57656654-a7f7-4e6c-aa49-dcfcc7043528" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPricePercentage_1c3e97df-533c-46bb-8c55-bb98795c9363" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentRedemptionPricePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_568c6428-c961-4a24-9e57-7cb78246ca7f" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPricePercentage_1c3e97df-533c-46bb-8c55-bb98795c9363" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleConversionPrice1_7b1114fc-4a65-4442-8af0-a0c1a2558fc8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentConvertibleConversionPrice1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_568c6428-c961-4a24-9e57-7cb78246ca7f" xlink:to="loc_us-gaap_DebtInstrumentConvertibleConversionPrice1_7b1114fc-4a65-4442-8af0-a0c1a2558fc8" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_DebtInstrumentOwnershipPercentageThresholdDeclarationOfDueAndPayable_98d2e74c-3c94-4ccb-b088-56d3ad377aa8" xlink:href="mtg-20201231.xsd#mtg_DebtInstrumentOwnershipPercentageThresholdDeclarationOfDueAndPayable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_568c6428-c961-4a24-9e57-7cb78246ca7f" xlink:to="loc_mtg_DebtInstrumentOwnershipPercentageThresholdDeclarationOfDueAndPayable_98d2e74c-3c94-4ccb-b088-56d3ad377aa8" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_DebtInstrumentConvertibleNumberOfEquityInstrumentsIfDebtConverted_a7244823-ab04-4fbb-88a0-589734cf401d" xlink:href="mtg-20201231.xsd#mtg_DebtInstrumentConvertibleNumberOfEquityInstrumentsIfDebtConverted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_568c6428-c961-4a24-9e57-7cb78246ca7f" xlink:to="loc_mtg_DebtInstrumentConvertibleNumberOfEquityInstrumentsIfDebtConverted_a7244823-ab04-4fbb-88a0-589734cf401d" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_PrincipalAmountOfNotesUsedInDeterminingConversionRate_32b66fba-8d89-4f76-a57c-5b4ecddee2ae" xlink:href="mtg-20201231.xsd#mtg_PrincipalAmountOfNotesUsedInDeterminingConversionRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_568c6428-c961-4a24-9e57-7cb78246ca7f" xlink:to="loc_mtg_PrincipalAmountOfNotesUsedInDeterminingConversionRate_32b66fba-8d89-4f76-a57c-5b4ecddee2ae" xlink:type="arc" order="18"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_PeriodPrecedingElectionToConvert_87b72105-44bb-4c4a-b122-feef5fcf97fc" xlink:href="mtg-20201231.xsd#mtg_PeriodPrecedingElectionToConvert"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_568c6428-c961-4a24-9e57-7cb78246ca7f" xlink:to="loc_mtg_PeriodPrecedingElectionToConvert_87b72105-44bb-4c4a-b122-feef5fcf97fc" xlink:type="arc" order="19"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_DebtInstrumentConvertibleConversionPrice2_d3427153-7984-488f-986f-63b380eb6366" xlink:href="mtg-20201231.xsd#mtg_DebtInstrumentConvertibleConversionPrice2"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_568c6428-c961-4a24-9e57-7cb78246ca7f" xlink:to="loc_mtg_DebtInstrumentConvertibleConversionPrice2_d3427153-7984-488f-986f-63b380eb6366" xlink:type="arc" order="20"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_MinimumNumberOfTradingDays_2f2d679e-fa46-4eb9-beea-085107f123e7" xlink:href="mtg-20201231.xsd#mtg_MinimumNumberOfTradingDays"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_568c6428-c961-4a24-9e57-7cb78246ca7f" xlink:to="loc_mtg_MinimumNumberOfTradingDays_2f2d679e-fa46-4eb9-beea-085107f123e7" xlink:type="arc" order="21"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_MaximumNumberOfTradingDays_f0454ffc-9f8a-4cff-868d-898125c94f32" xlink:href="mtg-20201231.xsd#mtg_MaximumNumberOfTradingDays"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_568c6428-c961-4a24-9e57-7cb78246ca7f" xlink:to="loc_mtg_MaximumNumberOfTradingDays_f0454ffc-9f8a-4cff-868d-898125c94f32" xlink:type="arc" order="22"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_MinimumNumberOfConsecutiveInterestPeriodsForWhichInterestPaymentsMayBeDeferred_48c2ebaf-af8c-4960-83e3-d71245b7af67" xlink:href="mtg-20201231.xsd#mtg_MinimumNumberOfConsecutiveInterestPeriodsForWhichInterestPaymentsMayBeDeferred"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_568c6428-c961-4a24-9e57-7cb78246ca7f" xlink:to="loc_mtg_MinimumNumberOfConsecutiveInterestPeriodsForWhichInterestPaymentsMayBeDeferred_48c2ebaf-af8c-4960-83e3-d71245b7af67" xlink:type="arc" order="23"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_MaximumPeriodForWhichInterestPaymentsMayBeDeferredWithoutGivingRiseToEventOfDefault_0a475786-fb79-44f1-ae07-6c57bd1bb2f0" xlink:href="mtg-20201231.xsd#mtg_MaximumPeriodForWhichInterestPaymentsMayBeDeferredWithoutGivingRiseToEventOfDefault"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_568c6428-c961-4a24-9e57-7cb78246ca7f" xlink:to="loc_mtg_MaximumPeriodForWhichInterestPaymentsMayBeDeferredWithoutGivingRiseToEventOfDefault_0a475786-fb79-44f1-ae07-6c57bd1bb2f0" xlink:type="arc" order="24"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_PeriodInWhichReasonableCommercialEffortsMustBeginMaximum_ba3a380d-a63c-4c41-8b9a-a0dc26ef1b70" xlink:href="mtg-20201231.xsd#mtg_PeriodInWhichReasonableCommercialEffortsMustBeginMaximum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_568c6428-c961-4a24-9e57-7cb78246ca7f" xlink:to="loc_mtg_PeriodInWhichReasonableCommercialEffortsMustBeginMaximum_ba3a380d-a63c-4c41-8b9a-a0dc26ef1b70" xlink:type="arc" order="25"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_AnniversarypaymentreleaseofthestartoftheinterestdeferraltotheAlternativePaymentMechanisminlieuofthefinalmaturityofthedebentures_3e2edbb3-b073-4597-9aff-846c759a3d17" xlink:href="mtg-20201231.xsd#mtg_AnniversarypaymentreleaseofthestartoftheinterestdeferraltotheAlternativePaymentMechanisminlieuofthefinalmaturityofthedebentures"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_568c6428-c961-4a24-9e57-7cb78246ca7f" xlink:to="loc_mtg_AnniversarypaymentreleaseofthestartoftheinterestdeferraltotheAlternativePaymentMechanisminlieuofthefinalmaturityofthedebentures_3e2edbb3-b073-4597-9aff-846c759a3d17" xlink:type="arc" order="26"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_NetProceedsCap_51434dce-ba9d-4f49-b5c1-c8cf1e3831bb" xlink:href="mtg-20201231.xsd#mtg_NetProceedsCap"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_568c6428-c961-4a24-9e57-7cb78246ca7f" xlink:to="loc_mtg_NetProceedsCap_51434dce-ba9d-4f49-b5c1-c8cf1e3831bb" xlink:type="arc" order="27"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_MaximumNumberOfSharesOfCommonStockIssuableUnderAlternativePaymentMechanism_ea26a917-2c4b-4773-a495-706480ed6921" xlink:href="mtg-20201231.xsd#mtg_MaximumNumberOfSharesOfCommonStockIssuableUnderAlternativePaymentMechanism"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_568c6428-c961-4a24-9e57-7cb78246ca7f" xlink:to="loc_mtg_MaximumNumberOfSharesOfCommonStockIssuableUnderAlternativePaymentMechanism_ea26a917-2c4b-4773-a495-706480ed6921" xlink:type="arc" order="28"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_MaximumPercentageOfAggregatePrincipalAmountOfDebentures_c7b69bb1-1ccc-4921-830c-5242075cf6fe" xlink:href="mtg-20201231.xsd#mtg_MaximumPercentageOfAggregatePrincipalAmountOfDebentures"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_568c6428-c961-4a24-9e57-7cb78246ca7f" xlink:to="loc_mtg_MaximumPercentageOfAggregatePrincipalAmountOfDebentures_c7b69bb1-1ccc-4921-830c-5242075cf6fe" xlink:type="arc" order="29"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPaid_35e85752-c913-40ec-90c4-5bb8be86561b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestPaid"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_568c6428-c961-4a24-9e57-7cb78246ca7f" xlink:to="loc_us-gaap_InterestPaid_35e85752-c913-40ec-90c4-5bb8be86561b" xlink:type="arc" order="30"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_35c70b39-6dc3-4994-990a-2f00c46988d6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_568c6428-c961-4a24-9e57-7cb78246ca7f" xlink:to="loc_us-gaap_DebtInstrumentTable_35c70b39-6dc3-4994-990a-2f00c46988d6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_593efa6b-52ab-4bea-a10c-442ab01e6e49" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_35c70b39-6dc3-4994-990a-2f00c46988d6" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_593efa6b-52ab-4bea-a10c-442ab01e6e49" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_593efa6b-52ab-4bea-a10c-442ab01e6e49_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_593efa6b-52ab-4bea-a10c-442ab01e6e49" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_593efa6b-52ab-4bea-a10c-442ab01e6e49_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_841c8354-3cb1-43ad-a91a-375c66af1585" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_593efa6b-52ab-4bea-a10c-442ab01e6e49" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_841c8354-3cb1-43ad-a91a-375c66af1585" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotesMember_43f9c443-3256-407c-87ea-f7f51495f5c1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_841c8354-3cb1-43ad-a91a-375c66af1585" xlink:to="loc_us-gaap_SeniorNotesMember_43f9c443-3256-407c-87ea-f7f51495f5c1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleSubordinatedDebtMember_230d8574-f645-48fe-97fb-94817e66e7a8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConvertibleSubordinatedDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_841c8354-3cb1-43ad-a91a-375c66af1585" xlink:to="loc_us-gaap_ConvertibleSubordinatedDebtMember_230d8574-f645-48fe-97fb-94817e66e7a8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_481e0077-9667-460d-b7ee-a3c9b09ea86b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_35c70b39-6dc3-4994-990a-2f00c46988d6" xlink:to="loc_us-gaap_DebtInstrumentAxis_481e0077-9667-460d-b7ee-a3c9b09ea86b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_481e0077-9667-460d-b7ee-a3c9b09ea86b_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_481e0077-9667-460d-b7ee-a3c9b09ea86b" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_481e0077-9667-460d-b7ee-a3c9b09ea86b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_6e1ab4b6-8457-4b59-9578-8c2412b589f8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_481e0077-9667-460d-b7ee-a3c9b09ea86b" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_6e1ab4b6-8457-4b59-9578-8c2412b589f8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_FivePointSevenFivePercentSeniorNotesMember_24903ced-4d65-4659-9fae-f53a77e530f5" xlink:href="mtg-20201231.xsd#mtg_FivePointSevenFivePercentSeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_6e1ab4b6-8457-4b59-9578-8c2412b589f8" xlink:to="loc_mtg_FivePointSevenFivePercentSeniorNotesMember_24903ced-4d65-4659-9fae-f53a77e530f5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_FivePointTwoFivePercentSeniorNotesMember_87295c5e-05fa-4cb0-8845-72d41007e553" xlink:href="mtg-20201231.xsd#mtg_FivePointTwoFivePercentSeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_6e1ab4b6-8457-4b59-9578-8c2412b589f8" xlink:to="loc_mtg_FivePointTwoFivePercentSeniorNotesMember_87295c5e-05fa-4cb0-8845-72d41007e553" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPeriodAxis_88eee2fd-d934-40ec-bc46-f28310df4757" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentRedemptionPeriodAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_35c70b39-6dc3-4994-990a-2f00c46988d6" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPeriodAxis_88eee2fd-d934-40ec-bc46-f28310df4757" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPeriodDomain_88eee2fd-d934-40ec-bc46-f28310df4757_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentRedemptionPeriodDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentRedemptionPeriodAxis_88eee2fd-d934-40ec-bc46-f28310df4757" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPeriodDomain_88eee2fd-d934-40ec-bc46-f28310df4757_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPeriodDomain_f8983fe2-2523-4418-9a01-209395a51beb" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentRedemptionPeriodDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentRedemptionPeriodAxis_88eee2fd-d934-40ec-bc46-f28310df4757" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPeriodDomain_f8983fe2-2523-4418-9a01-209395a51beb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPeriodOneMember_c24492e5-0dfa-43e8-8058-f222c5622cc9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentRedemptionPeriodOneMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentRedemptionPeriodDomain_f8983fe2-2523-4418-9a01-209395a51beb" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPeriodOneMember_c24492e5-0dfa-43e8-8058-f222c5622cc9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPeriodTwoMember_f8dbe0e1-5293-44fe-bd04-95f7f70f11ec" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentRedemptionPeriodTwoMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentRedemptionPeriodDomain_f8983fe2-2523-4418-9a01-209395a51beb" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPeriodTwoMember_f8dbe0e1-5293-44fe-bd04-95f7f70f11ec" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPeriodThreeMember_24d66979-0aaa-441b-8119-946b97402b34" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentRedemptionPeriodThreeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentRedemptionPeriodDomain_f8983fe2-2523-4418-9a01-209395a51beb" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPeriodThreeMember_24d66979-0aaa-441b-8119-946b97402b34" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPeriodFourMember_8117ff52-7c7d-457c-9d57-d25bfe9fef9f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentRedemptionPeriodFourMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentRedemptionPeriodDomain_f8983fe2-2523-4418-9a01-209395a51beb" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPeriodFourMember_8117ff52-7c7d-457c-9d57-d25bfe9fef9f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPeriodFiveMember_fe0e13e6-915b-46bf-835f-499ba8e752a3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentRedemptionPeriodFiveMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentRedemptionPeriodDomain_f8983fe2-2523-4418-9a01-209395a51beb" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPeriodFiveMember_fe0e13e6-915b-46bf-835f-499ba8e752a3" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateAxis_1618a9b8-c7dd-4922-ac7f-737f45c08b2e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_VariableRateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_35c70b39-6dc3-4994-990a-2f00c46988d6" xlink:to="loc_us-gaap_VariableRateAxis_1618a9b8-c7dd-4922-ac7f-737f45c08b2e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_1618a9b8-c7dd-4922-ac7f-737f45c08b2e_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_1618a9b8-c7dd-4922-ac7f-737f45c08b2e" xlink:to="loc_us-gaap_VariableRateDomain_1618a9b8-c7dd-4922-ac7f-737f45c08b2e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_2e101de1-8d3f-4375-a432-a8324a559a4e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_1618a9b8-c7dd-4922-ac7f-737f45c08b2e" xlink:to="loc_us-gaap_VariableRateDomain_2e101de1-8d3f-4375-a432-a8324a559a4e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UsTreasuryUstInterestRateMember_4b4fc742-f918-4a7f-8f0e-964dc5a01221" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_UsTreasuryUstInterestRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_2e101de1-8d3f-4375-a432-a8324a559a4e" xlink:to="loc_us-gaap_UsTreasuryUstInterestRateMember_4b4fc742-f918-4a7f-8f0e-964dc5a01221" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/LossReserves" xlink:type="simple" xlink:href="mtg-20201231.xsd#LossReserves"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/LossReserves" xlink:type="extended" id="id066ea59dec84deb9dc0d5b6b7eefbe8_LossReserves"/>
  <link:roleRef roleURI="http://www.mgic.com/role/LossReservesTables" xlink:type="simple" xlink:href="mtg-20201231.xsd#LossReservesTables"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/LossReservesTables" xlink:type="extended" id="i5a8ab8f6c8cb45489f6ea67033f9b0cb_LossReservesTables"/>
  <link:roleRef roleURI="http://www.mgic.com/role/LossReservesNarrativeDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#LossReservesNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/LossReservesNarrativeDetails" xlink:type="extended" id="ief4cc6b98ad54ab8bd92adf8293f6532_LossReservesNarrativeDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CausesOfIncreaseDecreaseInLiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseLineItems_727c231d-f9cb-46e6-b031-5d5a810ccdb1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CausesOfIncreaseDecreaseInLiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInLiabilityForClaimsAndClaimsAdjustmentExpenseReserve_55caef92-c8a3-4173-8064-158b5ce46481" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInLiabilityForClaimsAndClaimsAdjustmentExpenseReserve"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CausesOfIncreaseDecreaseInLiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseLineItems_727c231d-f9cb-46e6-b031-5d5a810ccdb1" xlink:to="loc_us-gaap_IncreaseDecreaseInLiabilityForClaimsAndClaimsAdjustmentExpenseReserve_55caef92-c8a3-4173-8064-158b5ce46481" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_MinimumNumberOfPaymentsPastDueToBeInDefault_ad99e743-5a0b-4ad8-aaff-278564126ec2" xlink:href="mtg-20201231.xsd#mtg_MinimumNumberOfPaymentsPastDueToBeInDefault"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CausesOfIncreaseDecreaseInLiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseLineItems_727c231d-f9cb-46e6-b031-5d5a810ccdb1" xlink:to="loc_mtg_MinimumNumberOfPaymentsPastDueToBeInDefault_ad99e743-5a0b-4ad8-aaff-278564126ec2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_PremiumRefundLiabilityExpectedClaimPayments_11b6ac4b-299b-4a55-b05c-93c191cb1367" xlink:href="mtg-20201231.xsd#mtg_PremiumRefundLiabilityExpectedClaimPayments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CausesOfIncreaseDecreaseInLiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseLineItems_727c231d-f9cb-46e6-b031-5d5a810ccdb1" xlink:to="loc_mtg_PremiumRefundLiabilityExpectedClaimPayments_11b6ac4b-299b-4a55-b05c-93c191cb1367" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_PercentageOfPriorYearDefaultInventoryResolved_206e6741-9af7-4082-8f06-e04a2cede29f" xlink:href="mtg-20201231.xsd#mtg_PercentageOfPriorYearDefaultInventoryResolved"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CausesOfIncreaseDecreaseInLiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseLineItems_727c231d-f9cb-46e6-b031-5d5a810ccdb1" xlink:to="loc_mtg_PercentageOfPriorYearDefaultInventoryResolved_206e6741-9af7-4082-8f06-e04a2cede29f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_PrimaryDefaultInventoryOtherItemsRemoved_7748bf60-3c2c-44e3-879e-3a187c70c48a" xlink:href="mtg-20201231.xsd#mtg_PrimaryDefaultInventoryOtherItemsRemoved"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CausesOfIncreaseDecreaseInLiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseLineItems_727c231d-f9cb-46e6-b031-5d5a810ccdb1" xlink:to="loc_mtg_PrimaryDefaultInventoryOtherItemsRemoved_7748bf60-3c2c-44e3-879e-3a187c70c48a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidPriorYears1_e27c6e72-e3ea-41dd-a268-ba8207be4da1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidPriorYears1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CausesOfIncreaseDecreaseInLiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseLineItems_727c231d-f9cb-46e6-b031-5d5a810ccdb1" xlink:to="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidPriorYears1_e27c6e72-e3ea-41dd-a268-ba8207be4da1" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_PoolInsuranceNoticeInventory_b4938345-204c-4902-b009-9c6bdd775513" xlink:href="mtg-20201231.xsd#mtg_PoolInsuranceNoticeInventory"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CausesOfIncreaseDecreaseInLiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseLineItems_727c231d-f9cb-46e6-b031-5d5a810ccdb1" xlink:to="loc_mtg_PoolInsuranceNoticeInventory_b4938345-204c-4902-b009-9c6bdd775513" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CausesOfIncreaseDecreaseInLiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseTable_f9d7ba41-d29d-41b6-ba3a-674000760f9f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CausesOfIncreaseDecreaseInLiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_CausesOfIncreaseDecreaseInLiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseLineItems_727c231d-f9cb-46e6-b031-5d5a810ccdb1" xlink:to="loc_us-gaap_CausesOfIncreaseDecreaseInLiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseTable_f9d7ba41-d29d-41b6-ba3a-674000760f9f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncatastrophicEventAxis_7b7eff5c-9c1b-4472-84aa-da3f409242a3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NoncatastrophicEventAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_CausesOfIncreaseDecreaseInLiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseTable_f9d7ba41-d29d-41b6-ba3a-674000760f9f" xlink:to="loc_us-gaap_NoncatastrophicEventAxis_7b7eff5c-9c1b-4472-84aa-da3f409242a3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncatastrophicEventDomain_7b7eff5c-9c1b-4472-84aa-da3f409242a3_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NoncatastrophicEventDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_NoncatastrophicEventAxis_7b7eff5c-9c1b-4472-84aa-da3f409242a3" xlink:to="loc_us-gaap_NoncatastrophicEventDomain_7b7eff5c-9c1b-4472-84aa-da3f409242a3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncatastrophicEventDomain_a30185b8-1b8e-453f-8217-f49f857e7d63" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NoncatastrophicEventDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_NoncatastrophicEventAxis_7b7eff5c-9c1b-4472-84aa-da3f409242a3" xlink:to="loc_us-gaap_NoncatastrophicEventDomain_a30185b8-1b8e-453f-8217-f49f857e7d63" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_SettlementsForCommutationsOfCoveragePoolsOfNonperformingLoansMember_f3358ebb-91d4-4d86-9ceb-9d50639ab07a" xlink:href="mtg-20201231.xsd#mtg_SettlementsForCommutationsOfCoveragePoolsOfNonperformingLoansMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoncatastrophicEventDomain_a30185b8-1b8e-453f-8217-f49f857e7d63" xlink:to="loc_mtg_SettlementsForCommutationsOfCoveragePoolsOfNonperformingLoansMember_f3358ebb-91d4-4d86-9ceb-9d50639ab07a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_SettlementsForClaimsPayingPracticesAndNonperformingLoanSaleMember_34e0e3f4-9531-4d21-91e0-782d6c671bc3" xlink:href="mtg-20201231.xsd#mtg_SettlementsForClaimsPayingPracticesAndNonperformingLoanSaleMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoncatastrophicEventDomain_a30185b8-1b8e-453f-8217-f49f857e7d63" xlink:to="loc_mtg_SettlementsForClaimsPayingPracticesAndNonperformingLoanSaleMember_34e0e3f4-9531-4d21-91e0-782d6c671bc3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_A1000IncreaseDecreaseInAverageSeverityReserveFactorMember_7283870d-a968-47e9-9ff6-8a9cf92fab45" xlink:href="mtg-20201231.xsd#mtg_A1000IncreaseDecreaseInAverageSeverityReserveFactorMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoncatastrophicEventDomain_a30185b8-1b8e-453f-8217-f49f857e7d63" xlink:to="loc_mtg_A1000IncreaseDecreaseInAverageSeverityReserveFactorMember_7283870d-a968-47e9-9ff6-8a9cf92fab45" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_OnePercentagePointIncreaseDecreaseInAverageClaimRateReserveFactorMember_b10a0b1d-1b41-4f54-82f2-6b5068a51ba5" xlink:href="mtg-20201231.xsd#mtg_OnePercentagePointIncreaseDecreaseInAverageClaimRateReserveFactorMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoncatastrophicEventDomain_a30185b8-1b8e-453f-8217-f49f857e7d63" xlink:to="loc_mtg_OnePercentagePointIncreaseDecreaseInAverageClaimRateReserveFactorMember_b10a0b1d-1b41-4f54-82f2-6b5068a51ba5" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/LossReservesReconciliationofChangesinLossReservesDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#LossReservesReconciliationofChangesinLossReservesDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/LossReservesReconciliationofChangesinLossReservesDetails" xlink:type="extended" id="i76c2676fa7d2453e8a23bfa8818af1b3_LossReservesReconciliationofChangesinLossReservesDetails"/>
  <link:roleRef roleURI="http://www.mgic.com/role/LossReservesPriorYearLossReservesDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#LossReservesPriorYearLossReservesDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/LossReservesPriorYearLossReservesDetails" xlink:type="extended" id="i868fa7a9ced6435b8db442da342614aa_LossReservesPriorYearLossReservesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpenseLineItems_f42099ea-8f46-4539-960d-fc4df2eb0679" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpenseLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersPriorYearClaimsAndClaimsAdjustmentExpense_c89fd689-4df4-41fe-adb6-ca713e91e4c8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersPriorYearClaimsAndClaimsAdjustmentExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpenseLineItems_f42099ea-8f46-4539-960d-fc4df2eb0679" xlink:to="loc_us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersPriorYearClaimsAndClaimsAdjustmentExpense_c89fd689-4df4-41fe-adb6-ca713e91e4c8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpenseTable_3e83de60-c74a-472e-b06a-1bd7a16d02cf" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpenseTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpenseLineItems_f42099ea-8f46-4539-960d-fc4df2eb0679" xlink:to="loc_us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpenseTable_3e83de60-c74a-472e-b06a-1bd7a16d02cf" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncatastrophicEventAxis_6bcbcb95-0d23-4b40-93e2-bb9d4d4e5d0a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NoncatastrophicEventAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpenseTable_3e83de60-c74a-472e-b06a-1bd7a16d02cf" xlink:to="loc_us-gaap_NoncatastrophicEventAxis_6bcbcb95-0d23-4b40-93e2-bb9d4d4e5d0a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncatastrophicEventDomain_6bcbcb95-0d23-4b40-93e2-bb9d4d4e5d0a_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NoncatastrophicEventDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_NoncatastrophicEventAxis_6bcbcb95-0d23-4b40-93e2-bb9d4d4e5d0a" xlink:to="loc_us-gaap_NoncatastrophicEventDomain_6bcbcb95-0d23-4b40-93e2-bb9d4d4e5d0a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncatastrophicEventDomain_0a00ae71-7d5b-4294-af6c-82f80bff3977" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NoncatastrophicEventDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_NoncatastrophicEventAxis_6bcbcb95-0d23-4b40-93e2-bb9d4d4e5d0a" xlink:to="loc_us-gaap_NoncatastrophicEventDomain_0a00ae71-7d5b-4294-af6c-82f80bff3977" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_IncreaseDecreaseInExpectedClaimRateMember_ebcf1171-ef0d-4864-813d-0b902866272e" xlink:href="mtg-20201231.xsd#mtg_IncreaseDecreaseInExpectedClaimRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoncatastrophicEventDomain_0a00ae71-7d5b-4294-af6c-82f80bff3977" xlink:to="loc_mtg_IncreaseDecreaseInExpectedClaimRateMember_ebcf1171-ef0d-4864-813d-0b902866272e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_IncreaseDecreaseInEstimatedSeverityPrimaryDefaultsMember_0c94653f-4c54-4c9b-a122-75314a339409" xlink:href="mtg-20201231.xsd#mtg_IncreaseDecreaseInEstimatedSeverityPrimaryDefaultsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoncatastrophicEventDomain_0a00ae71-7d5b-4294-af6c-82f80bff3977" xlink:to="loc_mtg_IncreaseDecreaseInEstimatedSeverityPrimaryDefaultsMember_0c94653f-4c54-4c9b-a122-75314a339409" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_IncreaseDecreaseRelatedToPoolReservesLAEReservesAndReinsuranceMember_5f184524-aac0-4cbe-8943-12936cdc2bf6" xlink:href="mtg-20201231.xsd#mtg_IncreaseDecreaseRelatedToPoolReservesLAEReservesAndReinsuranceMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoncatastrophicEventDomain_0a00ae71-7d5b-4294-af6c-82f80bff3977" xlink:to="loc_mtg_IncreaseDecreaseRelatedToPoolReservesLAEReservesAndReinsuranceMember_5f184524-aac0-4cbe-8943-12936cdc2bf6" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/LossReservesDefaultInventoryReconciliationDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#LossReservesDefaultInventoryReconciliationDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/LossReservesDefaultInventoryReconciliationDetails" xlink:type="extended" id="ie3bf5a819245474fb1ea4780e7f6d271_LossReservesDefaultInventoryReconciliationDetails"/>
  <link:roleRef roleURI="http://www.mgic.com/role/LossReservesAgingofPrimaryDefaultInventoryDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#LossReservesAgingofPrimaryDefaultInventoryDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/LossReservesAgingofPrimaryDefaultInventoryDetails" xlink:type="extended" id="ib40074c0d90d40e29edc8e90a2a25e23_LossReservesAgingofPrimaryDefaultInventoryDetails"/>
  <link:roleRef roleURI="http://www.mgic.com/role/Reinsurance" xlink:type="simple" xlink:href="mtg-20201231.xsd#Reinsurance"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/Reinsurance" xlink:type="extended" id="ia2c5829259b445d38049918ccc846436_Reinsurance"/>
  <link:roleRef roleURI="http://www.mgic.com/role/ReinsuranceTables" xlink:type="simple" xlink:href="mtg-20201231.xsd#ReinsuranceTables"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/ReinsuranceTables" xlink:type="extended" id="ie15c393b1f70414dae6465a1ae48be42_ReinsuranceTables"/>
  <link:roleRef roleURI="http://www.mgic.com/role/ReinsuranceSummaryofReinsuranceAgreementsDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#ReinsuranceSummaryofReinsuranceAgreementsDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/ReinsuranceSummaryofReinsuranceAgreementsDetails" xlink:type="extended" id="iad95286ce9fb4a9987015483da781877_ReinsuranceSummaryofReinsuranceAgreementsDetails"/>
  <link:roleRef roleURI="http://www.mgic.com/role/ReinsuranceNarrativeDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#ReinsuranceNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/ReinsuranceNarrativeDetails" xlink:type="extended" id="i01a6c6755b254e4eb2a09baebec8c0e7_ReinsuranceNarrativeDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectsOfReinsuranceLineItems_d0cd9681-1956-4b9d-9f94-68106034b335" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectsOfReinsuranceLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_ReinsuranceQuotaShareReinsuranceAgreementTermsCedingCommissionPercent_fe641610-fabf-4586-8875-4aba73165e85" xlink:href="mtg-20201231.xsd#mtg_ReinsuranceQuotaShareReinsuranceAgreementTermsCedingCommissionPercent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectsOfReinsuranceLineItems_d0cd9681-1956-4b9d-9f94-68106034b335" xlink:to="loc_mtg_ReinsuranceQuotaShareReinsuranceAgreementTermsCedingCommissionPercent_fe641610-fabf-4586-8875-4aba73165e85" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_ReinsuranceQuotaShareReinsuranceAgreementTermsAnnualLossRatioCap_aeaabd22-1836-481d-b08c-2d492858a164" xlink:href="mtg-20201231.xsd#mtg_ReinsuranceQuotaShareReinsuranceAgreementTermsAnnualLossRatioCap"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectsOfReinsuranceLineItems_d0cd9681-1956-4b9d-9f94-68106034b335" xlink:to="loc_mtg_ReinsuranceQuotaShareReinsuranceAgreementTermsAnnualLossRatioCap_aeaabd22-1836-481d-b08c-2d492858a164" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_ReinsuranceQuotaShareReinsuranceAgreementTermsLifetimeLossRatioCap_ff6d7588-1f59-4e32-8a2e-90e5299064e3" xlink:href="mtg-20201231.xsd#mtg_ReinsuranceQuotaShareReinsuranceAgreementTermsLifetimeLossRatioCap"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectsOfReinsuranceLineItems_d0cd9681-1956-4b9d-9f94-68106034b335" xlink:to="loc_mtg_ReinsuranceQuotaShareReinsuranceAgreementTermsLifetimeLossRatioCap_ff6d7588-1f59-4e32-8a2e-90e5299064e3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_ReinsuranceQuotaShareReinsuranceAgreementTermsQuotaSharePercent_942ad9c5-0de7-4248-b30c-354251bf194b" xlink:href="mtg-20201231.xsd#mtg_ReinsuranceQuotaShareReinsuranceAgreementTermsQuotaSharePercent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectsOfReinsuranceLineItems_d0cd9681-1956-4b9d-9f94-68106034b335" xlink:to="loc_mtg_ReinsuranceQuotaShareReinsuranceAgreementTermsQuotaSharePercent_942ad9c5-0de7-4248-b30c-354251bf194b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossRatio_db884719-4209-4c3d-bdbc-da355014695e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LossRatio"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectsOfReinsuranceLineItems_d0cd9681-1956-4b9d-9f94-68106034b335" xlink:to="loc_us-gaap_LossRatio_db884719-4209-4c3d-bdbc-da355014695e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_ReinsuranceQuotaShareReinsuranceAgreementTermsThresholdForPrivateMortgageInsurerEligibilityRequirementsForTerminationElection_92ae0f58-9174-48d6-9880-d88b71ac7907" xlink:href="mtg-20201231.xsd#mtg_ReinsuranceQuotaShareReinsuranceAgreementTermsThresholdForPrivateMortgageInsurerEligibilityRequirementsForTerminationElection"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectsOfReinsuranceLineItems_d0cd9681-1956-4b9d-9f94-68106034b335" xlink:to="loc_mtg_ReinsuranceQuotaShareReinsuranceAgreementTermsThresholdForPrivateMortgageInsurerEligibilityRequirementsForTerminationElection_92ae0f58-9174-48d6-9880-d88b71ac7907" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_ReinsuranceQuotaShareReinsuranceAgreementTermsContingentTerminationFee_07450186-0315-4f1c-b486-3ddb5ea0b3d0" xlink:href="mtg-20201231.xsd#mtg_ReinsuranceQuotaShareReinsuranceAgreementTermsContingentTerminationFee"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectsOfReinsuranceLineItems_d0cd9681-1956-4b9d-9f94-68106034b335" xlink:to="loc_mtg_ReinsuranceQuotaShareReinsuranceAgreementTermsContingentTerminationFee_07450186-0315-4f1c-b486-3ddb5ea0b3d0" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReinsuranceRecoverableForUnpaidClaimsAndClaimsAdjustments_df1d6398-ccce-4046-acb4-369ce43d2b57" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ReinsuranceRecoverableForUnpaidClaimsAndClaimsAdjustments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectsOfReinsuranceLineItems_d0cd9681-1956-4b9d-9f94-68106034b335" xlink:to="loc_us-gaap_ReinsuranceRecoverableForUnpaidClaimsAndClaimsAdjustments_df1d6398-ccce-4046-acb4-369ce43d2b57" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_AmortizationPeriodExcessofLossReinsuranceCoverage_fda8ffb1-deb1-49d5-a5d8-3d0a30ad8c74" xlink:href="mtg-20201231.xsd#mtg_AmortizationPeriodExcessofLossReinsuranceCoverage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectsOfReinsuranceLineItems_d0cd9681-1956-4b9d-9f94-68106034b335" xlink:to="loc_mtg_AmortizationPeriodExcessofLossReinsuranceCoverage_fda8ffb1-deb1-49d5-a5d8-3d0a30ad8c74" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_PercentOfDelinquentReinsuredLoanstoTotalReinsuredLoans_281653d0-0caa-451f-bbf9-a8fda51786d5" xlink:href="mtg-20201231.xsd#mtg_PercentOfDelinquentReinsuredLoanstoTotalReinsuredLoans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectsOfReinsuranceLineItems_d0cd9681-1956-4b9d-9f94-68106034b335" xlink:to="loc_mtg_PercentOfDelinquentReinsuredLoanstoTotalReinsuredLoans_281653d0-0caa-451f-bbf9-a8fda51786d5" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_ReinsuranceRetentionPolicyDebtIssuedToCoverInsuranceTerm_f587171b-f571-431d-b3d9-a9bd2811cf1f" xlink:href="mtg-20201231.xsd#mtg_ReinsuranceRetentionPolicyDebtIssuedToCoverInsuranceTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectsOfReinsuranceLineItems_d0cd9681-1956-4b9d-9f94-68106034b335" xlink:to="loc_mtg_ReinsuranceRetentionPolicyDebtIssuedToCoverInsuranceTerm_f587171b-f571-431d-b3d9-a9bd2811cf1f" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_ReinsuranceRetentionPolicyRemainingExcessOfLossReinsuranceCoverages_f33f3761-65e1-45dc-a542-486f2118d47c" xlink:href="mtg-20201231.xsd#mtg_ReinsuranceRetentionPolicyRemainingExcessOfLossReinsuranceCoverages"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectsOfReinsuranceLineItems_d0cd9681-1956-4b9d-9f94-68106034b335" xlink:to="loc_mtg_ReinsuranceRetentionPolicyRemainingExcessOfLossReinsuranceCoverages_f33f3761-65e1-45dc-a542-486f2118d47c" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CededPremiumsEarned_60512f87-f0a7-493b-bbf9-418b8c176425" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CededPremiumsEarned"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectsOfReinsuranceLineItems_d0cd9681-1956-4b9d-9f94-68106034b335" xlink:to="loc_us-gaap_CededPremiumsEarned_60512f87-f0a7-493b-bbf9-418b8c176425" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_ReinsuranceRetentionPolicyPercentOfTotalTrustAssetsInvestedInCashOrDirectU.S.FederalGovernmentObligations_be006689-f41e-49da-acba-c43fde076b9c" xlink:href="mtg-20201231.xsd#mtg_ReinsuranceRetentionPolicyPercentOfTotalTrustAssetsInvestedInCashOrDirectU.S.FederalGovernmentObligations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectsOfReinsuranceLineItems_d0cd9681-1956-4b9d-9f94-68106034b335" xlink:to="loc_mtg_ReinsuranceRetentionPolicyPercentOfTotalTrustAssetsInvestedInCashOrDirectU.S.FederalGovernmentObligations_be006689-f41e-49da-acba-c43fde076b9c" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectsOfReinsuranceTable_dd6a396d-51a2-4900-8e5b-17e34cadd61c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectsOfReinsuranceTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EffectsOfReinsuranceLineItems_d0cd9681-1956-4b9d-9f94-68106034b335" xlink:to="loc_us-gaap_EffectsOfReinsuranceTable_dd6a396d-51a2-4900-8e5b-17e34cadd61c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_15f10a11-b2be-4a6d-9012-6d0b4f723ba0" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_EffectsOfReinsuranceTable_dd6a396d-51a2-4900-8e5b-17e34cadd61c" xlink:to="loc_dei_LegalEntityAxis_15f10a11-b2be-4a6d-9012-6d0b4f723ba0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_15f10a11-b2be-4a6d-9012-6d0b4f723ba0_default" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_15f10a11-b2be-4a6d-9012-6d0b4f723ba0" xlink:to="loc_dei_EntityDomain_15f10a11-b2be-4a6d-9012-6d0b4f723ba0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_bce013e6-bfc9-463d-848d-1f491a2cfed2" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_15f10a11-b2be-4a6d-9012-6d0b4f723ba0" xlink:to="loc_dei_EntityDomain_bce013e6-bfc9-463d-848d-1f491a2cfed2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_HomeRespecialpurposeinsurersMember_600febe9-0ebc-490b-bfea-7683393978e8" xlink:href="mtg-20201231.xsd#mtg_HomeRespecialpurposeinsurersMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_bce013e6-bfc9-463d-848d-1f491a2cfed2" xlink:to="loc_mtg_HomeRespecialpurposeinsurersMember_600febe9-0ebc-490b-bfea-7683393978e8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReinsurancePolicyTypeAxis_c526b431-42f7-404e-92b8-148ff36bc264" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ReinsurancePolicyTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_EffectsOfReinsuranceTable_dd6a396d-51a2-4900-8e5b-17e34cadd61c" xlink:to="loc_us-gaap_ReinsurancePolicyTypeAxis_c526b431-42f7-404e-92b8-148ff36bc264" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReinsurancePolicyDomain_c526b431-42f7-404e-92b8-148ff36bc264_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ReinsurancePolicyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ReinsurancePolicyTypeAxis_c526b431-42f7-404e-92b8-148ff36bc264" xlink:to="loc_us-gaap_ReinsurancePolicyDomain_c526b431-42f7-404e-92b8-148ff36bc264_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReinsurancePolicyDomain_2f20d0e7-561a-4fec-9b4b-cabe9287143d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ReinsurancePolicyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ReinsurancePolicyTypeAxis_c526b431-42f7-404e-92b8-148ff36bc264" xlink:to="loc_us-gaap_ReinsurancePolicyDomain_2f20d0e7-561a-4fec-9b4b-cabe9287143d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_QuotaShareReinsuranceAgreementsMember_749851c7-8cef-4a7b-b3dc-c9625e3b0237" xlink:href="mtg-20201231.xsd#mtg_QuotaShareReinsuranceAgreementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReinsurancePolicyDomain_2f20d0e7-561a-4fec-9b4b-cabe9287143d" xlink:to="loc_mtg_QuotaShareReinsuranceAgreementsMember_749851c7-8cef-4a7b-b3dc-c9625e3b0237" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_QuotaShareReinsuranceAgreement2021Member_96b530ee-9d38-4a65-97b1-118945fa18d9" xlink:href="mtg-20201231.xsd#mtg_QuotaShareReinsuranceAgreement2021Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReinsurancePolicyDomain_2f20d0e7-561a-4fec-9b4b-cabe9287143d" xlink:to="loc_mtg_QuotaShareReinsuranceAgreement2021Member_96b530ee-9d38-4a65-97b1-118945fa18d9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_CreditUnionQuotaShareReinsuranceAgreementMember_cf10a465-92c7-4ed8-9cfd-a9a48f8413fb" xlink:href="mtg-20201231.xsd#mtg_CreditUnionQuotaShareReinsuranceAgreementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReinsurancePolicyDomain_2f20d0e7-561a-4fec-9b4b-cabe9287143d" xlink:to="loc_mtg_CreditUnionQuotaShareReinsuranceAgreementMember_cf10a465-92c7-4ed8-9cfd-a9a48f8413fb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_QuotaShareReinsuranceAgreement2015Member_bcd27602-5b09-4887-8886-5ea8d9b902b0" xlink:href="mtg-20201231.xsd#mtg_QuotaShareReinsuranceAgreement2015Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReinsurancePolicyDomain_2f20d0e7-561a-4fec-9b4b-cabe9287143d" xlink:to="loc_mtg_QuotaShareReinsuranceAgreement2015Member_bcd27602-5b09-4887-8886-5ea8d9b902b0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_ExcessofLossReinsuranceAgreementsHomeReEntitiesMember_f16de436-4754-4a1b-bdf4-2c01c3181ec4" xlink:href="mtg-20201231.xsd#mtg_ExcessofLossReinsuranceAgreementsHomeReEntitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReinsurancePolicyDomain_2f20d0e7-561a-4fec-9b4b-cabe9287143d" xlink:to="loc_mtg_ExcessofLossReinsuranceAgreementsHomeReEntitiesMember_f16de436-4754-4a1b-bdf4-2c01c3181ec4" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementScenarioAxis_b158ab9b-4533-4927-ab55-71216e1c05a0" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_StatementScenarioAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_EffectsOfReinsuranceTable_dd6a396d-51a2-4900-8e5b-17e34cadd61c" xlink:to="loc_srt_StatementScenarioAxis_b158ab9b-4533-4927-ab55-71216e1c05a0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioUnspecifiedDomain_b158ab9b-4533-4927-ab55-71216e1c05a0_default" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ScenarioUnspecifiedDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementScenarioAxis_b158ab9b-4533-4927-ab55-71216e1c05a0" xlink:to="loc_srt_ScenarioUnspecifiedDomain_b158ab9b-4533-4927-ab55-71216e1c05a0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioUnspecifiedDomain_1379ee24-883c-4f7d-be26-9adf07cf164c" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ScenarioUnspecifiedDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementScenarioAxis_b158ab9b-4533-4927-ab55-71216e1c05a0" xlink:to="loc_srt_ScenarioUnspecifiedDomain_1379ee24-883c-4f7d-be26-9adf07cf164c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioForecastMember_3557a4a3-e852-4bb6-bbf6-a999676de7b9" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ScenarioForecastMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ScenarioUnspecifiedDomain_1379ee24-883c-4f7d-be26-9adf07cf164c" xlink:to="loc_srt_ScenarioForecastMember_3557a4a3-e852-4bb6-bbf6-a999676de7b9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_223f6f37-a9a1-49e9-bc8e-83b3c009a284" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinancingReceivablesPeriodPastDueAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_EffectsOfReinsuranceTable_dd6a396d-51a2-4900-8e5b-17e34cadd61c" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_223f6f37-a9a1-49e9-bc8e-83b3c009a284" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_223f6f37-a9a1-49e9-bc8e-83b3c009a284_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinancingReceivablesPeriodPastDueDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_223f6f37-a9a1-49e9-bc8e-83b3c009a284" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_223f6f37-a9a1-49e9-bc8e-83b3c009a284_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_485c9e19-d13e-4076-a018-383acb0769a0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinancingReceivablesPeriodPastDueDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_223f6f37-a9a1-49e9-bc8e-83b3c009a284" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_485c9e19-d13e-4076-a018-383acb0769a0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_FinancialAssetEqualToOrGreaterThan60DaysPastDueMember_641fed6a-8980-4019-a4ca-316e7c786ba9" xlink:href="mtg-20201231.xsd#mtg_FinancialAssetEqualToOrGreaterThan60DaysPastDueMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_485c9e19-d13e-4076-a018-383acb0769a0" xlink:to="loc_mtg_FinancialAssetEqualToOrGreaterThan60DaysPastDueMember_641fed6a-8980-4019-a4ca-316e7c786ba9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_d57affb8-1ffe-4e7c-ab2b-721f95cfdbdf" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_EffectsOfReinsuranceTable_dd6a396d-51a2-4900-8e5b-17e34cadd61c" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_d57affb8-1ffe-4e7c-ab2b-721f95cfdbdf" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_d57affb8-1ffe-4e7c-ab2b-721f95cfdbdf_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_d57affb8-1ffe-4e7c-ab2b-721f95cfdbdf" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_d57affb8-1ffe-4e7c-ab2b-721f95cfdbdf_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_ad779812-792e-4050-b895-125e47033163" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_d57affb8-1ffe-4e7c-ab2b-721f95cfdbdf" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_ad779812-792e-4050-b895-125e47033163" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventMember_474800d1-25ec-4233-a463-1a2accee687e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_ad779812-792e-4050-b895-125e47033163" xlink:to="loc_us-gaap_SubsequentEventMember_474800d1-25ec-4233-a463-1a2accee687e" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/ReinsuranceQuotaShareAgreementTermsDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#ReinsuranceQuotaShareAgreementTermsDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/ReinsuranceQuotaShareAgreementTermsDetails" xlink:type="extended" id="i015665cbecd94f30a20fabf414c09c7b_ReinsuranceQuotaShareAgreementTermsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectsOfReinsuranceLineItems_ce58bb00-ce13-40ec-a821-5e593cb9f6eb" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectsOfReinsuranceLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_ReinsuranceQuotaShareReinsuranceAgreementTermsQuotaSharePercent_009d7226-e4ea-4a8f-9461-33ccef9729d6" xlink:href="mtg-20201231.xsd#mtg_ReinsuranceQuotaShareReinsuranceAgreementTermsQuotaSharePercent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectsOfReinsuranceLineItems_ce58bb00-ce13-40ec-a821-5e593cb9f6eb" xlink:to="loc_mtg_ReinsuranceQuotaShareReinsuranceAgreementTermsQuotaSharePercent_009d7226-e4ea-4a8f-9461-33ccef9729d6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossRatio_33be4200-dd80-4298-8b9f-7808650cdcab" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LossRatio"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectsOfReinsuranceLineItems_ce58bb00-ce13-40ec-a821-5e593cb9f6eb" xlink:to="loc_us-gaap_LossRatio_33be4200-dd80-4298-8b9f-7808650cdcab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_ReinsuranceQuotaShareReinsuranceAgreementTermsCedingRatePercentOptionOne_5a58226d-2de5-4a7b-bd4f-1798eeaf8848" xlink:href="mtg-20201231.xsd#mtg_ReinsuranceQuotaShareReinsuranceAgreementTermsCedingRatePercentOptionOne"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectsOfReinsuranceLineItems_ce58bb00-ce13-40ec-a821-5e593cb9f6eb" xlink:to="loc_mtg_ReinsuranceQuotaShareReinsuranceAgreementTermsCedingRatePercentOptionOne_5a58226d-2de5-4a7b-bd4f-1798eeaf8848" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_ReinsuranceQuotaShareReinsuranceAgreementTermsCedingRatePercentOptionTwo_a6a197fa-59e3-492e-91b9-e8250bffc515" xlink:href="mtg-20201231.xsd#mtg_ReinsuranceQuotaShareReinsuranceAgreementTermsCedingRatePercentOptionTwo"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectsOfReinsuranceLineItems_ce58bb00-ce13-40ec-a821-5e593cb9f6eb" xlink:to="loc_mtg_ReinsuranceQuotaShareReinsuranceAgreementTermsCedingRatePercentOptionTwo_a6a197fa-59e3-492e-91b9-e8250bffc515" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectsOfReinsuranceTable_12637fac-bf3f-4b8e-8bee-ab4cd8ca7513" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectsOfReinsuranceTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EffectsOfReinsuranceLineItems_ce58bb00-ce13-40ec-a821-5e593cb9f6eb" xlink:to="loc_us-gaap_EffectsOfReinsuranceTable_12637fac-bf3f-4b8e-8bee-ab4cd8ca7513" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReinsurancePolicyTypeAxis_1adf7f25-b1ec-4d64-9d02-283d76cc64a9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ReinsurancePolicyTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_EffectsOfReinsuranceTable_12637fac-bf3f-4b8e-8bee-ab4cd8ca7513" xlink:to="loc_us-gaap_ReinsurancePolicyTypeAxis_1adf7f25-b1ec-4d64-9d02-283d76cc64a9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReinsurancePolicyDomain_1adf7f25-b1ec-4d64-9d02-283d76cc64a9_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ReinsurancePolicyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ReinsurancePolicyTypeAxis_1adf7f25-b1ec-4d64-9d02-283d76cc64a9" xlink:to="loc_us-gaap_ReinsurancePolicyDomain_1adf7f25-b1ec-4d64-9d02-283d76cc64a9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReinsurancePolicyDomain_f070f324-41a1-4262-aeae-08894a4a8d96" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ReinsurancePolicyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ReinsurancePolicyTypeAxis_1adf7f25-b1ec-4d64-9d02-283d76cc64a9" xlink:to="loc_us-gaap_ReinsurancePolicyDomain_f070f324-41a1-4262-aeae-08894a4a8d96" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_QuotaShareReinsuranceAgreement2015Member_d820e2dc-9c68-4cbe-996f-413766f51ca7" xlink:href="mtg-20201231.xsd#mtg_QuotaShareReinsuranceAgreement2015Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReinsurancePolicyDomain_f070f324-41a1-4262-aeae-08894a4a8d96" xlink:to="loc_mtg_QuotaShareReinsuranceAgreement2015Member_d820e2dc-9c68-4cbe-996f-413766f51ca7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_QuotaShareReinsuranceAgreement2017Member_17543591-0381-4218-add4-07ea9548d382" xlink:href="mtg-20201231.xsd#mtg_QuotaShareReinsuranceAgreement2017Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReinsurancePolicyDomain_f070f324-41a1-4262-aeae-08894a4a8d96" xlink:to="loc_mtg_QuotaShareReinsuranceAgreement2017Member_17543591-0381-4218-add4-07ea9548d382" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_QuotaShareReinsuranceAgreement2018Member_d8190135-dcdd-4d05-9b34-2055fa84388d" xlink:href="mtg-20201231.xsd#mtg_QuotaShareReinsuranceAgreement2018Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReinsurancePolicyDomain_f070f324-41a1-4262-aeae-08894a4a8d96" xlink:to="loc_mtg_QuotaShareReinsuranceAgreement2018Member_d8190135-dcdd-4d05-9b34-2055fa84388d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_QuotaShareReinsuranceAgreement2019Member_b0f0b081-8dd2-449c-bc0a-9a8c9e9c7ec1" xlink:href="mtg-20201231.xsd#mtg_QuotaShareReinsuranceAgreement2019Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReinsurancePolicyDomain_f070f324-41a1-4262-aeae-08894a4a8d96" xlink:to="loc_mtg_QuotaShareReinsuranceAgreement2019Member_b0f0b081-8dd2-449c-bc0a-9a8c9e9c7ec1" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_QuotaShareReinsuranceAgreement2020OneYearMember_162f95d3-5149-482c-8669-9a00def8beed" xlink:href="mtg-20201231.xsd#mtg_QuotaShareReinsuranceAgreement2020OneYearMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReinsurancePolicyDomain_f070f324-41a1-4262-aeae-08894a4a8d96" xlink:to="loc_mtg_QuotaShareReinsuranceAgreement2020OneYearMember_162f95d3-5149-482c-8669-9a00def8beed" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_QuotaShareReinsuranceAgreement2020TwoYearMember_d8b81929-b208-4509-aa5e-e789c991dfaa" xlink:href="mtg-20201231.xsd#mtg_QuotaShareReinsuranceAgreement2020TwoYearMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReinsurancePolicyDomain_f070f324-41a1-4262-aeae-08894a4a8d96" xlink:to="loc_mtg_QuotaShareReinsuranceAgreement2020TwoYearMember_d8b81929-b208-4509-aa5e-e789c991dfaa" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_CreditUnionQuotaShareReinsuranceAgreementMember_b73b9d34-4351-4758-a564-5a32e06da01b" xlink:href="mtg-20201231.xsd#mtg_CreditUnionQuotaShareReinsuranceAgreementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReinsurancePolicyDomain_f070f324-41a1-4262-aeae-08894a4a8d96" xlink:to="loc_mtg_CreditUnionQuotaShareReinsuranceAgreementMember_b73b9d34-4351-4758-a564-5a32e06da01b" xlink:type="arc" order="6"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/ReinsuranceQuotaShareReinsuranceDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#ReinsuranceQuotaShareReinsuranceDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/ReinsuranceQuotaShareReinsuranceDetails" xlink:type="extended" id="iff32d0798d234141a552376b26d4adb2_ReinsuranceQuotaShareReinsuranceDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectsOfReinsuranceLineItems_755e9847-dffe-4678-85b9-85eba4e73daf" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectsOfReinsuranceLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_CededPremiumsWrittenandEarnedNetofProfitCommission_9323f594-2040-40ae-99e4-d2f5be4c9a69" xlink:href="mtg-20201231.xsd#mtg_CededPremiumsWrittenandEarnedNetofProfitCommission"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectsOfReinsuranceLineItems_755e9847-dffe-4678-85b9-85eba4e73daf" xlink:to="loc_mtg_CededPremiumsWrittenandEarnedNetofProfitCommission_9323f594-2040-40ae-99e4-d2f5be4c9a69" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReinsuranceEffectOnClaimsAndBenefitsIncurredAmountCeded_dd5c050a-1ff2-4264-b4d5-79bae6be244d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ReinsuranceEffectOnClaimsAndBenefitsIncurredAmountCeded"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectsOfReinsuranceLineItems_755e9847-dffe-4678-85b9-85eba4e73daf" xlink:to="loc_us-gaap_ReinsuranceEffectOnClaimsAndBenefitsIncurredAmountCeded_dd5c050a-1ff2-4264-b4d5-79bae6be244d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_ReinsuranceCedingCommissionEarned_1b688821-4be1-4085-945a-721aa76b9494" xlink:href="mtg-20201231.xsd#mtg_ReinsuranceCedingCommissionEarned"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectsOfReinsuranceLineItems_755e9847-dffe-4678-85b9-85eba4e73daf" xlink:to="loc_mtg_ReinsuranceCedingCommissionEarned_1b688821-4be1-4085-945a-721aa76b9494" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_ReinsuranceProfitCommission_4530258b-7dc5-449b-be42-111323dd9deb" xlink:href="mtg-20201231.xsd#mtg_ReinsuranceProfitCommission"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectsOfReinsuranceLineItems_755e9847-dffe-4678-85b9-85eba4e73daf" xlink:to="loc_mtg_ReinsuranceProfitCommission_4530258b-7dc5-449b-be42-111323dd9deb" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectsOfReinsuranceTable_768740ed-95c3-45b7-83b1-7faa29992a61" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectsOfReinsuranceTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EffectsOfReinsuranceLineItems_755e9847-dffe-4678-85b9-85eba4e73daf" xlink:to="loc_us-gaap_EffectsOfReinsuranceTable_768740ed-95c3-45b7-83b1-7faa29992a61" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReinsurancePolicyTypeAxis_644e9b7e-105a-48bb-bc69-a6c68e39d105" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ReinsurancePolicyTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_EffectsOfReinsuranceTable_768740ed-95c3-45b7-83b1-7faa29992a61" xlink:to="loc_us-gaap_ReinsurancePolicyTypeAxis_644e9b7e-105a-48bb-bc69-a6c68e39d105" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReinsurancePolicyDomain_644e9b7e-105a-48bb-bc69-a6c68e39d105_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ReinsurancePolicyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ReinsurancePolicyTypeAxis_644e9b7e-105a-48bb-bc69-a6c68e39d105" xlink:to="loc_us-gaap_ReinsurancePolicyDomain_644e9b7e-105a-48bb-bc69-a6c68e39d105_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReinsurancePolicyDomain_cb8c8f27-84f3-4dec-bdb5-1276db85a785" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ReinsurancePolicyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ReinsurancePolicyTypeAxis_644e9b7e-105a-48bb-bc69-a6c68e39d105" xlink:to="loc_us-gaap_ReinsurancePolicyDomain_cb8c8f27-84f3-4dec-bdb5-1276db85a785" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_QuotaShareReinsuranceAgreementsMember_5deda39b-a6b3-493c-9654-b11f68a370b3" xlink:href="mtg-20201231.xsd#mtg_QuotaShareReinsuranceAgreementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReinsurancePolicyDomain_cb8c8f27-84f3-4dec-bdb5-1276db85a785" xlink:to="loc_mtg_QuotaShareReinsuranceAgreementsMember_5deda39b-a6b3-493c-9654-b11f68a370b3" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/ReinsuranceExcessofLossReinsuranceDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#ReinsuranceExcessofLossReinsuranceDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/ReinsuranceExcessofLossReinsuranceDetails" xlink:type="extended" id="iec8106c9293e4d489175bd8dbb3a3c2b_ReinsuranceExcessofLossReinsuranceDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectsOfReinsuranceLineItems_36c2d1a0-9cdb-4ad0-bd23-2e513ac52611" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectsOfReinsuranceLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReinsuranceRetentionPolicyAmountRetained_255e4f9d-9b61-499e-87c4-2f2f072d0cbb" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ReinsuranceRetentionPolicyAmountRetained"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectsOfReinsuranceLineItems_36c2d1a0-9cdb-4ad0-bd23-2e513ac52611" xlink:to="loc_us-gaap_ReinsuranceRetentionPolicyAmountRetained_255e4f9d-9b61-499e-87c4-2f2f072d0cbb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_ReinsuranceRetentionPolicyRemainingExcessOfLossReinsuranceCoverages_aebd0b5a-8aec-4cb0-a3f4-97e1b04fbcec" xlink:href="mtg-20201231.xsd#mtg_ReinsuranceRetentionPolicyRemainingExcessOfLossReinsuranceCoverages"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectsOfReinsuranceLineItems_36c2d1a0-9cdb-4ad0-bd23-2e513ac52611" xlink:to="loc_mtg_ReinsuranceRetentionPolicyRemainingExcessOfLossReinsuranceCoverages_aebd0b5a-8aec-4cb0-a3f4-97e1b04fbcec" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectsOfReinsuranceTable_d02b918d-58ed-426e-a8e2-21f2f435d9a9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectsOfReinsuranceTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EffectsOfReinsuranceLineItems_36c2d1a0-9cdb-4ad0-bd23-2e513ac52611" xlink:to="loc_us-gaap_EffectsOfReinsuranceTable_d02b918d-58ed-426e-a8e2-21f2f435d9a9" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_efeb9ec5-dedc-454d-8d13-4fd0dc14ca11" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_EffectsOfReinsuranceTable_d02b918d-58ed-426e-a8e2-21f2f435d9a9" xlink:to="loc_dei_LegalEntityAxis_efeb9ec5-dedc-454d-8d13-4fd0dc14ca11" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_efeb9ec5-dedc-454d-8d13-4fd0dc14ca11_default" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_efeb9ec5-dedc-454d-8d13-4fd0dc14ca11" xlink:to="loc_dei_EntityDomain_efeb9ec5-dedc-454d-8d13-4fd0dc14ca11_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_2e5e9f39-967c-4f1d-90fb-379aedcba335" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_efeb9ec5-dedc-454d-8d13-4fd0dc14ca11" xlink:to="loc_dei_EntityDomain_2e5e9f39-967c-4f1d-90fb-379aedcba335" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_HomeRe20201Member_9962d8f5-cb06-44d2-a178-45c27f42ba05" xlink:href="mtg-20201231.xsd#mtg_HomeRe20201Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_2e5e9f39-967c-4f1d-90fb-379aedcba335" xlink:to="loc_mtg_HomeRe20201Member_9962d8f5-cb06-44d2-a178-45c27f42ba05" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_HomeRe20191Member_68520ca4-cfe0-41e2-9e28-d51fd24c32b5" xlink:href="mtg-20201231.xsd#mtg_HomeRe20191Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_2e5e9f39-967c-4f1d-90fb-379aedcba335" xlink:to="loc_mtg_HomeRe20191Member_68520ca4-cfe0-41e2-9e28-d51fd24c32b5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_HomeRe20181Member_efbccd12-6275-4191-b967-903d2d9adfe3" xlink:href="mtg-20201231.xsd#mtg_HomeRe20181Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_2e5e9f39-967c-4f1d-90fb-379aedcba335" xlink:to="loc_mtg_HomeRe20181Member_efbccd12-6275-4191-b967-903d2d9adfe3" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/ReinsuranceHomeReEntitiesTotalAssetsDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#ReinsuranceHomeReEntitiesTotalAssetsDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/ReinsuranceHomeReEntitiesTotalAssetsDetails" xlink:type="extended" id="i0de9e223bc95403e9a32830006d045e2_ReinsuranceHomeReEntitiesTotalAssetsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectsOfReinsuranceLineItems_1ef84326-cafc-428b-b1d7-4190c78a6dcd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectsOfReinsuranceLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableInterestEntityNonconsolidatedCarryingAmountAssets_dba97253-fdde-4e85-8876-91b977295bdc" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_VariableInterestEntityNonconsolidatedCarryingAmountAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectsOfReinsuranceLineItems_1ef84326-cafc-428b-b1d7-4190c78a6dcd" xlink:to="loc_us-gaap_VariableInterestEntityNonconsolidatedCarryingAmountAssets_dba97253-fdde-4e85-8876-91b977295bdc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectsOfReinsuranceTable_619ed6bd-bdb8-4ad1-a54f-0670816515d8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectsOfReinsuranceTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EffectsOfReinsuranceLineItems_1ef84326-cafc-428b-b1d7-4190c78a6dcd" xlink:to="loc_us-gaap_EffectsOfReinsuranceTable_619ed6bd-bdb8-4ad1-a54f-0670816515d8" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_7784b54b-ce58-4523-b201-5aa5ae23a4c7" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_EffectsOfReinsuranceTable_619ed6bd-bdb8-4ad1-a54f-0670816515d8" xlink:to="loc_dei_LegalEntityAxis_7784b54b-ce58-4523-b201-5aa5ae23a4c7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_7784b54b-ce58-4523-b201-5aa5ae23a4c7_default" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_7784b54b-ce58-4523-b201-5aa5ae23a4c7" xlink:to="loc_dei_EntityDomain_7784b54b-ce58-4523-b201-5aa5ae23a4c7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_94d370d3-f49c-47a2-9273-eb068732d1ad" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_7784b54b-ce58-4523-b201-5aa5ae23a4c7" xlink:to="loc_dei_EntityDomain_94d370d3-f49c-47a2-9273-eb068732d1ad" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_HomeRe20181Member_b4206ca8-5d37-4415-931a-0323a5c8fa62" xlink:href="mtg-20201231.xsd#mtg_HomeRe20181Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_94d370d3-f49c-47a2-9273-eb068732d1ad" xlink:to="loc_mtg_HomeRe20181Member_b4206ca8-5d37-4415-931a-0323a5c8fa62" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_HomeRe20191Member_0e37b080-8f0c-425f-88d7-59f4944c9559" xlink:href="mtg-20201231.xsd#mtg_HomeRe20191Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_94d370d3-f49c-47a2-9273-eb068732d1ad" xlink:to="loc_mtg_HomeRe20191Member_0e37b080-8f0c-425f-88d7-59f4944c9559" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_HomeRe20201Member_49a491d1-2503-4681-b758-10804baf1863" xlink:href="mtg-20201231.xsd#mtg_HomeRe20201Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_94d370d3-f49c-47a2-9273-eb068732d1ad" xlink:to="loc_mtg_HomeRe20201Member_49a491d1-2503-4681-b758-10804baf1863" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/OtherComprehensiveIncomeLoss" xlink:type="simple" xlink:href="mtg-20201231.xsd#OtherComprehensiveIncomeLoss"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/OtherComprehensiveIncomeLoss" xlink:type="extended" id="i2b1dd1715fc945e6bc9b3b4d1f4d76d3_OtherComprehensiveIncomeLoss"/>
  <link:roleRef roleURI="http://www.mgic.com/role/OtherComprehensiveIncomeLossTables" xlink:type="simple" xlink:href="mtg-20201231.xsd#OtherComprehensiveIncomeLossTables"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/OtherComprehensiveIncomeLossTables" xlink:type="extended" id="i73f7739a1ec24069bddd19a618aa2663_OtherComprehensiveIncomeLossTables"/>
  <link:roleRef roleURI="http://www.mgic.com/role/OtherComprehensiveIncomeLossDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#OtherComprehensiveIncomeLossDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/OtherComprehensiveIncomeLossDetails" xlink:type="extended" id="i542bfc43d3e74bf7a59576e3d17aafc4_OtherComprehensiveIncomeLossDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeLineItems_c5718514-4f02-4008-9209-f21f48bf170a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAbstract_21d3166a-c1d5-441e-b018-6ec34d1dec41" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeLineItems_c5718514-4f02-4008-9209-f21f48bf170a" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAbstract_21d3166a-c1d5-441e-b018-6ec34d1dec41" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_b7a701d9-b9e8-4249-97c7-32bf5b23626a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAbstract_21d3166a-c1d5-441e-b018-6ec34d1dec41" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_b7a701d9-b9e8-4249-97c7-32bf5b23626a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_292d9425-d3dc-43f0-a9f6-0a38614de6ca" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAbstract_21d3166a-c1d5-441e-b018-6ec34d1dec41" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_292d9425-d3dc-43f0-a9f6-0a38614de6ca" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_a30c8588-a58e-437c-9c15-689bc95f6802" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAbstract_21d3166a-c1d5-441e-b018-6ec34d1dec41" xlink:to="loc_us-gaap_NetIncomeLoss_a30c8588-a58e-437c-9c15-689bc95f6802" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTable_4f8dcc4b-00f7-4cfb-a102-abdf751ef243" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeLineItems_c5718514-4f02-4008-9209-f21f48bf170a" xlink:to="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTable_4f8dcc4b-00f7-4cfb-a102-abdf751ef243" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis_ddb97c0e-d134-40e5-a31e-08ea3201dd16" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTable_4f8dcc4b-00f7-4cfb-a102-abdf751ef243" xlink:to="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis_ddb97c0e-d134-40e5-a31e-08ea3201dd16" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain_ddb97c0e-d134-40e5-a31e-08ea3201dd16_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis_ddb97c0e-d134-40e5-a31e-08ea3201dd16" xlink:to="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain_ddb97c0e-d134-40e5-a31e-08ea3201dd16_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain_99a64222-da7e-4c86-9441-f6e51e5a283c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis_ddb97c0e-d134-40e5-a31e-08ea3201dd16" xlink:to="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain_99a64222-da7e-4c86-9441-f6e51e5a283c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeMember_66890697-50cd-402a-94e6-a99c8635ef98" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain_99a64222-da7e-4c86-9441-f6e51e5a283c" xlink:to="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeMember_66890697-50cd-402a-94e6-a99c8635ef98" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_082793b9-b4da-413b-87a7-2c3dd0c75609" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTable_4f8dcc4b-00f7-4cfb-a102-abdf751ef243" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_082793b9-b4da-413b-87a7-2c3dd0c75609" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_082793b9-b4da-413b-87a7-2c3dd0c75609_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_082793b9-b4da-413b-87a7-2c3dd0c75609" xlink:to="loc_us-gaap_EquityComponentDomain_082793b9-b4da-413b-87a7-2c3dd0c75609_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_15c48ebf-961d-4bba-92d7-048cf194efce" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_082793b9-b4da-413b-87a7-2c3dd0c75609" xlink:to="loc_us-gaap_EquityComponentDomain_15c48ebf-961d-4bba-92d7-048cf194efce" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_ad449e5e-b8a8-4753-bdb0-98ca4c2e33fd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_15c48ebf-961d-4bba-92d7-048cf194efce" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_ad449e5e-b8a8-4753-bdb0-98ca4c2e33fd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember_e5328368-9b36-4410-b485-3caadc23f598" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_ad449e5e-b8a8-4753-bdb0-98ca4c2e33fd" xlink:to="loc_us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember_e5328368-9b36-4410-b485-3caadc23f598" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentMember_5db81532-3d49-465f-8d13-0ca87b8978c6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedDefinedBenefitPlansAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_ad449e5e-b8a8-4753-bdb0-98ca4c2e33fd" xlink:to="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentMember_5db81532-3d49-465f-8d13-0ca87b8978c6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_a00e5d0a-578a-4c46-982e-02f214f9930e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_f5b86b57-6239-42a7-b749-ec50c9784793" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AOCIAttributableToParentNetOfTaxRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_a00e5d0a-578a-4c46-982e-02f214f9930e" xlink:to="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_f5b86b57-6239-42a7-b749-ec50c9784793" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_d4ee4220-5b88-4cac-aa28-bf6e29a62200" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_f5b86b57-6239-42a7-b749-ec50c9784793" xlink:to="loc_us-gaap_StockholdersEquity_d4ee4220-5b88-4cac-aa28-bf6e29a62200" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_85be1c08-6d8f-4302-ae16-289d4a6f0a22" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_f5b86b57-6239-42a7-b749-ec50c9784793" xlink:to="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_85be1c08-6d8f-4302-ae16-289d4a6f0a22" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent_d0d6aafb-9708-4143-8ba0-b474e790d02b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_f5b86b57-6239-42a7-b749-ec50c9784793" xlink:to="loc_us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent_d0d6aafb-9708-4143-8ba0-b474e790d02b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent_f4a256fe-5470-4ace-b00e-d2adbcc530ac" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_f5b86b57-6239-42a7-b749-ec50c9784793" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent_f4a256fe-5470-4ace-b00e-d2adbcc530ac" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_19dd2560-4756-44d2-a5d1-7e19f67f1b90" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_8759c33a-191d-4129-be5f-a3f8cfeae95f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_a00e5d0a-578a-4c46-982e-02f214f9930e" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_8759c33a-191d-4129-be5f-a3f8cfeae95f" xlink:type="arc" order="2" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_27370aa4-4842-4d96-9ab7-11d5a3d6b726" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_8759c33a-191d-4129-be5f-a3f8cfeae95f" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_27370aa4-4842-4d96-9ab7-11d5a3d6b726" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_27370aa4-4842-4d96-9ab7-11d5a3d6b726_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_6d454921-8326-41b1-a50a-1f5bbcc113a2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_3e34a216-494b-4db5-b683-bf56c13c1fb0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember_d72f5cd0-f4f1-4a08-9ce7-e75b35ead933" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentMember_1b9c29f3-0cd2-4f2f-afb8-7634964eb2f6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedDefinedBenefitPlansAdjustmentMember"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlans" xlink:type="simple" xlink:href="mtg-20201231.xsd#BenefitPlans"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/BenefitPlans" xlink:type="extended" id="i0b3ec709a8524180ab0b7405ef220669_BenefitPlans"/>
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlansTables" xlink:type="simple" xlink:href="mtg-20201231.xsd#BenefitPlansTables"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/BenefitPlansTables" xlink:type="extended" id="id601d015c80e4dcf81d562c69a5c1447_BenefitPlansTables">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansTableTextBlockLineItems_005de431-d3c5-4a71-a709-bb1fc962ba0d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansTableTextBlockLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTextBlock_cd18c02f-5488-4f88-a90a-91a174c20ca7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTextBlock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansTableTextBlockLineItems_005de431-d3c5-4a71-a709-bb1fc962ba0d" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTextBlock_cd18c02f-5488-4f88-a90a-91a174c20ca7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansDisclosuresTable_ba0b63dd-adaa-448a-932c-45a5a595902b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansTableTextBlockLineItems_005de431-d3c5-4a71-a709-bb1fc962ba0d" xlink:to="loc_us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansDisclosuresTable_ba0b63dd-adaa-448a-932c-45a5a595902b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_422404b6-01d6-4cc7-9d63-34fb9d3b10cb" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansDisclosuresTable_ba0b63dd-adaa-448a-932c-45a5a595902b" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_422404b6-01d6-4cc7-9d63-34fb9d3b10cb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_422404b6-01d6-4cc7-9d63-34fb9d3b10cb_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_422404b6-01d6-4cc7-9d63-34fb9d3b10cb" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_422404b6-01d6-4cc7-9d63-34fb9d3b10cb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_a72156b5-73c4-4e72-a8a8-ae601f3b5d64" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_422404b6-01d6-4cc7-9d63-34fb9d3b10cb" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_a72156b5-73c4-4e72-a8a8-ae601f3b5d64" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionPlansDefinedBenefitMember_28d2c3b4-dc4f-4f5b-8233-334fbbf4bf13" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PensionPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_a72156b5-73c4-4e72-a8a8-ae601f3b5d64" xlink:to="loc_us-gaap_PensionPlansDefinedBenefitMember_28d2c3b4-dc4f-4f5b-8233-334fbbf4bf13" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_d870243c-3793-4503-af07-7ceab6cceac4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_a72156b5-73c4-4e72-a8a8-ae601f3b5d64" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_d870243c-3793-4503-af07-7ceab6cceac4" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlansComponentsofNetPeriodicBenefitCostsDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#BenefitPlansComponentsofNetPeriodicBenefitCostsDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/BenefitPlansComponentsofNetPeriodicBenefitCostsDetails" xlink:type="extended" id="i3a0bd9310459435c9500f8eec2558774_BenefitPlansComponentsofNetPeriodicBenefitCostsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_80ce8e3d-bf18-4ff6-b501-ff226d8833e4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanServiceCost_650bd2de-a70b-4d28-8b66-9f1ee91a9676" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanServiceCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_80ce8e3d-bf18-4ff6-b501-ff226d8833e4" xlink:to="loc_us-gaap_DefinedBenefitPlanServiceCost_650bd2de-a70b-4d28-8b66-9f1ee91a9676" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_3f33e6fb-7bb2-444d-9b5e-d47db364bb9a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanInterestCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_80ce8e3d-bf18-4ff6-b501-ff226d8833e4" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_3f33e6fb-7bb2-444d-9b5e-d47db364bb9a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_9b223915-9416-4095-a60d-8a4a2abd3e44" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_80ce8e3d-bf18-4ff6-b501-ff226d8833e4" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_9b223915-9416-4095-a60d-8a4a2abd3e44" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanOtherCosts_a5ffc5cf-41f4-4d9d-8ff2-ab71df40b6d8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanOtherCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_80ce8e3d-bf18-4ff6-b501-ff226d8833e4" xlink:to="loc_us-gaap_DefinedBenefitPlanOtherCosts_a5ffc5cf-41f4-4d9d-8ff2-ab71df40b6d8" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_DefinedBenefitPlanSubtotal_a2f491ac-c826-4d48-8345-b4bbc4e8a577" xlink:href="mtg-20201231.xsd#mtg_DefinedBenefitPlanSubtotal"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_80ce8e3d-bf18-4ff6-b501-ff226d8833e4" xlink:to="loc_mtg_DefinedBenefitPlanSubtotal_a2f491ac-c826-4d48-8345-b4bbc4e8a577" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfTransitionAssetObligation_79b8abc4-07f8-42bc-af35-c2d1779a4684" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAmortizationOfTransitionAssetObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_80ce8e3d-bf18-4ff6-b501-ff226d8833e4" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfTransitionAssetObligation_79b8abc4-07f8-42bc-af35-c2d1779a4684" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_232ab187-2b99-4cec-9e85-e6336276450f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_80ce8e3d-bf18-4ff6-b501-ff226d8833e4" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_232ab187-2b99-4cec-9e85-e6336276450f" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_c579f343-f34c-4949-860c-39ddfb45e2b6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_80ce8e3d-bf18-4ff6-b501-ff226d8833e4" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_c579f343-f34c-4949-860c-39ddfb45e2b6" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_DefinedBenefitPlanTotalAmortization_9de7b336-c03e-4c7d-8766-5dbac5238f32" xlink:href="mtg-20201231.xsd#mtg_DefinedBenefitPlanTotalAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_80ce8e3d-bf18-4ff6-b501-ff226d8833e4" xlink:to="loc_mtg_DefinedBenefitPlanTotalAmortization_9de7b336-c03e-4c7d-8766-5dbac5238f32" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_DefinedBenefitPlanNetPeriodicBenefitCostBeforeCostOfSettlementsAndCurtailments_91c362ef-44f9-4afd-9ee6-6046441ca5dd" xlink:href="mtg-20201231.xsd#mtg_DefinedBenefitPlanNetPeriodicBenefitCostBeforeCostOfSettlementsAndCurtailments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_80ce8e3d-bf18-4ff6-b501-ff226d8833e4" xlink:to="loc_mtg_DefinedBenefitPlanNetPeriodicBenefitCostBeforeCostOfSettlementsAndCurtailments_91c362ef-44f9-4afd-9ee6-6046441ca5dd" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlementsAndCurtailments1_4fa669af-fc39-44f0-92e5-0826d64bacfa" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlementsAndCurtailments1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_80ce8e3d-bf18-4ff6-b501-ff226d8833e4" xlink:to="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlementsAndCurtailments1_4fa669af-fc39-44f0-92e5-0826d64bacfa" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_e0639e02-fe0a-4d5d-8960-7e02840e6daf" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_80ce8e3d-bf18-4ff6-b501-ff226d8833e4" xlink:to="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_e0639e02-fe0a-4d5d-8960-7e02840e6daf" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_6f124f67-a01d-43c0-8afe-be25c853cf1a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_80ce8e3d-bf18-4ff6-b501-ff226d8833e4" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_6f124f67-a01d-43c0-8afe-be25c853cf1a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_f87cc566-905a-4c05-861a-647690098157" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_6f124f67-a01d-43c0-8afe-be25c853cf1a" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_f87cc566-905a-4c05-861a-647690098157" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_f87cc566-905a-4c05-861a-647690098157_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_f87cc566-905a-4c05-861a-647690098157" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_f87cc566-905a-4c05-861a-647690098157_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_027bd0db-76e7-4281-a3ef-6666a89782b0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_f87cc566-905a-4c05-861a-647690098157" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_027bd0db-76e7-4281-a3ef-6666a89782b0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPensionPlansPostretirementOrSupplementalPlansDefinedBenefitMember_c0c2a773-d8dd-4e6f-8d78-daeda42c6d44" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherPensionPlansPostretirementOrSupplementalPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_027bd0db-76e7-4281-a3ef-6666a89782b0" xlink:to="loc_us-gaap_OtherPensionPlansPostretirementOrSupplementalPlansDefinedBenefitMember_c0c2a773-d8dd-4e6f-8d78-daeda42c6d44" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_66b19969-c76f-4bad-b067-ee76878f18b1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_027bd0db-76e7-4281-a3ef-6666a89782b0" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_66b19969-c76f-4bad-b067-ee76878f18b1" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlansDevelopmentofFundedStatusDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#BenefitPlansDevelopmentofFundedStatusDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/BenefitPlansDevelopmentofFundedStatusDetails" xlink:type="extended" id="i9139e3985bd34938916badd346386809_BenefitPlansDevelopmentofFundedStatusDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_97d43bb0-03f7-45fb-8ad2-a3b866d35eec" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAccumulatedBenefitObligation_17de8058-9eca-4eb6-b035-0ca04c5cd04d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAccumulatedBenefitObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_97d43bb0-03f7-45fb-8ad2-a3b866d35eec" xlink:to="loc_us-gaap_DefinedBenefitPlanAccumulatedBenefitObligation_17de8058-9eca-4eb6-b035-0ca04c5cd04d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitObligation_0c0aaa46-3ea0-4363-83d4-2a5d0cf9f741" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanBenefitObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_97d43bb0-03f7-45fb-8ad2-a3b866d35eec" xlink:to="loc_us-gaap_DefinedBenefitPlanBenefitObligation_0c0aaa46-3ea0-4363-83d4-2a5d0cf9f741" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_64c753a0-a1c4-4c1d-bfc3-b976e2578bf0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanFairValueOfPlanAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_97d43bb0-03f7-45fb-8ad2-a3b866d35eec" xlink:to="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_64c753a0-a1c4-4c1d-bfc3-b976e2578bf0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_0ff4551e-9af2-4b38-9f36-74af88cdaa37" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanFundedStatusOfPlan"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_97d43bb0-03f7-45fb-8ad2-a3b866d35eec" xlink:to="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_0ff4551e-9af2-4b38-9f36-74af88cdaa37" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_bafb536c-f940-4ddb-b61f-c7bfd63a7328" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_97d43bb0-03f7-45fb-8ad2-a3b866d35eec" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_bafb536c-f940-4ddb-b61f-c7bfd63a7328" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_0c2c3916-0011-4fc8-b85e-230a36caa034" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_bafb536c-f940-4ddb-b61f-c7bfd63a7328" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_0c2c3916-0011-4fc8-b85e-230a36caa034" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_0c2c3916-0011-4fc8-b85e-230a36caa034_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_0c2c3916-0011-4fc8-b85e-230a36caa034" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_0c2c3916-0011-4fc8-b85e-230a36caa034_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_9a448024-1367-499e-8b38-ff103b6befbc" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_0c2c3916-0011-4fc8-b85e-230a36caa034" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_9a448024-1367-499e-8b38-ff103b6befbc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPensionPlansPostretirementOrSupplementalPlansDefinedBenefitMember_38b67b78-5659-4b0e-b009-b316dfd53302" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherPensionPlansPostretirementOrSupplementalPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_9a448024-1367-499e-8b38-ff103b6befbc" xlink:to="loc_us-gaap_OtherPensionPlansPostretirementOrSupplementalPlansDefinedBenefitMember_38b67b78-5659-4b0e-b009-b316dfd53302" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_a5290a5d-77c1-4a84-ae2d-a0b02217a452" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_9a448024-1367-499e-8b38-ff103b6befbc" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_a5290a5d-77c1-4a84-ae2d-a0b02217a452" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlansAccumulatedOtherComprehensiveIncomeDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#BenefitPlansAccumulatedOtherComprehensiveIncomeDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/BenefitPlansAccumulatedOtherComprehensiveIncomeDetails" xlink:type="extended" id="i998d7ff9cdb14a29a14ac6adcdf903d1_BenefitPlansAccumulatedOtherComprehensiveIncomeDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_412d0786-7a23-4fbe-9ea3-dc0d8d608f5f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesBeforeTax_a91c74ef-b83e-4382-b10c-4c6e504262a5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_412d0786-7a23-4fbe-9ea3-dc0d8d608f5f" xlink:to="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesBeforeTax_a91c74ef-b83e-4382-b10c-4c6e504262a5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetPriorServiceCostCreditBeforeTax_1a18ef7f-60b8-41fa-abef-ae68478ec622" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetPriorServiceCostCreditBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_412d0786-7a23-4fbe-9ea3-dc0d8d608f5f" xlink:to="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetPriorServiceCostCreditBeforeTax_1a18ef7f-60b8-41fa-abef-ae68478ec622" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetTransitionAssetsObligationsBeforeTax_d49755f1-62ce-4c3e-a59a-5d65d6756346" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetTransitionAssetsObligationsBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_412d0786-7a23-4fbe-9ea3-dc0d8d608f5f" xlink:to="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetTransitionAssetsObligationsBeforeTax_d49755f1-62ce-4c3e-a59a-5d65d6756346" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeBeforeTax_ee7df4b3-c6b5-4747-9fe8-13891096b130" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_412d0786-7a23-4fbe-9ea3-dc0d8d608f5f" xlink:to="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeBeforeTax_ee7df4b3-c6b5-4747-9fe8-13891096b130" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_408e9e7d-c765-420c-8b2f-0699a3576eaf" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_412d0786-7a23-4fbe-9ea3-dc0d8d608f5f" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_408e9e7d-c765-420c-8b2f-0699a3576eaf" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_03e30d3e-5bf5-4f55-a2cb-c51ba13881ed" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_408e9e7d-c765-420c-8b2f-0699a3576eaf" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_03e30d3e-5bf5-4f55-a2cb-c51ba13881ed" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_03e30d3e-5bf5-4f55-a2cb-c51ba13881ed_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_03e30d3e-5bf5-4f55-a2cb-c51ba13881ed" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_03e30d3e-5bf5-4f55-a2cb-c51ba13881ed_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_44f4c0a4-9694-4077-90d5-56aec407f05c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_03e30d3e-5bf5-4f55-a2cb-c51ba13881ed" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_44f4c0a4-9694-4077-90d5-56aec407f05c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPensionPlansPostretirementOrSupplementalPlansDefinedBenefitMember_d28ef242-dbcd-481f-9c53-b2914ed7d732" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherPensionPlansPostretirementOrSupplementalPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_44f4c0a4-9694-4077-90d5-56aec407f05c" xlink:to="loc_us-gaap_OtherPensionPlansPostretirementOrSupplementalPlansDefinedBenefitMember_d28ef242-dbcd-481f-9c53-b2914ed7d732" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_c4214298-c13f-41a2-9bc5-74a4d013f583" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_44f4c0a4-9694-4077-90d5-56aec407f05c" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_c4214298-c13f-41a2-9bc5-74a4d013f583" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlansChangeinProjectBenefitAccumulatedBenefitObligationsDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#BenefitPlansChangeinProjectBenefitAccumulatedBenefitObligationsDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/BenefitPlansChangeinProjectBenefitAccumulatedBenefitObligationsDetails" xlink:type="extended" id="i40d905c9769e471196a70f78537526f2_BenefitPlansChangeinProjectBenefitAccumulatedBenefitObligationsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_fbacd3f1-d2be-4107-bac8-687f404a9e57" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_c613d21a-242c-4f2d-8c89-e55c522df2c4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_fbacd3f1-d2be-4107-bac8-687f404a9e57" xlink:to="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_c613d21a-242c-4f2d-8c89-e55c522df2c4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitObligation_467aeed1-e17e-480f-8af2-c9602fda00a1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanBenefitObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_c613d21a-242c-4f2d-8c89-e55c522df2c4" xlink:to="loc_us-gaap_DefinedBenefitPlanBenefitObligation_467aeed1-e17e-480f-8af2-c9602fda00a1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanServiceCost_2db734a4-a55e-4514-b68c-e1b4903e1310" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanServiceCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_c613d21a-242c-4f2d-8c89-e55c522df2c4" xlink:to="loc_us-gaap_DefinedBenefitPlanServiceCost_2db734a4-a55e-4514-b68c-e1b4903e1310" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_5c713095-e66e-45cd-a36f-a09c23dcf917" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanInterestCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_c613d21a-242c-4f2d-8c89-e55c522df2c4" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_5c713095-e66e-45cd-a36f-a09c23dcf917" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitObligationContributionsByPlanParticipant_d584b62f-ffde-413c-afc5-2ed94a2ba662" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanBenefitObligationContributionsByPlanParticipant"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_c613d21a-242c-4f2d-8c89-e55c522df2c4" xlink:to="loc_us-gaap_DefinedBenefitPlanBenefitObligationContributionsByPlanParticipant_d584b62f-ffde-413c-afc5-2ed94a2ba662" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanActuarialGainLoss_0e3c4988-3dbd-461e-bf37-f820eaf42940" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanActuarialGainLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_c613d21a-242c-4f2d-8c89-e55c522df2c4" xlink:to="loc_us-gaap_DefinedBenefitPlanActuarialGainLoss_0e3c4988-3dbd-461e-bf37-f820eaf42940" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitObligationBenefitsPaid_23799eaf-7146-4a72-a79b-597652f8855c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanBenefitObligationBenefitsPaid"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_c613d21a-242c-4f2d-8c89-e55c522df2c4" xlink:to="loc_us-gaap_DefinedBenefitPlanBenefitObligationBenefitsPaid_23799eaf-7146-4a72-a79b-597652f8855c" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_DefinedBenefitPlanBenefitsPaidDirectlyByCompany_2125808b-10be-4bb4-b0c0-26daa0655037" xlink:href="mtg-20201231.xsd#mtg_DefinedBenefitPlanBenefitsPaidDirectlyByCompany"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_c613d21a-242c-4f2d-8c89-e55c522df2c4" xlink:to="loc_mtg_DefinedBenefitPlanBenefitsPaidDirectlyByCompany_2125808b-10be-4bb4-b0c0-26daa0655037" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanPlanAmendments_584834ec-4aec-4c10-b7b7-8b0aca1097a7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanPlanAmendments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_c613d21a-242c-4f2d-8c89-e55c522df2c4" xlink:to="loc_us-gaap_DefinedBenefitPlanPlanAmendments_584834ec-4aec-4c10-b7b7-8b0aca1097a7" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanOtherChanges_9754ec75-3316-4261-b024-9ea5b4cd003d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanOtherChanges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_c613d21a-242c-4f2d-8c89-e55c522df2c4" xlink:to="loc_us-gaap_DefinedBenefitPlanOtherChanges_9754ec75-3316-4261-b024-9ea5b4cd003d" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanSettlementsBenefitObligation_88e5813f-5608-4de2-839b-d759247df221" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanSettlementsBenefitObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_c613d21a-242c-4f2d-8c89-e55c522df2c4" xlink:to="loc_us-gaap_DefinedBenefitPlanSettlementsBenefitObligation_88e5813f-5608-4de2-839b-d759247df221" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitObligation_1b75ecd5-fb04-402f-a21f-03ff0912adc4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanBenefitObligation"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_0f61f5dd-d2b9-4d27-9ee4-97a3ddeb6c48" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_fbacd3f1-d2be-4107-bac8-687f404a9e57" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_0f61f5dd-d2b9-4d27-9ee4-97a3ddeb6c48" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_8520a396-96ed-4630-8bbd-208e54907fd9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_0f61f5dd-d2b9-4d27-9ee4-97a3ddeb6c48" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_8520a396-96ed-4630-8bbd-208e54907fd9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_8520a396-96ed-4630-8bbd-208e54907fd9_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_8520a396-96ed-4630-8bbd-208e54907fd9" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_8520a396-96ed-4630-8bbd-208e54907fd9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_d9fd56b4-b8cc-4149-bd9b-b4ae0c502476" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_8520a396-96ed-4630-8bbd-208e54907fd9" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_d9fd56b4-b8cc-4149-bd9b-b4ae0c502476" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPensionPlansPostretirementOrSupplementalPlansDefinedBenefitMember_a2480769-81cc-46fe-94c4-b12f7fe83ac1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherPensionPlansPostretirementOrSupplementalPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_d9fd56b4-b8cc-4149-bd9b-b4ae0c502476" xlink:to="loc_us-gaap_OtherPensionPlansPostretirementOrSupplementalPlansDefinedBenefitMember_a2480769-81cc-46fe-94c4-b12f7fe83ac1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_ca8dd59a-80c5-447f-8d8a-1334887bb4dc" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_d9fd56b4-b8cc-4149-bd9b-b4ae0c502476" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_ca8dd59a-80c5-447f-8d8a-1334887bb4dc" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlansChangeinPlanAssetsDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#BenefitPlansChangeinPlanAssetsDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/BenefitPlansChangeinPlanAssetsDetails" xlink:type="extended" id="i4064b1d308174f42ae03bb9b0bfaa6e2_BenefitPlansChangeinPlanAssetsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_f981037f-8ecc-4ae7-8609-402ab7ee45fd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_7f58a894-bab3-4dd4-b65d-0694ba917c0a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_f981037f-8ecc-4ae7-8609-402ab7ee45fd" xlink:to="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_7f58a894-bab3-4dd4-b65d-0694ba917c0a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_91336b9b-1a1e-4ee6-8b37-6a525ac6c3d8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanFairValueOfPlanAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_7f58a894-bab3-4dd4-b65d-0694ba917c0a" xlink:to="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_91336b9b-1a1e-4ee6-8b37-6a525ac6c3d8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanContributionsByEmployer_5b7019eb-0cac-49b6-b9e6-f30fb2dc8042" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanContributionsByEmployer"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_7f58a894-bab3-4dd4-b65d-0694ba917c0a" xlink:to="loc_us-gaap_DefinedBenefitPlanContributionsByEmployer_5b7019eb-0cac-49b6-b9e6-f30fb2dc8042" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanPlanAssetsContributionsByPlanParticipant_fb3db99d-c53b-4991-984d-f0d5f6eb2f32" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanPlanAssetsContributionsByPlanParticipant"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_7f58a894-bab3-4dd4-b65d-0694ba917c0a" xlink:to="loc_us-gaap_DefinedBenefitPlanPlanAssetsContributionsByPlanParticipant_fb3db99d-c53b-4991-984d-f0d5f6eb2f32" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanPlanAssetsBenefitsPaid_2c50a4f3-ac7b-4e02-bfd4-0c6bea42dba6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanPlanAssetsBenefitsPaid"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_7f58a894-bab3-4dd4-b65d-0694ba917c0a" xlink:to="loc_us-gaap_DefinedBenefitPlanPlanAssetsBenefitsPaid_2c50a4f3-ac7b-4e02-bfd4-0c6bea42dba6" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_DefinedBenefitPlanBenefitsPaidDirectlyByCompany_112b2d9b-4e84-434e-b39e-83802df325ba" xlink:href="mtg-20201231.xsd#mtg_DefinedBenefitPlanBenefitsPaidDirectlyByCompany"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_7f58a894-bab3-4dd4-b65d-0694ba917c0a" xlink:to="loc_mtg_DefinedBenefitPlanBenefitsPaidDirectlyByCompany_112b2d9b-4e84-434e-b39e-83802df325ba" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanActualReturnOnPlanAssets_b6f1cc77-1bd9-4856-aa3c-9aa5c1990ac4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanActualReturnOnPlanAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_7f58a894-bab3-4dd4-b65d-0694ba917c0a" xlink:to="loc_us-gaap_DefinedBenefitPlanActualReturnOnPlanAssets_b6f1cc77-1bd9-4856-aa3c-9aa5c1990ac4" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssetsPeriodIncreaseDecrease_4356e2c5-849b-444c-9757-f488b3ba4698" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanFairValueOfPlanAssetsPeriodIncreaseDecrease"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_7f58a894-bab3-4dd4-b65d-0694ba917c0a" xlink:to="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssetsPeriodIncreaseDecrease_4356e2c5-849b-444c-9757-f488b3ba4698" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_ede01d61-c33d-45c2-9c5f-36f2a099952f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanFairValueOfPlanAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_fd9131b6-d20a-4ae0-9cf4-715ba6bfac01" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_f981037f-8ecc-4ae7-8609-402ab7ee45fd" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_fd9131b6-d20a-4ae0-9cf4-715ba6bfac01" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_de259339-3efc-4813-beed-d4aae08e5bb3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_fd9131b6-d20a-4ae0-9cf4-715ba6bfac01" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_de259339-3efc-4813-beed-d4aae08e5bb3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_de259339-3efc-4813-beed-d4aae08e5bb3_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_de259339-3efc-4813-beed-d4aae08e5bb3" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_de259339-3efc-4813-beed-d4aae08e5bb3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_9fd6bad9-f958-476e-bfc0-979108346f3f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_de259339-3efc-4813-beed-d4aae08e5bb3" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_9fd6bad9-f958-476e-bfc0-979108346f3f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPensionPlansPostretirementOrSupplementalPlansDefinedBenefitMember_f75d7a16-cb71-42b1-9c2b-8859e8b22f43" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherPensionPlansPostretirementOrSupplementalPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_9fd6bad9-f958-476e-bfc0-979108346f3f" xlink:to="loc_us-gaap_OtherPensionPlansPostretirementOrSupplementalPlansDefinedBenefitMember_f75d7a16-cb71-42b1-9c2b-8859e8b22f43" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_02be4176-d854-4bfa-bcff-ea59c38a391b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_9fd6bad9-f958-476e-bfc0-979108346f3f" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_02be4176-d854-4bfa-bcff-ea59c38a391b" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlansChangeinAccumulatedOtherComprehensiveIncomeAOCIandExpectedAmortizationDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#BenefitPlansChangeinAccumulatedOtherComprehensiveIncomeAOCIandExpectedAmortizationDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/BenefitPlansChangeinAccumulatedOtherComprehensiveIncomeAOCIandExpectedAmortizationDetails" xlink:type="extended" id="i8b51de87a17340218b8bddfe10cee979_BenefitPlansChangeinAccumulatedOtherComprehensiveIncomeAOCIandExpectedAmortizationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_74e10251-c161-4978-8c68-2ed81a862a0a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_490d27f5-217c-40a9-aa21-ce44af9a20bb" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AOCIAttributableToParentNetOfTaxRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_74e10251-c161-4978-8c68-2ed81a862a0a" xlink:to="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_490d27f5-217c-40a9-aa21-ce44af9a20bb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeBeforeTax_4cf68b21-c047-43b3-86f9-3767466cf7a8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_490d27f5-217c-40a9-aa21-ce44af9a20bb" xlink:to="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeBeforeTax_4cf68b21-c047-43b3-86f9-3767466cf7a8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAmortizationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetPriorServiceCostCreditBeforeTax_7e76ff7d-8621-4362-898f-50897947dd5d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossAmortizationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetPriorServiceCostCreditBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_490d27f5-217c-40a9-aa21-ce44af9a20bb" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAmortizationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetPriorServiceCostCreditBeforeTax_7e76ff7d-8621-4362-898f-50897947dd5d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossBeforeTax_01abee72-9745-4b71-8b8c-6b830f7d1482" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_490d27f5-217c-40a9-aa21-ce44af9a20bb" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossBeforeTax_01abee72-9745-4b71-8b8c-6b830f7d1482" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlanNetPriorServiceCostCreditArisingDuringPeriodBeforeTax_c49ad206-318b-460a-b210-14aa66bbeabe" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeDefinedBenefitPlanNetPriorServiceCostCreditArisingDuringPeriodBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_490d27f5-217c-40a9-aa21-ce44af9a20bb" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlanNetPriorServiceCostCreditArisingDuringPeriodBeforeTax_c49ad206-318b-460a-b210-14aa66bbeabe" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansNetUnamortizedGainLossArisingDuringPeriodBeforeTax_02788b57-37dd-4235-93e7-b636b5a24288" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansNetUnamortizedGainLossArisingDuringPeriodBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_490d27f5-217c-40a9-aa21-ce44af9a20bb" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansNetUnamortizedGainLossArisingDuringPeriodBeforeTax_02788b57-37dd-4235-93e7-b636b5a24288" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansNetSettlementGainLossArisingDuringPeriodBeforeTax_88a58b56-0de4-43a3-ae21-9a01f650bba9" xlink:href="mtg-20201231.xsd#mtg_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansNetSettlementGainLossArisingDuringPeriodBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_490d27f5-217c-40a9-aa21-ce44af9a20bb" xlink:to="loc_mtg_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansNetSettlementGainLossArisingDuringPeriodBeforeTax_88a58b56-0de4-43a3-ae21-9a01f650bba9" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeBeforeTax_285b223f-79a4-4edf-9864-2800c9a3592a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeBeforeTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_91718fc1-1897-4aa5-af95-571fd3cb5924" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_74e10251-c161-4978-8c68-2ed81a862a0a" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_91718fc1-1897-4aa5-af95-571fd3cb5924" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_ad4c45af-b620-448a-b769-45ef898de81e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_91718fc1-1897-4aa5-af95-571fd3cb5924" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_ad4c45af-b620-448a-b769-45ef898de81e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_ad4c45af-b620-448a-b769-45ef898de81e_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_ad4c45af-b620-448a-b769-45ef898de81e" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_ad4c45af-b620-448a-b769-45ef898de81e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_3f70eb41-c6c5-43e5-8a60-d39d894c1d51" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_ad4c45af-b620-448a-b769-45ef898de81e" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_3f70eb41-c6c5-43e5-8a60-d39d894c1d51" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPensionPlansPostretirementOrSupplementalPlansDefinedBenefitMember_01bb0aaf-5f9f-4769-81bf-1b8a7d3bcdf9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherPensionPlansPostretirementOrSupplementalPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_3f70eb41-c6c5-43e5-8a60-d39d894c1d51" xlink:to="loc_us-gaap_OtherPensionPlansPostretirementOrSupplementalPlansDefinedBenefitMember_01bb0aaf-5f9f-4769-81bf-1b8a7d3bcdf9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_f60a4634-b7e5-4921-ad03-103d240d8c5a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_3f70eb41-c6c5-43e5-8a60-d39d894c1d51" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_f60a4634-b7e5-4921-ad03-103d240d8c5a" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlansActuarialAssumptionsandYearEndAssetAllocationsDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#BenefitPlansActuarialAssumptionsandYearEndAssetAllocationsDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/BenefitPlansActuarialAssumptionsandYearEndAssetAllocationsDetails" xlink:type="extended" id="i3c08324d176f40fe853c67248f7907f6_BenefitPlansActuarialAssumptionsandYearEndAssetAllocationsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_b6b7cbef-d77d-4aa2-b991-b0bf6687f5f1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate_6f50fe5a-78ea-4ebf-8401-f887d9ce9c92" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_b6b7cbef-d77d-4aa2-b991-b0bf6687f5f1" xlink:to="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate_6f50fe5a-78ea-4ebf-8401-f887d9ce9c92" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationRateOfCompensationIncrease_a6178356-09cf-4953-a9b0-12913afb6084" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationRateOfCompensationIncrease"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_b6b7cbef-d77d-4aa2-b991-b0bf6687f5f1" xlink:to="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationRateOfCompensationIncrease_a6178356-09cf-4953-a9b0-12913afb6084" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationWeightedAverageInterestCreditingRate_a739c2c5-07f1-4c20-a502-1e29201fa14f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationWeightedAverageInterestCreditingRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_b6b7cbef-d77d-4aa2-b991-b0bf6687f5f1" xlink:to="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationWeightedAverageInterestCreditingRate_a739c2c5-07f1-4c20-a502-1e29201fa14f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostDiscountRate_1bfd3e1b-85cf-4e2e-b622-b0b063850668" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostDiscountRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_b6b7cbef-d77d-4aa2-b991-b0bf6687f5f1" xlink:to="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostDiscountRate_1bfd3e1b-85cf-4e2e-b622-b0b063850668" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets_c74ded78-7fbe-4c4e-9f80-f1daa7dfbc5b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_b6b7cbef-d77d-4aa2-b991-b0bf6687f5f1" xlink:to="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets_c74ded78-7fbe-4c4e-9f80-f1daa7dfbc5b" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostRateOfCompensationIncrease_e65873ac-723f-43a4-bc60-5293430a01be" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostRateOfCompensationIncrease"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_b6b7cbef-d77d-4aa2-b991-b0bf6687f5f1" xlink:to="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostRateOfCompensationIncrease_e65873ac-723f-43a4-bc60-5293430a01be" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanHealthCareCostTrendRateAssumedNextFiscalYear_1a057573-7d69-4399-be34-5f219aadafe7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanHealthCareCostTrendRateAssumedNextFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_b6b7cbef-d77d-4aa2-b991-b0bf6687f5f1" xlink:to="loc_us-gaap_DefinedBenefitPlanHealthCareCostTrendRateAssumedNextFiscalYear_1a057573-7d69-4399-be34-5f219aadafe7" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanUltimateHealthCareCostTrendRate1_ceeed3e8-cb75-4230-bed5-6a5a9593fd4b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanUltimateHealthCareCostTrendRate1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_b6b7cbef-d77d-4aa2-b991-b0bf6687f5f1" xlink:to="loc_us-gaap_DefinedBenefitPlanUltimateHealthCareCostTrendRate1_ceeed3e8-cb75-4230-bed5-6a5a9593fd4b" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanWeightedAverageAssetAllocations_1cd0a2bf-c4a5-43be-ae37-6d496cb3ee91" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanWeightedAverageAssetAllocations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_b6b7cbef-d77d-4aa2-b991-b0bf6687f5f1" xlink:to="loc_us-gaap_DefinedBenefitPlanWeightedAverageAssetAllocations_1cd0a2bf-c4a5-43be-ae37-6d496cb3ee91" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_72d1e8ef-d6e9-4c09-a629-255df390db2f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_b6b7cbef-d77d-4aa2-b991-b0bf6687f5f1" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_72d1e8ef-d6e9-4c09-a629-255df390db2f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_42734c06-eac3-423f-8187-1d42add78e90" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_72d1e8ef-d6e9-4c09-a629-255df390db2f" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_42734c06-eac3-423f-8187-1d42add78e90" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_42734c06-eac3-423f-8187-1d42add78e90_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_42734c06-eac3-423f-8187-1d42add78e90" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_42734c06-eac3-423f-8187-1d42add78e90_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_39384cfb-a486-4e8d-8653-b4c7f15303bd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_42734c06-eac3-423f-8187-1d42add78e90" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_39384cfb-a486-4e8d-8653-b4c7f15303bd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPensionPlansPostretirementOrSupplementalPlansDefinedBenefitMember_2dc1cecd-759f-4daf-b87f-aa9732aa201f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherPensionPlansPostretirementOrSupplementalPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_39384cfb-a486-4e8d-8653-b4c7f15303bd" xlink:to="loc_us-gaap_OtherPensionPlansPostretirementOrSupplementalPlansDefinedBenefitMember_2dc1cecd-759f-4daf-b87f-aa9732aa201f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_208fbaaa-f7e9-4b5b-b479-241f02735168" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_39384cfb-a486-4e8d-8653-b4c7f15303bd" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_208fbaaa-f7e9-4b5b-b479-241f02735168" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionPlansDefinedBenefitMember_3ec7d43c-47a6-42c5-aeb8-2992c37f3a7f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PensionPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_39384cfb-a486-4e8d-8653-b4c7f15303bd" xlink:to="loc_us-gaap_PensionPlansDefinedBenefitMember_3ec7d43c-47a6-42c5-aeb8-2992c37f3a7f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_4bc10b8f-dbc9-4c46-a0f7-2562c2a8ef88" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_72d1e8ef-d6e9-4c09-a629-255df390db2f" xlink:to="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_4bc10b8f-dbc9-4c46-a0f7-2562c2a8ef88" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanAssetCategoriesDomain_4bc10b8f-dbc9-4c46-a0f7-2562c2a8ef88_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PlanAssetCategoriesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_4bc10b8f-dbc9-4c46-a0f7-2562c2a8ef88" xlink:to="loc_us-gaap_PlanAssetCategoriesDomain_4bc10b8f-dbc9-4c46-a0f7-2562c2a8ef88_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanAssetCategoriesDomain_3c73ff1c-c0b4-448e-9840-89201e50f11e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PlanAssetCategoriesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_4bc10b8f-dbc9-4c46-a0f7-2562c2a8ef88" xlink:to="loc_us-gaap_PlanAssetCategoriesDomain_3c73ff1c-c0b4-448e-9840-89201e50f11e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanEquitySecuritiesMember_85261bbe-64a8-4d63-9f1f-275c7c7e9dfe" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanEquitySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_3c73ff1c-c0b4-448e-9840-89201e50f11e" xlink:to="loc_us-gaap_DefinedBenefitPlanEquitySecuritiesMember_85261bbe-64a8-4d63-9f1f-275c7c7e9dfe" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDebtSecurityMember_671fd076-0290-4be0-ba86-5da16f0356ab" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanDebtSecurityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_3c73ff1c-c0b4-448e-9840-89201e50f11e" xlink:to="loc_us-gaap_DefinedBenefitPlanDebtSecurityMember_671fd076-0290-4be0-ba86-5da16f0356ab" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlansFairValueofPlanAssetsDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#BenefitPlansFairValueofPlanAssetsDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/BenefitPlansFairValueofPlanAssetsDetails" xlink:type="extended" id="id33a70e0188c495e997195e1f62fe75e_BenefitPlansFairValueofPlanAssetsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_8de2ff01-37fb-468b-81fe-dabe28e04fd5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_1823f67d-8cd8-46a9-8a4c-725a25a47fbb" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanFairValueOfPlanAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_8de2ff01-37fb-468b-81fe-dabe28e04fd5" xlink:to="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_1823f67d-8cd8-46a9-8a4c-725a25a47fbb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_9972f82d-c2c9-4361-b2d3-cbbdbd5db4b6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_8de2ff01-37fb-468b-81fe-dabe28e04fd5" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_9972f82d-c2c9-4361-b2d3-cbbdbd5db4b6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_1e329c51-35be-4762-9339-773ae5349674" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_9972f82d-c2c9-4361-b2d3-cbbdbd5db4b6" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_1e329c51-35be-4762-9339-773ae5349674" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_1e329c51-35be-4762-9339-773ae5349674_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_1e329c51-35be-4762-9339-773ae5349674" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_1e329c51-35be-4762-9339-773ae5349674_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_7274119b-6ad0-4095-84a9-6337818dd649" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_1e329c51-35be-4762-9339-773ae5349674" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_7274119b-6ad0-4095-84a9-6337818dd649" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionPlansDefinedBenefitMember_271e23b8-44f5-41aa-ac4d-a56e2cd69805" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PensionPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_7274119b-6ad0-4095-84a9-6337818dd649" xlink:to="loc_us-gaap_PensionPlansDefinedBenefitMember_271e23b8-44f5-41aa-ac4d-a56e2cd69805" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_38277c01-4c08-4728-892b-d0ea5e7410f5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_7274119b-6ad0-4095-84a9-6337818dd649" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_38277c01-4c08-4728-892b-d0ea5e7410f5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_6b02422e-38f0-4549-8139-312cdf9118bb" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_9972f82d-c2c9-4361-b2d3-cbbdbd5db4b6" xlink:to="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_6b02422e-38f0-4549-8139-312cdf9118bb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanAssetCategoriesDomain_6b02422e-38f0-4549-8139-312cdf9118bb_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PlanAssetCategoriesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_6b02422e-38f0-4549-8139-312cdf9118bb" xlink:to="loc_us-gaap_PlanAssetCategoriesDomain_6b02422e-38f0-4549-8139-312cdf9118bb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanAssetCategoriesDomain_3ee4c697-8ab4-480f-808c-18f7047e8bbc" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PlanAssetCategoriesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_6b02422e-38f0-4549-8139-312cdf9118bb" xlink:to="loc_us-gaap_PlanAssetCategoriesDomain_3ee4c697-8ab4-480f-808c-18f7047e8bbc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_DomesticMutualFundsMember_8a19b384-5d3c-474d-bbcc-2157ef5eef25" xlink:href="mtg-20201231.xsd#mtg_DomesticMutualFundsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_3ee4c697-8ab4-480f-808c-18f7047e8bbc" xlink:to="loc_mtg_DomesticMutualFundsMember_8a19b384-5d3c-474d-bbcc-2157ef5eef25" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_78d4473d-306f-45be-b7d5-23e775e9ce98" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CorporateDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_3ee4c697-8ab4-480f-808c-18f7047e8bbc" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_78d4473d-306f-45be-b7d5-23e775e9ce98" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USTreasuryAndGovernmentMember_80b66f0b-c862-488b-8468-b969b53b5c8b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_USTreasuryAndGovernmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_3ee4c697-8ab4-480f-808c-18f7047e8bbc" xlink:to="loc_us-gaap_USTreasuryAndGovernmentMember_80b66f0b-c862-488b-8468-b969b53b5c8b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USStatesAndPoliticalSubdivisionsMember_3cc7c4c6-f19d-43a2-a966-725925aadd87" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_USStatesAndPoliticalSubdivisionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_3ee4c697-8ab4-480f-808c-18f7047e8bbc" xlink:to="loc_us-gaap_USStatesAndPoliticalSubdivisionsMember_3cc7c4c6-f19d-43a2-a966-725925aadd87" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_ForeignDebtSecuritiesMember_bfcc7f8c-bac0-4585-b650-2d485d22e724" xlink:href="mtg-20201231.xsd#mtg_ForeignDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_3ee4c697-8ab4-480f-808c-18f7047e8bbc" xlink:to="loc_mtg_ForeignDebtSecuritiesMember_bfcc7f8c-bac0-4585-b650-2d485d22e724" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_PooledEquityAccountsMember_93148780-2a67-45aa-a53d-cb0892c1fdf9" xlink:href="mtg-20201231.xsd#mtg_PooledEquityAccountsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_3ee4c697-8ab4-480f-808c-18f7047e8bbc" xlink:to="loc_mtg_PooledEquityAccountsMember_93148780-2a67-45aa-a53d-cb0892c1fdf9" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_InternationalMutualFundsMember_54460bc4-61ec-4b8d-837b-16ee7710eee4" xlink:href="mtg-20201231.xsd#mtg_InternationalMutualFundsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_3ee4c697-8ab4-480f-808c-18f7047e8bbc" xlink:to="loc_mtg_InternationalMutualFundsMember_54460bc4-61ec-4b8d-837b-16ee7710eee4" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_2974b724-11ab-4e81-8818-1331d9e3b4fd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_9972f82d-c2c9-4361-b2d3-cbbdbd5db4b6" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_2974b724-11ab-4e81-8818-1331d9e3b4fd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_2974b724-11ab-4e81-8818-1331d9e3b4fd_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_2974b724-11ab-4e81-8818-1331d9e3b4fd" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_2974b724-11ab-4e81-8818-1331d9e3b4fd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_7343b5a6-5c4e-435c-927e-f882c71e00e0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_2974b724-11ab-4e81-8818-1331d9e3b4fd" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_7343b5a6-5c4e-435c-927e-f882c71e00e0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_8218c4c7-b8d0-497b-8a31-fbdd509f5bce" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_7343b5a6-5c4e-435c-927e-f882c71e00e0" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_8218c4c7-b8d0-497b-8a31-fbdd509f5bce" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_04cf028f-15e3-48dc-9ef5-7e55ff69aa7e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_7343b5a6-5c4e-435c-927e-f882c71e00e0" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_04cf028f-15e3-48dc-9ef5-7e55ff69aa7e" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlansAdditionalDisclosuresDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#BenefitPlansAdditionalDisclosuresDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/BenefitPlansAdditionalDisclosuresDetails" xlink:type="extended" id="ica8494042bc24a2083579ed6b572a5c6_BenefitPlansAdditionalDisclosuresDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_42148746-21b4-4143-8220-1bc68995a19a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanPlanAssetsTargetAllocationPercentage_96d0fb79-5663-4855-b0cb-7b855bf7e41b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanPlanAssetsTargetAllocationPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_42148746-21b4-4143-8220-1bc68995a19a" xlink:to="loc_us-gaap_DefinedBenefitPlanPlanAssetsTargetAllocationPercentage_96d0fb79-5663-4855-b0cb-7b855bf7e41b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanContributionsByEmployer_4b1c8744-cf4d-47cd-b6a0-254b7b416f15" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanContributionsByEmployer"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_42148746-21b4-4143-8220-1bc68995a19a" xlink:to="loc_us-gaap_DefinedBenefitPlanContributionsByEmployer_4b1c8744-cf4d-47cd-b6a0-254b7b416f15" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureEmployerContributionsNextFiscalYear_f6bf801f-0b80-48eb-b4b8-9677c28e3c0d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureEmployerContributionsNextFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_42148746-21b4-4143-8220-1bc68995a19a" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureEmployerContributionsNextFiscalYear_f6bf801f-0b80-48eb-b4b8-9677c28e3c0d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_BenefitPlanPaymentsTotalPlanPayments_e1b8734c-37ad-4703-9041-c6f471286269" xlink:href="mtg-20201231.xsd#mtg_BenefitPlanPaymentsTotalPlanPayments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_42148746-21b4-4143-8220-1bc68995a19a" xlink:to="loc_mtg_BenefitPlanPaymentsTotalPlanPayments_e1b8734c-37ad-4703-9041-c6f471286269" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths_59798143-4592-4586-a316-e739be8df70d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_42148746-21b4-4143-8220-1bc68995a19a" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths_59798143-4592-4586-a316-e739be8df70d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo_6058361f-2d08-470a-bdca-0fb1ca4b51b8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_42148746-21b4-4143-8220-1bc68995a19a" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo_6058361f-2d08-470a-bdca-0fb1ca4b51b8" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree_35ef31c0-2006-43d1-9a07-4699fb2c7077" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_42148746-21b4-4143-8220-1bc68995a19a" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree_35ef31c0-2006-43d1-9a07-4699fb2c7077" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour_328418a5-0f44-4556-97ab-8d7d865ca87b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_42148746-21b4-4143-8220-1bc68995a19a" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour_328418a5-0f44-4556-97ab-8d7d865ca87b" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive_47d76977-f81e-4e30-bda6-12ebcf5797fa" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_42148746-21b4-4143-8220-1bc68995a19a" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive_47d76977-f81e-4e30-bda6-12ebcf5797fa" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter_6a243409-aa5a-49a4-8008-3bee6554bce4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_42148746-21b4-4143-8220-1bc68995a19a" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter_6a243409-aa5a-49a4-8008-3bee6554bce4" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_b93953b4-4bc2-4105-8ca3-0b26724aee7b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_42148746-21b4-4143-8220-1bc68995a19a" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_b93953b4-4bc2-4105-8ca3-0b26724aee7b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_aa6b1208-ed03-4dab-a3e7-c6df68f251fc" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_b93953b4-4bc2-4105-8ca3-0b26724aee7b" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_aa6b1208-ed03-4dab-a3e7-c6df68f251fc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_aa6b1208-ed03-4dab-a3e7-c6df68f251fc_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_aa6b1208-ed03-4dab-a3e7-c6df68f251fc" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_aa6b1208-ed03-4dab-a3e7-c6df68f251fc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_53839427-17fa-42bb-9316-57f8f045813d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_aa6b1208-ed03-4dab-a3e7-c6df68f251fc" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_53839427-17fa-42bb-9316-57f8f045813d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_1e5713ac-cf0c-4425-9508-d7aef67b253e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_53839427-17fa-42bb-9316-57f8f045813d" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_1e5713ac-cf0c-4425-9508-d7aef67b253e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPensionPlansPostretirementOrSupplementalPlansDefinedBenefitMember_12e94624-7301-470b-951a-cd4c4bc1d870" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherPensionPlansPostretirementOrSupplementalPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_53839427-17fa-42bb-9316-57f8f045813d" xlink:to="loc_us-gaap_OtherPensionPlansPostretirementOrSupplementalPlansDefinedBenefitMember_12e94624-7301-470b-951a-cd4c4bc1d870" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_17511a9a-6093-43c3-9fb0-c35bf5c64853" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_b93953b4-4bc2-4105-8ca3-0b26724aee7b" xlink:to="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_17511a9a-6093-43c3-9fb0-c35bf5c64853" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanAssetCategoriesDomain_17511a9a-6093-43c3-9fb0-c35bf5c64853_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PlanAssetCategoriesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_17511a9a-6093-43c3-9fb0-c35bf5c64853" xlink:to="loc_us-gaap_PlanAssetCategoriesDomain_17511a9a-6093-43c3-9fb0-c35bf5c64853_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanAssetCategoriesDomain_6fcdc3e5-6b05-4e33-a4c0-23bf658eb9ee" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PlanAssetCategoriesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_17511a9a-6093-43c3-9fb0-c35bf5c64853" xlink:to="loc_us-gaap_PlanAssetCategoriesDomain_6fcdc3e5-6b05-4e33-a4c0-23bf658eb9ee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanEquitySecuritiesMember_a4f3e0c2-2fa7-4f48-9fd2-e340e77f8200" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanEquitySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_6fcdc3e5-6b05-4e33-a4c0-23bf658eb9ee" xlink:to="loc_us-gaap_DefinedBenefitPlanEquitySecuritiesMember_a4f3e0c2-2fa7-4f48-9fd2-e340e77f8200" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealEstateMember_9a87d885-d2b9-4ec7-921d-50d462bbcb34" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RealEstateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_6fcdc3e5-6b05-4e33-a4c0-23bf658eb9ee" xlink:to="loc_us-gaap_RealEstateMember_9a87d885-d2b9-4ec7-921d-50d462bbcb34" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommoditiesInvestmentMember_04bde262-0340-483b-8b4f-39fb76a96e07" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommoditiesInvestmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_6fcdc3e5-6b05-4e33-a4c0-23bf658eb9ee" xlink:to="loc_us-gaap_CommoditiesInvestmentMember_04bde262-0340-483b-8b4f-39fb76a96e07" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FixedIncomeFundsMember_dcd5f91c-9bf9-45f4-9bd0-6dccc2d0d6cf" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FixedIncomeFundsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_6fcdc3e5-6b05-4e33-a4c0-23bf658eb9ee" xlink:to="loc_us-gaap_FixedIncomeFundsMember_dcd5f91c-9bf9-45f4-9bd0-6dccc2d0d6cf" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_92b2a117-d9a6-4f0b-aa98-adca7525e63d" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_b93953b4-4bc2-4105-8ca3-0b26724aee7b" xlink:to="loc_srt_RangeAxis_92b2a117-d9a6-4f0b-aa98-adca7525e63d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_92b2a117-d9a6-4f0b-aa98-adca7525e63d_default" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_92b2a117-d9a6-4f0b-aa98-adca7525e63d" xlink:to="loc_srt_RangeMember_92b2a117-d9a6-4f0b-aa98-adca7525e63d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_8b2dfe6c-8d4d-4ad4-8e82-dfd9a43da0c2" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_92b2a117-d9a6-4f0b-aa98-adca7525e63d" xlink:to="loc_srt_RangeMember_8b2dfe6c-8d4d-4ad4-8e82-dfd9a43da0c2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_6c7f0d64-442d-4d85-8438-dc12ae38bf98" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_8b2dfe6c-8d4d-4ad4-8e82-dfd9a43da0c2" xlink:to="loc_srt_MinimumMember_6c7f0d64-442d-4d85-8438-dc12ae38bf98" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_346097b8-ce92-4bd5-a726-7ae6ddaec48f" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_8b2dfe6c-8d4d-4ad4-8e82-dfd9a43da0c2" xlink:to="loc_srt_MaximumMember_346097b8-ce92-4bd5-a726-7ae6ddaec48f" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlansNarrativeDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#BenefitPlansNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/BenefitPlansNarrativeDetails" xlink:type="extended" id="ieca19328afb14f1aa7cd0b05350ca3e0_BenefitPlansNarrativeDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_818e058a-7d6c-4e9c-aa63-2f258042cdcd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_MinimumPercentagesOfGainLossConsiderForAmortization_cb2b8515-5bac-4141-bfa4-5fa61e7989ec" xlink:href="mtg-20201231.xsd#mtg_MinimumPercentagesOfGainLossConsiderForAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_818e058a-7d6c-4e9c-aa63-2f258042cdcd" xlink:to="loc_mtg_MinimumPercentagesOfGainLossConsiderForAmortization_cb2b8515-5bac-4141-bfa4-5fa61e7989ec" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_DefinedBenefitPlanBenefitsPaidFromFundLumpSum_963e1537-f2da-40a8-bc8e-af3e95dd13d8" xlink:href="mtg-20201231.xsd#mtg_DefinedBenefitPlanBenefitsPaidFromFundLumpSum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_818e058a-7d6c-4e9c-aa63-2f258042cdcd" xlink:to="loc_mtg_DefinedBenefitPlanBenefitsPaidFromFundLumpSum_963e1537-f2da-40a8-bc8e-af3e95dd13d8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_DefinedBenefitPlanMinimumValueOfOutstandingNoncallableBondsUsedInHypotheticalCashFlowBondMatchingExercise_32b32568-a4b2-4c86-a759-1d9fffadddc4" xlink:href="mtg-20201231.xsd#mtg_DefinedBenefitPlanMinimumValueOfOutstandingNoncallableBondsUsedInHypotheticalCashFlowBondMatchingExercise"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_818e058a-7d6c-4e9c-aa63-2f258042cdcd" xlink:to="loc_mtg_DefinedBenefitPlanMinimumValueOfOutstandingNoncallableBondsUsedInHypotheticalCashFlowBondMatchingExercise_32b32568-a4b2-4c86-a759-1d9fffadddc4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_DefinedBenefitPlanFutureEarningsPeriodUsedInDeterminingExpectedAverageRateOfEarnings_fea0e372-022b-4825-b9d5-2eae25078703" xlink:href="mtg-20201231.xsd#mtg_DefinedBenefitPlanFutureEarningsPeriodUsedInDeterminingExpectedAverageRateOfEarnings"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_818e058a-7d6c-4e9c-aa63-2f258042cdcd" xlink:to="loc_mtg_DefinedBenefitPlanFutureEarningsPeriodUsedInDeterminingExpectedAverageRateOfEarnings_fea0e372-022b-4825-b9d5-2eae25078703" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanPlanAssetsTargetAllocationPercentage_e490f6f4-a23f-484e-880a-f7b0ccf8cfac" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanPlanAssetsTargetAllocationPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_818e058a-7d6c-4e9c-aa63-2f258042cdcd" xlink:to="loc_us-gaap_DefinedBenefitPlanPlanAssetsTargetAllocationPercentage_e490f6f4-a23f-484e-880a-f7b0ccf8cfac" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_MinimumPercentageReturnShouldExceedGrowthInConsumerPriceIndexAnnually_7df4a673-4252-4974-af05-7de2a3ab81df" xlink:href="mtg-20201231.xsd#mtg_MinimumPercentageReturnShouldExceedGrowthInConsumerPriceIndexAnnually"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_818e058a-7d6c-4e9c-aa63-2f258042cdcd" xlink:to="loc_mtg_MinimumPercentageReturnShouldExceedGrowthInConsumerPriceIndexAnnually_7df4a673-4252-4974-af05-7de2a3ab81df" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_DefinedBenefitPlanMaximuminvestmentininternationalmutualfunds_ad65bfab-94cd-4d83-a326-e7a0fc9d2eaf" xlink:href="mtg-20201231.xsd#mtg_DefinedBenefitPlanMaximuminvestmentininternationalmutualfunds"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_818e058a-7d6c-4e9c-aa63-2f258042cdcd" xlink:to="loc_mtg_DefinedBenefitPlanMaximuminvestmentininternationalmutualfunds_ad65bfab-94cd-4d83-a326-e7a0fc9d2eaf" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_Percentofinternationalmutualfundsequityallocationinemergingmarkets_13e3f008-ce32-4ab8-ac05-9fe4e5e031e5" xlink:href="mtg-20201231.xsd#mtg_Percentofinternationalmutualfundsequityallocationinemergingmarkets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_818e058a-7d6c-4e9c-aa63-2f258042cdcd" xlink:to="loc_mtg_Percentofinternationalmutualfundsequityallocationinemergingmarkets_13e3f008-ce32-4ab8-ac05-9fe4e5e031e5" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_PercentofinternationalmutualfundsequityallocationincompaniesprimarilybasedinEuropeandPacificBasin_96fc3d2a-f8b8-4d5b-b756-0c667b410046" xlink:href="mtg-20201231.xsd#mtg_PercentofinternationalmutualfundsequityallocationincompaniesprimarilybasedinEuropeandPacificBasin"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_818e058a-7d6c-4e9c-aa63-2f258042cdcd" xlink:to="loc_mtg_PercentofinternationalmutualfundsequityallocationincompaniesprimarilybasedinEuropeandPacificBasin_96fc3d2a-f8b8-4d5b-b756-0c667b410046" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_DiscretionaryProfitSharingContributionAsPercentageOfParticipantsEligibleCompensation_03ccada6-ce30-46f5-a0ef-549552df18b7" xlink:href="mtg-20201231.xsd#mtg_DiscretionaryProfitSharingContributionAsPercentageOfParticipantsEligibleCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_818e058a-7d6c-4e9c-aa63-2f258042cdcd" xlink:to="loc_mtg_DiscretionaryProfitSharingContributionAsPercentageOfParticipantsEligibleCompensation_03ccada6-ce30-46f5-a0ef-549552df18b7" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedContributionPlanEmployerMatchingContributionPercentOfMatch_0470355d-2faf-4f62-acee-f6e281e14870" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedContributionPlanEmployerMatchingContributionPercentOfMatch"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_818e058a-7d6c-4e9c-aa63-2f258042cdcd" xlink:to="loc_us-gaap_DefinedContributionPlanEmployerMatchingContributionPercentOfMatch_0470355d-2faf-4f62-acee-f6e281e14870" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedContributionPlanEmployerMatchingContributionPercent_5d287c91-04f1-4c1b-befc-5f23aefb6fbc" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedContributionPlanEmployerMatchingContributionPercent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_818e058a-7d6c-4e9c-aa63-2f258042cdcd" xlink:to="loc_us-gaap_DefinedContributionPlanEmployerMatchingContributionPercent_5d287c91-04f1-4c1b-befc-5f23aefb6fbc" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedContributionPlanCostRecognized_435c9986-9618-45c1-9718-8195f0ff1a10" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedContributionPlanCostRecognized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_818e058a-7d6c-4e9c-aa63-2f258042cdcd" xlink:to="loc_us-gaap_DefinedContributionPlanCostRecognized_435c9986-9618-45c1-9718-8195f0ff1a10" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_dc6f1f65-5473-4a3b-91b5-cab73a29b4cd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_818e058a-7d6c-4e9c-aa63-2f258042cdcd" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_dc6f1f65-5473-4a3b-91b5-cab73a29b4cd" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_cfd0e2da-30fd-4e37-aea0-77055c1e9362" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_dc6f1f65-5473-4a3b-91b5-cab73a29b4cd" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_cfd0e2da-30fd-4e37-aea0-77055c1e9362" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_cfd0e2da-30fd-4e37-aea0-77055c1e9362_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_cfd0e2da-30fd-4e37-aea0-77055c1e9362" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_cfd0e2da-30fd-4e37-aea0-77055c1e9362_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_70c65ba7-6662-4509-a51b-ca2f55865264" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_cfd0e2da-30fd-4e37-aea0-77055c1e9362" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_70c65ba7-6662-4509-a51b-ca2f55865264" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionPlansDefinedBenefitMember_7adc3f93-265d-4aa5-a9d0-3ad5458a3073" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PensionPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_70c65ba7-6662-4509-a51b-ca2f55865264" xlink:to="loc_us-gaap_PensionPlansDefinedBenefitMember_7adc3f93-265d-4aa5-a9d0-3ad5458a3073" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_ad5b5dec-58c3-4a81-8bec-f39bfd81fded" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_70c65ba7-6662-4509-a51b-ca2f55865264" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_ad5b5dec-58c3-4a81-8bec-f39bfd81fded" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_b47d7e5d-3d2d-4140-bfad-d8425f0969f3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_dc6f1f65-5473-4a3b-91b5-cab73a29b4cd" xlink:to="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_b47d7e5d-3d2d-4140-bfad-d8425f0969f3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanAssetCategoriesDomain_b47d7e5d-3d2d-4140-bfad-d8425f0969f3_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PlanAssetCategoriesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_b47d7e5d-3d2d-4140-bfad-d8425f0969f3" xlink:to="loc_us-gaap_PlanAssetCategoriesDomain_b47d7e5d-3d2d-4140-bfad-d8425f0969f3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanAssetCategoriesDomain_caa4db7e-4d3d-4fa6-bfea-362c4755ea05" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PlanAssetCategoriesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_b47d7e5d-3d2d-4140-bfad-d8425f0969f3" xlink:to="loc_us-gaap_PlanAssetCategoriesDomain_caa4db7e-4d3d-4fa6-bfea-362c4755ea05" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanEquitySecuritiesMember_ba287382-7f33-4b33-bf1c-4c68b7c69f5a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanEquitySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_caa4db7e-4d3d-4fa6-bfea-362c4755ea05" xlink:to="loc_us-gaap_DefinedBenefitPlanEquitySecuritiesMember_ba287382-7f33-4b33-bf1c-4c68b7c69f5a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_5f9baf46-0547-496e-a532-07dddc1b06e0" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_dc6f1f65-5473-4a3b-91b5-cab73a29b4cd" xlink:to="loc_srt_RangeAxis_5f9baf46-0547-496e-a532-07dddc1b06e0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_5f9baf46-0547-496e-a532-07dddc1b06e0_default" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_5f9baf46-0547-496e-a532-07dddc1b06e0" xlink:to="loc_srt_RangeMember_5f9baf46-0547-496e-a532-07dddc1b06e0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_9f96dbdd-c035-4160-a4dd-4afd9c4e0d68" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_5f9baf46-0547-496e-a532-07dddc1b06e0" xlink:to="loc_srt_RangeMember_9f96dbdd-c035-4160-a4dd-4afd9c4e0d68" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_9fd3370f-e229-4ce4-8adb-d4f53b81233c" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_9f96dbdd-c035-4160-a4dd-4afd9c4e0d68" xlink:to="loc_srt_MaximumMember_9fd3370f-e229-4ce4-8adb-d4f53b81233c" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/IncomeTaxes" xlink:type="simple" xlink:href="mtg-20201231.xsd#IncomeTaxes"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/IncomeTaxes" xlink:type="extended" id="i7f43af9bfdf5401d88446fabc0561586_IncomeTaxes"/>
  <link:roleRef roleURI="http://www.mgic.com/role/IncomeTaxesTables" xlink:type="simple" xlink:href="mtg-20201231.xsd#IncomeTaxesTables"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/IncomeTaxesTables" xlink:type="extended" id="i16fab82a7b914a1b909f726fe2bf1464_IncomeTaxesTables"/>
  <link:roleRef roleURI="http://www.mgic.com/role/IncomeTaxesDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#IncomeTaxesDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/IncomeTaxesDetails" xlink:type="extended" id="iea14c3dee3b54b99a6802768bdcd2772_IncomeTaxesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ValuationAllowanceLineItems_fd148fd4-ead8-492d-b76b-3912b43fd8ea" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ValuationAllowanceLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComponentsOfDeferredTaxAssetsAndLiabilitiesAbstract_8ea5be37-0119-4c8b-80c0-82adc7d45821" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ComponentsOfDeferredTaxAssetsAndLiabilitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationAllowanceLineItems_fd148fd4-ead8-492d-b76b-3912b43fd8ea" xlink:to="loc_us-gaap_ComponentsOfDeferredTaxAssetsAndLiabilitiesAbstract_8ea5be37-0119-4c8b-80c0-82adc7d45821" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_ca92c81e-17a7-4710-8ccd-4b3429dd201e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxAssetsAndLiabilitiesAbstract_8ea5be37-0119-4c8b-80c0-82adc7d45821" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_ca92c81e-17a7-4710-8ccd-4b3429dd201e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_f3e09b17-b820-4e00-816a-abbefdfabfaa" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxAssetsAndLiabilitiesAbstract_8ea5be37-0119-4c8b-80c0-82adc7d45821" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_f3e09b17-b820-4e00-816a-abbefdfabfaa" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_729aef61-da82-41c8-bddf-a0d413fdd2e5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxAssetsAndLiabilitiesAbstract_8ea5be37-0119-4c8b-80c0-82adc7d45821" xlink:to="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_729aef61-da82-41c8-bddf-a0d413fdd2e5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilities_10eed172-99a8-4b40-b43a-de4b9218c37f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxAssetsAndLiabilitiesAbstract_8ea5be37-0119-4c8b-80c0-82adc7d45821" xlink:to="loc_us-gaap_DeferredTaxLiabilities_10eed172-99a8-4b40-b43a-de4b9218c37f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComponentsOfDeferredTaxLiabilitiesAbstract_885de11f-911f-400b-8add-40e68a98d5ed" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ComponentsOfDeferredTaxLiabilitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationAllowanceLineItems_fd148fd4-ead8-492d-b76b-3912b43fd8ea" xlink:to="loc_us-gaap_ComponentsOfDeferredTaxLiabilitiesAbstract_885de11f-911f-400b-8add-40e68a98d5ed" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsUnearnedPremiumsReserve_11922988-ff96-44e0-be13-e5caa65e3b29" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsUnearnedPremiumsReserve"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxLiabilitiesAbstract_885de11f-911f-400b-8add-40e68a98d5ed" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsUnearnedPremiumsReserve_11922988-ff96-44e0-be13-e5caa65e3b29" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_DeferredTaxLiabilitiesTaxDeferredExpenseCompensationandBenefitsEmployeeBenefits_5af48946-fcef-43b2-9e44-efa3ef9e0b2f" xlink:href="mtg-20201231.xsd#mtg_DeferredTaxLiabilitiesTaxDeferredExpenseCompensationandBenefitsEmployeeBenefits"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxLiabilitiesAbstract_885de11f-911f-400b-8add-40e68a98d5ed" xlink:to="loc_mtg_DeferredTaxLiabilitiesTaxDeferredExpenseCompensationandBenefitsEmployeeBenefits_5af48946-fcef-43b2-9e44-efa3ef9e0b2f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsLossReserves_3b029d73-5178-4b08-82b8-28fc406cac85" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsLossReserves"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxLiabilitiesAbstract_885de11f-911f-400b-8add-40e68a98d5ed" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsLossReserves_3b029d73-5178-4b08-82b8-28fc406cac85" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_DeferredTaxAssetsLiabilitiesNetOtherComprehensiveIncome_5f9562c3-2848-43f6-a734-15ccd286cc57" xlink:href="mtg-20201231.xsd#mtg_DeferredTaxAssetsLiabilitiesNetOtherComprehensiveIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxLiabilitiesAbstract_885de11f-911f-400b-8add-40e68a98d5ed" xlink:to="loc_mtg_DeferredTaxAssetsLiabilitiesNetOtherComprehensiveIncome_5f9562c3-2848-43f6-a734-15ccd286cc57" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_DeferredTaxAssetsMortgageRelatedInvestments_1ed99849-3cda-4c51-89cd-a85e251104a8" xlink:href="mtg-20201231.xsd#mtg_DeferredTaxAssetsMortgageRelatedInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxLiabilitiesAbstract_885de11f-911f-400b-8add-40e68a98d5ed" xlink:to="loc_mtg_DeferredTaxAssetsMortgageRelatedInvestments_1ed99849-3cda-4c51-89cd-a85e251104a8" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefits_0335e7af-1722-46e9-8ac4-45e714d00869" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefits"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxLiabilitiesAbstract_885de11f-911f-400b-8add-40e68a98d5ed" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefits_0335e7af-1722-46e9-8ac4-45e714d00869" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsAlternativeMinimumTax_00fd1c31-de74-4c7e-8305-b2e261752dde" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsAlternativeMinimumTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxLiabilitiesAbstract_885de11f-911f-400b-8add-40e68a98d5ed" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsAlternativeMinimumTax_00fd1c31-de74-4c7e-8305-b2e261752dde" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_DeferredTaxAssetsLiabilitiesNetOther_b913af55-5046-4fdf-a646-682d89704333" xlink:href="mtg-20201231.xsd#mtg_DeferredTaxAssetsLiabilitiesNetOther"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxLiabilitiesAbstract_885de11f-911f-400b-8add-40e68a98d5ed" xlink:to="loc_mtg_DeferredTaxAssetsLiabilitiesNetOther_b913af55-5046-4fdf-a646-682d89704333" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComponentsOfIncomeTaxExpenseBenefitContinuingOperationsAbstract_6b96df07-715a-4fa8-a34b-6eb7432ba919" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ComponentsOfIncomeTaxExpenseBenefitContinuingOperationsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationAllowanceLineItems_fd148fd4-ead8-492d-b76b-3912b43fd8ea" xlink:to="loc_us-gaap_ComponentsOfIncomeTaxExpenseBenefitContinuingOperationsAbstract_6b96df07-715a-4fa8-a34b-6eb7432ba919" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_8d7c3444-195f-4cec-9198-4f8e744dd98a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfIncomeTaxExpenseBenefitContinuingOperationsAbstract_6b96df07-715a-4fa8-a34b-6eb7432ba919" xlink:to="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_8d7c3444-195f-4cec-9198-4f8e744dd98a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_c071460b-265d-4f74-aa93-8f8dc59a30d9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfIncomeTaxExpenseBenefitContinuingOperationsAbstract_6b96df07-715a-4fa8-a34b-6eb7432ba919" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_c071460b-265d-4f74-aa93-8f8dc59a30d9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherTaxExpenseBenefit_621c15ee-68df-4717-aa1b-938ac6fc16eb" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfIncomeTaxExpenseBenefitContinuingOperationsAbstract_6b96df07-715a-4fa8-a34b-6eb7432ba919" xlink:to="loc_us-gaap_OtherTaxExpenseBenefit_621c15ee-68df-4717-aa1b-938ac6fc16eb" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_d8e4c50d-d5dc-4fde-977b-897ec4eec78d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfIncomeTaxExpenseBenefitContinuingOperationsAbstract_6b96df07-715a-4fa8-a34b-6eb7432ba919" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_d8e4c50d-d5dc-4fde-977b-897ec4eec78d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxesPaid_55b36909-8e0d-404b-b092-954a84d54646" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxesPaid"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationAllowanceLineItems_fd148fd4-ead8-492d-b76b-3912b43fd8ea" xlink:to="loc_us-gaap_IncomeTaxesPaid_55b36909-8e0d-404b-b092-954a84d54646" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_TaxAndLossBondsHeld_d49481f1-dc7a-40d6-bbc3-e439b22351c0" xlink:href="mtg-20201231.xsd#mtg_TaxAndLossBondsHeld"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationAllowanceLineItems_fd148fd4-ead8-492d-b76b-3912b43fd8ea" xlink:to="loc_mtg_TaxAndLossBondsHeld_d49481f1-dc7a-40d6-bbc3-e439b22351c0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract_2ebb9c29-39c1-46ca-87fa-6e30d29e49e9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationAllowanceLineItems_fd148fd4-ead8-492d-b76b-3912b43fd8ea" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract_2ebb9c29-39c1-46ca-87fa-6e30d29e49e9" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_5ab82605-d1a0-4f81-be03-5843aee03a92" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract_2ebb9c29-39c1-46ca-87fa-6e30d29e49e9" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_5ab82605-d1a0-4f81-be03-5843aee03a92" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationPriorYearIncomeTaxes_6049a42d-84ce-4122-8983-b5a82bb725f9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationPriorYearIncomeTaxes"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract_2ebb9c29-39c1-46ca-87fa-6e30d29e49e9" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationPriorYearIncomeTaxes_6049a42d-84ce-4122-8983-b5a82bb725f9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxExemptIncome_f3662fb0-5c2c-41fc-85d8-18ea62b88cfd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxExemptIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract_2ebb9c29-39c1-46ca-87fa-6e30d29e49e9" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxExemptIncome_f3662fb0-5c2c-41fc-85d8-18ea62b88cfd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_b9def60c-05c8-4f0c-a509-95642a6da77e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract_2ebb9c29-39c1-46ca-87fa-6e30d29e49e9" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_b9def60c-05c8-4f0c-a509-95642a6da77e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_609a8274-3000-4884-82d7-b230ae376739" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract_2ebb9c29-39c1-46ca-87fa-6e30d29e49e9" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_609a8274-3000-4884-82d7-b230ae376739" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_TaxAndInterestPaymentsForIRSSettlement_b944d89a-5444-4b44-a15d-90a223deff6e" xlink:href="mtg-20201231.xsd#mtg_TaxAndInterestPaymentsForIRSSettlement"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationAllowanceLineItems_fd148fd4-ead8-492d-b76b-3912b43fd8ea" xlink:to="loc_mtg_TaxAndInterestPaymentsForIRSSettlement_b944d89a-5444-4b44-a15d-90a223deff6e" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecognizedTaxBenefits_74d1873a-864a-4c8c-bbd6-e763563a943c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_UnrecognizedTaxBenefits"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationAllowanceLineItems_fd148fd4-ead8-492d-b76b-3912b43fd8ea" xlink:to="loc_us-gaap_UnrecognizedTaxBenefits_74d1873a-864a-4c8c-bbd6-e763563a943c" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ValuationAllowanceTable_812afbc4-ce8d-4ab9-99f6-fd61015bdaca" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ValuationAllowanceTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ValuationAllowanceLineItems_fd148fd4-ead8-492d-b76b-3912b43fd8ea" xlink:to="loc_us-gaap_ValuationAllowanceTable_812afbc4-ce8d-4ab9-99f6-fd61015bdaca" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityAxis_34e89c14-62c7-41ec-ab90-abd0f5f84657" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxAuthorityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ValuationAllowanceTable_812afbc4-ce8d-4ab9-99f6-fd61015bdaca" xlink:to="loc_us-gaap_IncomeTaxAuthorityAxis_34e89c14-62c7-41ec-ab90-abd0f5f84657" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_34e89c14-62c7-41ec-ab90-abd0f5f84657_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_34e89c14-62c7-41ec-ab90-abd0f5f84657" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_34e89c14-62c7-41ec-ab90-abd0f5f84657_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_eed0dd0c-2fd2-4373-b286-2f96fa69fb30" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_34e89c14-62c7-41ec-ab90-abd0f5f84657" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_eed0dd0c-2fd2-4373-b286-2f96fa69fb30" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DomesticCountryMember_15a328f4-45d1-4248-a10b-2c23aeece907" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DomesticCountryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_eed0dd0c-2fd2-4373-b286-2f96fa69fb30" xlink:to="loc_us-gaap_DomesticCountryMember_15a328f4-45d1-4248-a10b-2c23aeece907" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StateAndLocalJurisdictionMember_82d7146d-50e9-4ccc-b93f-7acd228c5355" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StateAndLocalJurisdictionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_eed0dd0c-2fd2-4373-b286-2f96fa69fb30" xlink:to="loc_us-gaap_StateAndLocalJurisdictionMember_82d7146d-50e9-4ccc-b93f-7acd228c5355" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/ShareholdersEquity" xlink:type="simple" xlink:href="mtg-20201231.xsd#ShareholdersEquity"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/ShareholdersEquity" xlink:type="extended" id="i44828d295e7e488598667a128535a035_ShareholdersEquity"/>
  <link:roleRef roleURI="http://www.mgic.com/role/ShareholdersEquityDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#ShareholdersEquityDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/ShareholdersEquityDetails" xlink:type="extended" id="i8ac789da6f0d4f08b0f9957ed6dd31ef_ShareholdersEquityDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockLineItems_ea7686c5-a971-4cc6-92f4-9a1bb037b30c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_d22738e1-19c1-46c4-a5fc-d7c61080c4b2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TreasuryStockSharesAcquired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_ea7686c5-a971-4cc6-92f4-9a1bb037b30c" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_d22738e1-19c1-46c4-a5fc-d7c61080c4b2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockAcquiredAverageCostPerShare_f21ccea9-250b-4d76-afe0-112ff2715230" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TreasuryStockAcquiredAverageCostPerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_ea7686c5-a971-4cc6-92f4-9a1bb037b30c" xlink:to="loc_us-gaap_TreasuryStockAcquiredAverageCostPerShare_f21ccea9-250b-4d76-afe0-112ff2715230" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_b331ae97-0931-45c0-837b-d7e8bc5cff71" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_ea7686c5-a971-4cc6-92f4-9a1bb037b30c" xlink:to="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_b331ae97-0931-45c0-837b-d7e8bc5cff71" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockDividendsPerShareCashPaid_247223da-cf31-4193-bc65-4207b851bc1e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockDividendsPerShareCashPaid"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_ea7686c5-a971-4cc6-92f4-9a1bb037b30c" xlink:to="loc_us-gaap_CommonStockDividendsPerShareCashPaid_247223da-cf31-4193-bc65-4207b851bc1e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsCash_4004489f-082d-45cb-82e5-d3660726753e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DividendsCash"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_ea7686c5-a971-4cc6-92f4-9a1bb037b30c" xlink:to="loc_us-gaap_DividendsCash_4004489f-082d-45cb-82e5-d3660726753e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockDividendsPerShareDeclared_f68cb9e8-e4f3-4539-9efb-3a3b6c0d73bf" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockDividendsPerShareDeclared"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_ea7686c5-a971-4cc6-92f4-9a1bb037b30c" xlink:to="loc_us-gaap_CommonStockDividendsPerShareDeclared_f68cb9e8-e4f3-4539-9efb-3a3b6c0d73bf" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfStockByClassTable_a3b0b8de-be6f-4ad8-93d5-baa91669e091" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfStockByClassTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ClassOfStockLineItems_ea7686c5-a971-4cc6-92f4-9a1bb037b30c" xlink:to="loc_us-gaap_ScheduleOfStockByClassTable_a3b0b8de-be6f-4ad8-93d5-baa91669e091" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_fe494f3a-1cb7-4d93-b564-312f5f43e53e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_a3b0b8de-be6f-4ad8-93d5-baa91669e091" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_fe494f3a-1cb7-4d93-b564-312f5f43e53e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_fe494f3a-1cb7-4d93-b564-312f5f43e53e_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_fe494f3a-1cb7-4d93-b564-312f5f43e53e" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_fe494f3a-1cb7-4d93-b564-312f5f43e53e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_7cf9a324-6fb8-4cb2-85f5-d5310a235fd3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_fe494f3a-1cb7-4d93-b564-312f5f43e53e" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_7cf9a324-6fb8-4cb2-85f5-d5310a235fd3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventMember_bc52ba4e-cf79-408c-bba7-2281c84f0398" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_7cf9a324-6fb8-4cb2-85f5-d5310a235fd3" xlink:to="loc_us-gaap_SubsequentEventMember_bc52ba4e-cf79-408c-bba7-2281c84f0398" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/StatutoryInformation" xlink:type="simple" xlink:href="mtg-20201231.xsd#StatutoryInformation"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/StatutoryInformation" xlink:type="extended" id="i30fa07e9c4134f839ddefed818e60fad_StatutoryInformation"/>
  <link:roleRef roleURI="http://www.mgic.com/role/StatutoryInformationTables" xlink:type="simple" xlink:href="mtg-20201231.xsd#StatutoryInformationTables"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/StatutoryInformationTables" xlink:type="extended" id="i0060cfaf169a4e23ba19f2e4a3f5ef0e_StatutoryInformationTables"/>
  <link:roleRef roleURI="http://www.mgic.com/role/StatutoryInformationNarrativeDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#StatutoryInformationNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/StatutoryInformationNarrativeDetails" xlink:type="extended" id="i8a16cbd757774ce6a7b3c8d82430f127_StatutoryInformationNarrativeDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionLineItems_0a860c61-8f48-4a17-a993-bb7f2a2de7db" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyTransactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_StatutoryCapitalRequirementsAbstract_12351491-3ddd-49c3-a9d1-6ee7d3dbbc10" xlink:href="mtg-20201231.xsd#mtg_StatutoryCapitalRequirementsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_0a860c61-8f48-4a17-a993-bb7f2a2de7db" xlink:to="loc_mtg_StatutoryCapitalRequirementsAbstract_12351491-3ddd-49c3-a9d1-6ee7d3dbbc10" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_PercentageOfPremiumsEarnedRequiredToBeMaintainedAsContingencyLossReserves_c71938fd-0d9f-463a-b167-c54670d0d4b6" xlink:href="mtg-20201231.xsd#mtg_PercentageOfPremiumsEarnedRequiredToBeMaintainedAsContingencyLossReserves"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtg_StatutoryCapitalRequirementsAbstract_12351491-3ddd-49c3-a9d1-6ee7d3dbbc10" xlink:to="loc_mtg_PercentageOfPremiumsEarnedRequiredToBeMaintainedAsContingencyLossReserves_c71938fd-0d9f-463a-b167-c54670d0d4b6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_PeriodThatContingencyLossReservesMustBeHeldInYears_2d949b2e-3016-4d82-a5b3-9503a73f107b" xlink:href="mtg-20201231.xsd#mtg_PeriodThatContingencyLossReservesMustBeHeldInYears"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtg_StatutoryCapitalRequirementsAbstract_12351491-3ddd-49c3-a9d1-6ee7d3dbbc10" xlink:to="loc_mtg_PeriodThatContingencyLossReservesMustBeHeldInYears_2d949b2e-3016-4d82-a5b3-9503a73f107b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_PercentageOfNetPremiumsEarnedThatIncurredLossesMustExceedToEnableEarlyWithdrawalsFromContingencyLossReserves_69adada0-5798-4ae0-8361-2bde3bd573ec" xlink:href="mtg-20201231.xsd#mtg_PercentageOfNetPremiumsEarnedThatIncurredLossesMustExceedToEnableEarlyWithdrawalsFromContingencyLossReserves"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtg_StatutoryCapitalRequirementsAbstract_12351491-3ddd-49c3-a9d1-6ee7d3dbbc10" xlink:to="loc_mtg_PercentageOfNetPremiumsEarnedThatIncurredLossesMustExceedToEnableEarlyWithdrawalsFromContingencyLossReserves_69adada0-5798-4ae0-8361-2bde3bd573ec" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_ContingencyReserveWithdrawal_47dec8d7-47fd-4b27-9781-d9b90b81dce8" xlink:href="mtg-20201231.xsd#mtg_ContingencyReserveWithdrawal"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtg_StatutoryCapitalRequirementsAbstract_12351491-3ddd-49c3-a9d1-6ee7d3dbbc10" xlink:to="loc_mtg_ContingencyReserveWithdrawal_47dec8d7-47fd-4b27-9781-d9b90b81dce8" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_NumberOfJurisdictionsWithRiskToCapitalRequirements_1ce01604-374a-4ca8-a885-11ed3b688545" xlink:href="mtg-20201231.xsd#mtg_NumberOfJurisdictionsWithRiskToCapitalRequirements"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtg_StatutoryCapitalRequirementsAbstract_12351491-3ddd-49c3-a9d1-6ee7d3dbbc10" xlink:to="loc_mtg_NumberOfJurisdictionsWithRiskToCapitalRequirements_1ce01604-374a-4ca8-a885-11ed3b688545" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DescriptionOfRegulatoryCapitalRequirementsUnderInsuranceRegulations_8542ab0f-1576-4406-b29a-2f886a8d77b9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DescriptionOfRegulatoryCapitalRequirementsUnderInsuranceRegulations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtg_StatutoryCapitalRequirementsAbstract_12351491-3ddd-49c3-a9d1-6ee7d3dbbc10" xlink:to="loc_us-gaap_DescriptionOfRegulatoryCapitalRequirementsUnderInsuranceRegulations_8542ab0f-1576-4406-b29a-2f886a8d77b9" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_Risktocapitalratioatendofperiod_9bb276d6-db2a-429e-8b3a-fb7e3eb74cdf" xlink:href="mtg-20201231.xsd#mtg_Risktocapitalratioatendofperiod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtg_StatutoryCapitalRequirementsAbstract_12351491-3ddd-49c3-a9d1-6ee7d3dbbc10" xlink:to="loc_mtg_Risktocapitalratioatendofperiod_9bb276d6-db2a-429e-8b3a-fb7e3eb74cdf" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_StatutoryCapitalRequirementsRiskToCapitalRatio_e76fa5d2-38e9-4f74-a306-247c699d1a13" xlink:href="mtg-20201231.xsd#mtg_StatutoryCapitalRequirementsRiskToCapitalRatio"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtg_StatutoryCapitalRequirementsAbstract_12351491-3ddd-49c3-a9d1-6ee7d3dbbc10" xlink:to="loc_mtg_StatutoryCapitalRequirementsRiskToCapitalRatio_e76fa5d2-38e9-4f74-a306-247c699d1a13" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_AmountOfPolicyholdersPositionAboveOrBelowRequiredRegulatoryMinimum_a2078478-b41d-423f-9c4a-935c3a76b848" xlink:href="mtg-20201231.xsd#mtg_AmountOfPolicyholdersPositionAboveOrBelowRequiredRegulatoryMinimum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtg_StatutoryCapitalRequirementsAbstract_12351491-3ddd-49c3-a9d1-6ee7d3dbbc10" xlink:to="loc_mtg_AmountOfPolicyholdersPositionAboveOrBelowRequiredRegulatoryMinimum_a2078478-b41d-423f-9c4a-935c3a76b848" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_AmountOfRequiredMpp_0c2b91b6-c3a8-4c4d-91ee-dc9f7388c3e0" xlink:href="mtg-20201231.xsd#mtg_AmountOfRequiredMpp"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtg_StatutoryCapitalRequirementsAbstract_12351491-3ddd-49c3-a9d1-6ee7d3dbbc10" xlink:to="loc_mtg_AmountOfRequiredMpp_0c2b91b6-c3a8-4c4d-91ee-dc9f7388c3e0" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_Risktocapitalratioofcombinedinsuranceoperationsatendofperiod_f7031737-7643-4b91-a37f-5e232ed0d013" xlink:href="mtg-20201231.xsd#mtg_Risktocapitalratioofcombinedinsuranceoperationsatendofperiod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtg_StatutoryCapitalRequirementsAbstract_12351491-3ddd-49c3-a9d1-6ee7d3dbbc10" xlink:to="loc_mtg_Risktocapitalratioofcombinedinsuranceoperationsatendofperiod_f7031737-7643-4b91-a37f-5e232ed0d013" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_StatutoryCapitalRequirementsRiskToCapitalRatioForCombinedInsuranceOperations_02a0d7ff-fa27-44d7-b364-64de55c9cc46" xlink:href="mtg-20201231.xsd#mtg_StatutoryCapitalRequirementsRiskToCapitalRatioForCombinedInsuranceOperations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtg_StatutoryCapitalRequirementsAbstract_12351491-3ddd-49c3-a9d1-6ee7d3dbbc10" xlink:to="loc_mtg_StatutoryCapitalRequirementsRiskToCapitalRatioForCombinedInsuranceOperations_02a0d7ff-fa27-44d7-b364-64de55c9cc46" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashDividendsPaidToParentCompany_7c827e8e-154b-43f9-a7f1-5409f3cbf4dd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashDividendsPaidToParentCompany"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtg_StatutoryCapitalRequirementsAbstract_12351491-3ddd-49c3-a9d1-6ee7d3dbbc10" xlink:to="loc_us-gaap_CashDividendsPaidToParentCompany_7c827e8e-154b-43f9-a7f1-5409f3cbf4dd" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_DividendDistributionOfInterestOfConvertibleJuniorSubordinatedDebentures_e913d706-7e6c-4b8e-9099-bca4bcac31ff" xlink:href="mtg-20201231.xsd#mtg_DividendDistributionOfInterestOfConvertibleJuniorSubordinatedDebentures"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtg_StatutoryCapitalRequirementsAbstract_12351491-3ddd-49c3-a9d1-6ee7d3dbbc10" xlink:to="loc_mtg_DividendDistributionOfInterestOfConvertibleJuniorSubordinatedDebentures_e913d706-7e6c-4b8e-9099-bca4bcac31ff" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_PercentageOfStatutoryPolicyholdersSurplusUsedToDetermineMaximumAllowableDividends_70869291-1050-49e2-91ca-f9484d2f5ff6" xlink:href="mtg-20201231.xsd#mtg_PercentageOfStatutoryPolicyholdersSurplusUsedToDetermineMaximumAllowableDividends"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtg_StatutoryCapitalRequirementsAbstract_12351491-3ddd-49c3-a9d1-6ee7d3dbbc10" xlink:to="loc_mtg_PercentageOfStatutoryPolicyholdersSurplusUsedToDetermineMaximumAllowableDividends_70869291-1050-49e2-91ca-f9484d2f5ff6" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_StatutoryAccountingPracticesStatutoryAmountAvailableForDividendPaymentsWithoutRegulatoryApprovalMeasurementMeasurementPeriod_7886d094-1f34-45c5-bb5b-bc4a12e475b6" xlink:href="mtg-20201231.xsd#mtg_StatutoryAccountingPracticesStatutoryAmountAvailableForDividendPaymentsWithoutRegulatoryApprovalMeasurementMeasurementPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtg_StatutoryCapitalRequirementsAbstract_12351491-3ddd-49c3-a9d1-6ee7d3dbbc10" xlink:to="loc_mtg_StatutoryAccountingPracticesStatutoryAmountAvailableForDividendPaymentsWithoutRegulatoryApprovalMeasurementMeasurementPeriod_7886d094-1f34-45c5-bb5b-bc4a12e475b6" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_StatutoryAccountingPracticesStatutoryAmountAvailableforDividendPaymentswithoutRegulatoryApprovalMeasurementDividendPaymentPeriod_a0a4d0bd-53ac-42cc-973e-4be1ec77c777" xlink:href="mtg-20201231.xsd#mtg_StatutoryAccountingPracticesStatutoryAmountAvailableforDividendPaymentswithoutRegulatoryApprovalMeasurementDividendPaymentPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtg_StatutoryCapitalRequirementsAbstract_12351491-3ddd-49c3-a9d1-6ee7d3dbbc10" xlink:to="loc_mtg_StatutoryAccountingPracticesStatutoryAmountAvailableforDividendPaymentswithoutRegulatoryApprovalMeasurementDividendPaymentPeriod_a0a4d0bd-53ac-42cc-973e-4be1ec77c777" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_StatutoryAccountingPracticesStatutoryNetIncomeAdjustment_3f55f3d9-77f0-4068-a2cc-9f03006abddf" xlink:href="mtg-20201231.xsd#mtg_StatutoryAccountingPracticesStatutoryNetIncomeAdjustment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtg_StatutoryCapitalRequirementsAbstract_12351491-3ddd-49c3-a9d1-6ee7d3dbbc10" xlink:to="loc_mtg_StatutoryAccountingPracticesStatutoryNetIncomeAdjustment_3f55f3d9-77f0-4068-a2cc-9f03006abddf" xlink:type="arc" order="18"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatutoryAccountingPracticesStatutoryNetIncomeAmount_d9d5a1b0-086a-43e7-bce7-fad8a793e550" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatutoryAccountingPracticesStatutoryNetIncomeAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtg_StatutoryCapitalRequirementsAbstract_12351491-3ddd-49c3-a9d1-6ee7d3dbbc10" xlink:to="loc_us-gaap_StatutoryAccountingPracticesStatutoryNetIncomeAmount_d9d5a1b0-086a-43e7-bce7-fad8a793e550" xlink:type="arc" order="19"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatutoryAccountingPracticesStatutoryCapitalAndSurplusBalance_e63a79dd-fc7d-4b65-9d42-364aa84b7c34" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatutoryAccountingPracticesStatutoryCapitalAndSurplusBalance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtg_StatutoryCapitalRequirementsAbstract_12351491-3ddd-49c3-a9d1-6ee7d3dbbc10" xlink:to="loc_us-gaap_StatutoryAccountingPracticesStatutoryCapitalAndSurplusBalance_e63a79dd-fc7d-4b65-9d42-364aa84b7c34" xlink:type="arc" order="20"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_RealizedStatutoryLossFromAffiliate_a5de9a3e-d5b7-4f28-af1a-1efa5684cb91" xlink:href="mtg-20201231.xsd#mtg_RealizedStatutoryLossFromAffiliate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtg_StatutoryCapitalRequirementsAbstract_12351491-3ddd-49c3-a9d1-6ee7d3dbbc10" xlink:to="loc_mtg_RealizedStatutoryLossFromAffiliate_a5de9a3e-d5b7-4f28-af1a-1efa5684cb91" xlink:type="arc" order="21"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_d2a595d1-eb46-4269-8778-c74a2d225bb4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_0a860c61-8f48-4a17-a993-bb7f2a2de7db" xlink:to="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_d2a595d1-eb46-4269-8778-c74a2d225bb4" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_3473577f-0de4-4595-89f0-1045d5f86485" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_d2a595d1-eb46-4269-8778-c74a2d225bb4" xlink:to="loc_dei_LegalEntityAxis_3473577f-0de4-4595-89f0-1045d5f86485" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_3473577f-0de4-4595-89f0-1045d5f86485_default" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_3473577f-0de4-4595-89f0-1045d5f86485" xlink:to="loc_dei_EntityDomain_3473577f-0de4-4595-89f0-1045d5f86485_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_180a9887-c6ac-479c-9a3e-c4904042ffde" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_3473577f-0de4-4595-89f0-1045d5f86485" xlink:to="loc_dei_EntityDomain_180a9887-c6ac-479c-9a3e-c4904042ffde" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_MortgageGuarantyInsuranceCorporationMember_3c583e19-9516-4683-98e1-ac62dc1a3d11" xlink:href="mtg-20201231.xsd#mtg_MortgageGuarantyInsuranceCorporationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_180a9887-c6ac-479c-9a3e-c4904042ffde" xlink:to="loc_mtg_MortgageGuarantyInsuranceCorporationMember_3c583e19-9516-4683-98e1-ac62dc1a3d11" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_1eaf9c78-8f68-450a-b714-ac6a7eb9f8c2" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_d2a595d1-eb46-4269-8778-c74a2d225bb4" xlink:to="loc_srt_RangeAxis_1eaf9c78-8f68-450a-b714-ac6a7eb9f8c2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_1eaf9c78-8f68-450a-b714-ac6a7eb9f8c2_default" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_1eaf9c78-8f68-450a-b714-ac6a7eb9f8c2" xlink:to="loc_srt_RangeMember_1eaf9c78-8f68-450a-b714-ac6a7eb9f8c2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_8e4254c5-66a7-45cd-825c-6ad881e701a4" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_1eaf9c78-8f68-450a-b714-ac6a7eb9f8c2" xlink:to="loc_srt_RangeMember_8e4254c5-66a7-45cd-825c-6ad881e701a4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_71703f51-8f8c-480d-a1c7-73ff42c7a849" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_8e4254c5-66a7-45cd-825c-6ad881e701a4" xlink:to="loc_srt_MaximumMember_71703f51-8f8c-480d-a1c7-73ff42c7a849" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/StatutoryInformationStatutoryfinancialinformationofinsurancesubsidiariesDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#StatutoryInformationStatutoryfinancialinformationofinsurancesubsidiariesDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/StatutoryInformationStatutoryfinancialinformationofinsurancesubsidiariesDetails" xlink:type="extended" id="i1256a77e352f4c0796ddb8b84aa1a42c_StatutoryInformationStatutoryfinancialinformationofinsurancesubsidiariesDetails"/>
  <link:roleRef roleURI="http://www.mgic.com/role/StatutoryInformationSurpluscontributionsanddividendsofinsurancesubsidiariesDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#StatutoryInformationSurpluscontributionsanddividendsofinsurancesubsidiariesDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/StatutoryInformationSurpluscontributionsanddividendsofinsurancesubsidiariesDetails" xlink:type="extended" id="i87f23e77bba74f99842daeaeb947b953_StatutoryInformationSurpluscontributionsanddividendsofinsurancesubsidiariesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionLineItems_58247a7d-05bb-4b42-b36e-eda07a31684e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyTransactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashDividendsPaidToParentCompany_b7897f99-f5f6-41f9-a3d1-83c123e54940" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashDividendsPaidToParentCompany"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_58247a7d-05bb-4b42-b36e-eda07a31684e" xlink:to="loc_us-gaap_CashDividendsPaidToParentCompany_b7897f99-f5f6-41f9-a3d1-83c123e54940" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_DividendDistributionOfInterestOfConvertibleJuniorSubordinatedDebentures_4a588305-790b-4bd3-adaa-91829c554a7e" xlink:href="mtg-20201231.xsd#mtg_DividendDistributionOfInterestOfConvertibleJuniorSubordinatedDebentures"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_58247a7d-05bb-4b42-b36e-eda07a31684e" xlink:to="loc_mtg_DividendDistributionOfInterestOfConvertibleJuniorSubordinatedDebentures_4a588305-790b-4bd3-adaa-91829c554a7e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_b818df34-8748-45a8-9589-e4ba6099a4dc" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_58247a7d-05bb-4b42-b36e-eda07a31684e" xlink:to="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_b818df34-8748-45a8-9589-e4ba6099a4dc" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_c5000a07-2abc-4386-a0ed-5702a3e6822d" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_b818df34-8748-45a8-9589-e4ba6099a4dc" xlink:to="loc_dei_LegalEntityAxis_c5000a07-2abc-4386-a0ed-5702a3e6822d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_c5000a07-2abc-4386-a0ed-5702a3e6822d_default" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_c5000a07-2abc-4386-a0ed-5702a3e6822d" xlink:to="loc_dei_EntityDomain_c5000a07-2abc-4386-a0ed-5702a3e6822d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_8a129768-ce11-40d4-b831-5cfa973c866a" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_c5000a07-2abc-4386-a0ed-5702a3e6822d" xlink:to="loc_dei_EntityDomain_8a129768-ce11-40d4-b831-5cfa973c866a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_MortgageGuarantyInsuranceCorporationMember_d550e133-5356-4e23-9faa-2f7f4bddf381" xlink:href="mtg-20201231.xsd#mtg_MortgageGuarantyInsuranceCorporationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_8a129768-ce11-40d4-b831-5cfa973c866a" xlink:to="loc_mtg_MortgageGuarantyInsuranceCorporationMember_d550e133-5356-4e23-9faa-2f7f4bddf381" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/SharebasedCompensationPlans" xlink:type="simple" xlink:href="mtg-20201231.xsd#SharebasedCompensationPlans"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/SharebasedCompensationPlans" xlink:type="extended" id="iee6ffc7516224d3f8a48a7700fe3a982_SharebasedCompensationPlans"/>
  <link:roleRef roleURI="http://www.mgic.com/role/SharebasedCompensationPlansTables" xlink:type="simple" xlink:href="mtg-20201231.xsd#SharebasedCompensationPlansTables"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/SharebasedCompensationPlansTables" xlink:type="extended" id="i2924d2ac22e94926b0fdb6cb165c31f8_SharebasedCompensationPlansTables"/>
  <link:roleRef roleURI="http://www.mgic.com/role/SharebasedCompensationPlansDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#SharebasedCompensationPlansDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/SharebasedCompensationPlansDetails" xlink:type="extended" id="i6db9e6aa4efe4e0f9089e82d3ddbb93a_SharebasedCompensationPlansDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_39425ef1-ce7a-4819-8675-19dce57686ff" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_a4670e5a-5f17-4a44-999f-8301867659fe" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_39425ef1-ce7a-4819-8675-19dce57686ff" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_a4670e5a-5f17-4a44-999f-8301867659fe" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_3de5f66f-3f31-4dff-abac-3cdc18fc94af" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_39425ef1-ce7a-4819-8675-19dce57686ff" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_3de5f66f-3f31-4dff-abac-3cdc18fc94af" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_3570ab77-79d9-4f4c-81f9-a215dd02f6e0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_39425ef1-ce7a-4819-8675-19dce57686ff" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_3570ab77-79d9-4f4c-81f9-a215dd02f6e0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_073a4da8-bbd7-441a-b047-2efe6465ba8e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_39425ef1-ce7a-4819-8675-19dce57686ff" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_073a4da8-bbd7-441a-b047-2efe6465ba8e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_3b97e7bf-0b9f-4ac7-b56a-3784a4cf9cde" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_39425ef1-ce7a-4819-8675-19dce57686ff" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_3b97e7bf-0b9f-4ac7-b56a-3784a4cf9cde" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_SummaryOfRestrictedStockOrRestrictedStockUnitActivityAbstract_5f85a2c4-8585-4b2d-a3a2-2a8052a48dc2" xlink:href="mtg-20201231.xsd#mtg_SummaryOfRestrictedStockOrRestrictedStockUnitActivityAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_39425ef1-ce7a-4819-8675-19dce57686ff" xlink:to="loc_mtg_SummaryOfRestrictedStockOrRestrictedStockUnitActivityAbstract_5f85a2c4-8585-4b2d-a3a2-2a8052a48dc2" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsAdditionalDisclosuresAbstract_cd09056b-46b9-4e0f-b93c-703111f9716f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsAdditionalDisclosuresAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtg_SummaryOfRestrictedStockOrRestrictedStockUnitActivityAbstract_5f85a2c4-8585-4b2d-a3a2-2a8052a48dc2" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsAdditionalDisclosuresAbstract_cd09056b-46b9-4e0f-b93c-703111f9716f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_a0963a02-998d-4833-97b0-f31df7b4e6ec" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsAdditionalDisclosuresAbstract_cd09056b-46b9-4e0f-b93c-703111f9716f" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_a0963a02-998d-4833-97b0-f31df7b4e6ec" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_84d90f9f-3bd8-4a9c-b638-963707ab6962" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsAdditionalDisclosuresAbstract_cd09056b-46b9-4e0f-b93c-703111f9716f" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_84d90f9f-3bd8-4a9c-b638-963707ab6962" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_f9e38861-f57c-4236-b3a7-58426e5c5d5c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsAdditionalDisclosuresAbstract_cd09056b-46b9-4e0f-b93c-703111f9716f" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_f9e38861-f57c-4236-b3a7-58426e5c5d5c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_3f568d68-4733-4226-99dd-fb09d14c790e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsAdditionalDisclosuresAbstract_cd09056b-46b9-4e0f-b93c-703111f9716f" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_3f568d68-4733-4226-99dd-fb09d14c790e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_150d0422-b4d5-4b37-9f60-9f30127e52c9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_5838d00f-9576-44e5-b565-d992677aa396" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtg_SummaryOfRestrictedStockOrRestrictedStockUnitActivityAbstract_5f85a2c4-8585-4b2d-a3a2-2a8052a48dc2" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_5838d00f-9576-44e5-b565-d992677aa396" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_256e7053-738e-4352-a6dc-dbf3e2f3ad32" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_5838d00f-9576-44e5-b565-d992677aa396" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_256e7053-738e-4352-a6dc-dbf3e2f3ad32" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_d7c53f09-5463-45fe-896e-9d16498d91b3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_5838d00f-9576-44e5-b565-d992677aa396" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_d7c53f09-5463-45fe-896e-9d16498d91b3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_4375cd32-eeef-45e3-8b21-c0c4fc3d3321" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_5838d00f-9576-44e5-b565-d992677aa396" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_4375cd32-eeef-45e3-8b21-c0c4fc3d3321" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_bdf918e0-9e2d-478b-bf28-4c7e02d46d3c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_5838d00f-9576-44e5-b565-d992677aa396" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_bdf918e0-9e2d-478b-bf28-4c7e02d46d3c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_63b41254-801a-44d3-9aa6-7636e32335d6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_AdditionalDisclosuresAbstract_72107f98-3f35-469d-8dcf-a9b3f6d2ddbe" xlink:href="mtg-20201231.xsd#mtg_AdditionalDisclosuresAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_39425ef1-ce7a-4819-8675-19dce57686ff" xlink:to="loc_mtg_AdditionalDisclosuresAbstract_72107f98-3f35-469d-8dcf-a9b3f6d2ddbe" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue_f8bb8082-8b1b-47e0-8413-a13cb14e36e5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtg_AdditionalDisclosuresAbstract_72107f98-3f35-469d-8dcf-a9b3f6d2ddbe" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue_f8bb8082-8b1b-47e0-8413-a13cb14e36e5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_cd7d05f6-fa1a-4908-8ad6-73abfa01c208" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtg_AdditionalDisclosuresAbstract_72107f98-3f35-469d-8dcf-a9b3f6d2ddbe" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_cd7d05f6-fa1a-4908-8ad6-73abfa01c208" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_1053b0d4-8eca-4b58-bc76-4509f6ab52fc" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtg_AdditionalDisclosuresAbstract_72107f98-3f35-469d-8dcf-a9b3f6d2ddbe" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_1053b0d4-8eca-4b58-bc76-4509f6ab52fc" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_74e29694-a35e-4f87-ac23-19f86c4fb25b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_39425ef1-ce7a-4819-8675-19dce57686ff" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_74e29694-a35e-4f87-ac23-19f86c4fb25b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_ab9634f1-9f9a-4292-8de5-0bdbba894ede" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_74e29694-a35e-4f87-ac23-19f86c4fb25b" xlink:to="loc_srt_RangeAxis_ab9634f1-9f9a-4292-8de5-0bdbba894ede" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_ab9634f1-9f9a-4292-8de5-0bdbba894ede_default" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_ab9634f1-9f9a-4292-8de5-0bdbba894ede" xlink:to="loc_srt_RangeMember_ab9634f1-9f9a-4292-8de5-0bdbba894ede_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_d2062ed0-de7e-4b1c-8eb8-696531d50030" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_ab9634f1-9f9a-4292-8de5-0bdbba894ede" xlink:to="loc_srt_RangeMember_d2062ed0-de7e-4b1c-8eb8-696531d50030" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_5934f240-de0d-4932-9812-d304f27238cf" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_d2062ed0-de7e-4b1c-8eb8-696531d50030" xlink:to="loc_srt_MinimumMember_5934f240-de0d-4932-9812-d304f27238cf" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_4cede59a-7853-4315-b95c-cf044d53a1df" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_d2062ed0-de7e-4b1c-8eb8-696531d50030" xlink:to="loc_srt_MaximumMember_4cede59a-7853-4315-b95c-cf044d53a1df" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameAxis_33909ada-a35e-4933-9745-d60c0bfd058e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PlanNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_74e29694-a35e-4f87-ac23-19f86c4fb25b" xlink:to="loc_us-gaap_PlanNameAxis_33909ada-a35e-4933-9745-d60c0bfd058e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_33909ada-a35e-4933-9745-d60c0bfd058e_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_33909ada-a35e-4933-9745-d60c0bfd058e" xlink:to="loc_us-gaap_PlanNameDomain_33909ada-a35e-4933-9745-d60c0bfd058e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_ae1ba980-594e-47c8-9c33-45752a14004e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_33909ada-a35e-4933-9745-d60c0bfd058e" xlink:to="loc_us-gaap_PlanNameDomain_ae1ba980-594e-47c8-9c33-45752a14004e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_A2020PlanMember_0e350344-716a-40ff-8180-eb50c333e644" xlink:href="mtg-20201231.xsd#mtg_A2020PlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_ae1ba980-594e-47c8-9c33-45752a14004e" xlink:to="loc_mtg_A2020PlanMember_0e350344-716a-40ff-8180-eb50c333e644" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_7ea76b87-d249-4ce8-9666-c404645a3bda" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_74e29694-a35e-4f87-ac23-19f86c4fb25b" xlink:to="loc_us-gaap_AwardTypeAxis_7ea76b87-d249-4ce8-9666-c404645a3bda" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_7ea76b87-d249-4ce8-9666-c404645a3bda_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_7ea76b87-d249-4ce8-9666-c404645a3bda" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_7ea76b87-d249-4ce8-9666-c404645a3bda_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ddcd920e-f809-4a36-b857-7ab195bec0ba" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_7ea76b87-d249-4ce8-9666-c404645a3bda" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ddcd920e-f809-4a36-b857-7ab195bec0ba" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_RestrictedStockAndRestrictedStockUnitsMember_524430c4-45f2-4c8f-afbf-95c332c7c9ed" xlink:href="mtg-20201231.xsd#mtg_RestrictedStockAndRestrictedStockUnitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ddcd920e-f809-4a36-b857-7ab195bec0ba" xlink:to="loc_mtg_RestrictedStockAndRestrictedStockUnitsMember_524430c4-45f2-4c8f-afbf-95c332c7c9ed" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PerformanceSharesMember_9bd62286-9878-4caa-a61b-51316ad3e585" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PerformanceSharesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ddcd920e-f809-4a36-b857-7ab195bec0ba" xlink:to="loc_us-gaap_PerformanceSharesMember_9bd62286-9878-4caa-a61b-51316ad3e585" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_cb914e14-b0d6-43a7-b1cb-1d13a74e0689" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ddcd920e-f809-4a36-b857-7ab195bec0ba" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_cb914e14-b0d6-43a7-b1cb-1d13a74e0689" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/Leases" xlink:type="simple" xlink:href="mtg-20201231.xsd#Leases"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/Leases" xlink:type="extended" id="i4da14100c6c54a24981a2faa0090713a_Leases"/>
  <link:roleRef roleURI="http://www.mgic.com/role/LeasesTables" xlink:type="simple" xlink:href="mtg-20201231.xsd#LeasesTables"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/LeasesTables" xlink:type="extended" id="i601bad624df14efd9cebde4ccd85bcf7_LeasesTables"/>
  <link:roleRef roleURI="http://www.mgic.com/role/LeasesDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#LeasesDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/LeasesDetails" xlink:type="extended" id="ie7c3ffd2cab24f55a9d6be06297ae005_LeasesDetails"/>
  <link:roleRef roleURI="http://www.mgic.com/role/LitigationandContingencies" xlink:type="simple" xlink:href="mtg-20201231.xsd#LitigationandContingencies"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/LitigationandContingencies" xlink:type="extended" id="i109daf37de544d28bc5d5cc9eaf76b15_LitigationandContingencies"/>
  <link:roleRef roleURI="http://www.mgic.com/role/LitigationandContingenciesDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#LitigationandContingenciesDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/LitigationandContingenciesDetails" xlink:type="extended" id="ief95c347603a4047b3ba2bb75aaa7359_LitigationandContingenciesDetails"/>
  <link:roleRef roleURI="http://www.mgic.com/role/UnauditedQuarterlyFinancialData" xlink:type="simple" xlink:href="mtg-20201231.xsd#UnauditedQuarterlyFinancialData"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/UnauditedQuarterlyFinancialData" xlink:type="extended" id="iab7401e07cec421787444d63b5fc990e_UnauditedQuarterlyFinancialData"/>
  <link:roleRef roleURI="http://www.mgic.com/role/UnauditedQuarterlyFinancialDataTables" xlink:type="simple" xlink:href="mtg-20201231.xsd#UnauditedQuarterlyFinancialDataTables"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/UnauditedQuarterlyFinancialDataTables" xlink:type="extended" id="i98f02654ab324248b3559a26357febc7_UnauditedQuarterlyFinancialDataTables"/>
  <link:roleRef roleURI="http://www.mgic.com/role/UnauditedQuarterlyFinancialDataDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#UnauditedQuarterlyFinancialDataDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/UnauditedQuarterlyFinancialDataDetails" xlink:type="extended" id="icd9bbe96ccd84ef8a376c98752ba39ae_UnauditedQuarterlyFinancialDataDetails"/>
  <link:roleRef roleURI="http://www.mgic.com/role/SCHEDULEISUMMARYOFINVESTMENTSOTHERTHANINVESTMENTSINRELATEDPARTIES" xlink:type="simple" xlink:href="mtg-20201231.xsd#SCHEDULEISUMMARYOFINVESTMENTSOTHERTHANINVESTMENTSINRELATEDPARTIES"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/SCHEDULEISUMMARYOFINVESTMENTSOTHERTHANINVESTMENTSINRELATEDPARTIES" xlink:type="extended" id="i529f0d8635174b2f8dc7ad905da17fac_SCHEDULEISUMMARYOFINVESTMENTSOTHERTHANINVESTMENTSINRELATEDPARTIES"/>
  <link:roleRef roleURI="http://www.mgic.com/role/SCHEDULEISUMMARYOFINVESTMENTSOTHERTHANINVESTMENTSINRELATEDPARTIESDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#SCHEDULEISUMMARYOFINVESTMENTSOTHERTHANINVESTMENTSINRELATEDPARTIESDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/SCHEDULEISUMMARYOFINVESTMENTSOTHERTHANINVESTMENTSINRELATEDPARTIESDetails" xlink:type="extended" id="ie0c87bfc56af47a9a065240cf53d3255_SCHEDULEISUMMARYOFINVESTMENTSOTHERTHANINVESTMENTSINRELATEDPARTIESDetails">
    <link:loc xlink:type="locator" xlink:label="loc_srt_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesReportableDataLineItems_75205f73-48f3-4e68-908f-90e3bfb8b191" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesReportableDataLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesCost_2d8b71b7-6333-4c96-9e02-beae3b8f02dc" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesReportableDataLineItems_75205f73-48f3-4e68-908f-90e3bfb8b191" xlink:to="loc_us-gaap_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesCost_2d8b71b7-6333-4c96-9e02-beae3b8f02dc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesFairValue_7bf6bc97-4bc8-4d2d-b6ec-0cdfbc436b6d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesReportableDataLineItems_75205f73-48f3-4e68-908f-90e3bfb8b191" xlink:to="loc_us-gaap_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesFairValue_7bf6bc97-4bc8-4d2d-b6ec-0cdfbc436b6d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesCarryingAmount_40eb5998-ef25-44d5-886a-0515a5b33d49" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesReportableDataLineItems_75205f73-48f3-4e68-908f-90e3bfb8b191" xlink:to="loc_us-gaap_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesCarryingAmount_40eb5998-ef25-44d5-886a-0515a5b33d49" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesTable_bcd415a8-a52e-4ac2-8b0f-1c8069970b1b" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_srt_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesReportableDataLineItems_75205f73-48f3-4e68-908f-90e3bfb8b191" xlink:to="loc_srt_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesTable_bcd415a8-a52e-4ac2-8b0f-1c8069970b1b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeAxis_cb1597d9-f430-47f3-a9df-b159681901de" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InvestmentTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_srt_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesTable_bcd415a8-a52e-4ac2-8b0f-1c8069970b1b" xlink:to="loc_us-gaap_InvestmentTypeAxis_cb1597d9-f430-47f3-a9df-b159681901de" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_cb1597d9-f430-47f3-a9df-b159681901de_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InvestmentTypeAxis_cb1597d9-f430-47f3-a9df-b159681901de" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_cb1597d9-f430-47f3-a9df-b159681901de_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_9b92db0d-964b-42ca-92c0-859d56ed19bc" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InvestmentTypeAxis_cb1597d9-f430-47f3-a9df-b159681901de" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_9b92db0d-964b-42ca-92c0-859d56ed19bc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FixedMaturitiesMember_5f9a7da3-4720-4381-8999-465c8eb1351a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FixedMaturitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_9b92db0d-964b-42ca-92c0-859d56ed19bc" xlink:to="loc_us-gaap_FixedMaturitiesMember_5f9a7da3-4720-4381-8999-465c8eb1351a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesInvestmentSummaryMember_f4cb8579-3651-4967-bc7e-7ff029eb9318" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquitySecuritiesInvestmentSummaryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_9b92db0d-964b-42ca-92c0-859d56ed19bc" xlink:to="loc_us-gaap_EquitySecuritiesInvestmentSummaryMember_f4cb8579-3651-4967-bc7e-7ff029eb9318" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_dbd36b11-a7ba-4f31-89d3-d55fa76bcbb5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_srt_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesTable_bcd415a8-a52e-4ac2-8b0f-1c8069970b1b" xlink:to="loc_us-gaap_FinancialInstrumentAxis_dbd36b11-a7ba-4f31-89d3-d55fa76bcbb5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_dbd36b11-a7ba-4f31-89d3-d55fa76bcbb5_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_dbd36b11-a7ba-4f31-89d3-d55fa76bcbb5" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_dbd36b11-a7ba-4f31-89d3-d55fa76bcbb5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_b3d550fd-5a87-4ae8-91a8-437946b8eb0f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_dbd36b11-a7ba-4f31-89d3-d55fa76bcbb5" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_b3d550fd-5a87-4ae8-91a8-437946b8eb0f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USTreasuryAndGovernmentMember_d5c262f5-99be-457e-b565-3fa4cc4d6287" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_USTreasuryAndGovernmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_b3d550fd-5a87-4ae8-91a8-437946b8eb0f" xlink:to="loc_us-gaap_USTreasuryAndGovernmentMember_d5c262f5-99be-457e-b565-3fa4cc4d6287" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USStatesAndPoliticalSubdivisionsMember_a1660947-c0e0-411b-bfa0-6db4084ed4f9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_USStatesAndPoliticalSubdivisionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_b3d550fd-5a87-4ae8-91a8-437946b8eb0f" xlink:to="loc_us-gaap_USStatesAndPoliticalSubdivisionsMember_a1660947-c0e0-411b-bfa0-6db4084ed4f9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SovereignDebtSecuritiesMember_440e70de-98e0-4b03-b1aa-9dbc61e84e5f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SovereignDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_b3d550fd-5a87-4ae8-91a8-437946b8eb0f" xlink:to="loc_us-gaap_SovereignDebtSecuritiesMember_440e70de-98e0-4b03-b1aa-9dbc61e84e5f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PublicUtilityBondsMember_859f49d7-cdc9-4303-88bc-359cdec2c62a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PublicUtilityBondsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_b3d550fd-5a87-4ae8-91a8-437946b8eb0f" xlink:to="loc_us-gaap_PublicUtilityBondsMember_859f49d7-cdc9-4303-88bc-359cdec2c62a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetBackedSecuritiesMember_afb8a69b-6a63-4402-aa39-2f5f8ac5eda1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetBackedSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_b3d550fd-5a87-4ae8-91a8-437946b8eb0f" xlink:to="loc_us-gaap_AssetBackedSecuritiesMember_afb8a69b-6a63-4402-aa39-2f5f8ac5eda1" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollateralizedLoanObligationsMember_72945072-ef7f-49c8-a187-f33b50037b17" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CollateralizedLoanObligationsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_b3d550fd-5a87-4ae8-91a8-437946b8eb0f" xlink:to="loc_us-gaap_CollateralizedLoanObligationsMember_72945072-ef7f-49c8-a187-f33b50037b17" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MortgageBackedSecuritiesMember_2b5cbb0d-73c3-4d7f-a78c-d5fa093b9478" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MortgageBackedSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_b3d550fd-5a87-4ae8-91a8-437946b8eb0f" xlink:to="loc_us-gaap_MortgageBackedSecuritiesMember_2b5cbb0d-73c3-4d7f-a78c-d5fa093b9478" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllOtherCorporateBondsMember_4add543d-7f42-43e8-a719-c2f8aea554b7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AllOtherCorporateBondsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_b3d550fd-5a87-4ae8-91a8-437946b8eb0f" xlink:to="loc_us-gaap_AllOtherCorporateBondsMember_4add543d-7f42-43e8-a719-c2f8aea554b7" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndustrialMiscellaneousAndAllOthersMember_8acb8514-bcdf-460c-9a73-64095305338c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IndustrialMiscellaneousAndAllOthersMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_b3d550fd-5a87-4ae8-91a8-437946b8eb0f" xlink:to="loc_us-gaap_IndustrialMiscellaneousAndAllOthersMember_8acb8514-bcdf-460c-9a73-64095305338c" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherDebtSecuritiesMember_d0764053-e0a7-4f59-89df-109514717c68" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_b3d550fd-5a87-4ae8-91a8-437946b8eb0f" xlink:to="loc_us-gaap_OtherDebtSecuritiesMember_d0764053-e0a7-4f59-89df-109514717c68" xlink:type="arc" order="9"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/SCHEDULEIICONDENSEDFINANCIALINFORMATIONOFREGISTRANT" xlink:type="simple" xlink:href="mtg-20201231.xsd#SCHEDULEIICONDENSEDFINANCIALINFORMATIONOFREGISTRANT"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/SCHEDULEIICONDENSEDFINANCIALINFORMATIONOFREGISTRANT" xlink:type="extended" id="iced22c9eabb940bd8da01dcb9893613c_SCHEDULEIICONDENSEDFINANCIALINFORMATIONOFREGISTRANT"/>
  <link:roleRef roleURI="http://www.mgic.com/role/SCHEDULEIICONDENSEDFINANCIALINFORMATIONOFREGISTRANTDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#SCHEDULEIICONDENSEDFINANCIALINFORMATIONOFREGISTRANTDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/SCHEDULEIICONDENSEDFINANCIALINFORMATIONOFREGISTRANTDetails" xlink:type="extended" id="i1dd10253fff048bf89099e7518f9ceed_SCHEDULEIICONDENSEDFINANCIALINFORMATIONOFREGISTRANTDetails">
    <link:loc xlink:type="locator" xlink:label="loc_srt_CondensedFinancialStatementsCaptionsLineItems_781821dd-58b1-4766-a9ac-3ca4dc116207" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_CondensedFinancialStatementsCaptionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementOfFinancialPositionAbstract_e630a190-32bf-4303-a10d-818bb098374a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementOfFinancialPositionAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_781821dd-58b1-4766-a9ac-3ca4dc116207" xlink:to="loc_us-gaap_StatementOfFinancialPositionAbstract_e630a190-32bf-4303-a10d-818bb098374a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsAbstract_1771dd3b-91a6-4422-9172-7a462c6dda66" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementOfFinancialPositionAbstract_e630a190-32bf-4303-a10d-818bb098374a" xlink:to="loc_us-gaap_AssetsAbstract_1771dd3b-91a6-4422-9172-7a462c6dda66" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_ffbaa96e-38af-4741-86b8-6c9db7bcb3ca" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_1771dd3b-91a6-4422-9172-7a462c6dda66" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_ffbaa96e-38af-4741-86b8-6c9db7bcb3ca" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_a619fa36-cf6a-4aaf-a5b3-781f7f5537ef" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_1771dd3b-91a6-4422-9172-7a462c6dda66" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_a619fa36-cf6a-4aaf-a5b3-781f7f5537ef" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_InvestmentInSubsidiariesAtEquityInNetAssets_91232b4a-e5d1-49f0-b9e9-d8706d4dce79" xlink:href="mtg-20201231.xsd#mtg_InvestmentInSubsidiariesAtEquityInNetAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_1771dd3b-91a6-4422-9172-7a462c6dda66" xlink:to="loc_mtg_InvestmentInSubsidiariesAtEquityInNetAssets_91232b4a-e5d1-49f0-b9e9-d8706d4dce79" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DueFromRelatedParties_03432c0a-83f0-4a4e-b3dd-4b44e7df69f3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DueFromRelatedParties"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_1771dd3b-91a6-4422-9172-7a462c6dda66" xlink:to="loc_us-gaap_DueFromRelatedParties_03432c0a-83f0-4a4e-b3dd-4b44e7df69f3" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxesAndOtherTaxReceivableCurrent_641baae9-cea3-464b-962c-2f55fd49868c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredIncomeTaxesAndOtherTaxReceivableCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_1771dd3b-91a6-4422-9172-7a462c6dda66" xlink:to="loc_us-gaap_DeferredIncomeTaxesAndOtherTaxReceivableCurrent_641baae9-cea3-464b-962c-2f55fd49868c" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedInvestmentIncomeReceivable_2e8d0be7-ea93-45ae-bf57-1ee5b8051c97" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccruedInvestmentIncomeReceivable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_1771dd3b-91a6-4422-9172-7a462c6dda66" xlink:to="loc_us-gaap_AccruedInvestmentIncomeReceivable_2e8d0be7-ea93-45ae-bf57-1ee5b8051c97" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_ec9da78b-e4fb-4e3f-9860-2441a5beabd3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_1771dd3b-91a6-4422-9172-7a462c6dda66" xlink:to="loc_us-gaap_OtherAssets_ec9da78b-e4fb-4e3f-9860-2441a5beabd3" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_9ab79172-1377-48f4-8006-4f4bf5025eed" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Assets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_1771dd3b-91a6-4422-9172-7a462c6dda66" xlink:to="loc_us-gaap_Assets_9ab79172-1377-48f4-8006-4f4bf5025eed" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_5b162216-15d8-4816-b7a4-f6f2e11f5589" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquityAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementOfFinancialPositionAbstract_e630a190-32bf-4303-a10d-818bb098374a" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_5b162216-15d8-4816-b7a4-f6f2e11f5589" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAbstract_52d067f6-23ab-4335-b914-7175943d27b0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_5b162216-15d8-4816-b7a4-f6f2e11f5589" xlink:to="loc_us-gaap_LiabilitiesAbstract_52d067f6-23ab-4335-b914-7175943d27b0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotes_c3c06b78-3be3-469d-9991-bc1f16173a83" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SeniorNotes"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_52d067f6-23ab-4335-b914-7175943d27b0" xlink:to="loc_us-gaap_SeniorNotes_c3c06b78-3be3-469d-9991-bc1f16173a83" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleSubordinatedDebt_d72eb0b9-2966-4dfc-a3db-8ecb4166ad91" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConvertibleSubordinatedDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_52d067f6-23ab-4335-b914-7175943d27b0" xlink:to="loc_us-gaap_ConvertibleSubordinatedDebt_d72eb0b9-2966-4dfc-a3db-8ecb4166ad91" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPayableCurrentAndNoncurrent_fa7be724-fea9-4b90-bc8f-7c33ade35670" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestPayableCurrentAndNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_52d067f6-23ab-4335-b914-7175943d27b0" xlink:to="loc_us-gaap_InterestPayableCurrentAndNoncurrent_fa7be724-fea9-4b90-bc8f-7c33ade35670" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilities_b86016ad-9126-42ab-addc-3697a63fc7a6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_52d067f6-23ab-4335-b914-7175943d27b0" xlink:to="loc_us-gaap_OtherLiabilities_b86016ad-9126-42ab-addc-3697a63fc7a6" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_da230ab9-e775-4ef2-a73b-51b5b5e64008" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Liabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_52d067f6-23ab-4335-b914-7175943d27b0" xlink:to="loc_us-gaap_Liabilities_da230ab9-e775-4ef2-a73b-51b5b5e64008" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityAbstract_9fac0747-d1d1-4ca4-9f58-d23a289a97e4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquityAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_5b162216-15d8-4816-b7a4-f6f2e11f5589" xlink:to="loc_us-gaap_StockholdersEquityAbstract_9fac0747-d1d1-4ca4-9f58-d23a289a97e4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_37eb000b-32d8-4926-a6d3-743664ed3bbd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_9fac0747-d1d1-4ca4-9f58-d23a289a97e4" xlink:to="loc_us-gaap_CommonStockValue_37eb000b-32d8-4926-a6d3-743664ed3bbd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_97a10349-b596-4afa-9dc4-e082f3cc1a32" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AdditionalPaidInCapitalCommonStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_9fac0747-d1d1-4ca4-9f58-d23a289a97e4" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_97a10349-b596-4afa-9dc4-e082f3cc1a32" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValue_df194c1e-9650-4915-9db1-db1e0b371250" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TreasuryStockValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_9fac0747-d1d1-4ca4-9f58-d23a289a97e4" xlink:to="loc_us-gaap_TreasuryStockValue_df194c1e-9650-4915-9db1-db1e0b371250" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_2f239cf0-9bf7-43a7-9869-21f192f3c2cc" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_9fac0747-d1d1-4ca4-9f58-d23a289a97e4" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_2f239cf0-9bf7-43a7-9869-21f192f3c2cc" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_7e95a62a-595d-4857-a092-3cb2b6724ab9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_9fac0747-d1d1-4ca4-9f58-d23a289a97e4" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_7e95a62a-595d-4857-a092-3cb2b6724ab9" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_901a591b-e36e-4a19-99aa-35843fd6d6f9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_9fac0747-d1d1-4ca4-9f58-d23a289a97e4" xlink:to="loc_us-gaap_StockholdersEquity_901a591b-e36e-4a19-99aa-35843fd6d6f9" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_6c2907c7-4d66-4a6d-b113-386112cad905" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_5b162216-15d8-4816-b7a4-f6f2e11f5589" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquity_6c2907c7-4d66-4a6d-b113-386112cad905" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_ParentheticalInformationAbstract_e543f84d-e2e2-413d-b1d9-b0252ec8549e" xlink:href="mtg-20201231.xsd#mtg_ParentheticalInformationAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementOfFinancialPositionAbstract_e630a190-32bf-4303-a10d-818bb098374a" xlink:to="loc_mtg_ParentheticalInformationAbstract_e543f84d-e2e2-413d-b1d9-b0252ec8549e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_b75e1b6c-116c-4d1f-ac75-75c328488408" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtg_ParentheticalInformationAbstract_e543f84d-e2e2-413d-b1d9-b0252ec8549e" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_b75e1b6c-116c-4d1f-ac75-75c328488408" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockParOrStatedValuePerShare_0f48ee40-791d-4933-acb4-a9671543781c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockParOrStatedValuePerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtg_ParentheticalInformationAbstract_e543f84d-e2e2-413d-b1d9-b0252ec8549e" xlink:to="loc_us-gaap_CommonStockParOrStatedValuePerShare_0f48ee40-791d-4933-acb4-a9671543781c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesAuthorized_b2c390b8-57fe-46b4-b85e-d7fca775e171" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockSharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtg_ParentheticalInformationAbstract_e543f84d-e2e2-413d-b1d9-b0252ec8549e" xlink:to="loc_us-gaap_CommonStockSharesAuthorized_b2c390b8-57fe-46b4-b85e-d7fca775e171" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesIssued_2a9d9c54-84e0-4bee-86e6-b6abbe56c2d9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtg_ParentheticalInformationAbstract_e543f84d-e2e2-413d-b1d9-b0252ec8549e" xlink:to="loc_us-gaap_CommonStockSharesIssued_2a9d9c54-84e0-4bee-86e6-b6abbe56c2d9" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_5d1cb41b-9da1-4e39-a413-f475d7476dc5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtg_ParentheticalInformationAbstract_e543f84d-e2e2-413d-b1d9-b0252ec8549e" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_5d1cb41b-9da1-4e39-a413-f475d7476dc5" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockShares_9c111b12-d024-486f-a679-2847a9445ef0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TreasuryStockShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_mtg_ParentheticalInformationAbstract_e543f84d-e2e2-413d-b1d9-b0252ec8549e" xlink:to="loc_us-gaap_TreasuryStockShares_9c111b12-d024-486f-a679-2847a9445ef0" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementAbstract_760cf993-3a76-4253-9eff-28028cb31f2d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeStatementAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_781821dd-58b1-4766-a9ac-3ca4dc116207" xlink:to="loc_us-gaap_IncomeStatementAbstract_760cf993-3a76-4253-9eff-28028cb31f2d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenuesAbstract_a68752a4-a5f8-4929-aa26-73b466cf8036" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenuesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementAbstract_760cf993-3a76-4253-9eff-28028cb31f2d" xlink:to="loc_us-gaap_RevenuesAbstract_a68752a4-a5f8-4929-aa26-73b466cf8036" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetInvestmentIncome_528310ad-8380-45d4-8a3e-8b8b57f2b2c1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetInvestmentIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesAbstract_a68752a4-a5f8-4929-aa26-73b466cf8036" xlink:to="loc_us-gaap_NetInvestmentIncome_528310ad-8380-45d4-8a3e-8b8b57f2b2c1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnInvestments_9c7eb19f-c534-4620-ab61-82f8c278a153" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GainLossOnInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesAbstract_a68752a4-a5f8-4929-aa26-73b466cf8036" xlink:to="loc_us-gaap_GainLossOnInvestments_9c7eb19f-c534-4620-ab61-82f8c278a153" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_5e3cac75-6b15-4b8e-85fb-eab3679cd41d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Revenues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesAbstract_a68752a4-a5f8-4929-aa26-73b466cf8036" xlink:to="loc_us-gaap_Revenues_5e3cac75-6b15-4b8e-85fb-eab3679cd41d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BenefitsLossesAndExpensesAbstract_c32d63c4-c111-4a8a-a4d7-f1a93a6ed993" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BenefitsLossesAndExpensesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementAbstract_760cf993-3a76-4253-9eff-28028cb31f2d" xlink:to="loc_us-gaap_BenefitsLossesAndExpensesAbstract_c32d63c4-c111-4a8a-a4d7-f1a93a6ed993" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_b10d9bfe-1401-4f95-8bcb-85a7b04a3a31" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingExpenses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BenefitsLossesAndExpensesAbstract_c32d63c4-c111-4a8a-a4d7-f1a93a6ed993" xlink:to="loc_us-gaap_OperatingExpenses_b10d9bfe-1401-4f95-8bcb-85a7b04a3a31" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebt_a8f4fdec-724e-46fa-a69e-c3a565d23e11" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestExpenseDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BenefitsLossesAndExpensesAbstract_c32d63c4-c111-4a8a-a4d7-f1a93a6ed993" xlink:to="loc_us-gaap_InterestExpenseDebt_a8f4fdec-724e-46fa-a69e-c3a565d23e11" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_c1606349-e124-40fa-a822-8c05a7e5e030" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BenefitsLossesAndExpensesAbstract_c32d63c4-c111-4a8a-a4d7-f1a93a6ed993" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_c1606349-e124-40fa-a822-8c05a7e5e030" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BenefitsLossesAndExpenses_699260e1-880f-4c1c-8f96-9a4d7d86f714" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BenefitsLossesAndExpenses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BenefitsLossesAndExpensesAbstract_c32d63c4-c111-4a8a-a4d7-f1a93a6ed993" xlink:to="loc_us-gaap_BenefitsLossesAndExpenses_699260e1-880f-4c1c-8f96-9a4d7d86f714" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_b04562f8-ba9a-4033-918c-8f418d70b495" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementAbstract_760cf993-3a76-4253-9eff-28028cb31f2d" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_b04562f8-ba9a-4033-918c-8f418d70b495" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_652c931a-d341-4e33-b365-d38211063b47" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementAbstract_760cf993-3a76-4253-9eff-28028cb31f2d" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_652c931a-d341-4e33-b365-d38211063b47" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromSubsidiariesNetOfTax_f2e788e6-c2f9-467c-9e7a-8060db871317" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeLossFromSubsidiariesNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementAbstract_760cf993-3a76-4253-9eff-28028cb31f2d" xlink:to="loc_us-gaap_IncomeLossFromSubsidiariesNetOfTax_f2e788e6-c2f9-467c-9e7a-8060db871317" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_f7491aca-5e01-451d-ad27-a8e96a98092a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementAbstract_760cf993-3a76-4253-9eff-28028cb31f2d" xlink:to="loc_us-gaap_NetIncomeLoss_f7491aca-5e01-451d-ad27-a8e96a98092a" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_6cb82f53-4d9f-4aa9-840a-9a2c55dadce4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementAbstract_760cf993-3a76-4253-9eff-28028cb31f2d" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_6cb82f53-4d9f-4aa9-840a-9a2c55dadce4" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_4d22e7a0-52fc-4c07-8ffe-1b2b5b3957ce" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementAbstract_760cf993-3a76-4253-9eff-28028cb31f2d" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTax_4d22e7a0-52fc-4c07-8ffe-1b2b5b3957ce" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementOfCashFlowsAbstract_affcfe8c-cdf2-4e57-895a-66397b237002" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementOfCashFlowsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_781821dd-58b1-4766-a9ac-3ca4dc116207" xlink:to="loc_us-gaap_StatementOfCashFlowsAbstract_affcfe8c-cdf2-4e57-895a-66397b237002" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperationsAbstract_6d7c5932-763d-4392-9987-0ffe7ac25528" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperationsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementOfCashFlowsAbstract_affcfe8c-cdf2-4e57-895a-66397b237002" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperationsAbstract_6d7c5932-763d-4392-9987-0ffe7ac25528" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_16426e2a-98fd-4ab2-8998-71a8b6d95a60" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_cde4e6d1-d0d9-4a4d-9a20-5f49cd79b9a7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperationsAbstract_6d7c5932-763d-4392-9987-0ffe7ac25528" xlink:to="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_cde4e6d1-d0d9-4a4d-9a20-5f49cd79b9a7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromSubsidiariesNetOfTax_96569a68-68e4-43a1-9e7f-c4c2ed814142" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeLossFromSubsidiariesNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashDividendsPaidToParentCompanyByConsolidatedSubsidiaries_48d33b7c-3854-47ba-86c4-6ef560f2f783" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashDividendsPaidToParentCompanyByConsolidatedSubsidiaries"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_cde4e6d1-d0d9-4a4d-9a20-5f49cd79b9a7" xlink:to="loc_us-gaap_CashDividendsPaidToParentCompanyByConsolidatedSubsidiaries_48d33b7c-3854-47ba-86c4-6ef560f2f783" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_39f76e93-94eb-4eda-91a0-aa85d8d34b41" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_cde4e6d1-d0d9-4a4d-9a20-5f49cd79b9a7" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_39f76e93-94eb-4eda-91a0-aa85d8d34b41" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_9f7427e0-eb60-4e26-9385-d774be0d3ada" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_25778450-68ac-4473-baf2-1dbbe4556731" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_cde4e6d1-d0d9-4a4d-9a20-5f49cd79b9a7" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_25778450-68ac-4473-baf2-1dbbe4556731" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_5c0ec4db-9579-47ef-96d0-5de74e1d2677" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInOperatingCapitalAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_cde4e6d1-d0d9-4a4d-9a20-5f49cd79b9a7" xlink:to="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_5c0ec4db-9579-47ef-96d0-5de74e1d2677" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivableRelatedParties_341ae1ab-c90d-4dc9-8cdb-660a718dcec1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsReceivableRelatedParties"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_5c0ec4db-9579-47ef-96d0-5de74e1d2677" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivableRelatedParties_341ae1ab-c90d-4dc9-8cdb-660a718dcec1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInIncomeTaxesReceivable_4a1b2758-ad55-40f4-b0e0-e31e41eb758e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInIncomeTaxesReceivable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_5c0ec4db-9579-47ef-96d0-5de74e1d2677" xlink:to="loc_us-gaap_IncreaseDecreaseInIncomeTaxesReceivable_4a1b2758-ad55-40f4-b0e0-e31e41eb758e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedInvestmentIncomeReceivable_e38da59a-2ec8-4905-9879-ef3b25935d98" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedInvestmentIncomeReceivable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_5c0ec4db-9579-47ef-96d0-5de74e1d2677" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedInvestmentIncomeReceivable_e38da59a-2ec8-4905-9879-ef3b25935d98" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInterestPayableNet_4e00b4c6-6dca-4bf9-becc-b9efb2c92180" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInInterestPayableNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_5c0ec4db-9579-47ef-96d0-5de74e1d2677" xlink:to="loc_us-gaap_IncreaseDecreaseInInterestPayableNet_4e00b4c6-6dca-4bf9-becc-b9efb2c92180" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6e72ed0a-37ac-4624-bcad-141facd04e33" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperationsAbstract_6d7c5932-763d-4392-9987-0ffe7ac25528" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_6e72ed0a-37ac-4624-bcad-141facd04e33" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperationsAbstract_667fd0c6-5ebd-4029-a02e-0fb0220b5f8b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperationsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementOfCashFlowsAbstract_affcfe8c-cdf2-4e57-895a-66397b237002" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperationsAbstract_667fd0c6-5ebd-4029-a02e-0fb0220b5f8b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireInvestments_9b58796b-5be4-42be-9f79-4329af9a0a23" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsToAcquireInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperationsAbstract_667fd0c6-5ebd-4029-a02e-0fb0220b5f8b" xlink:to="loc_us-gaap_PaymentsToAcquireInvestments_9b58796b-5be4-42be-9f79-4329af9a0a23" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments_39525b92-8c12-470b-8d09-762cedded585" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperationsAbstract_667fd0c6-5ebd-4029-a02e-0fb0220b5f8b" xlink:to="loc_us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments_39525b92-8c12-470b-8d09-762cedded585" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_23d381f4-9527-49ba-b190-127dccfce674" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperationsAbstract_667fd0c6-5ebd-4029-a02e-0fb0220b5f8b" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_23d381f4-9527-49ba-b190-127dccfce674" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperationsAbstract_48507534-de48-4d1f-8cdc-6f13918029dd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperationsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementOfCashFlowsAbstract_affcfe8c-cdf2-4e57-895a-66397b237002" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperationsAbstract_48507534-de48-4d1f-8cdc-6f13918029dd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfLongTermDebt_3bfd35af-5d7a-42db-baec-6ee4ea6ef985" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromIssuanceOfLongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperationsAbstract_48507534-de48-4d1f-8cdc-6f13918029dd" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfLongTermDebt_3bfd35af-5d7a-42db-baec-6ee4ea6ef985" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarlyRepaymentOfSeniorDebt_ee01f3ed-e952-46a8-84a3-602a071a7b3f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EarlyRepaymentOfSeniorDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperationsAbstract_48507534-de48-4d1f-8cdc-6f13918029dd" xlink:to="loc_us-gaap_EarlyRepaymentOfSeniorDebt_ee01f3ed-e952-46a8-84a3-602a071a7b3f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_PaymentOfOriginalIssueDiscountSeniorNotes_da12bf6f-96ee-4fd7-9369-6ae2de294111" xlink:href="mtg-20201231.xsd#mtg_PaymentOfOriginalIssueDiscountSeniorNotes"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperationsAbstract_48507534-de48-4d1f-8cdc-6f13918029dd" xlink:to="loc_mtg_PaymentOfOriginalIssueDiscountSeniorNotes_da12bf6f-96ee-4fd7-9369-6ae2de294111" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarlyRepaymentOfSubordinatedDebt_37a33368-def3-47c2-9525-e10301331275" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EarlyRepaymentOfSubordinatedDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperationsAbstract_48507534-de48-4d1f-8cdc-6f13918029dd" xlink:to="loc_us-gaap_EarlyRepaymentOfSubordinatedDebt_37a33368-def3-47c2-9525-e10301331275" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_PaymentOfOriginalIssueDiscountConvertibleJuniorSubordinatedDebentures_e148191e-bf06-4f6d-bdf4-c5de95211441" xlink:href="mtg-20201231.xsd#mtg_PaymentOfOriginalIssueDiscountConvertibleJuniorSubordinatedDebentures"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperationsAbstract_48507534-de48-4d1f-8cdc-6f13918029dd" xlink:to="loc_mtg_PaymentOfOriginalIssueDiscountConvertibleJuniorSubordinatedDebentures_e148191e-bf06-4f6d-bdf4-c5de95211441" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_GainLossOnDebtExtinghuishmentCashPortion_24cfa1d9-6652-42b9-a414-ee4859b86147" xlink:href="mtg-20201231.xsd#mtg_GainLossOnDebtExtinghuishmentCashPortion"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperationsAbstract_48507534-de48-4d1f-8cdc-6f13918029dd" xlink:to="loc_mtg_GainLossOnDebtExtinghuishmentCashPortion_24cfa1d9-6652-42b9-a414-ee4859b86147" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_d9ab0c69-5f57-430c-a080-c654863c0adf" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperationsAbstract_48507534-de48-4d1f-8cdc-6f13918029dd" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_d9ab0c69-5f57-430c-a080-c654863c0adf" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_a2d04cf8-273c-49ac-a9ae-637535cb8aef" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsOfDividendsCommonStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperationsAbstract_48507534-de48-4d1f-8cdc-6f13918029dd" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_a2d04cf8-273c-49ac-a9ae-637535cb8aef" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_c8ac0268-e987-4044-a832-05142b7d20c2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsOfDebtIssuanceCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperationsAbstract_48507534-de48-4d1f-8cdc-6f13918029dd" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_c8ac0268-e987-4044-a832-05142b7d20c2" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_f71ce87c-001c-4251-bb5a-d1688a019d22" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperationsAbstract_48507534-de48-4d1f-8cdc-6f13918029dd" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_f71ce87c-001c-4251-bb5a-d1688a019d22" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_b47e4645-2b71-4e56-bd28-1b8f5e504d31" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperationsAbstract_48507534-de48-4d1f-8cdc-6f13918029dd" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_b47e4645-2b71-4e56-bd28-1b8f5e504d31" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_91953572-c3f6-47cd-952b-ef1841e71725" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementOfCashFlowsAbstract_affcfe8c-cdf2-4e57-895a-66397b237002" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_91953572-c3f6-47cd-952b-ef1841e71725" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_7a85a144-78a1-48ea-9d93-7cd4eacb21be" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementOfCashFlowsAbstract_affcfe8c-cdf2-4e57-895a-66397b237002" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_7a85a144-78a1-48ea-9d93-7cd4eacb21be" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_509293a4-8b91-4e41-9722-fd72c4c4effb" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScheduleOfCondensedFinancialStatementsTable_dc172e13-3fed-4c55-a816-de9c3a20eb59" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ScheduleOfCondensedFinancialStatementsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_781821dd-58b1-4766-a9ac-3ca4dc116207" xlink:to="loc_srt_ScheduleOfCondensedFinancialStatementsTable_dc172e13-3fed-4c55-a816-de9c3a20eb59" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesAxis_e26a0ccb-adaf-42f9-a099-796038bf9ae5" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_srt_ScheduleOfCondensedFinancialStatementsTable_dc172e13-3fed-4c55-a816-de9c3a20eb59" xlink:to="loc_srt_ConsolidatedEntitiesAxis_e26a0ccb-adaf-42f9-a099-796038bf9ae5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_e26a0ccb-adaf-42f9-a099-796038bf9ae5_default" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_e26a0ccb-adaf-42f9-a099-796038bf9ae5" xlink:to="loc_srt_ConsolidatedEntitiesDomain_e26a0ccb-adaf-42f9-a099-796038bf9ae5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_63b3218e-0c2d-475a-899b-0a52088f6db7" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_e26a0ccb-adaf-42f9-a099-796038bf9ae5" xlink:to="loc_srt_ConsolidatedEntitiesDomain_63b3218e-0c2d-475a-899b-0a52088f6db7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ParentCompanyMember_cad32e0d-75d2-41dc-899d-1d3d9d21704c" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ParentCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_63b3218e-0c2d-475a-899b-0a52088f6db7" xlink:to="loc_srt_ParentCompanyMember_cad32e0d-75d2-41dc-899d-1d3d9d21704c" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/SCHEDULEIICONDENSEDFINANCIALINFORMATIONOFREGISTRANTSUPPLEMENTARYNOTESDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#SCHEDULEIICONDENSEDFINANCIALINFORMATIONOFREGISTRANTSUPPLEMENTARYNOTESDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/SCHEDULEIICONDENSEDFINANCIALINFORMATIONOFREGISTRANTSUPPLEMENTARYNOTESDetails" xlink:type="extended" id="i57877ee8ee604bc0aa3fb92bbd1585ed_SCHEDULEIICONDENSEDFINANCIALINFORMATIONOFREGISTRANTSUPPLEMENTARYNOTESDetails">
    <link:loc xlink:type="locator" xlink:label="loc_srt_SupplementaryInsuranceInformationBySegmentLineItems_708f73c6-d451-4b7c-9e1a-af15194a3690" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_SupplementaryInsuranceInformationBySegmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_PercentageOfStatutoryPolicyholdersSurplusUsedToDetermineMaximumAllowableDividends_f1917d6c-aab1-41ca-a6f8-861abf4a530e" xlink:href="mtg-20201231.xsd#mtg_PercentageOfStatutoryPolicyholdersSurplusUsedToDetermineMaximumAllowableDividends"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SupplementaryInsuranceInformationBySegmentLineItems_708f73c6-d451-4b7c-9e1a-af15194a3690" xlink:to="loc_mtg_PercentageOfStatutoryPolicyholdersSurplusUsedToDetermineMaximumAllowableDividends_f1917d6c-aab1-41ca-a6f8-861abf4a530e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_StatutoryAccountingPracticesStatutoryAmountAvailableForDividendPaymentsWithoutRegulatoryApprovalMeasurementMeasurementPeriod_e4c11ee7-e5cf-48b6-9157-eca45918831b" xlink:href="mtg-20201231.xsd#mtg_StatutoryAccountingPracticesStatutoryAmountAvailableForDividendPaymentsWithoutRegulatoryApprovalMeasurementMeasurementPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SupplementaryInsuranceInformationBySegmentLineItems_708f73c6-d451-4b7c-9e1a-af15194a3690" xlink:to="loc_mtg_StatutoryAccountingPracticesStatutoryAmountAvailableForDividendPaymentsWithoutRegulatoryApprovalMeasurementMeasurementPeriod_e4c11ee7-e5cf-48b6-9157-eca45918831b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_StatutoryAccountingPracticesStatutoryAmountAvailableforDividendPaymentswithoutRegulatoryApprovalMeasurementDividendPaymentPeriod_1589a230-686e-4ad0-9603-22f07abe411b" xlink:href="mtg-20201231.xsd#mtg_StatutoryAccountingPracticesStatutoryAmountAvailableforDividendPaymentswithoutRegulatoryApprovalMeasurementDividendPaymentPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SupplementaryInsuranceInformationBySegmentLineItems_708f73c6-d451-4b7c-9e1a-af15194a3690" xlink:to="loc_mtg_StatutoryAccountingPracticesStatutoryAmountAvailableforDividendPaymentswithoutRegulatoryApprovalMeasurementDividendPaymentPeriod_1589a230-686e-4ad0-9603-22f07abe411b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashDividendsPaidToParentCompany_764e3f55-44cf-4db4-8670-80408fac36ca" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashDividendsPaidToParentCompany"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SupplementaryInsuranceInformationBySegmentLineItems_708f73c6-d451-4b7c-9e1a-af15194a3690" xlink:to="loc_us-gaap_CashDividendsPaidToParentCompany_764e3f55-44cf-4db4-8670-80408fac36ca" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromContributionsFromParent_a2306b0d-752b-4ff9-9af9-838f3035e22e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromContributionsFromParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SupplementaryInsuranceInformationBySegmentLineItems_708f73c6-d451-4b7c-9e1a-af15194a3690" xlink:to="loc_us-gaap_ProceedsFromContributionsFromParent_a2306b0d-752b-4ff9-9af9-838f3035e22e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_465a5fa6-4355-4ef5-889a-3c405f34c473" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SupplementaryInsuranceInformationBySegmentLineItems_708f73c6-d451-4b7c-9e1a-af15194a3690" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_465a5fa6-4355-4ef5-889a-3c405f34c473" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_InvestmentInHoldingCompanyDebt_62002064-977e-48db-82f3-ebf0031d7604" xlink:href="mtg-20201231.xsd#mtg_InvestmentInHoldingCompanyDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SupplementaryInsuranceInformationBySegmentLineItems_708f73c6-d451-4b7c-9e1a-af15194a3690" xlink:to="loc_mtg_InvestmentInHoldingCompanyDebt_62002064-977e-48db-82f3-ebf0031d7604" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SupplementaryInsuranceInformationBySegmentTable_34e05265-4e30-4da9-8d56-68476947f1f8" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_SupplementaryInsuranceInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_srt_SupplementaryInsuranceInformationBySegmentLineItems_708f73c6-d451-4b7c-9e1a-af15194a3690" xlink:to="loc_srt_SupplementaryInsuranceInformationBySegmentTable_34e05265-4e30-4da9-8d56-68476947f1f8" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementScenarioAxis_c60c98f6-2533-424a-a4ea-15844ea8a6e1" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_StatementScenarioAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_srt_SupplementaryInsuranceInformationBySegmentTable_34e05265-4e30-4da9-8d56-68476947f1f8" xlink:to="loc_srt_StatementScenarioAxis_c60c98f6-2533-424a-a4ea-15844ea8a6e1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioUnspecifiedDomain_c60c98f6-2533-424a-a4ea-15844ea8a6e1_default" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ScenarioUnspecifiedDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementScenarioAxis_c60c98f6-2533-424a-a4ea-15844ea8a6e1" xlink:to="loc_srt_ScenarioUnspecifiedDomain_c60c98f6-2533-424a-a4ea-15844ea8a6e1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioUnspecifiedDomain_8bf838fa-3015-4b04-a8c3-dc34ee6e0346" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ScenarioUnspecifiedDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementScenarioAxis_c60c98f6-2533-424a-a4ea-15844ea8a6e1" xlink:to="loc_srt_ScenarioUnspecifiedDomain_8bf838fa-3015-4b04-a8c3-dc34ee6e0346" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioForecastMember_b7cebedb-2d0c-4f11-995b-cf177d5f801f" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ScenarioForecastMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ScenarioUnspecifiedDomain_8bf838fa-3015-4b04-a8c3-dc34ee6e0346" xlink:to="loc_srt_ScenarioForecastMember_b7cebedb-2d0c-4f11-995b-cf177d5f801f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_f555dbe2-77e9-445e-86d5-342c4832b19d" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_srt_SupplementaryInsuranceInformationBySegmentTable_34e05265-4e30-4da9-8d56-68476947f1f8" xlink:to="loc_dei_LegalEntityAxis_f555dbe2-77e9-445e-86d5-342c4832b19d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_f555dbe2-77e9-445e-86d5-342c4832b19d_default" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_f555dbe2-77e9-445e-86d5-342c4832b19d" xlink:to="loc_dei_EntityDomain_f555dbe2-77e9-445e-86d5-342c4832b19d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_dbe04107-013c-4a17-892a-90c76f4c2e58" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_f555dbe2-77e9-445e-86d5-342c4832b19d" xlink:to="loc_dei_EntityDomain_dbe04107-013c-4a17-892a-90c76f4c2e58" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_MortgageGuarantyInsuranceCorporationMember_14845d3b-06bf-492b-9621-0ac406f07033" xlink:href="mtg-20201231.xsd#mtg_MortgageGuarantyInsuranceCorporationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_dbe04107-013c-4a17-892a-90c76f4c2e58" xlink:to="loc_mtg_MortgageGuarantyInsuranceCorporationMember_14845d3b-06bf-492b-9621-0ac406f07033" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_08af0126-2709-4586-be62-2350a0d76aea" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_srt_SupplementaryInsuranceInformationBySegmentTable_34e05265-4e30-4da9-8d56-68476947f1f8" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_08af0126-2709-4586-be62-2350a0d76aea" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_08af0126-2709-4586-be62-2350a0d76aea_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_08af0126-2709-4586-be62-2350a0d76aea" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_08af0126-2709-4586-be62-2350a0d76aea_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_db2848fe-8c75-4ade-9de0-8ae1acc0ea35" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_08af0126-2709-4586-be62-2350a0d76aea" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_db2848fe-8c75-4ade-9de0-8ae1acc0ea35" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleSubordinatedDebtMember_75cda37f-4e20-4121-883d-c46f673ce971" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConvertibleSubordinatedDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_db2848fe-8c75-4ade-9de0-8ae1acc0ea35" xlink:to="loc_us-gaap_ConvertibleSubordinatedDebtMember_75cda37f-4e20-4121-883d-c46f673ce971" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesAxis_582e8c00-4e96-488a-81be-1de14c5519e0" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_srt_SupplementaryInsuranceInformationBySegmentTable_34e05265-4e30-4da9-8d56-68476947f1f8" xlink:to="loc_srt_ConsolidatedEntitiesAxis_582e8c00-4e96-488a-81be-1de14c5519e0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_582e8c00-4e96-488a-81be-1de14c5519e0_default" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_582e8c00-4e96-488a-81be-1de14c5519e0" xlink:to="loc_srt_ConsolidatedEntitiesDomain_582e8c00-4e96-488a-81be-1de14c5519e0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_75badfe4-bb58-4a50-97c8-2fc9d4a55e6d" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_582e8c00-4e96-488a-81be-1de14c5519e0" xlink:to="loc_srt_ConsolidatedEntitiesDomain_75badfe4-bb58-4a50-97c8-2fc9d4a55e6d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SubsidiariesMember_3269b056-e80b-4abb-aed2-5bc427a73451" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_SubsidiariesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_75badfe4-bb58-4a50-97c8-2fc9d4a55e6d" xlink:to="loc_srt_SubsidiariesMember_3269b056-e80b-4abb-aed2-5bc427a73451" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.mgic.com/role/SCHEDULEIVREINSURANCE" xlink:type="simple" xlink:href="mtg-20201231.xsd#SCHEDULEIVREINSURANCE"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/SCHEDULEIVREINSURANCE" xlink:type="extended" id="i8d25997069f94789ba55771f868499ac_SCHEDULEIVREINSURANCE"/>
  <link:roleRef roleURI="http://www.mgic.com/role/SCHEDULEIVREINSURANCEDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#SCHEDULEIVREINSURANCEDetails"/>
  <link:definitionLink xlink:role="http://www.mgic.com/role/SCHEDULEIVREINSURANCEDetails" xlink:type="extended" id="ia3df29a9d7c344c7b0e86bace3c5fdab_SCHEDULEIVREINSURANCEDetails"/>
</link:linkbase>
