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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:019e9870-deda-7d60-b43d-f5610824a86b,g:d08e9b69-5222-4897-964c-ab4f5ed499ba-->
<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.unitedfiregroup.com/role/ConsolidatedStatementofStockholdersEquityUnaudited" xlink:type="simple" xlink:href="ufcs-20260630.xsd#ConsolidatedStatementofStockholdersEquityUnaudited"/>
  <link:definitionLink xlink:role="http://www.unitedfiregroup.com/role/ConsolidatedStatementofStockholdersEquityUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_019e9870-e050-7c7f-83df-cf26d0940f19" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_019e9870-e050-757b-81de-efffab4a8ee6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_019e9870-e050-7c7f-83df-cf26d0940f19" xlink:to="loc_us-gaap_StatementTable_019e9870-e050-757b-81de-efffab4a8ee6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_019e9870-e050-7f3e-ba5d-42ca71509998" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_019e9870-e050-757b-81de-efffab4a8ee6" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_019e9870-e050-7f3e-ba5d-42ca71509998" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_019e9870-e050-7f3e-ba5d-42ca71509998_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_019e9870-e050-7f3e-ba5d-42ca71509998" xlink:to="loc_us-gaap_EquityComponentDomain_019e9870-e050-7f3e-ba5d-42ca71509998_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_019e9870-e050-706d-83c6-9b6becf744f1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_019e9870-e050-7f3e-ba5d-42ca71509998" xlink:to="loc_us-gaap_EquityComponentDomain_019e9870-e050-706d-83c6-9b6becf744f1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_019e9870-e050-7077-b8bb-7e10da5ca2cb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019e9870-e050-706d-83c6-9b6becf744f1" xlink:to="loc_us-gaap_CommonStockMember_019e9870-e050-7077-b8bb-7e10da5ca2cb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_019e9870-e050-76a9-bf1a-6ed5a8c5e927" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019e9870-e050-706d-83c6-9b6becf744f1" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_019e9870-e050-76a9-bf1a-6ed5a8c5e927" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_019e9870-e050-7512-bf59-e19ee554ed2a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019e9870-e050-706d-83c6-9b6becf744f1" xlink:to="loc_us-gaap_RetainedEarningsMember_019e9870-e050-7512-bf59-e19ee554ed2a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_019e9870-e050-70a4-a03f-18edf0001312" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019e9870-e050-706d-83c6-9b6becf744f1" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_019e9870-e050-70a4-a03f-18edf0001312" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e9870-e050-72f8-8ca3-ae553adbc024" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019e9870-e050-7c7f-83df-cf26d0940f19" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e9870-e050-72f8-8ca3-ae553adbc024" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019e9870-e050-7c02-8521-12cfab2b7fee" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e9870-e050-72f8-8ca3-ae553adbc024" xlink:to="loc_us-gaap_StockholdersEquity_019e9870-e050-7c02-8521-12cfab2b7fee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation_019e9870-e050-75d9-a891-22db6ab7e0bd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e9870-e050-72f8-8ca3-ae553adbc024" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation_019e9870-e050-75d9-a891-22db6ab7e0bd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019e9870-e050-77c0-9525-07487a8bf634" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e9870-e050-72f8-8ca3-ae553adbc024" xlink:to="loc_us-gaap_NetIncomeLoss_019e9870-e050-77c0-9525-07487a8bf634" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsCommonStock_019e9870-e050-743c-9cd0-82f4e0e1d451" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DividendsCommonStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e9870-e050-72f8-8ca3-ae553adbc024" xlink:to="loc_us-gaap_DividendsCommonStock_019e9870-e050-743c-9cd0-82f4e0e1d451" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTranslationAdjustmentTax_019f217d-04f3-759c-ae44-80e39b32a857" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTranslationAdjustmentTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e9870-e050-72f8-8ca3-ae553adbc024" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTranslationAdjustmentTax_019f217d-04f3-759c-ae44-80e39b32a857" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019e9870-e050-7328-b392-05a89651359f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e9870-e050-72f8-8ca3-ae553adbc024" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019e9870-e050-7328-b392-05a89651359f" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParent_019e9870-e050-706b-b133-eea65a94cc4b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e9870-e050-72f8-8ca3-ae553adbc024" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParent_019e9870-e050-706b-b133-eea65a94cc4b" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossBeforeReclassificationAndTax_019e9870-e050-721d-acb4-2718a0925e72" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossBeforeReclassificationAndTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e9870-e050-72f8-8ca3-ae553adbc024" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossBeforeReclassificationAndTax_019e9870-e050-721d-acb4-2718a0925e72" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019e9870-e050-7ab8-b54f-1cdfa04e058c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_019e9870-e050-7b0d-a421-69bd7e7e2a0f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e9870-e050-72f8-8ca3-ae553adbc024" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_019e9870-e050-7b0d-a421-69bd7e7e2a0f" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation_019e9870-e050-783e-a444-be387c4d29ef" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e9870-e050-72f8-8ca3-ae553adbc024" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation_019e9870-e050-783e-a444-be387c4d29ef" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_019e9870-e050-7906-b121-368167465833" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockSharesOutstanding"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSFairValueofInvestmentsDetails" xlink:type="simple" xlink:href="ufcs-20260630.xsd#SUMMARYOFINVESTMENTSFairValueofInvestmentsDetails"/>
  <link:definitionLink xlink:role="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSFairValueofInvestmentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019e9870-e050-78d8-b89a-c51b08a4c787" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019e9870-e050-73c7-b479-ad91512afb71" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019e9870-e050-78d8-b89a-c51b08a4c787" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019e9870-e050-73c7-b479-ad91512afb71" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_019e9870-e050-75ac-bc57-7380e05c5fe8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019e9870-e050-73c7-b479-ad91512afb71" xlink:to="loc_us-gaap_FinancialInstrumentAxis_019e9870-e050-75ac-bc57-7380e05c5fe8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e050-75ac-bc57-7380e05c5fe8_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019e9870-e050-75ac-bc57-7380e05c5fe8" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e050-75ac-bc57-7380e05c5fe8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e050-7027-9003-8426dc8de22d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019e9870-e050-75ac-bc57-7380e05c5fe8" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e050-7027-9003-8426dc8de22d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USTreasuryAndGovernmentMember_019e9870-e050-792c-8859-58dd51aeeab7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_USTreasuryAndGovernmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e050-7027-9003-8426dc8de22d" xlink:to="loc_us-gaap_USTreasuryAndGovernmentMember_019e9870-e050-792c-8859-58dd51aeeab7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USStatesAndPoliticalSubdivisionsMember_019e9870-e050-74b1-a550-43668d3d81f1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_USStatesAndPoliticalSubdivisionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e050-7027-9003-8426dc8de22d" xlink:to="loc_us-gaap_USStatesAndPoliticalSubdivisionsMember_019e9870-e050-74b1-a550-43668d3d81f1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_019e9870-e050-7aff-9723-dfaad215a7fd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CorporateDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e050-7027-9003-8426dc8de22d" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_019e9870-e050-7aff-9723-dfaad215a7fd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResidentialMortgageBackedSecuritiesMember_019e9870-e050-7ae0-950c-a13ebab546a4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ResidentialMortgageBackedSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e050-7027-9003-8426dc8de22d" xlink:to="loc_us-gaap_ResidentialMortgageBackedSecuritiesMember_019e9870-e050-7ae0-950c-a13ebab546a4" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialMortgageBackedSecuritiesMember_019e9870-e050-71e1-8df4-0fe84fc57617" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommercialMortgageBackedSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e050-7027-9003-8426dc8de22d" xlink:to="loc_us-gaap_CommercialMortgageBackedSecuritiesMember_019e9870-e050-71e1-8df4-0fe84fc57617" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_OtherAssetBackedSecuritiesMember_019e9870-e050-7233-ac9a-d00ce96054b5" xlink:href="ufcs-20260630.xsd#ufcs_OtherAssetBackedSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e050-7027-9003-8426dc8de22d" xlink:to="loc_ufcs_OtherAssetBackedSecuritiesMember_019e9870-e050-7233-ac9a-d00ce96054b5" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesAbstract_019e9870-e050-788e-8bb3-d1955d54a2be" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019e9870-e050-78d8-b89a-c51b08a4c787" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesAbstract_019e9870-e050-788e-8bb3-d1955d54a2be" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_019e9870-e050-71f6-a4f7-33f67dfb0008" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_019e9870-e050-788e-8bb3-d1955d54a2be" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_019e9870-e050-71f6-a4f7-33f67dfb0008" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_019e9870-e050-7ff3-a5e0-88a27f5b5d3f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_019e9870-e050-788e-8bb3-d1955d54a2be" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_019e9870-e050-7ff3-a5e0-88a27f5b5d3f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_019e9870-e050-7083-87b9-e4795146266e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_019e9870-e050-788e-8bb3-d1955d54a2be" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_019e9870-e050-7083-87b9-e4795146266e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostAllowanceForCreditLossExcludingAccruedInterest_019e9870-e050-7120-8248-d4296605f3f7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_019e9870-e050-788e-8bb3-d1955d54a2be" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostAllowanceForCreditLossExcludingAccruedInterest_019e9870-e050-7120-8248-d4296605f3f7" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019e9870-e050-7934-84ac-e6b36b2c7c9c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_019e9870-e050-788e-8bb3-d1955d54a2be" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019e9870-e050-7934-84ac-e6b36b2c7c9c" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSMaturitiesDetails" xlink:type="simple" xlink:href="ufcs-20260630.xsd#SUMMARYOFINVESTMENTSMaturitiesDetails"/>
  <link:definitionLink xlink:role="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSMaturitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfInvestmentsLineItems_019e9870-e050-7d64-ada8-4954e8ee1ef7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfInvestmentsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfInvestmentsTable_019e9870-e050-7fc7-b838-05d39d164a92" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfInvestmentsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_019e9870-e050-7d64-ada8-4954e8ee1ef7" xlink:to="loc_us-gaap_ScheduleOfInvestmentsTable_019e9870-e050-7fc7-b838-05d39d164a92" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_019e9870-e050-78b3-9135-996367fd794a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfInvestmentsTable_019e9870-e050-7fc7-b838-05d39d164a92" xlink:to="loc_us-gaap_FinancialInstrumentAxis_019e9870-e050-78b3-9135-996367fd794a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e050-78b3-9135-996367fd794a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019e9870-e050-78b3-9135-996367fd794a" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e050-78b3-9135-996367fd794a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e050-7670-a28a-6ade8bb71d2a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019e9870-e050-78b3-9135-996367fd794a" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e050-7670-a28a-6ade8bb71d2a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetBackedSecuritiesMember_019e9870-e050-796a-b25d-62251c4647b4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetBackedSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e050-7670-a28a-6ade8bb71d2a" xlink:to="loc_us-gaap_AssetBackedSecuritiesMember_019e9870-e050-796a-b25d-62251c4647b4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FixedMaturitiesMember_019e9870-e050-7b8b-b857-b2cefb95fb74" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FixedMaturitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e050-7670-a28a-6ade8bb71d2a" xlink:to="loc_us-gaap_FixedMaturitiesMember_019e9870-e050-7b8b-b857-b2cefb95fb74" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract_019e9870-e050-74cd-be8f-c9505f1501b5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_019e9870-e050-7d64-ada8-4954e8ee1ef7" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract_019e9870-e050-74cd-be8f-c9505f1501b5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_019e9870-e050-7b96-b840-997e23779aed" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract_019e9870-e050-74cd-be8f-c9505f1501b5" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_019e9870-e050-7b96-b840-997e23779aed" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_019e9870-e050-7208-a876-4d93781c375a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract_019e9870-e050-74cd-be8f-c9505f1501b5" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_019e9870-e050-7208-a876-4d93781c375a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_019e9870-e050-7ccc-a74a-0710959a1d25" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract_019e9870-e050-74cd-be8f-c9505f1501b5" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_019e9870-e050-7ccc-a74a-0710959a1d25" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_019e9870-e050-7e4e-8c50-d947e35f14dd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract_019e9870-e050-74cd-be8f-c9505f1501b5" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_019e9870-e050-7e4e-8c50-d947e35f14dd" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateAmortizedCost_019e9870-e050-7431-b956-ef4993ba46bd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateAmortizedCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract_019e9870-e050-74cd-be8f-c9505f1501b5" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateAmortizedCost_019e9870-e050-7431-b956-ef4993ba46bd" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_019e9870-e050-7b63-a585-08d6eae1f018" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract_019e9870-e050-74cd-be8f-c9505f1501b5" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_019e9870-e050-7b63-a585-08d6eae1f018" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract_019e9870-e050-7bbc-bef1-2de3219f5c4d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_019e9870-e050-7d64-ada8-4954e8ee1ef7" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract_019e9870-e050-7bbc-bef1-2de3219f5c4d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_019e9870-e050-7a9c-989c-415be00298b6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract_019e9870-e050-7bbc-bef1-2de3219f5c4d" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_019e9870-e050-7a9c-989c-415be00298b6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_019e9870-e050-75e0-8ce5-b59e3f66afaf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract_019e9870-e050-7bbc-bef1-2de3219f5c4d" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_019e9870-e050-75e0-8ce5-b59e3f66afaf" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_019e9870-e050-75a2-b18b-b051a3670fac" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract_019e9870-e050-7bbc-bef1-2de3219f5c4d" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_019e9870-e050-75a2-b18b-b051a3670fac" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_019e9870-e050-78a5-bb24-4e583dff56b5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract_019e9870-e050-7bbc-bef1-2de3219f5c4d" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_019e9870-e050-78a5-bb24-4e583dff56b5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue_019e9870-e050-705e-b951-3b8e12ac4d28" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract_019e9870-e050-7bbc-bef1-2de3219f5c4d" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue_019e9870-e050-705e-b951-3b8e12ac4d28" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019e9870-e050-7e38-bdcc-c7770a27268d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract_019e9870-e050-7bbc-bef1-2de3219f5c4d" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019e9870-e050-7e38-bdcc-c7770a27268d" xlink:type="arc" order="6"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSNarrativeDetails" xlink:type="simple" xlink:href="ufcs-20260630.xsd#SUMMARYOFINVESTMENTSNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_019e9870-e050-7033-88f1-f1859ab7da10" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_019e9870-e050-77f2-a520-325a3da7b195" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfFinancingReceivablesPastDueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_019e9870-e050-7033-88f1-f1859ab7da10" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_019e9870-e050-77f2-a520-325a3da7b195" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_019e9870-e050-7fde-8cc3-f8ebdbd1885b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivablesPeriodPastDueAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_019e9870-e050-77f2-a520-325a3da7b195" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_019e9870-e050-7fde-8cc3-f8ebdbd1885b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_019e9870-e050-7fde-8cc3-f8ebdbd1885b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivablesPeriodPastDueDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_019e9870-e050-7fde-8cc3-f8ebdbd1885b" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_019e9870-e050-7fde-8cc3-f8ebdbd1885b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_019e9870-e050-7429-8b3f-cf1729d3ec0a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivablesPeriodPastDueDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_019e9870-e050-7fde-8cc3-f8ebdbd1885b" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_019e9870-e050-7429-8b3f-cf1729d3ec0a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialAssetPastDueMember_019e9870-e050-7115-951e-f1dde0b4717f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancialAssetPastDueMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_019e9870-e050-7429-8b3f-cf1729d3ec0a" xlink:to="loc_us-gaap_FinancialAssetPastDueMember_019e9870-e050-7115-951e-f1dde0b4717f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostAllowanceForCreditLossExcludingAccruedInterest_019e9870-e050-7bc1-ac04-33b2bacb77a3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_019e9870-e050-7033-88f1-f1859ab7da10" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostAllowanceForCreditLossExcludingAccruedInterest_019e9870-e050-7bc1-ac04-33b2bacb77a3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_019e9870-e050-7249-a969-7aede02537fb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_019e9870-e050-7033-88f1-f1859ab7da10" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_019e9870-e050-7249-a969-7aede02537fb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_NumberOfCommercialMortgageLoansPastDue_019e9870-e050-73c3-88fd-d375e61f5dd3" xlink:href="ufcs-20260630.xsd#ufcs_NumberOfCommercialMortgageLoansPastDue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_019e9870-e050-7033-88f1-f1859ab7da10" xlink:to="loc_ufcs_NumberOfCommercialMortgageLoansPastDue_019e9870-e050-73c3-88fd-d375e61f5dd3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019e9870-e050-7e48-92b4-791542e13846" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_019e9870-e050-7033-88f1-f1859ab7da10" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019e9870-e050-7e48-92b4-791542e13846" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAccruedInterestAfterAllowanceForCreditLoss_019e9870-e050-7c7b-8b96-08493bd2758c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_019e9870-e050-7033-88f1-f1859ab7da10" xlink:to="loc_us-gaap_FinancingReceivableAccruedInterestAfterAllowanceForCreditLoss_019e9870-e050-7c7b-8b96-08493bd2758c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractualObligation_019e9870-e050-7ff0-9ba9-4a1817975817" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContractualObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_019e9870-e050-7033-88f1-f1859ab7da10" xlink:to="loc_us-gaap_ContractualObligation_019e9870-e050-7ff0-9ba9-4a1817975817" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSUnrealizedGainandLossDetails" xlink:type="simple" xlink:href="ufcs-20260630.xsd#SUMMARYOFINVESTMENTSUnrealizedGainandLossDetails"/>
  <link:definitionLink xlink:role="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSUnrealizedGainandLossDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019e9870-e050-7236-91fb-68efce4dc7c6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019e9870-e050-7dab-90d3-c1b55e2dd062" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019e9870-e050-7236-91fb-68efce4dc7c6" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019e9870-e050-7dab-90d3-c1b55e2dd062" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_019e9870-e050-7dd0-a928-5eb75ca3b0f9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019e9870-e050-7dab-90d3-c1b55e2dd062" xlink:to="loc_us-gaap_FinancialInstrumentAxis_019e9870-e050-7dd0-a928-5eb75ca3b0f9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e050-7dd0-a928-5eb75ca3b0f9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019e9870-e050-7dd0-a928-5eb75ca3b0f9" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e050-7dd0-a928-5eb75ca3b0f9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e050-73ed-bdbf-7327cb9e47d4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019e9870-e050-7dd0-a928-5eb75ca3b0f9" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e050-73ed-bdbf-7327cb9e47d4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_LloydsSyndicateInvestmentsMember_019e9870-e050-7260-a1a3-e302440ef689" xlink:href="ufcs-20260630.xsd#ufcs_LloydsSyndicateInvestmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e050-73ed-bdbf-7327cb9e47d4" xlink:to="loc_ufcs_LloydsSyndicateInvestmentsMember_019e9870-e050-7260-a1a3-e302440ef689" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsNetOfTaxAbstract_019e9870-e050-7a32-9622-90b9c4cadc2b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsNetOfTaxAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019e9870-e050-7236-91fb-68efce4dc7c6" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsNetOfTaxAbstract_019e9870-e050-7a32-9622-90b9c4cadc2b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeTax_019e9870-e050-700f-a139-a5a43e0e181f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsNetOfTaxAbstract_019e9870-e050-7a32-9622-90b9c4cadc2b" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeTax_019e9870-e050-700f-a139-a5a43e0e181f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax_019e9870-e050-7f45-9f8d-5742f101725b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsNetOfTaxAbstract_019e9870-e050-7a32-9622-90b9c4cadc2b" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax_019e9870-e050-7f45-9f8d-5742f101725b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_019e9870-e050-78b0-8881-ac851b9afa83" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsNetOfTaxAbstract_019e9870-e050-7a32-9622-90b9c4cadc2b" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_019e9870-e050-78b0-8881-ac851b9afa83" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_019e9870-e050-73f9-9eaa-e3b5c8387f7b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSFixedMaturitiesUnrealizedLossDetails" xlink:type="simple" xlink:href="ufcs-20260630.xsd#SUMMARYOFINVESTMENTSFixedMaturitiesUnrealizedLossDetails"/>
  <link:definitionLink xlink:role="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSFixedMaturitiesUnrealizedLossDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019e9870-e050-7c87-906e-4c2187a296d9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019e9870-e050-71fc-af2f-2ab32fcb4d7a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019e9870-e050-7c87-906e-4c2187a296d9" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019e9870-e050-71fc-af2f-2ab32fcb4d7a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_019e9870-e050-7441-b248-f08fbedd5aa7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019e9870-e050-71fc-af2f-2ab32fcb4d7a" xlink:to="loc_us-gaap_FinancialInstrumentAxis_019e9870-e050-7441-b248-f08fbedd5aa7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e050-7441-b248-f08fbedd5aa7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019e9870-e050-7441-b248-f08fbedd5aa7" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e050-7441-b248-f08fbedd5aa7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e050-7539-8ad1-dbf5edf99fbf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019e9870-e050-7441-b248-f08fbedd5aa7" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e050-7539-8ad1-dbf5edf99fbf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USTreasuryAndGovernmentMember_019e9870-e050-74af-aaa0-729d87fd41f2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_USTreasuryAndGovernmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e050-7539-8ad1-dbf5edf99fbf" xlink:to="loc_us-gaap_USTreasuryAndGovernmentMember_019e9870-e050-74af-aaa0-729d87fd41f2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USStatesAndPoliticalSubdivisionsMember_019e9870-e050-7c84-bb6a-1b986b9efdbd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_USStatesAndPoliticalSubdivisionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e050-7539-8ad1-dbf5edf99fbf" xlink:to="loc_us-gaap_USStatesAndPoliticalSubdivisionsMember_019e9870-e050-7c84-bb6a-1b986b9efdbd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_019e9870-e050-76c5-a87b-ab1a7d9ed8d7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CorporateDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e050-7539-8ad1-dbf5edf99fbf" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_019e9870-e050-76c5-a87b-ab1a7d9ed8d7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResidentialMortgageBackedSecuritiesMember_019e9870-e050-76b1-aa93-26771aef8480" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ResidentialMortgageBackedSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e050-7539-8ad1-dbf5edf99fbf" xlink:to="loc_us-gaap_ResidentialMortgageBackedSecuritiesMember_019e9870-e050-76b1-aa93-26771aef8480" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialMortgageBackedSecuritiesMember_019e9870-e050-7879-aebf-369dd55f5714" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommercialMortgageBackedSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e050-7539-8ad1-dbf5edf99fbf" xlink:to="loc_us-gaap_CommercialMortgageBackedSecuritiesMember_019e9870-e050-7879-aebf-369dd55f5714" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_OtherAssetBackedSecuritiesMember_019e9870-e050-7cc3-aa32-9a666e698b61" xlink:href="ufcs-20260630.xsd#ufcs_OtherAssetBackedSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e050-7539-8ad1-dbf5edf99fbf" xlink:to="loc_ufcs_OtherAssetBackedSecuritiesMember_019e9870-e050-7cc3-aa32-9a666e698b61" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionQualitativeDisclosureAbstract_019e9870-e050-7f3d-985a-f0558ac20f0d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionQualitativeDisclosureAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019e9870-e050-7c87-906e-4c2187a296d9" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionQualitativeDisclosureAbstract_019e9870-e050-7f3d-985a-f0558ac20f0d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForsaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsAbstract_019e9870-e050-752f-ad38-472839fea39b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForsaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionQualitativeDisclosureAbstract_019e9870-e050-7f3d-985a-f0558ac20f0d" xlink:to="loc_us-gaap_AvailableForsaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsAbstract_019e9870-e050-752f-ad38-472839fea39b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsNumberOfPositions_019e9870-e050-7ff4-8165-b9ea68850e6d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsNumberOfPositions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForsaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsAbstract_019e9870-e050-752f-ad38-472839fea39b" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsNumberOfPositions_019e9870-e050-7ff4-8165-b9ea68850e6d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerNumberOfPositions_019e9870-e050-78d7-97c7-d737ccb2452c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerNumberOfPositions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForsaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsAbstract_019e9870-e050-752f-ad38-472839fea39b" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerNumberOfPositions_019e9870-e050-78d7-97c7-d737ccb2452c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract_019e9870-e050-7890-8880-2e7ea1a2a282" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionQualitativeDisclosureAbstract_019e9870-e050-7f3d-985a-f0558ac20f0d" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract_019e9870-e050-7890-8880-2e7ea1a2a282" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_019e9870-e050-73a0-a2b7-7f62b0868bc2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract_019e9870-e050-7890-8880-2e7ea1a2a282" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_019e9870-e050-73a0-a2b7-7f62b0868bc2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_019e9870-e050-7db0-af94-3781d7ad119c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract_019e9870-e050-7890-8880-2e7ea1a2a282" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_019e9870-e050-7db0-af94-3781d7ad119c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_019e9870-e050-7428-951c-dcbad5d4bdb6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract_019e9870-e050-7890-8880-2e7ea1a2a282" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_019e9870-e050-7428-951c-dcbad5d4bdb6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_019e9870-e050-70ce-ab71-0445b708ab8f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionQualitativeDisclosureAbstract_019e9870-e050-7f3d-985a-f0558ac20f0d" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_019e9870-e050-70ce-ab71-0445b708ab8f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_019e9870-e050-74ff-a3af-fba25bd06ed4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_019e9870-e050-70ce-ab71-0445b708ab8f" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_019e9870-e050-74ff-a3af-fba25bd06ed4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_019e9870-e050-7817-83dc-4348b11ea4c6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_019e9870-e050-70ce-ab71-0445b708ab8f" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_019e9870-e050-7817-83dc-4348b11ea4c6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_019e9870-e050-711e-a9cb-7b9cc3330b56" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract_019e9870-e050-70ce-ab71-0445b708ab8f" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_019e9870-e050-711e-a9cb-7b9cc3330b56" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSCarryingValueofCommercialMortgageLoansandAdditionalInformationDetails" xlink:type="simple" xlink:href="ufcs-20260630.xsd#SUMMARYOFINVESTMENTSCarryingValueofCommercialMortgageLoansandAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSCarryingValueofCommercialMortgageLoansandAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_019e9870-e050-7538-bc4f-ba5152d4f63f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableRecordedInvestmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_019e9870-e050-7b9a-ba05-80ba218b9f39" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_019e9870-e050-7538-bc4f-ba5152d4f63f" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_019e9870-e050-7b9a-ba05-80ba218b9f39" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoanToValueAxis_019e9870-e050-7755-a0f4-bdd271405dfc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LoanToValueAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_019e9870-e050-7b9a-ba05-80ba218b9f39" xlink:to="loc_us-gaap_LoanToValueAxis_019e9870-e050-7755-a0f4-bdd271405dfc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoanToValueDomain_019e9870-e050-7755-a0f4-bdd271405dfc_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LoanToValueDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LoanToValueAxis_019e9870-e050-7755-a0f4-bdd271405dfc" xlink:to="loc_us-gaap_LoanToValueDomain_019e9870-e050-7755-a0f4-bdd271405dfc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoanToValueDomain_019e9870-e050-7cf2-8847-22f84f632c77" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LoanToValueDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LoanToValueAxis_019e9870-e050-7755-a0f4-bdd271405dfc" xlink:to="loc_us-gaap_LoanToValueDomain_019e9870-e050-7cf2-8847-22f84f632c77" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_LtvLessThan65PercentMember_019e9870-e050-7825-b399-3b4f3e92c5ea" xlink:href="ufcs-20260630.xsd#ufcs_LtvLessThan65PercentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoanToValueDomain_019e9870-e050-7cf2-8847-22f84f632c77" xlink:to="loc_ufcs_LtvLessThan65PercentMember_019e9870-e050-7825-b399-3b4f3e92c5ea" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_Ltv65To75PercentMember_019e9870-e050-742a-827d-2783c084fa86" xlink:href="ufcs-20260630.xsd#ufcs_Ltv65To75PercentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoanToValueDomain_019e9870-e050-7cf2-8847-22f84f632c77" xlink:to="loc_ufcs_Ltv65To75PercentMember_019e9870-e050-742a-827d-2783c084fa86" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_019e9870-e050-752c-a90c-bedcc3a6cff6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_019e9870-e050-7b9a-ba05-80ba218b9f39" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_019e9870-e050-752c-a90c-bedcc3a6cff6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_019e9870-e050-752c-a90c-bedcc3a6cff6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_019e9870-e050-752c-a90c-bedcc3a6cff6" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_019e9870-e050-752c-a90c-bedcc3a6cff6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_019e9870-e050-745f-8cdb-8e55fe6d23c2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_019e9870-e050-752c-a90c-bedcc3a6cff6" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_019e9870-e050-745f-8cdb-8e55fe6d23c2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_CommercialMortgageLoansMember_019e9870-e050-7088-a6f0-bebbf3fbc19d" xlink:href="ufcs-20260630.xsd#ufcs_CommercialMortgageLoansMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_019e9870-e050-745f-8cdb-8e55fe6d23c2" xlink:to="loc_ufcs_CommercialMortgageLoansMember_019e9870-e050-7088-a6f0-bebbf3fbc19d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_019e9870-e050-7e2e-b259-94cb16be4d8a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_019e9870-e050-7b9a-ba05-80ba218b9f39" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_019e9870-e050-7e2e-b259-94cb16be4d8a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_019e9870-e050-7e2e-b259-94cb16be4d8a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_019e9870-e050-7e2e-b259-94cb16be4d8a" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_019e9870-e050-7e2e-b259-94cb16be4d8a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_019e9870-e050-7511-8fea-5d8881ef8e2d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_019e9870-e050-7e2e-b259-94cb16be4d8a" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_019e9870-e050-7511-8fea-5d8881ef8e2d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeographicConcentrationRiskMember_019e9870-e050-763b-8cc5-04d1bf29040f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GeographicConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_019e9870-e050-7511-8fea-5d8881ef8e2d" xlink:to="loc_us-gaap_GeographicConcentrationRiskMember_019e9870-e050-763b-8cc5-04d1bf29040f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_PropertyTypeConcentrationRiskMember_019e9870-e050-7ac3-98d0-ef12a5e5e038" xlink:href="ufcs-20260630.xsd#ufcs_PropertyTypeConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_019e9870-e050-7511-8fea-5d8881ef8e2d" xlink:to="loc_ufcs_PropertyTypeConcentrationRiskMember_019e9870-e050-7ac3-98d0-ef12a5e5e038" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_019e9870-e050-721b-b96f-9a6bb93287c2" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_019e9870-e050-7b9a-ba05-80ba218b9f39" xlink:to="loc_srt_StatementGeographicalAxis_019e9870-e050-721b-b96f-9a6bb93287c2" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_019e9870-e050-721b-b96f-9a6bb93287c2_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_019e9870-e050-721b-b96f-9a6bb93287c2" xlink:to="loc_srt_SegmentGeographicalDomain_019e9870-e050-721b-b96f-9a6bb93287c2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_019e9870-e050-7f43-99a1-0d37e3907e61" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_019e9870-e050-721b-b96f-9a6bb93287c2" xlink:to="loc_srt_SegmentGeographicalDomain_019e9870-e050-7f43-99a1-0d37e3907e61" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_EastNorthCentralMember_019e9870-e050-7d4d-9857-b5e53666b1ac" xlink:href="ufcs-20260630.xsd#ufcs_EastNorthCentralMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_019e9870-e050-7f43-99a1-0d37e3907e61" xlink:to="loc_ufcs_EastNorthCentralMember_019e9870-e050-7d4d-9857-b5e53666b1ac" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_SouthernAtlanticMember_019e9870-e050-7716-bd0a-f322bc5cb874" xlink:href="ufcs-20260630.xsd#ufcs_SouthernAtlanticMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_019e9870-e050-7f43-99a1-0d37e3907e61" xlink:to="loc_ufcs_SouthernAtlanticMember_019e9870-e050-7716-bd0a-f322bc5cb874" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_EastSouthCentralMember_019e9870-e050-7689-beef-d400e5d380a5" xlink:href="ufcs-20260630.xsd#ufcs_EastSouthCentralMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_019e9870-e050-7f43-99a1-0d37e3907e61" xlink:to="loc_ufcs_EastSouthCentralMember_019e9870-e050-7689-beef-d400e5d380a5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_MiddleAtlanticMember_019e9870-e050-7287-bcc8-5e47528b37a5" xlink:href="ufcs-20260630.xsd#ufcs_MiddleAtlanticMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_019e9870-e050-7f43-99a1-0d37e3907e61" xlink:to="loc_ufcs_MiddleAtlanticMember_019e9870-e050-7287-bcc8-5e47528b37a5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_MountainMember_019e9870-e050-7647-88c0-4901be350569" xlink:href="ufcs-20260630.xsd#ufcs_MountainMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_019e9870-e050-7f43-99a1-0d37e3907e61" xlink:to="loc_ufcs_MountainMember_019e9870-e050-7647-88c0-4901be350569" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_WestNorthCentralMember_019e9870-e050-763a-bc44-adb4262403dc" xlink:href="ufcs-20260630.xsd#ufcs_WestNorthCentralMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_019e9870-e050-7f43-99a1-0d37e3907e61" xlink:to="loc_ufcs_WestNorthCentralMember_019e9870-e050-763a-bc44-adb4262403dc" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis_019e9870-e050-773c-bf50-fe6a23df4688" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_019e9870-e050-7b9a-ba05-80ba218b9f39" xlink:to="loc_srt_MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis_019e9870-e050-773c-bf50-fe6a23df4688" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_019e9870-e050-773c-bf50-fe6a23df4688_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MortgageLoansOnRealEstateNamePropertyTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis_019e9870-e050-773c-bf50-fe6a23df4688" xlink:to="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_019e9870-e050-773c-bf50-fe6a23df4688_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_019e9870-e050-798f-b885-a28457d04090" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MortgageLoansOnRealEstateNamePropertyTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis_019e9870-e050-773c-bf50-fe6a23df4688" xlink:to="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_019e9870-e050-798f-b885-a28457d04090" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MultifamilyMember_019e9870-e050-7bdc-99c2-6310fdebcfc2" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MultifamilyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_019e9870-e050-798f-b885-a28457d04090" xlink:to="loc_srt_MultifamilyMember_019e9870-e050-7bdc-99c2-6310fdebcfc2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OfficeBuildingMember_019e9870-e050-7cb8-9974-af65fb929b87" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_OfficeBuildingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_019e9870-e050-798f-b885-a28457d04090" xlink:to="loc_srt_OfficeBuildingMember_019e9870-e050-7cb8-9974-af65fb929b87" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_IndustrialMember_019e9870-e050-771b-8294-7bdf8cb9568b" xlink:href="ufcs-20260630.xsd#ufcs_IndustrialMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_019e9870-e050-798f-b885-a28457d04090" xlink:to="loc_ufcs_IndustrialMember_019e9870-e050-771b-8294-7bdf8cb9568b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RetailSiteMember_019e9870-e050-7dc3-9973-8572eef02540" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RetailSiteMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_019e9870-e050-798f-b885-a28457d04090" xlink:to="loc_srt_RetailSiteMember_019e9870-e050-7dc3-9973-8572eef02540" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OtherPropertyMember_019e9870-e050-75a0-a6c1-2ef2e5861db2" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_OtherPropertyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_MortgageLoansOnRealEstateNamePropertyTypeDomain_019e9870-e050-798f-b885-a28457d04090" xlink:to="loc_srt_OtherPropertyMember_019e9870-e050-75a0-a6c1-2ef2e5861db2" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019e9870-e050-7e80-af01-42666fe2ad31" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_019e9870-e050-7538-bc4f-ba5152d4f63f" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019e9870-e050-7e80-af01-42666fe2ad31" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_019e9870-e050-7c7b-a29d-69a1fe74ce49" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_019e9870-e050-7538-bc4f-ba5152d4f63f" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_019e9870-e050-7c7b-a29d-69a1fe74ce49" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_019e9870-e050-79c1-bfbe-f8ec0a01939c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_019e9870-e050-7538-bc4f-ba5152d4f63f" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_019e9870-e050-79c1-bfbe-f8ec0a01939c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_019e9870-e050-7b2e-b802-7247d9aa9396" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskPercentage1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_019e9870-e050-7538-bc4f-ba5152d4f63f" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_019e9870-e050-7b2e-b802-7247d9aa9396" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSAmortizedCostBasisbyYearofOriginationandCreditQualityIndicatorDetails" xlink:type="simple" xlink:href="ufcs-20260630.xsd#SUMMARYOFINVESTMENTSAmortizedCostBasisbyYearofOriginationandCreditQualityIndicatorDetails"/>
  <link:definitionLink xlink:role="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSAmortizedCostBasisbyYearofOriginationandCreditQualityIndicatorDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_019e9870-e050-7a4b-8a64-bb12aa3cf1fb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableRecordedInvestmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_019e9870-e050-7dc3-9b40-4642897c3c5a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_019e9870-e050-7a4b-8a64-bb12aa3cf1fb" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_019e9870-e050-7dc3-9b40-4642897c3c5a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InternalCreditAssessmentAxis_019e9870-e050-72b3-9ec6-2df9a0fc95ab" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InternalCreditAssessmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable_019e9870-e050-7dc3-9b40-4642897c3c5a" xlink:to="loc_us-gaap_InternalCreditAssessmentAxis_019e9870-e050-72b3-9ec6-2df9a0fc95ab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InternalCreditAssessmentDomain_019e9870-e050-72b3-9ec6-2df9a0fc95ab_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InternalCreditAssessmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InternalCreditAssessmentAxis_019e9870-e050-72b3-9ec6-2df9a0fc95ab" xlink:to="loc_us-gaap_InternalCreditAssessmentDomain_019e9870-e050-72b3-9ec6-2df9a0fc95ab_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InternalCreditAssessmentDomain_019e9870-e050-7d0e-a7dc-0bd191ecf91f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InternalCreditAssessmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InternalCreditAssessmentAxis_019e9870-e050-72b3-9ec6-2df9a0fc95ab" xlink:to="loc_us-gaap_InternalCreditAssessmentDomain_019e9870-e050-7d0e-a7dc-0bd191ecf91f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_OneTwoInternalGradeMember_019e9870-e050-7ab4-855c-774d6a910439" xlink:href="ufcs-20260630.xsd#ufcs_OneTwoInternalGradeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InternalCreditAssessmentDomain_019e9870-e050-7d0e-a7dc-0bd191ecf91f" xlink:to="loc_ufcs_OneTwoInternalGradeMember_019e9870-e050-7ab4-855c-774d6a910439" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_019e9870-e050-7e62-bfc8-885df9750091" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_019e9870-e050-7a4b-8a64-bb12aa3cf1fb" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_019e9870-e050-7e62-bfc8-885df9750091" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_019e9870-e050-7650-ab42-f17b1cd4e770" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_019e9870-e050-7a4b-8a64-bb12aa3cf1fb" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_019e9870-e050-7650-ab42-f17b1cd4e770" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_FinancingReceivableExcludingAccruedInterestYearSixOriginatedFiveYearsBeforeCurrentFiscalYear_019e9870-e050-766d-a03e-a738fdda4b29" xlink:href="ufcs-20260630.xsd#ufcs_FinancingReceivableExcludingAccruedInterestYearSixOriginatedFiveYearsBeforeCurrentFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_019e9870-e050-7a4b-8a64-bb12aa3cf1fb" xlink:to="loc_ufcs_FinancingReceivableExcludingAccruedInterestYearSixOriginatedFiveYearsBeforeCurrentFiscalYear_019e9870-e050-766d-a03e-a738fdda4b29" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_FinancingReceivableExcludingAccruedInterestYearSevenOriginatedSixYearsBeforeCurrentFiscalYear_019e9870-e050-791d-aafd-c74a264e142f" xlink:href="ufcs-20260630.xsd#ufcs_FinancingReceivableExcludingAccruedInterestYearSevenOriginatedSixYearsBeforeCurrentFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_019e9870-e050-7a4b-8a64-bb12aa3cf1fb" xlink:to="loc_ufcs_FinancingReceivableExcludingAccruedInterestYearSevenOriginatedSixYearsBeforeCurrentFiscalYear_019e9870-e050-791d-aafd-c74a264e142f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanSixYearsBeforeCurrentFiscalYear_019e9870-e050-74ed-b849-a5528d2b53ad" xlink:href="ufcs-20260630.xsd#ufcs_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanSixYearsBeforeCurrentFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_019e9870-e050-7a4b-8a64-bb12aa3cf1fb" xlink:to="loc_ufcs_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanSixYearsBeforeCurrentFiscalYear_019e9870-e050-74ed-b849-a5528d2b53ad" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019e9870-e050-7238-8a79-0d119f2c84c7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentLineItems_019e9870-e050-7a4b-8a64-bb12aa3cf1fb" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019e9870-e050-7238-8a79-0d119f2c84c7" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSNetInvestmentIncomeDetails" xlink:type="simple" xlink:href="ufcs-20260630.xsd#SUMMARYOFINVESTMENTSNetInvestmentIncomeDetails"/>
  <link:definitionLink xlink:role="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSNetInvestmentIncomeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfInvestmentsLineItems_019e9870-e102-759c-9180-9e59a2806497" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfInvestmentsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfInvestmentsTable_019e9870-e102-7728-99e3-a14179b25518" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfInvestmentsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_019e9870-e102-759c-9180-9e59a2806497" xlink:to="loc_us-gaap_ScheduleOfInvestmentsTable_019e9870-e102-7728-99e3-a14179b25518" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeAxis_019e9870-e102-73f4-9b4d-50049763a1d8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfInvestmentsTable_019e9870-e102-7728-99e3-a14179b25518" xlink:to="loc_us-gaap_InvestmentTypeAxis_019e9870-e102-73f4-9b4d-50049763a1d8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_019e9870-e102-73f4-9b4d-50049763a1d8_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InvestmentTypeAxis_019e9870-e102-73f4-9b4d-50049763a1d8" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_019e9870-e102-73f4-9b4d-50049763a1d8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_019e9870-e102-7cbc-8a76-a4536e9184db" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InvestmentTypeAxis_019e9870-e102-73f4-9b4d-50049763a1d8" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_019e9870-e102-7cbc-8a76-a4536e9184db" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FixedMaturitiesMember_019e9870-e102-7954-adc6-bf47a6f74f08" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FixedMaturitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_019e9870-e102-7cbc-8a76-a4536e9184db" xlink:to="loc_us-gaap_FixedMaturitiesMember_019e9870-e102-7954-adc6-bf47a6f74f08" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLongTermInvestmentsMember_019e9870-e102-796f-aad8-8a34301d2236" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherLongTermInvestmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_019e9870-e102-7cbc-8a76-a4536e9184db" xlink:to="loc_us-gaap_OtherLongTermInvestmentsMember_019e9870-e102-796f-aad8-8a34301d2236" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInterest_019e9870-e102-74f1-b738-a4eaf06c3484" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentIncomeInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_019e9870-e102-759c-9180-9e59a2806497" xlink:to="loc_us-gaap_InvestmentIncomeInterest_019e9870-e102-74f1-b738-a4eaf06c3484" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_InvestmentIncomeGainLossOnOtherLongTermInvestments_019e9870-e102-7e5d-8750-4f3f6ee7b746" xlink:href="ufcs-20260630.xsd#ufcs_InvestmentIncomeGainLossOnOtherLongTermInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_019e9870-e102-759c-9180-9e59a2806497" xlink:to="loc_ufcs_InvestmentIncomeGainLossOnOtherLongTermInvestments_019e9870-e102-7e5d-8750-4f3f6ee7b746" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_InvestmentIncomeOther_019e9870-e102-7b91-b694-5ecdba878553" xlink:href="ufcs-20260630.xsd#ufcs_InvestmentIncomeOther"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_019e9870-e102-759c-9180-9e59a2806497" xlink:to="loc_ufcs_InvestmentIncomeOther_019e9870-e102-7b91-b694-5ecdba878553" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_InvestmentIncomeGross_019e9870-e102-762d-be50-dd1e1a1028ab" xlink:href="ufcs-20260630.xsd#ufcs_InvestmentIncomeGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_019e9870-e102-759c-9180-9e59a2806497" xlink:to="loc_ufcs_InvestmentIncomeGross_019e9870-e102-762d-be50-dd1e1a1028ab" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInvestmentExpense_019e9870-e102-733e-8181-07fe13a9db8e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentIncomeInvestmentExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_019e9870-e102-759c-9180-9e59a2806497" xlink:to="loc_us-gaap_InvestmentIncomeInvestmentExpense_019e9870-e102-733e-8181-07fe13a9db8e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeNet_019e9870-e102-72d7-ab71-adc5078bfefe" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentIncomeNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_019e9870-e102-759c-9180-9e59a2806497" xlink:to="loc_us-gaap_InvestmentIncomeNet_019e9870-e102-72d7-ab71-adc5078bfefe" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/FAIRVALUEOFFINANCIALINSTRUMENTSFinancialInstrumentsMeasuredatFairValueDetails" xlink:type="simple" xlink:href="ufcs-20260630.xsd#FAIRVALUEOFFINANCIALINSTRUMENTSFinancialInstrumentsMeasuredatFairValueDetails"/>
  <link:definitionLink xlink:role="http://www.unitedfiregroup.com/role/FAIRVALUEOFFINANCIALINSTRUMENTSFinancialInstrumentsMeasuredatFairValueDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019e9870-e103-7b87-8cac-866cf7470fb3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_019e9870-e102-7f9e-a9fb-61ed8b203685" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019e9870-e103-7b87-8cac-866cf7470fb3" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_019e9870-e102-7f9e-a9fb-61ed8b203685" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_019e9870-e102-77e1-a542-25cd5a84f7c5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueByMeasurementFrequencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_019e9870-e102-7f9e-a9fb-61ed8b203685" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_019e9870-e102-77e1-a542-25cd5a84f7c5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_019e9870-e102-77e1-a542-25cd5a84f7c5_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_019e9870-e102-77e1-a542-25cd5a84f7c5" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_019e9870-e102-77e1-a542-25cd5a84f7c5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_019e9870-e102-7f7c-832d-631dad036e36" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_019e9870-e102-77e1-a542-25cd5a84f7c5" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_019e9870-e102-7f7c-832d-631dad036e36" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_019e9870-e102-7cab-97e9-f3cc97fb2fa2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasurementsRecurringMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_019e9870-e102-7f7c-832d-631dad036e36" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_019e9870-e102-7cab-97e9-f3cc97fb2fa2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019e9870-e102-715e-9563-a23119fc19cb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_019e9870-e102-7f9e-a9fb-61ed8b203685" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019e9870-e102-715e-9563-a23119fc19cb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e9870-e102-715e-9563-a23119fc19cb_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019e9870-e102-715e-9563-a23119fc19cb" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e9870-e102-715e-9563-a23119fc19cb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e9870-e102-70f8-b89f-a7018b3fcd1d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019e9870-e102-715e-9563-a23119fc19cb" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e9870-e102-70f8-b89f-a7018b3fcd1d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_019e9870-e103-7bef-bac1-eaf71973db50" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e9870-e102-70f8-b89f-a7018b3fcd1d" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_019e9870-e103-7bef-bac1-eaf71973db50" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_019e9870-e103-742e-bf0c-e43e202dc066" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e9870-e102-70f8-b89f-a7018b3fcd1d" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_019e9870-e103-742e-bf0c-e43e202dc066" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_019e9870-e103-7628-a368-8ae6a1a3eebe" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e9870-e102-70f8-b89f-a7018b3fcd1d" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_019e9870-e103-7628-a368-8ae6a1a3eebe" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_019e9870-e103-76d8-9df9-8499de9e9676" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_019e9870-e102-7f9e-a9fb-61ed8b203685" xlink:to="loc_us-gaap_FinancialInstrumentAxis_019e9870-e103-76d8-9df9-8499de9e9676" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e103-76d8-9df9-8499de9e9676_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019e9870-e103-76d8-9df9-8499de9e9676" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e103-76d8-9df9-8499de9e9676_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e103-74de-bbb5-c59bae355933" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019e9870-e103-76d8-9df9-8499de9e9676" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e103-74de-bbb5-c59bae355933" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USTreasuryAndGovernmentMember_019e9870-e103-705e-af4a-6079e14b8528" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_USTreasuryAndGovernmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e103-74de-bbb5-c59bae355933" xlink:to="loc_us-gaap_USTreasuryAndGovernmentMember_019e9870-e103-705e-af4a-6079e14b8528" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USStatesAndPoliticalSubdivisionsMember_019e9870-e103-77fc-8c82-120dd2e15a19" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_USStatesAndPoliticalSubdivisionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e103-74de-bbb5-c59bae355933" xlink:to="loc_us-gaap_USStatesAndPoliticalSubdivisionsMember_019e9870-e103-77fc-8c82-120dd2e15a19" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_019e9870-e103-74bd-ba7b-e9c5ec047bf2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CorporateDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e103-74de-bbb5-c59bae355933" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_019e9870-e103-74bd-ba7b-e9c5ec047bf2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResidentialMortgageBackedSecuritiesMember_019e9870-e103-7662-abbe-4997ae301576" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ResidentialMortgageBackedSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e103-74de-bbb5-c59bae355933" xlink:to="loc_us-gaap_ResidentialMortgageBackedSecuritiesMember_019e9870-e103-7662-abbe-4997ae301576" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialMortgageBackedSecuritiesMember_019e9870-e103-731e-84d6-b29a5174b97a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommercialMortgageBackedSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e103-74de-bbb5-c59bae355933" xlink:to="loc_us-gaap_CommercialMortgageBackedSecuritiesMember_019e9870-e103-731e-84d6-b29a5174b97a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_OtherAssetBackedSecuritiesMember_019e9870-e103-7e41-8467-66adeb5199e4" xlink:href="ufcs-20260630.xsd#ufcs_OtherAssetBackedSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e103-74de-bbb5-c59bae355933" xlink:to="loc_ufcs_OtherAssetBackedSecuritiesMember_019e9870-e103-7e41-8467-66adeb5199e4" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019e9870-e103-7f28-865e-d33572a480a7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019e9870-e103-7b87-8cac-866cf7470fb3" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019e9870-e103-7f28-865e-d33572a480a7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_019e9870-e103-7f80-b8aa-ff326323a269" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019e9870-e103-7b87-8cac-866cf7470fb3" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_019e9870-e103-7f80-b8aa-ff326323a269" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashSurrenderValueFairValueDisclosure_019e9870-e103-7144-b867-6857947900cf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashSurrenderValueFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019e9870-e103-7b87-8cac-866cf7470fb3" xlink:to="loc_us-gaap_CashSurrenderValueFairValueDisclosure_019e9870-e103-7144-b867-6857947900cf" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_019e9870-e103-7240-a53f-702c1a943bab" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019e9870-e103-7b87-8cac-866cf7470fb3" xlink:to="loc_us-gaap_AssetsFairValueDisclosure_019e9870-e103-7240-a53f-702c1a943bab" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/FAIRVALUEOFFINANCIALINSTRUMENTSNarrativeDetails" xlink:type="simple" xlink:href="ufcs-20260630.xsd#FAIRVALUEOFFINANCIALINSTRUMENTSNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.unitedfiregroup.com/role/FAIRVALUEOFFINANCIALINSTRUMENTSNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019e9870-e103-747f-99ff-d9f22cadd477" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_019e9870-e103-76d2-a13d-b11d3994ad4f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019e9870-e103-747f-99ff-d9f22cadd477" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_019e9870-e103-76d2-a13d-b11d3994ad4f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019e9870-e103-7115-932b-f9d9d4940f26" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_019e9870-e103-76d2-a13d-b11d3994ad4f" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019e9870-e103-7115-932b-f9d9d4940f26" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e9870-e103-7115-932b-f9d9d4940f26_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019e9870-e103-7115-932b-f9d9d4940f26" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e9870-e103-7115-932b-f9d9d4940f26_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e9870-e103-75f3-b92d-c2564234763a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019e9870-e103-7115-932b-f9d9d4940f26" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e9870-e103-75f3-b92d-c2564234763a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_019e9870-e103-7829-9b5b-88e446836f2c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e9870-e103-75f3-b92d-c2564234763a" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_019e9870-e103-7829-9b5b-88e446836f2c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_019e9870-e103-7ce4-bbb3-1c76c9ef9edc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueByMeasurementFrequencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_019e9870-e103-76d2-a13d-b11d3994ad4f" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_019e9870-e103-7ce4-bbb3-1c76c9ef9edc" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_019e9870-e103-7ce4-bbb3-1c76c9ef9edc_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_019e9870-e103-7ce4-bbb3-1c76c9ef9edc" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_019e9870-e103-7ce4-bbb3-1c76c9ef9edc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_019e9870-e103-7969-acb5-9a84a8fcd335" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_019e9870-e103-7ce4-bbb3-1c76c9ef9edc" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_019e9870-e103-7969-acb5-9a84a8fcd335" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_019e9870-e103-76bf-9d64-989357fc8373" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasurementsRecurringMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_019e9870-e103-7969-acb5-9a84a8fcd335" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_019e9870-e103-76bf-9d64-989357fc8373" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_019e9870-e103-7f23-a4f7-fcdb6ff39ad6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019e9870-e103-747f-99ff-d9f22cadd477" xlink:to="loc_us-gaap_AssetsFairValueDisclosure_019e9870-e103-7f23-a4f7-fcdb6ff39ad6" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/FAIRVALUEOFFINANCIALINSTRUMENTSFairValueofFinancialInstrumentsThatAreNotCarriedatFairValueonaRecurringBasisDetails" xlink:type="simple" xlink:href="ufcs-20260630.xsd#FAIRVALUEOFFINANCIALINSTRUMENTSFairValueofFinancialInstrumentsThatAreNotCarriedatFairValueonaRecurringBasisDetails"/>
  <link:definitionLink xlink:role="http://www.unitedfiregroup.com/role/FAIRVALUEOFFINANCIALINSTRUMENTSFairValueofFinancialInstrumentsThatAreNotCarriedatFairValueonaRecurringBasisDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019e9870-e103-74fa-bfeb-ac140b2e7330" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_019e9870-e103-7fa4-9dea-71f85deb1f0a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019e9870-e103-74fa-bfeb-ac140b2e7330" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_019e9870-e103-7fa4-9dea-71f85deb1f0a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_019e9870-e103-78bc-99c3-41e553f61679" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueByMeasurementFrequencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_019e9870-e103-7fa4-9dea-71f85deb1f0a" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_019e9870-e103-78bc-99c3-41e553f61679" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_019e9870-e103-78bc-99c3-41e553f61679_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_019e9870-e103-78bc-99c3-41e553f61679" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_019e9870-e103-78bc-99c3-41e553f61679_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_019e9870-e103-7c38-a508-c438b67e0e7b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_019e9870-e103-78bc-99c3-41e553f61679" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_019e9870-e103-7c38-a508-c438b67e0e7b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsNonrecurringMember_019e9870-e103-7448-9981-71640b9cbd4a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasurementsNonrecurringMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_019e9870-e103-7c38-a508-c438b67e0e7b" xlink:to="loc_us-gaap_FairValueMeasurementsNonrecurringMember_019e9870-e103-7448-9981-71640b9cbd4a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019e9870-e103-73db-8b00-d52bd78d7acd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_019e9870-e103-7fa4-9dea-71f85deb1f0a" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019e9870-e103-73db-8b00-d52bd78d7acd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e9870-e103-73db-8b00-d52bd78d7acd_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019e9870-e103-73db-8b00-d52bd78d7acd" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e9870-e103-73db-8b00-d52bd78d7acd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e9870-e103-7ac5-a0f3-b96fccd8cfe6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019e9870-e103-73db-8b00-d52bd78d7acd" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e9870-e103-7ac5-a0f3-b96fccd8cfe6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_019e9870-e103-7be8-af6b-082981fb0a2c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e9870-e103-7ac5-a0f3-b96fccd8cfe6" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_019e9870-e103-7be8-af6b-082981fb0a2c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_019e9870-e103-7cd5-84c4-9109d7dfbb40" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e9870-e103-7ac5-a0f3-b96fccd8cfe6" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_019e9870-e103-7cd5-84c4-9109d7dfbb40" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_019e9870-e103-7ff5-ba6f-930ac73041b5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e9870-e103-7ac5-a0f3-b96fccd8cfe6" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_019e9870-e103-7ff5-ba6f-930ac73041b5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasuredAtNetAssetValuePerShareMember_019e9870-e103-783b-9fa6-f16af51842ce" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasuredAtNetAssetValuePerShareMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e9870-e103-7ac5-a0f3-b96fccd8cfe6" xlink:to="loc_us-gaap_FairValueMeasuredAtNetAssetValuePerShareMember_019e9870-e103-783b-9fa6-f16af51842ce" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_019e9870-e103-7069-84e4-a72e53a4b20c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_019e9870-e103-7fa4-9dea-71f85deb1f0a" xlink:to="loc_us-gaap_FinancialInstrumentAxis_019e9870-e103-7069-84e4-a72e53a4b20c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e103-7069-84e4-a72e53a4b20c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019e9870-e103-7069-84e4-a72e53a4b20c" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e103-7069-84e4-a72e53a4b20c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e103-7605-9cbb-05e72fc8b05d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019e9870-e103-7069-84e4-a72e53a4b20c" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e103-7605-9cbb-05e72fc8b05d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_LloydsSyndicateInvestmentsMember_019e9870-e103-72e5-affd-0162c4853c84" xlink:href="ufcs-20260630.xsd#ufcs_LloydsSyndicateInvestmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e9870-e103-7605-9cbb-05e72fc8b05d" xlink:to="loc_ufcs_LloydsSyndicateInvestmentsMember_019e9870-e103-72e5-affd-0162c4853c84" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_019e9870-e103-77e3-8883-52dfe908918a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_019e9870-e103-7fa4-9dea-71f85deb1f0a" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_019e9870-e103-77e3-8883-52dfe908918a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_019e9870-e103-77e3-8883-52dfe908918a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_019e9870-e103-77e3-8883-52dfe908918a" xlink:to="loc_us-gaap_RelatedPartyDomain_019e9870-e103-77e3-8883-52dfe908918a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_019e9870-e103-724e-8a39-17853fd396f2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_019e9870-e103-77e3-8883-52dfe908918a" xlink:to="loc_us-gaap_RelatedPartyDomain_019e9870-e103-724e-8a39-17853fd396f2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LimitedLiabilityCompanyMember_019e9870-e103-7dd9-b543-e2817b4d4bfd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LimitedLiabilityCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_019e9870-e103-724e-8a39-17853fd396f2" xlink:to="loc_us-gaap_LimitedLiabilityCompanyMember_019e9870-e103-7dd9-b543-e2817b4d4bfd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_019e9870-e103-745d-b708-8e8aad0b131b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019e9870-e103-74fa-bfeb-ac140b2e7330" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_019e9870-e103-745d-b708-8e8aad0b131b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AlternativeInvestment_019e9870-e103-7907-bdf7-5dd0edb84a54" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AlternativeInvestment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019e9870-e103-74fa-bfeb-ac140b2e7330" xlink:to="loc_us-gaap_AlternativeInvestment_019e9870-e103-7907-bdf7-5dd0edb84a54" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansReceivableFairValueDisclosure_019e9870-e103-7d51-9028-2036f1ba7316" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LoansReceivableFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019e9870-e103-74fa-bfeb-ac140b2e7330" xlink:to="loc_us-gaap_LoansReceivableFairValueDisclosure_019e9870-e103-7d51-9028-2036f1ba7316" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_019e9870-e103-74e0-9324-548158de1aa6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019e9870-e103-74fa-bfeb-ac140b2e7330" xlink:to="loc_us-gaap_AssetsFairValueDisclosure_019e9870-e103-74e0-9324-548158de1aa6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtFairValue_019e9870-e103-7c79-9c01-bbc4dd25830f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019e9870-e103-74fa-bfeb-ac140b2e7330" xlink:to="loc_us-gaap_LongTermDebtFairValue_019e9870-e103-7c79-9c01-bbc4dd25830f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_019e9870-e103-7840-a279-df7ae26ec9b2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019e9870-e103-74fa-bfeb-ac140b2e7330" xlink:to="loc_us-gaap_LiabilitiesFairValueDisclosure_019e9870-e103-7840-a279-df7ae26ec9b2" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/EARNINGSPERCOMMONSHAREDetails" xlink:type="simple" xlink:href="ufcs-20260630.xsd#EARNINGSPERCOMMONSHAREDetails"/>
  <link:definitionLink xlink:role="http://www.unitedfiregroup.com/role/EARNINGSPERCOMMONSHAREDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDilutedLineItems_019e9870-e103-7cec-aa03-ddeadf46f239" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EarningsPerShareDilutedLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEarningsPerShareDilutedByCommonClassTable_019e9870-e103-7ea3-9e3e-bfc96e2553b5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfEarningsPerShareDilutedByCommonClassTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EarningsPerShareDilutedLineItems_019e9870-e103-7cec-aa03-ddeadf46f239" xlink:to="loc_us-gaap_ScheduleOfEarningsPerShareDilutedByCommonClassTable_019e9870-e103-7ea3-9e3e-bfc96e2553b5" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_019e9870-e103-7c73-acf0-778b8ca7c63d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEarningsPerShareDilutedByCommonClassTable_019e9870-e103-7ea3-9e3e-bfc96e2553b5" xlink:to="loc_us-gaap_AwardTypeAxis_019e9870-e103-7c73-acf0-778b8ca7c63d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e9870-e103-7c73-acf0-778b8ca7c63d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_019e9870-e103-7c73-acf0-778b8ca7c63d" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e9870-e103-7c73-acf0-778b8ca7c63d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e9870-e103-76f3-8c53-6043fb53c915" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_019e9870-e103-7c73-acf0-778b8ca7c63d" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e9870-e103-76f3-8c53-6043fb53c915" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockMember_019e9870-e103-7181-a1f9-4af169c4aa8f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestrictedStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e9870-e103-76f3-8c53-6043fb53c915" xlink:to="loc_us-gaap_RestrictedStockMember_019e9870-e103-7181-a1f9-4af169c4aa8f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_019e9870-e103-7730-86ec-8624c20ec22d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EmployeeStockOptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e9870-e103-76f3-8c53-6043fb53c915" xlink:to="loc_us-gaap_EmployeeStockOptionMember_019e9870-e103-7730-86ec-8624c20ec22d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperations_019e9870-e103-78cd-89f5-a04702257bc9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeLossFromContinuingOperations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedLineItems_019e9870-e103-7cec-aa03-ddeadf46f239" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperations_019e9870-e103-78cd-89f5-a04702257bc9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_019e9870-e103-7a7e-bba1-384e718a1c08" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedLineItems_019e9870-e103-7cec-aa03-ddeadf46f239" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_019e9870-e103-7a7e-bba1-384e718a1c08" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_019e9870-e103-77bf-8904-627506bd9396" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedLineItems_019e9870-e103-7cec-aa03-ddeadf46f239" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_019e9870-e103-77bf-8904-627506bd9396" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019e9870-e103-71b4-83fc-ca8cd8a9fb5a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedLineItems_019e9870-e103-7cec-aa03-ddeadf46f239" xlink:to="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019e9870-e103-71b4-83fc-ca8cd8a9fb5a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasic_019e9870-e103-7775-8b08-6e026a12efc0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EarningsPerShareBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedLineItems_019e9870-e103-7cec-aa03-ddeadf46f239" xlink:to="loc_us-gaap_EarningsPerShareBasic_019e9870-e103-7775-8b08-6e026a12efc0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDiluted_019e9870-e103-7fde-a316-4b96dd33c65e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EarningsPerShareDiluted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedLineItems_019e9870-e103-7cec-aa03-ddeadf46f239" xlink:to="loc_us-gaap_EarningsPerShareDiluted_019e9870-e103-7fde-a316-4b96dd33c65e" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_019e9870-e103-7d18-8aeb-a4fc0ecdeac1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedLineItems_019e9870-e103-7cec-aa03-ddeadf46f239" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_019e9870-e103-7d18-8aeb-a4fc0ecdeac1" xlink:type="arc" order="6"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/DEBTCarryingAmountofLongTermDebtDetails" xlink:type="simple" xlink:href="ufcs-20260630.xsd#DEBTCarryingAmountofLongTermDebtDetails"/>
  <link:definitionLink xlink:role="http://www.unitedfiregroup.com/role/DEBTCarryingAmountofLongTermDebtDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_019e9870-e103-7512-b5ff-dd697907e4e0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_019e9870-e103-73d6-a269-1b283ee285dd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e9870-e103-7512-b5ff-dd697907e4e0" xlink:to="loc_us-gaap_DebtInstrumentTable_019e9870-e103-73d6-a269-1b283ee285dd" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_019e9870-e103-7292-a462-b8e4f12e4f67" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019e9870-e103-73d6-a269-1b283ee285dd" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_019e9870-e103-7292-a462-b8e4f12e4f67" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019e9870-e103-7292-a462-b8e4f12e4f67_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019e9870-e103-7292-a462-b8e4f12e4f67" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019e9870-e103-7292-a462-b8e4f12e4f67_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019e9870-e103-7bf2-809b-6136d6647eee" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019e9870-e103-7292-a462-b8e4f12e4f67" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019e9870-e103-7bf2-809b-6136d6647eee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_SurplusNotesMember_019e9870-e103-7a0c-af06-b94b85d3f21f" xlink:href="ufcs-20260630.xsd#ufcs_SurplusNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_019e9870-e103-7bf2-809b-6136d6647eee" xlink:to="loc_ufcs_SurplusNotesMember_019e9870-e103-7a0c-af06-b94b85d3f21f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotesMember_019e9870-e103-76cd-a8fd-d3c9e27edd5f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_019e9870-e103-7bf2-809b-6136d6647eee" xlink:to="loc_us-gaap_SeniorNotesMember_019e9870-e103-76cd-a8fd-d3c9e27edd5f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_019e9870-e103-7b5c-80e8-0e9096e93684" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e9870-e103-7512-b5ff-dd697907e4e0" xlink:to="loc_us-gaap_LongTermDebt_019e9870-e103-7b5c-80e8-0e9096e93684" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_019e9870-e103-73a6-a48f-2e75e02bb242" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e9870-e103-7512-b5ff-dd697907e4e0" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_019e9870-e103-73a6-a48f-2e75e02bb242" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/DEBTInterestExpenseCompanysLongTermDebtDetails" xlink:type="simple" xlink:href="ufcs-20260630.xsd#DEBTInterestExpenseCompanysLongTermDebtDetails"/>
  <link:definitionLink xlink:role="http://www.unitedfiregroup.com/role/DEBTInterestExpenseCompanysLongTermDebtDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_019e9870-e103-7b6b-89db-f37a04b76be2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_019e9870-e103-7136-9272-e8d8fa76d677" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e9870-e103-7b6b-89db-f37a04b76be2" xlink:to="loc_us-gaap_DebtInstrumentTable_019e9870-e103-7136-9272-e8d8fa76d677" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_019e9870-e103-7d15-93b3-84aa980e5571" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019e9870-e103-7136-9272-e8d8fa76d677" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_019e9870-e103-7d15-93b3-84aa980e5571" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019e9870-e103-7d15-93b3-84aa980e5571_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019e9870-e103-7d15-93b3-84aa980e5571" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019e9870-e103-7d15-93b3-84aa980e5571_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019e9870-e103-74bb-a09f-1b8a7f6d507b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019e9870-e103-7d15-93b3-84aa980e5571" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019e9870-e103-74bb-a09f-1b8a7f6d507b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_SurplusNotesMember_019e9870-e103-701f-b87f-7aa6db3c160d" xlink:href="ufcs-20260630.xsd#ufcs_SurplusNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_019e9870-e103-74bb-a09f-1b8a7f6d507b" xlink:to="loc_ufcs_SurplusNotesMember_019e9870-e103-701f-b87f-7aa6db3c160d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotesMember_019e9870-e103-7244-abb8-0a1b196606ab" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_019e9870-e103-74bb-a09f-1b8a7f6d507b" xlink:to="loc_us-gaap_SeniorNotesMember_019e9870-e103-7244-abb8-0a1b196606ab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebt_019e9870-e103-76e9-beb8-44dc02c4491c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestExpenseDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e9870-e103-7b6b-89db-f37a04b76be2" xlink:to="loc_us-gaap_InterestExpenseDebt_019e9870-e103-76e9-beb8-44dc02c4491c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_019e9870-e103-73df-baeb-b4c78feb3075" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e9870-e103-7b6b-89db-f37a04b76be2" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_019e9870-e103-73df-baeb-b4c78feb3075" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/DEBTNarrativeDetails" xlink:type="simple" xlink:href="ufcs-20260630.xsd#DEBTNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.unitedfiregroup.com/role/DEBTNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_019e9870-e103-7ecc-bbdc-3119f3458865" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_019e9870-e103-765e-93ef-1b92c9e419ac" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e9870-e103-7ecc-bbdc-3119f3458865" xlink:to="loc_us-gaap_DebtInstrumentTable_019e9870-e103-765e-93ef-1b92c9e419ac" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_019e9870-e103-7a70-aa1f-a7528e67f5aa" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019e9870-e103-765e-93ef-1b92c9e419ac" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_019e9870-e103-7a70-aa1f-a7528e67f5aa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019e9870-e103-7a70-aa1f-a7528e67f5aa_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019e9870-e103-7a70-aa1f-a7528e67f5aa" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019e9870-e103-7a70-aa1f-a7528e67f5aa_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019e9870-e103-761b-9021-6d869fab6d1c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019e9870-e103-7a70-aa1f-a7528e67f5aa" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019e9870-e103-761b-9021-6d869fab6d1c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotesMember_019e9870-e103-75a9-9c76-bf9e348252b2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_019e9870-e103-761b-9021-6d869fab6d1c" xlink:to="loc_us-gaap_SeniorNotesMember_019e9870-e103-75a9-9c76-bf9e348252b2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesMember_019e9870-e103-7872-8dd3-26bcaf223808" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalHomeLoanBankAdvancesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_019e9870-e103-761b-9021-6d869fab6d1c" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesMember_019e9870-e103-7872-8dd3-26bcaf223808" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_019e9870-e103-7c62-8a86-573b4ee0a8dd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e9870-e103-7ecc-bbdc-3119f3458865" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_019e9870-e103-7c62-8a86-573b4ee0a8dd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_019e9870-e103-70af-9469-3ce4dc102463" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e9870-e103-7ecc-bbdc-3119f3458865" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_019e9870-e103-70af-9469-3ce4dc102463" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCredit_019e9870-e103-71e2-a337-30fba3aca341" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e9870-e103-7ecc-bbdc-3119f3458865" xlink:to="loc_us-gaap_LineOfCredit_019e9870-e103-71e2-a337-30fba3aca341" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/ACCUMULATEDOTHERCOMPREHENSIVEINCOMELOSSDetails" xlink:type="simple" xlink:href="ufcs-20260630.xsd#ACCUMULATEDOTHERCOMPREHENSIVEINCOMELOSSDetails"/>
  <link:definitionLink xlink:role="http://www.unitedfiregroup.com/role/ACCUMULATEDOTHERCOMPREHENSIVEINCOMELOSSDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_019e9870-e103-742a-98cc-7f3ba039fc07" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_019e9870-e103-7b97-8361-256237061c28" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_019e9870-e103-742a-98cc-7f3ba039fc07" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_019e9870-e103-7b97-8361-256237061c28" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_019e9870-e103-7f8d-81ea-00b952388844" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_019e9870-e103-7b97-8361-256237061c28" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_019e9870-e103-7f8d-81ea-00b952388844" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_019e9870-e103-7f8d-81ea-00b952388844_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_019e9870-e103-7f8d-81ea-00b952388844" xlink:to="loc_us-gaap_EquityComponentDomain_019e9870-e103-7f8d-81ea-00b952388844_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_019e9870-e103-7652-8e12-47ccd2814823" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_019e9870-e103-7f8d-81ea-00b952388844" xlink:to="loc_us-gaap_EquityComponentDomain_019e9870-e103-7652-8e12-47ccd2814823" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_019e9870-e103-795c-b457-ab383165e1dc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019e9870-e103-7652-8e12-47ccd2814823" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_019e9870-e103-795c-b457-ab383165e1dc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember_019e9870-e103-7e25-a53d-49570b674142" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_019e9870-e103-795c-b457-ab383165e1dc" xlink:to="loc_us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember_019e9870-e103-7e25-a53d-49570b674142" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentMember_019e9870-e103-7e19-95d6-f7859e227c13" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccumulatedDefinedBenefitPlansAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_019e9870-e103-795c-b457-ab383165e1dc" xlink:to="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentMember_019e9870-e103-7e19-95d6-f7859e227c13" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedTranslationAdjustmentMember_019e9870-e103-77db-88d0-266019f681c3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccumulatedTranslationAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_019e9870-e103-795c-b457-ab383165e1dc" xlink:to="loc_us-gaap_AccumulatedTranslationAdjustmentMember_019e9870-e103-77db-88d0-266019f681c3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_019e9870-e103-7759-87c0-dacc9bdb337e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AOCIAttributableToParentNetOfTaxRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_019e9870-e103-742a-98cc-7f3ba039fc07" xlink:to="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_019e9870-e103-7759-87c0-dacc9bdb337e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019e9870-e103-7cf2-90ad-f5ed731db628" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_019e9870-e103-7759-87c0-dacc9bdb337e" xlink:to="loc_us-gaap_StockholdersEquity_019e9870-e103-7cf2-90ad-f5ed731db628" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent_019e9870-e103-70cb-9773-a822b31d61d3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_019e9870-e103-7759-87c0-dacc9bdb337e" xlink:to="loc_us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent_019e9870-e103-70cb-9773-a822b31d61d3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent_019e9870-e103-7255-8f7c-9f6be93ee01f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_019e9870-e103-7759-87c0-dacc9bdb337e" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent_019e9870-e103-7255-8f7c-9f6be93ee01f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019e9870-e103-7b2c-ae23-86bc72ecfbda" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/LEASECOMMITMENTSNarrativeDetails" xlink:type="simple" xlink:href="ufcs-20260630.xsd#LEASECOMMITMENTSNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.unitedfiregroup.com/role/LEASECOMMITMENTSNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeLeaseDescriptionLineItems_019e9870-e103-7d0a-8939-e25ae84aaa71" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeLeaseDescriptionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeLeaseDescriptionTable_019e9870-e103-7343-80da-d245b0b05bf5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeLeaseDescriptionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_019e9870-e103-7d0a-8939-e25ae84aaa71" xlink:to="loc_us-gaap_LesseeLeaseDescriptionTable_019e9870-e103-7343-80da-d245b0b05bf5" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_019e9870-e103-702c-b0cb-34255a12d627" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LesseeLeaseDescriptionTable_019e9870-e103-7343-80da-d245b0b05bf5" xlink:to="loc_srt_RangeAxis_019e9870-e103-702c-b0cb-34255a12d627" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019e9870-e103-702c-b0cb-34255a12d627_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_019e9870-e103-702c-b0cb-34255a12d627" xlink:to="loc_srt_RangeMember_019e9870-e103-702c-b0cb-34255a12d627_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019e9870-e103-7969-8e92-bee792cfcd78" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_019e9870-e103-702c-b0cb-34255a12d627" xlink:to="loc_srt_RangeMember_019e9870-e103-7969-8e92-bee792cfcd78" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_019e9870-e103-7f9d-ba25-088c818347ee" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019e9870-e103-7969-8e92-bee792cfcd78" xlink:to="loc_srt_MinimumMember_019e9870-e103-7f9d-ba25-088c818347ee" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_019e9870-e103-7f1d-81be-75bb6812ac11" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019e9870-e103-7969-8e92-bee792cfcd78" xlink:to="loc_srt_MaximumMember_019e9870-e103-7f1d-81be-75bb6812ac11" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseRemainingLeaseTerm_019e9870-e103-731f-a3a9-bec195f49ef3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeOperatingLeaseRemainingLeaseTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_019e9870-e103-7d0a-8939-e25ae84aaa71" xlink:to="loc_us-gaap_LesseeOperatingLeaseRemainingLeaseTerm_019e9870-e103-731f-a3a9-bec195f49ef3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseRenewalTerm_019e9870-e103-70cf-8c67-d5bf2192833a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeOperatingLeaseRenewalTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_019e9870-e103-7d0a-8939-e25ae84aaa71" xlink:to="loc_us-gaap_LesseeOperatingLeaseRenewalTerm_019e9870-e103-70cf-8c67-d5bf2192833a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_LeaseArrangementNumberOfLeaseAgreements_019e9870-e103-7eb2-b91f-259e8911569c" xlink:href="ufcs-20260630.xsd#ufcs_LeaseArrangementNumberOfLeaseAgreements"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_019e9870-e103-7d0a-8939-e25ae84aaa71" xlink:to="loc_ufcs_LeaseArrangementNumberOfLeaseAgreements_019e9870-e103-7eb2-b91f-259e8911569c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LessorOperatingLeaseTermOfContract_019e9870-e103-7214-917e-91677bf821c7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LessorOperatingLeaseTermOfContract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_019e9870-e103-7d0a-8939-e25ae84aaa71" xlink:to="loc_us-gaap_LessorOperatingLeaseTermOfContract_019e9870-e103-7214-917e-91677bf821c7" xlink:type="arc" order="3"/>
  </link:definitionLink>
</link:linkbase>
