<?xml version="1.0" encoding="us-ascii" standalone="yes"?>
<!--Created by 2H Software, Powered by IRIS Carbon, Unique Code 6808131f2eea2b2b44edc7c7, Generated At Tue, 22 Apr 2025 22:10:49 GMT-->
<link:linkbase xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xl="http://www.xbrl.org/2003/XLink" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xbrli="http://www.xbrl.org/2003/instance" 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/domain-member" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member" />
  <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-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/dimension-default" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/AcquisitionofInterestandControlAdditionalInformationDetails" xlink:type="simple" xlink:href="ugp-20241231.xsd#AcquisitionofInterestandControlAdditionalInformationDetails" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/ProvisionsandcontingentliabilitiesAdditionalinformationDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#ProvisionsandcontingentliabilitiesAdditionalinformationDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/SegmentinformationFinancialInformationofSegmentsDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#SegmentinformationFinancialInformationofSegmentsDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/SegmentInformationAssetsBySegmentsDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#SegmentInformationAssetsBySegmentsDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/LoansfinancingdebenturesandderivativefinancialinstrumentsSummaryofmainoperationscontractedloansDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#LoansfinancingdebenturesandderivativefinancialinstrumentsSummaryofmainoperationscontractedloansDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/InvestmentsinsubsidiariesjointventuresandassociatesSummaryofAmountsofBalanceSheetsandIncomeStatementsofAssociatesDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#InvestmentsinsubsidiariesjointventuresandassociatesSummaryofAmountsofBalanceSheetsandIncomeStatementsofAssociatesDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/FinancialInstrumentsDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#FinancialInstrumentsDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/FinancialInstrumentsChangesinfinancialliabilitiesmeasuredatlevel3ofthefairvaluehierarchyDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#FinancialInstrumentsChangesinfinancialliabilitiesmeasuredatlevel3ofthefairvaluehierarchyDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/RelatedPartiesRestrictedStockProgramDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#RelatedPartiesRestrictedStockProgramDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/ProvisionsandcontingentliabilitiesContingentliabilitiespossiblebynatureDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#ProvisionsandcontingentliabilitiesContingentliabilitiespossiblebynatureDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/AcquisitionofInterestandControlScheduleofbreakdownoftheacquisitionvalueconsideringtheworkingcapitalandnetdebtadjustmentsandprimarycontributionDetails" xlink:type="simple" xlink:href="ugp-20241231.xsd#AcquisitionofInterestandControlScheduleofbreakdownoftheacquisitionvalueconsideringtheworkingcapitalandnetdebtadjustmentsandprimarycontributionDetails" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/LoansfinancingdebenturesandderivativefinancialinstrumentsSummaryofTransactionCostsDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#LoansfinancingdebenturesandderivativefinancialinstrumentsSummaryofTransactionCostsDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/AcquisitionofInterestandControlScheduleoftransactionamountsforacquiringaninterestDetails" xlink:type="simple" xlink:href="ugp-20241231.xsd#AcquisitionofInterestandControlScheduleoftransactionamountsforacquiringaninterestDetails" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/InvestmentsinsubsidiariesjointventuresandassociatesSummaryofstatementsoffinancialinformationofjointventuresandassociatesDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#InvestmentsinsubsidiariesjointventuresandassociatesSummaryofstatementsoffinancialinformationofjointventuresandassociatesDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/FinancialInstrumentsSensitivityanalysislevel2hierarchyDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#FinancialInstrumentsSensitivityanalysislevel2hierarchyDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/FinancialInstrumentsAssetsandliabilitiesexposedtoforeigncurrencytranslatedtoReaisandorexposedtofloatinginterestratesDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#FinancialInstrumentsAssetsandliabilitiesexposedtoforeigncurrencytranslatedtoReaisandorexposedtofloatinginterestratesDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/EquityBalanceOfOtherComprehensiveIncomeDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#EquityBalanceOfOtherComprehensiveIncomeDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/RecoverabletaxesAdditionalInformationDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#RecoverabletaxesAdditionalInformationDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/RisksAndFinancialInstrumentsValueOfGainsLossesRecognizedDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#RisksAndFinancialInstrumentsValueOfGainsLossesRecognizedDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/RisksAndFinancialInstrumentsContractualUndiscountedCashOutflowsParentheticalDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#RisksAndFinancialInstrumentsContractualUndiscountedCashOutflowsParentheticalDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/EventsafterthereportingperiodAdditionalInformationDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#EventsafterthereportingperiodAdditionalInformationDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/DiscontinuedoperationsDetails3Textuals2" xlink:type="simple" xlink:href="ugp-20241231.xsd#DiscontinuedoperationsDetails3Textuals2" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/DiscontinuedoperationsDetails" xlink:type="simple" xlink:href="ugp-20241231.xsd#DiscontinuedoperationsDetails" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/AcquisitionofInterestandControlScheduleoftheprovisionalbalancesofassetsacquiredandliabilitiesassumedontheacquisitiondateDetails" xlink:type="simple" xlink:href="ugp-20241231.xsd#AcquisitionofInterestandControlScheduleoftheprovisionalbalancesofassetsacquiredandliabilitiesassumedontheacquisitiondateDetails" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/CommitmentsAdditionalInformationDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#CommitmentsAdditionalInformationDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/LoansfinancingdebenturesandderivativefinancialinstrumentsNotesDetailsTextual" xlink:type="simple" xlink:href="ugp-20241231.xsd#LoansfinancingdebenturesandderivativefinancialinstrumentsNotesDetailsTextual" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/SegmentInformationAdditionstoPropertyPlantandEquipmentandintangibleAssetsandContractualassetswithcustomersexclusiverightsDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#SegmentInformationAdditionstoPropertyPlantandEquipmentandintangibleAssetsandContractualassetswithcustomersexclusiverightsDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/FinancialInstrumentsSummaryofthefinancialassetsandfinancialliabilitiesmeasuredatfairvalueDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#FinancialInstrumentsSummaryofthefinancialassetsandfinancialliabilitiesmeasuredatfairvalueDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/FinancialInstrumentsAdditionalInformationDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#FinancialInstrumentsAdditionalInformationDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/EquityAdditionalInformationDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#EquityAdditionalInformationDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/IncomeandSocialContributionTaxesSummaryoftaxlosscarryforwardsDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#IncomeandSocialContributionTaxesSummaryoftaxlosscarryforwardsDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/RelatedPartiesSummaryOfSubsidiariesAndOtherRelatedPartiesParentheticalDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#RelatedPartiesSummaryOfSubsidiariesAndOtherRelatedPartiesParentheticalDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/RecoverabletaxesSummaryofestimatedrecoveryofPISandCOFINScreditDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#RecoverabletaxesSummaryofestimatedrecoveryofPISandCOFINScreditDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/RecoverabletaxesSummaryofestimatedrecoveryofICMSassetsDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#RecoverabletaxesSummaryofestimatedrecoveryofICMSassetsDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/InvestmentSummaryOfBalancesAndChangesInAssociatesDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#InvestmentSummaryOfBalancesAndChangesInAssociatesDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/LoansfinancingdebenturesandderivativefinancialinstrumentsAdditionalInformationDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#LoansfinancingdebenturesandderivativefinancialinstrumentsAdditionalInformationDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/CommitmentsContractsDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#CommitmentsContractsDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/RisksandFinancialInstrumentsSummaryoflossallowanceforexpectedcreditlossesbalancesbygeographicareaDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#RisksandFinancialInstrumentsSummaryoflossallowanceforexpectedcreditlossesbalancesbygeographicareaDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/RisksandFinancialInstrumentsLossallowanceforexpectedcreditlossesbalancesontradereceivablesDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#RisksandFinancialInstrumentsLossallowanceforexpectedcreditlossesbalancesontradereceivablesDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/FinancialInstrumentsSummaryofcreditriskoffinancialinstitutionandgovernmentofcashcashequivalentsandfinancialinvestmentsDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#FinancialInstrumentsSummaryofcreditriskoffinancialinstitutionandgovernmentofcashcashequivalentsandfinancialinvestmentsDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/FinancialInstrumentsSensitivityanalysiswithdevaluationoftheRealandinterestrateincreaseDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#FinancialInstrumentsSensitivityanalysiswithdevaluationoftheRealandinterestrateincreaseDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/LoansfinancingdebenturesandderivativefinancialinstrumentsNarrativeofDebenturesDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#LoansfinancingdebenturesandderivativefinancialinstrumentsNarrativeofDebenturesDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/SegmentInformationRevenueFromOperationsAbroadDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#SegmentInformationRevenueFromOperationsAbroadDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/LoansfinancingdebenturesandderivativefinancialinstrumentsSummaryofDebenturesDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#LoansfinancingdebenturesandderivativefinancialinstrumentsSummaryofDebenturesDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/LoansfinancingdebenturesandderivativefinancialinstrumentsSummaryofCompostionofloansDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#LoansfinancingdebenturesandderivativefinancialinstrumentsSummaryofCompostionofloansDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/IntangibleassetsBalanceandchangesinintangibleassetsDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#IntangibleassetsBalanceandchangesinintangibleassetsDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/SegmentInformationRightofuseAssetsPPEandIntangibleAssetsoftheCompanyAbroadDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#SegmentInformationRightofuseAssetsPPEandIntangibleAssetsoftheCompanyAbroadDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/PropertyPlantAndEquipmentBalancesAndChangesInPropertyPlantAndEquipmentBeginningAndEndingDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#PropertyPlantAndEquipmentBalancesAndChangesInPropertyPlantAndEquipmentBeginningAndEndingDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/InvestmentsinsubsidiariesjointventuresandassociatesSummaryofbalancesandchangesininvestmentsinjointventuresandassociatesDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#InvestmentsinsubsidiariesjointventuresandassociatesSummaryofbalancesandchangesininvestmentsinjointventuresandassociatesDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/InvestmentsinsubsidiariesjointventuresandassociatesSummaryofthepositionsofequityandincomelossfortheyearDetails" xlink:type="simple" xlink:href="ugp-20241231.xsd#InvestmentsinsubsidiariesjointventuresandassociatesSummaryofthepositionsofequityandincomelossfortheyearDetails" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/EquityBalanceoftreasurysharesDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#EquityBalanceoftreasurysharesDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/SubscriptionWarrantsIndemnificationAdditionalInformationDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#SubscriptionWarrantsIndemnificationAdditionalInformationDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/DeferredRevenueDeferredRevenueInSubsidiariesDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#DeferredRevenueDeferredRevenueInSubsidiariesDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/RelatedPartiesSummaryOfSubsidiariesAndOtherRelatedPartiesDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#RelatedPartiesSummaryOfSubsidiariesAndOtherRelatedPartiesDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/ProvisionsandcontingentliabilitiesBalancesofescrowdepositsDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#ProvisionsandcontingentliabilitiesBalancesofescrowdepositsDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/EmployeebenefitsandprivatepensionplanSensitivityanalysisDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#EmployeebenefitsandprivatepensionplanSensitivityanalysisDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/EmployeebenefitsandprivatepensionplanPostemploymentbenefitexpenseDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#EmployeebenefitsandprivatepensionplanPostemploymentbenefitexpenseDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/EmployeebenefitsandprivatepensionplanPostemploymentBenefitsDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#EmployeebenefitsandprivatepensionplanPostemploymentBenefitsDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/TaxesPayableSummaryOfTaxesPayableDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#TaxesPayableSummaryOfTaxesPayableDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/BasisofpreparationandpresentationoftheconsolidatedfinancialstatementsandsignificantaccountingpoliciesAdditionalInformationDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#BasisofpreparationandpresentationoftheconsolidatedfinancialstatementsandsignificantaccountingpoliciesAdditionalInformationDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/TradePayablesSummaryOfTradePayablesDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#TradePayablesSummaryOfTradePayablesDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/LoansfinancingdebenturesandderivativefinancialinstrumentsSummaryofPrincipalMaturityScheduleDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#LoansfinancingdebenturesandderivativefinancialinstrumentsSummaryofPrincipalMaturityScheduleDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/OperationsOperationalimpactsDetailsTextuals" xlink:type="simple" xlink:href="ugp-20241231.xsd#OperationsOperationalimpactsDetailsTextuals" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/IntangibleassetsTransfertopropertyplantandequipmentDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#IntangibleassetsTransfertopropertyplantandequipmentDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/RightofuseassetsandleasespayableDetailsaboutleasecontractsoflowamountassetsDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#RightofuseassetsandleasespayableDetailsaboutleasecontractsoflowamountassetsDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/RightofuseassetsandleasespayableSummaryofweightedaveragediscountratesfortheleasepayableDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#RightofuseassetsandleasespayableSummaryofweightedaveragediscountratesfortheleasepayableDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/RightofuseassetsandleasespayableSummaryofMaturitiesofLeasePaymentsofOperatingLeaseDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#RightofuseassetsandleasespayableSummaryofMaturitiesofLeasePaymentsofOperatingLeaseDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/RightofuseassetsandleasespayableSummaryofInformationAboutRightofUseAssetsDetailParenthetical" xlink:type="simple" xlink:href="ugp-20241231.xsd#RightofuseassetsandleasespayableSummaryofInformationAboutRightofUseAssetsDetailParenthetical" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/InvestmentsinsubsidiariesjointventuresandassociatesSummaryoffinancialpositionandincomeofsubsidiarieswhichhaverelevantnoncontrollinginterestsDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#InvestmentsinsubsidiariesjointventuresandassociatesSummaryoffinancialpositionandincomeofsubsidiarieswhichhaverelevantnoncontrollinginterestsDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/RelatedPartiesChangesOfNumberOfSharesGrantedDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#RelatedPartiesChangesOfNumberOfSharesGrantedDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/Consolidatedstatementsofchangesinequity" xlink:type="simple" xlink:href="ugp-20241231.xsd#Consolidatedstatementsofchangesinequity" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/RecoverabletaxesConsolidatedSummaryofRecoverableIncomeTaxandSocialContributionTaxesDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#RecoverabletaxesConsolidatedSummaryofRecoverableIncomeTaxandSocialContributionTaxesDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/RecoverabletaxesScheduleofestimatedrecoveryofICMScreditsDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#RecoverabletaxesScheduleofestimatedrecoveryofICMScreditsDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/CoverPage" xlink:type="simple" xlink:href="ugp-20241231.xsd#CoverPage" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/RecoverabletaxesSummaryofRecoverableTaxesDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#RecoverabletaxesSummaryofRecoverableTaxesDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/InventoriesBreakdownofInventoriesDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#InventoriesBreakdownofInventoriesDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/TradereceivablesresellerfinancingandotherreceivablesBreakdownofResellerFinancingGrossofLossAllowanceforExpectedCreditLossesDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#TradereceivablesresellerfinancingandotherreceivablesBreakdownofResellerFinancingGrossofLossAllowanceforExpectedCreditLossesDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/TradereceivablesresellerfinancingandotherreceivablesCompositionofResellerFinancingDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#TradereceivablesresellerfinancingandotherreceivablesCompositionofResellerFinancingDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/TradereceivablesresellerfinancingandotherreceivablesSummaryofMovementsintheAllowanceforLossAllowanceforExpectedCreditLossesDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#TradereceivablesresellerfinancingandotherreceivablesSummaryofMovementsintheAllowanceforLossAllowanceforExpectedCreditLossesDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/TradereceivablesresellerfinancingandotherreceivablesBreakdownofLossAllowanceforExpectedCreditLossesDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#TradereceivablesresellerfinancingandotherreceivablesBreakdownofLossAllowanceforExpectedCreditLossesDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/TradereceivablesresellerfinancingandotherreceivablesTradereceivablesDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#TradereceivablesresellerfinancingandotherreceivablesTradereceivablesDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/AcquisitionofInterestandControlTables" xlink:type="simple" xlink:href="ugp-20241231.xsd#AcquisitionofInterestandControlTables" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/TradereceivablesresellerfinancingandotherreceivablesAdditionalInformationDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#TradereceivablesresellerfinancingandotherreceivablesAdditionalInformationDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/RecoverabletaxesScheduleofestimatedrecoveryofPISandCOFINScreditsDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#RecoverabletaxesScheduleofestimatedrecoveryofPISandCOFINScreditsDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/RisksAndFinancialInstrumentsChangesInExchangeRateDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#RisksAndFinancialInstrumentsChangesInExchangeRateDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/RisksAndFinancialInstrumentsFairValuesAndTheCarryingValuesOfTheFinancialInstrumentsDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#RisksAndFinancialInstrumentsFairValuesAndTheCarryingValuesOfTheFinancialInstrumentsDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/InvestmentSummaryOfBalancesAndChangesInJointVenturesDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#InvestmentSummaryOfBalancesAndChangesInJointVenturesDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/AcquisitionofInterestandControlScheduleofacquiredintangibleassetsthatwerenotrecognizedinthebooksoftheacquiredentityDetails" xlink:type="simple" xlink:href="ugp-20241231.xsd#AcquisitionofInterestandControlScheduleofacquiredintangibleassetsthatwerenotrecognizedinthebooksoftheacquiredentityDetails" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/AcquisitionofInterestandControlScheduleofearnoutsensitivityanalysisDetails" xlink:type="simple" xlink:href="ugp-20241231.xsd#AcquisitionofInterestandControlScheduleofearnoutsensitivityanalysisDetails" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/RisksandFinancialInstrumentsSummaryofforeignexchangehedginginstrumentsdesignatedasfairvaluehedgeDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#RisksandFinancialInstrumentsSummaryofforeignexchangehedginginstrumentsdesignatedasfairvaluehedgeDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/FinancialInstrumentsSummarythepositionofhedginginstrumentsDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#FinancialInstrumentsSummarythepositionofhedginginstrumentsDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/FinancialInstrumentsContractualundiscountedcashoutflowsDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#FinancialInstrumentsContractualundiscountedcashoutflowsDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/FinancialInstrumentsPositionsofderivativefinancialinstrumentstohedgecommoditypriceriskDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#FinancialInstrumentsPositionsofderivativefinancialinstrumentstohedgecommoditypriceriskDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/RisksandFinancialInstrumentsSensitivityanalysisoffloatinginterestrateriskDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#RisksandFinancialInstrumentsSensitivityanalysisoffloatinginterestrateriskDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/RisksAndFinancialInstrumentsFinancialAssetsAndLiabilitiesExposedToFloatingInterestRatesDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#RisksAndFinancialInstrumentsFinancialAssetsAndLiabilitiesExposedToFloatingInterestRatesDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/ProvisionforassetretirementobligationChangesintheprovisionforassetretirementobligationDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#ProvisionforassetretirementobligationChangesintheprovisionforassetretirementobligationDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/RightofuseassetsandleasespayableSummaryofAmortizationExpensesintheFinancialStatementsDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#RightofuseassetsandleasespayableSummaryofAmortizationExpensesintheFinancialStatementsDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/DiscontinuedoperationsDetailsTextuals" xlink:type="simple" xlink:href="ugp-20241231.xsd#DiscontinuedoperationsDetailsTextuals" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/EarningspershareAdditionalInformationDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#EarningspershareAdditionalInformationDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/IntangibleassetsBalancesofgoodwillParentheticalDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#IntangibleassetsBalancesofgoodwillParentheticalDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/PropertyPlantAndEquipmentSummaryOfDepreciationExpensesInTheFinancialStatementsDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#PropertyPlantAndEquipmentSummaryOfDepreciationExpensesInTheFinancialStatementsDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/ProvisionsandcontingentliabilitiesBreakdownofprovisionsbynatureDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#ProvisionsandcontingentliabilitiesBreakdownofprovisionsbynatureDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/EmployeebenefitsandprivatepensionplanAdditionalinformationDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#EmployeebenefitsandprivatepensionplanAdditionalinformationDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/LoansfinancingdebenturesandderivativefinancialinstrumentsSummaryofForeignLoanMaturityDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#LoansfinancingdebenturesandderivativefinancialinstrumentsSummaryofForeignLoanMaturityDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/LoansfinancingdebenturesandderivativefinancialinstrumentsSummaryofLoanMaturityDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#LoansfinancingdebenturesandderivativefinancialinstrumentsSummaryofLoanMaturityDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/LoansfinancingdebenturesandderivativefinancialinstrumentsSummaryofAppropriatedProfitorLossinTheFutureDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#LoansfinancingdebenturesandderivativefinancialinstrumentsSummaryofAppropriatedProfitorLossinTheFutureDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/IntangibleassetsAdditionalInformationDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#IntangibleassetsAdditionalInformationDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/IntangibleassetsBalancesofgoodwillDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#IntangibleassetsBalancesofgoodwillDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/RightofuseassetsandleasespayableSummaryofChangesinLeasePayablesDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#RightofuseassetsandleasespayableSummaryofChangesinLeasePayablesDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/RightofuseassetsandleasespayableSummaryofInformationAboutRightofUseAssetsDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#RightofuseassetsandleasespayableSummaryofInformationAboutRightofUseAssetsDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/InvestmentsinsubsidiariesjointventuresandassociatesDetailsTextuals" xlink:type="simple" xlink:href="ugp-20241231.xsd#InvestmentsinsubsidiariesjointventuresandassociatesDetailsTextuals" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/IncomeAndSocialContributionTaxesAdditionalInformationDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#IncomeAndSocialContributionTaxesAdditionalInformationDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/IncomeAndSocialContributionTaxesSummaryOfDeferredIncomeAndSocialContributionTaxAssetsDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#IncomeAndSocialContributionTaxesSummaryOfDeferredIncomeAndSocialContributionTaxAssetsDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/IncomeAndSocialContributionTaxesSummaryOfTaxIncentivesDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#IncomeAndSocialContributionTaxesSummaryOfTaxIncentivesDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/RelatedPartiesSummarizedChangesOfNumberOfRestrictedAndPerformanceSharesGrantedDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#RelatedPartiesSummarizedChangesOfNumberOfRestrictedAndPerformanceSharesGrantedDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/TradereceivablesresellerfinancingandotherreceivablesSummaryofofTradeReceivablesGrossofLossAllowanceforExpectedCreditLossesDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#TradereceivablesresellerfinancingandotherreceivablesSummaryofofTradeReceivablesGrossofLossAllowanceforExpectedCreditLossesDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/RelatedPartiesSummaryOfSharesGrantedDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#RelatedPartiesSummaryOfSharesGrantedDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/RelatedPartiesAdditionalInformationDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#RelatedPartiesAdditionalInformationDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/TradereceivablesresellerfinancingandotherreceivablessaleofsubsidiariesDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#TradereceivablesresellerfinancingandotherreceivablessaleofsubsidiariesDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/OperationsMainrisksandassociatedmeasuresDetailsTextuals" xlink:type="simple" xlink:href="ugp-20241231.xsd#OperationsMainrisksandassociatedmeasuresDetailsTextuals" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/TradereceivablesresellerfinancingandotherreceivablesTables" xlink:type="simple" xlink:href="ugp-20241231.xsd#TradereceivablesresellerfinancingandotherreceivablesTables" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/OperationsDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#OperationsDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/RisksandFinancialInstrumentsCreditriskexposureDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#RisksandFinancialInstrumentsCreditriskexposureDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/Consolidatedstatementsoffinancialposition" xlink:type="simple" xlink:href="ugp-20241231.xsd#Consolidatedstatementsoffinancialposition" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/Consolidatedstatementsofincome" xlink:type="simple" xlink:href="ugp-20241231.xsd#Consolidatedstatementsofincome" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/ConsolidatedstatementsofincomeCalc2" xlink:type="simple" xlink:href="ugp-20241231.xsd#ConsolidatedstatementsofincomeCalc2" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/Consolidatedstatementsofcomprehensiveincome" xlink:type="simple" xlink:href="ugp-20241231.xsd#Consolidatedstatementsofcomprehensiveincome" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/ConsolidatedstatementsofcomprehensiveincomeCalc2" xlink:type="simple" xlink:href="ugp-20241231.xsd#ConsolidatedstatementsofcomprehensiveincomeCalc2" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/ConsolidatedstatementsofchangesinequityParenthetical" xlink:type="simple" xlink:href="ugp-20241231.xsd#ConsolidatedstatementsofchangesinequityParenthetical" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/Consolidatedstatementsofcashflowsindirectmethod" xlink:type="simple" xlink:href="ugp-20241231.xsd#Consolidatedstatementsofcashflowsindirectmethod" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/ConsolidatedstatementsofcashflowsindirectmethodCalc2" xlink:type="simple" xlink:href="ugp-20241231.xsd#ConsolidatedstatementsofcashflowsindirectmethodCalc2" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/Operations" xlink:type="simple" xlink:href="ugp-20241231.xsd#Operations" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/Basisofpreparationandpresentationofconsolidatedfinancialstatements" xlink:type="simple" xlink:href="ugp-20241231.xsd#Basisofpreparationandpresentationofconsolidatedfinancialstatements" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/Newaccountingpoliciesandchangesinaccountingpolicies" xlink:type="simple" xlink:href="ugp-20241231.xsd#Newaccountingpoliciesandchangesinaccountingpolicies" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/PrinciplesOfConsolidationAndInvestmentsInSubsidiaries" xlink:type="simple" xlink:href="ugp-20241231.xsd#PrinciplesOfConsolidationAndInvestmentsInSubsidiaries" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/Cashandcashequivalentsfinancialinvestmentsderivativefinancialinstrumentsandotherfinancialassets" xlink:type="simple" xlink:href="ugp-20241231.xsd#Cashandcashequivalentsfinancialinvestmentsderivativefinancialinstrumentsandotherfinancialassets" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/Tradereceivablesresellerfinancingandotherreceivables" xlink:type="simple" xlink:href="ugp-20241231.xsd#Tradereceivablesresellerfinancingandotherreceivables" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/Inventories" xlink:type="simple" xlink:href="ugp-20241231.xsd#Inventories" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/Recoverabletaxes" xlink:type="simple" xlink:href="ugp-20241231.xsd#Recoverabletaxes" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/RelatedParties" xlink:type="simple" xlink:href="ugp-20241231.xsd#RelatedParties" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/IncomeAndSocialContributionTaxes" xlink:type="simple" xlink:href="ugp-20241231.xsd#IncomeAndSocialContributionTaxes" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/PrepaidExpenses" xlink:type="simple" xlink:href="ugp-20241231.xsd#PrepaidExpenses" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/Contractualassetswithcustomersexclusivityrights" xlink:type="simple" xlink:href="ugp-20241231.xsd#Contractualassetswithcustomersexclusivityrights" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/Investmentsinsubsidiariesjointventuresandassociates" xlink:type="simple" xlink:href="ugp-20241231.xsd#Investmentsinsubsidiariesjointventuresandassociates" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/Rightofuseassetsandleasespayable" xlink:type="simple" xlink:href="ugp-20241231.xsd#Rightofuseassetsandleasespayable" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/Propertyplantandequipment" xlink:type="simple" xlink:href="ugp-20241231.xsd#Propertyplantandequipment" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/Intangibleassets" xlink:type="simple" xlink:href="ugp-20241231.xsd#Intangibleassets" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/Loansfinancingdebenturesandderivativefinancialinstruments" xlink:type="simple" xlink:href="ugp-20241231.xsd#Loansfinancingdebenturesandderivativefinancialinstruments" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/Tradepayables" xlink:type="simple" xlink:href="ugp-20241231.xsd#Tradepayables" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/Salariesandrelatedcharges" xlink:type="simple" xlink:href="ugp-20241231.xsd#Salariesandrelatedcharges" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/TaxesPayable" xlink:type="simple" xlink:href="ugp-20241231.xsd#TaxesPayable" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/Employeebenefitsandprivatepensionplan" xlink:type="simple" xlink:href="ugp-20241231.xsd#Employeebenefitsandprivatepensionplan" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/Provisionforassetretirementobligation" xlink:type="simple" xlink:href="ugp-20241231.xsd#Provisionforassetretirementobligation" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/Provisionsandcontingentliabilities" xlink:type="simple" xlink:href="ugp-20241231.xsd#Provisionsandcontingentliabilities" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/DeferredRevenue" xlink:type="simple" xlink:href="ugp-20241231.xsd#DeferredRevenue" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/SubscriptionWarrantsIndemnification" xlink:type="simple" xlink:href="ugp-20241231.xsd#SubscriptionWarrantsIndemnification" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/Equity" xlink:type="simple" xlink:href="ugp-20241231.xsd#Equity" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/Costsexpensesandotheroperatingresultsbynature" xlink:type="simple" xlink:href="ugp-20241231.xsd#Costsexpensesandotheroperatingresultsbynature" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/Gainlossondisposalofpropertyplantandequipmentandintangibleassets" xlink:type="simple" xlink:href="ugp-20241231.xsd#Gainlossondisposalofpropertyplantandequipmentandintangibleassets" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/Otheroperatingincomenet" xlink:type="simple" xlink:href="ugp-20241231.xsd#Otheroperatingincomenet" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/Financialresult" xlink:type="simple" xlink:href="ugp-20241231.xsd#Financialresult" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/Earningspershare" xlink:type="simple" xlink:href="ugp-20241231.xsd#Earningspershare" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/Segmentinformation" xlink:type="simple" xlink:href="ugp-20241231.xsd#Segmentinformation" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/FinancialInstruments" xlink:type="simple" xlink:href="ugp-20241231.xsd#FinancialInstruments" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/Commitments" xlink:type="simple" xlink:href="ugp-20241231.xsd#Commitments" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/AcquisitionofInterestandControl" xlink:type="simple" xlink:href="ugp-20241231.xsd#AcquisitionofInterestandControl" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/Discontinuedoperations" xlink:type="simple" xlink:href="ugp-20241231.xsd#Discontinuedoperations" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/Eventsafterthereportingperiod" xlink:type="simple" xlink:href="ugp-20241231.xsd#Eventsafterthereportingperiod" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/BasisofpreparationandpresentationofconsolidatedfinancialstatementsPolicies" xlink:type="simple" xlink:href="ugp-20241231.xsd#BasisofpreparationandpresentationofconsolidatedfinancialstatementsPolicies" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/OperationsTables" xlink:type="simple" xlink:href="ugp-20241231.xsd#OperationsTables" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/PresentationOfFinancialStatementsAndSummaryOfSignificantAccountingPoliciesTables" xlink:type="simple" xlink:href="ugp-20241231.xsd#PresentationOfFinancialStatementsAndSummaryOfSignificantAccountingPoliciesTables" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/CashandcashequivalentsfinancialinvestmentsderivativefinancialinstrumentsandotherfinancialassetsTables" xlink:type="simple" xlink:href="ugp-20241231.xsd#CashandcashequivalentsfinancialinvestmentsderivativefinancialinstrumentsandotherfinancialassetsTables" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/InventoriesTables" xlink:type="simple" xlink:href="ugp-20241231.xsd#InventoriesTables" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/RecoverabletaxesTables" xlink:type="simple" xlink:href="ugp-20241231.xsd#RecoverabletaxesTables" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/RelatedPartiesTables" xlink:type="simple" xlink:href="ugp-20241231.xsd#RelatedPartiesTables" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/IncomeAndSocialContributionTaxesTables" xlink:type="simple" xlink:href="ugp-20241231.xsd#IncomeAndSocialContributionTaxesTables" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/PrepaidExpensesTables" xlink:type="simple" xlink:href="ugp-20241231.xsd#PrepaidExpensesTables" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/ContractualassetswithcustomersexclusivityrightsTables" xlink:type="simple" xlink:href="ugp-20241231.xsd#ContractualassetswithcustomersexclusivityrightsTables" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/InvestmentsinsubsidiariesjointventuresandassociatesTables" xlink:type="simple" xlink:href="ugp-20241231.xsd#InvestmentsinsubsidiariesjointventuresandassociatesTables" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/RightofuseassetsandleasespayableTables" xlink:type="simple" xlink:href="ugp-20241231.xsd#RightofuseassetsandleasespayableTables" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/PropertyPlantAndEquipmentTables" xlink:type="simple" xlink:href="ugp-20241231.xsd#PropertyPlantAndEquipmentTables" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/IntangibleassetsTables" xlink:type="simple" xlink:href="ugp-20241231.xsd#IntangibleassetsTables" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/LoansfinancingdebenturesandderivativefinancialinstrumentsTables" xlink:type="simple" xlink:href="ugp-20241231.xsd#LoansfinancingdebenturesandderivativefinancialinstrumentsTables" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/TradePayablesTables" xlink:type="simple" xlink:href="ugp-20241231.xsd#TradePayablesTables" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/SalariesandrelatedchargesTables" xlink:type="simple" xlink:href="ugp-20241231.xsd#SalariesandrelatedchargesTables" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/TaxesPayableTables" xlink:type="simple" xlink:href="ugp-20241231.xsd#TaxesPayableTables" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/EmployeebenefitsandprivatepensionplanTables" xlink:type="simple" xlink:href="ugp-20241231.xsd#EmployeebenefitsandprivatepensionplanTables" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/ProvisionforassetretirementobligationTables" xlink:type="simple" xlink:href="ugp-20241231.xsd#ProvisionforassetretirementobligationTables" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/ProvisionsandcontingentliabilitiesTables" xlink:type="simple" xlink:href="ugp-20241231.xsd#ProvisionsandcontingentliabilitiesTables" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/DeferredRevenueTables" xlink:type="simple" xlink:href="ugp-20241231.xsd#DeferredRevenueTables" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/EquityTables" xlink:type="simple" xlink:href="ugp-20241231.xsd#EquityTables" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/CostsexpensesandotheroperatingresultsbynatureTables" xlink:type="simple" xlink:href="ugp-20241231.xsd#CostsexpensesandotheroperatingresultsbynatureTables" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/OtheroperatingincomenetTables" xlink:type="simple" xlink:href="ugp-20241231.xsd#OtheroperatingincomenetTables" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/FinancialresultTables" xlink:type="simple" xlink:href="ugp-20241231.xsd#FinancialresultTables" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/EarningspershareTables" xlink:type="simple" xlink:href="ugp-20241231.xsd#EarningspershareTables" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/SegmentinformationTables" xlink:type="simple" xlink:href="ugp-20241231.xsd#SegmentinformationTables" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/FinancialInstrumentsTables" xlink:type="simple" xlink:href="ugp-20241231.xsd#FinancialInstrumentsTables" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/CommitmentsTables" xlink:type="simple" xlink:href="ugp-20241231.xsd#CommitmentsTables" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/DiscontinuedoperationsTables" xlink:type="simple" xlink:href="ugp-20241231.xsd#DiscontinuedoperationsTables" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/CashandcashequivalentsfinancialinvestmentsderivativefinancialinstrumentsandotherfinancialassetsCashandcashequivalentsDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#CashandcashequivalentsfinancialinvestmentsderivativefinancialinstrumentsandotherfinancialassetsCashandcashequivalentsDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/CashandcashequivalentsfinancialinvestmentsderivativefinancialinstrumentsandotherfinancialassetsFinancialinvestmentsDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#CashandcashequivalentsfinancialinvestmentsderivativefinancialinstrumentsandotherfinancialassetsFinancialinvestmentsDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/CashandCashEquivalentsandFinancialInvestmentsFinancialinvestmentsDetailCalc2" xlink:type="simple" xlink:href="ugp-20241231.xsd#CashandCashEquivalentsandFinancialInvestmentsFinancialinvestmentsDetailCalc2" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/CashandcashequivalentsfinancialinvestmentsandderivativefinancialinstrumentsAdditionalInformationDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#CashandcashequivalentsfinancialinvestmentsandderivativefinancialinstrumentsAdditionalInformationDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/TradeReceivablesandResellerFinancingTradereceivablesDetailCalc2" xlink:type="simple" xlink:href="ugp-20241231.xsd#TradeReceivablesandResellerFinancingTradereceivablesDetailCalc2" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/TradeReceivablesandResellerFinancingCompositionofResellerFinancingDetailCalc2" xlink:type="simple" xlink:href="ugp-20241231.xsd#TradeReceivablesandResellerFinancingCompositionofResellerFinancingDetailCalc2" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/InventoriesMovementsintheProvisionforinventoryLossesDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#InventoriesMovementsintheProvisionforinventoryLossesDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/InventoriesBreakdownofProvisionforLossesRelatedtoInventoriesDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#InventoriesBreakdownofProvisionforLossesRelatedtoInventoriesDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/RelatedPartiesSummaryOfExpensesForCompensationOfItsKeyExecutivesDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#RelatedPartiesSummaryOfExpensesForCompensationOfItsKeyExecutivesDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/IncomeAndSocialContributionTaxesDeferredTaxesDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#IncomeAndSocialContributionTaxesDeferredTaxesDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/IncomeAndSocialContributionTaxesSummaryOfChangesInBalancesOfDeferredTaxesDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#IncomeAndSocialContributionTaxesSummaryOfChangesInBalancesOfDeferredTaxesDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/IncomeAndSocialContributionTaxesSummaryOfReconciliationOfTaxesDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#IncomeAndSocialContributionTaxesSummaryOfReconciliationOfTaxesDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/ContractualassetswithcustomersexclusivityrightsSummaryofContractualAssetswithCustomersExclusiveRightsBalanceandChangesDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#ContractualassetswithcustomersexclusivityrightsSummaryofContractualAssetswithCustomersExclusiveRightsBalanceandChangesDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/RightofuseassetsandleasespayableAdditionalInformationDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#RightofuseassetsandleasespayableAdditionalInformationDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/LoansfinancingdebenturesandderivativefinancialinstrumentsSummaryofChangesinLoansDebenturesandFinanceLeasesDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#LoansfinancingdebenturesandderivativefinancialinstrumentsSummaryofChangesinLoansDebenturesandFinanceLeasesDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/EmployeebenefitsandprivatepensionplanChangesinprovisionforpostemploymentbenefitsDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#EmployeebenefitsandprivatepensionplanChangesinprovisionforpostemploymentbenefitsDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/EmployeebenefitsandprivatepensionplanSignificantactuarialassumptionsadoptedDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#EmployeebenefitsandprivatepensionplanSignificantactuarialassumptionsadoptedDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/DeferredRevenueAdditionalInformationDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#DeferredRevenueAdditionalInformationDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/EquityDividendsAndAllocationOfNetIncomeDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#EquityDividendsAndAllocationOfNetIncomeDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/EquityDividendsandAllocationofNetIncomeDetailCalc2" xlink:type="simple" xlink:href="ugp-20241231.xsd#EquityDividendsandAllocationofNetIncomeDetailCalc2" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/EquityDividendsAndAllocationOfNetIncomeParentheticalDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#EquityDividendsAndAllocationOfNetIncomeParentheticalDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/EquitySummaryofBalancesandChangesinDividendsPayableDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#EquitySummaryofBalancesandChangesinDividendsPayableDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/CostsexpensesandotheroperatingresultsbynatureCostsandexpensesbynatureDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#CostsexpensesandotheroperatingresultsbynatureCostsandexpensesbynatureDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/CostsandexpensesbynatureAdditionalinformationDetails" xlink:type="simple" xlink:href="ugp-20241231.xsd#CostsandexpensesbynatureAdditionalinformationDetails" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/CostsandexpensesbynatureCostsandexpensesbynatureDetailCalc2" xlink:type="simple" xlink:href="ugp-20241231.xsd#CostsandexpensesbynatureCostsandexpensesbynatureDetailCalc2" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/FinancialresultFinancialresultDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#FinancialresultFinancialresultDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/EarningspershareBasicandDilutedEarningsperShareDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#EarningspershareBasicandDilutedEarningsperShareDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/FinancialInstrumentsAssetsandliabilitiesinforeigncurrenciesDetailCalc2" xlink:type="simple" xlink:href="ugp-20241231.xsd#FinancialInstrumentsAssetsandliabilitiesinforeigncurrenciesDetailCalc2" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/FinancialInstrumentsScheduleofleverageratioDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#FinancialInstrumentsScheduleofleverageratioDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/CommitmentsMinimumAnnualPurchasesDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#CommitmentsMinimumAnnualPurchasesDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/InvestmentSummaryofprovisionforshorttermliabilitiesDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#InvestmentSummaryofprovisionforshorttermliabilitiesDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/InvestmentsSummaryofreconciliationofshareofprofitlossofsubsidiariesjointventuresandassociatesDetails" xlink:type="simple" xlink:href="ugp-20241231.xsd#InvestmentsSummaryofreconciliationofshareofprofitlossofsubsidiariesjointventuresandassociatesDetails" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/LoansfinancingdebenturesandderivativefinancialinstrumentsSummaryofCollateraltoFinancialInstitutionsDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#LoansfinancingdebenturesandderivativefinancialinstrumentsSummaryofCollateraltoFinancialInstitutionsDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/PrepaidExpensesSummaryOfPrepaidExpensesDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#PrepaidExpensesSummaryOfPrepaidExpensesDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/PrepaidExpensesSummaryofPrepaidExpensesDetailCalc2" xlink:type="simple" xlink:href="ugp-20241231.xsd#PrepaidExpensesSummaryofPrepaidExpensesDetailCalc2" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/EquityBalanceAndChangesInCumulativeTranslationAdjustmentsDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#EquityBalanceAndChangesInCumulativeTranslationAdjustmentsDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/SalariesAndRelatedChargesSummaryOfSalariesAndRelatedChargesDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#SalariesAndRelatedChargesSummaryOfSalariesAndRelatedChargesDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/GainlossondisposalofpropertyplantandequipmentandintangibleassetsAdditionalinformationDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#GainlossondisposalofpropertyplantandequipmentandintangibleassetsAdditionalinformationDetail" />
  <link:roleRef roleURI="http://www.ultrapar.com/role/OtheroperatingincomenetOtheroperatingincomenetDetail" xlink:type="simple" xlink:href="ugp-20241231.xsd#OtheroperatingincomenetOtheroperatingincomenetDetail" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/AcquisitionofInterestandControlAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:label="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:title="ifrs-full_DisclosureOfBusinessCombinationsLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfStatesInWhichAcquireeEntityOperates" xlink:label="ugp_NumberOfStatesInWhichAcquireeEntityOperates" xlink:title="ugp_NumberOfStatesInWhichAcquireeEntityOperates" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ugp_NumberOfStatesInWhichAcquireeEntityOperates" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ugp_NumberOfStatesInWhichAcquireeEntityOperates" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfMinimumActiveCustomersInWhichAcquireeEntityOfferedEnergySolutions" xlink:label="ugp_NumberOfMinimumActiveCustomersInWhichAcquireeEntityOfferedEnergySolutions" xlink:title="ugp_NumberOfMinimumActiveCustomersInWhichAcquireeEntityOfferedEnergySolutions" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ugp_NumberOfMinimumActiveCustomersInWhichAcquireeEntityOfferedEnergySolutions" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ugp_NumberOfMinimumActiveCustomersInWhichAcquireeEntityOfferedEnergySolutions" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_RenewableEnergyElectricityPowerDistributionCapacityInWhichAcquireeEntityOfferedToCustomers" xlink:label="ugp_RenewableEnergyElectricityPowerDistributionCapacityInWhichAcquireeEntityOfferedToCustomers" xlink:title="ugp_RenewableEnergyElectricityPowerDistributionCapacityInWhichAcquireeEntityOfferedToCustomers" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ugp_RenewableEnergyElectricityPowerDistributionCapacityInWhichAcquireeEntityOfferedToCustomers" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ugp_RenewableEnergyElectricityPowerDistributionCapacityInWhichAcquireeEntityOfferedToCustomers" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ConsiderationPaidReceived" xlink:label="ifrs-full_ConsiderationPaidReceived" xlink:title="ifrs-full_ConsiderationPaidReceived" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ifrs-full_ConsiderationPaidReceived" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ifrs-full_ConsiderationPaidReceived" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PortionOfConsiderationPaidReceivedConsistingOfCashAndCashEquivalents" xlink:label="ifrs-full_PortionOfConsiderationPaidReceivedConsistingOfCashAndCashEquivalents" xlink:title="ifrs-full_PortionOfConsiderationPaidReceivedConsistingOfCashAndCashEquivalents" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ifrs-full_PortionOfConsiderationPaidReceivedConsistingOfCashAndCashEquivalents" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ifrs-full_PortionOfConsiderationPaidReceivedConsistingOfCashAndCashEquivalents" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_GoodwillRecognisedAsOfAcquisitionDate" xlink:label="ifrs-full_GoodwillRecognisedAsOfAcquisitionDate" xlink:title="ifrs-full_GoodwillRecognisedAsOfAcquisitionDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ifrs-full_GoodwillRecognisedAsOfAcquisitionDate" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ifrs-full_GoodwillRecognisedAsOfAcquisitionDate" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_MinimumCapacityOfNaturalGasDistributed" xlink:label="ugp_MinimumCapacityOfNaturalGasDistributed" xlink:title="ugp_MinimumCapacityOfNaturalGasDistributed" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ugp_MinimumCapacityOfNaturalGasDistributed" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ugp_MinimumCapacityOfNaturalGasDistributed" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfCompressionBasesInSouthAndSoutheastRegions" xlink:label="ugp_NumberOfCompressionBasesInSouthAndSoutheastRegions" xlink:title="ugp_NumberOfCompressionBasesInSouthAndSoutheastRegions" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ugp_NumberOfCompressionBasesInSouthAndSoutheastRegions" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ugp_NumberOfCompressionBasesInSouthAndSoutheastRegions" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfSemiTrailersForNaturalGasDistribution" xlink:label="ugp_NumberOfSemiTrailersForNaturalGasDistribution" xlink:title="ugp_NumberOfSemiTrailersForNaturalGasDistribution" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ugp_NumberOfSemiTrailersForNaturalGasDistribution" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ugp_NumberOfSemiTrailersForNaturalGasDistribution" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_BusinessCombinationPriceOfAcquisitionExpectedUponPurchaseAndSaleAgreement" xlink:label="ugp_BusinessCombinationPriceOfAcquisitionExpectedUponPurchaseAndSaleAgreement" xlink:title="ugp_BusinessCombinationPriceOfAcquisitionExpectedUponPurchaseAndSaleAgreement" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ugp_BusinessCombinationPriceOfAcquisitionExpectedUponPurchaseAndSaleAgreement" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ugp_BusinessCombinationPriceOfAcquisitionExpectedUponPurchaseAndSaleAgreement" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PrimaryContributionPaid" xlink:label="ugp_PrimaryContributionPaid" xlink:title="ugp_PrimaryContributionPaid" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ugp_PrimaryContributionPaid" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ugp_PrimaryContributionPaid" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ContingentConsiderationRecognisedAsOfAcquisitionDate" xlink:label="ifrs-full_ContingentConsiderationRecognisedAsOfAcquisitionDate" xlink:title="ifrs-full_ContingentConsiderationRecognisedAsOfAcquisitionDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ifrs-full_ContingentConsiderationRecognisedAsOfAcquisitionDate" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ifrs-full_ContingentConsiderationRecognisedAsOfAcquisitionDate" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_GrossContractualAmountsReceivableForAcquiredReceivables" xlink:label="ifrs-full_GrossContractualAmountsReceivableForAcquiredReceivables" xlink:title="ifrs-full_GrossContractualAmountsReceivableForAcquiredReceivables" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ifrs-full_GrossContractualAmountsReceivableForAcquiredReceivables" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ifrs-full_GrossContractualAmountsReceivableForAcquiredReceivables" xlink:type="arc" use="optional" order="12" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PercentageOfVotingEquityInterestsAcquired" xlink:label="ifrs-full_PercentageOfVotingEquityInterestsAcquired" xlink:title="ifrs-full_PercentageOfVotingEquityInterestsAcquired" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ifrs-full_PercentageOfVotingEquityInterestsAcquired" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ifrs-full_PercentageOfVotingEquityInterestsAcquired" xlink:type="arc" use="optional" order="13" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_EquityInterestsOfAcquirer" xlink:label="ifrs-full_EquityInterestsOfAcquirer" xlink:title="ifrs-full_EquityInterestsOfAcquirer" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ifrs-full_EquityInterestsOfAcquirer" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ifrs-full_EquityInterestsOfAcquirer" xlink:type="arc" use="optional" order="14" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProportionOfVotingPowerHeldInAssociate" xlink:label="ifrs-full_ProportionOfVotingPowerHeldInAssociate" xlink:title="ifrs-full_ProportionOfVotingPowerHeldInAssociate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ifrs-full_ProportionOfVotingPowerHeldInAssociate" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ifrs-full_ProportionOfVotingPowerHeldInAssociate" xlink:type="arc" use="optional" order="15" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfSharesAcquired" xlink:label="ugp_NumberOfSharesAcquired" xlink:title="ugp_NumberOfSharesAcquired" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ugp_NumberOfSharesAcquired" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ugp_NumberOfSharesAcquired" xlink:type="arc" use="optional" order="16" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_BusinessCombinationSharePrice" xlink:label="ugp_BusinessCombinationSharePrice" xlink:title="ugp_BusinessCombinationSharePrice" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ugp_BusinessCombinationSharePrice" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ugp_BusinessCombinationSharePrice" xlink:type="arc" use="optional" order="17" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AdvancesForFutureCapitalIncreaseInvestmentAccountedForUsingEquityMethod" xlink:label="ugp_AdvancesForFutureCapitalIncreaseInvestmentAccountedForUsingEquityMethod" xlink:title="ugp_AdvancesForFutureCapitalIncreaseInvestmentAccountedForUsingEquityMethod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ugp_AdvancesForFutureCapitalIncreaseInvestmentAccountedForUsingEquityMethod" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ugp_AdvancesForFutureCapitalIncreaseInvestmentAccountedForUsingEquityMethod" xlink:type="arc" order="18" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:label="ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:title="ifrs-full_DisclosureOfBusinessCombinationsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:type="arc" order="19" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsTable to ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltragazComercialLtdaMember" xlink:label="ugp_UltragazComercialLtdaMember" xlink:title="ugp_UltragazComercialLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltragazComercialLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltragazComercialLtdaMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CiaUltragazMember" xlink:label="ugp_CiaUltragazMember" xlink:title="ugp_CiaUltragazMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_CiaUltragazMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_CiaUltragazMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltraparMobilidadeLtdaMember" xlink:label="ugp_UltraparMobilidadeLtdaMember" xlink:title="ugp_UltraparMobilidadeLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltraparMobilidadeLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltraparMobilidadeLtdaMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltracargoLogisticaSAMember" xlink:label="ugp_UltracargoLogisticaSAMember" xlink:title="ugp_UltracargoLogisticaSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltracargoLogisticaSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltracargoLogisticaSAMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltraparEmpreendimentosLtdaMember" xlink:label="ugp_UltraparEmpreendimentosLtdaMember" xlink:title="ugp_UltraparEmpreendimentosLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltraparEmpreendimentosLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltraparEmpreendimentosLtdaMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BusinessCombinationsAxis" xlink:label="ifrs-full_BusinessCombinationsAxis" xlink:title="ifrs-full_BusinessCombinationsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:to="ifrs-full_BusinessCombinationsAxis" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsTable to ifrs-full_BusinessCombinationsAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BusinessCombinationsDomain" xlink:label="ifrs-full_BusinessCombinationsDomain" xlink:title="ifrs-full_BusinessCombinationsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_BusinessCombinationsAxis" xlink:to="ifrs-full_BusinessCombinationsDomain" xlink:title="Definition : ifrs-full_BusinessCombinationsAxis to ifrs-full_BusinessCombinationsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_StellaGroupMember" xlink:label="ugp_StellaGroupMember" xlink:title="ugp_StellaGroupMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_StellaGroupMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_StellaGroupMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NeogasGroupMember" xlink:label="ugp_NeogasGroupMember" xlink:title="ugp_NeogasGroupMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_NeogasGroupMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_NeogasGroupMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_HidroviasDoBrasilMember" xlink:label="ugp_HidroviasDoBrasilMember" xlink:title="ugp_HidroviasDoBrasilMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_HidroviasDoBrasilMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_HidroviasDoBrasilMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_WtzParticipacoesSAMember" xlink:label="ugp_WtzParticipacoesSAMember" xlink:title="ugp_WtzParticipacoesSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_WtzParticipacoesSAMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_WtzParticipacoesSAMember" xlink:type="arc" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SerraDieselGroupMember" xlink:label="ugp_SerraDieselGroupMember" xlink:title="ugp_SerraDieselGroupMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_SerraDieselGroupMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_SerraDieselGroupMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OplaGroupMember" xlink:label="ugp_OplaGroupMember" xlink:title="ugp_OplaGroupMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_OplaGroupMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_OplaGroupMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BusinessCombinationsDomain" xlink:label="ifrs-full_BusinessCombinationsDomain_1" xlink:title="ifrs-full_BusinessCombinationsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_BusinessCombinationsAxis" xlink:to="ifrs-full_BusinessCombinationsDomain_1" xlink:title="Definition : ifrs-full_BusinessCombinationsAxis to ifrs-full_BusinessCombinationsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/ProvisionsandcontingentliabilitiesAdditionalinformationDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:label="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:title="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UnusedProvisionReversalsOfUpdatesOtherProvisions" xlink:label="ugp_UnusedProvisionReversalsOfUpdatesOtherProvisions" xlink:title="ugp_UnusedProvisionReversalsOfUpdatesOtherProvisions" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_UnusedProvisionReversalsOfUpdatesOtherProvisions" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_UnusedProvisionReversalsOfUpdatesOtherProvisions" xlink:type="arc" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DecreaseThroughProvisionForTaxMattersReversedEscrowDeposits" xlink:label="ugp_DecreaseThroughProvisionForTaxMattersReversedEscrowDeposits" xlink:title="ugp_DecreaseThroughProvisionForTaxMattersReversedEscrowDeposits" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_DecreaseThroughProvisionForTaxMattersReversedEscrowDeposits" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_DecreaseThroughProvisionForTaxMattersReversedEscrowDeposits" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_EscrowDepositsMadeUnderPreLiminaryInjunction" xlink:label="ugp_EscrowDepositsMadeUnderPreLiminaryInjunction" xlink:title="ugp_EscrowDepositsMadeUnderPreLiminaryInjunction" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_EscrowDepositsMadeUnderPreLiminaryInjunction" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_EscrowDepositsMadeUnderPreLiminaryInjunction" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ProfitLossOnProvisionForTaxCivilAndLaborRisks" xlink:label="ugp_ProfitLossOnProvisionForTaxCivilAndLaborRisks" xlink:title="ugp_ProfitLossOnProvisionForTaxCivilAndLaborRisks" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_ProfitLossOnProvisionForTaxCivilAndLaborRisks" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_ProfitLossOnProvisionForTaxCivilAndLaborRisks" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ProvisionsForLawsuitsAndAdministrativeProceedings" xlink:label="ugp_ProvisionsForLawsuitsAndAdministrativeProceedings" xlink:title="ugp_ProvisionsForLawsuitsAndAdministrativeProceedings" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_ProvisionsForLawsuitsAndAdministrativeProceedings" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_ProvisionsForLawsuitsAndAdministrativeProceedings" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ProvisionsForLaborLitigationFiledByFormerEmployees" xlink:label="ugp_ProvisionsForLaborLitigationFiledByFormerEmployees" xlink:title="ugp_ProvisionsForLaborLitigationFiledByFormerEmployees" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_ProvisionsForLaborLitigationFiledByFormerEmployees" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_ProvisionsForLaborLitigationFiledByFormerEmployees" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PercentageOfPossibleLossContingency" xlink:label="ugp_PercentageOfPossibleLossContingency" xlink:title="ugp_PercentageOfPossibleLossContingency" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_PercentageOfPossibleLossContingency" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_PercentageOfPossibleLossContingency" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ContingentLiabilitiesForTaxMattersAndSocialSecurity" xlink:label="ugp_ContingentLiabilitiesForTaxMattersAndSocialSecurity" xlink:title="ugp_ContingentLiabilitiesForTaxMattersAndSocialSecurity" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_ContingentLiabilitiesForTaxMattersAndSocialSecurity" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_ContingentLiabilitiesForTaxMattersAndSocialSecurity" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IpiContingency" xlink:label="ugp_IpiContingency" xlink:title="ugp_IpiContingency" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_IpiContingency" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_IpiContingency" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LegalProceedingsRelatedToIcms" xlink:label="ugp_LegalProceedingsRelatedToIcms" xlink:title="ugp_LegalProceedingsRelatedToIcms" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_LegalProceedingsRelatedToIcms" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_LegalProceedingsRelatedToIcms" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IcmsCredits" xlink:label="ugp_IcmsCredits" xlink:title="ugp_IcmsCredits" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_IcmsCredits" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_IcmsCredits" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ReversalOfICMSCredits" xlink:label="ugp_ReversalOfICMSCredits" xlink:title="ugp_ReversalOfICMSCredits" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_ReversalOfICMSCredits" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_ReversalOfICMSCredits" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ReversalOfAllegedNonpayment" xlink:label="ugp_ReversalOfAllegedNonpayment" xlink:title="ugp_ReversalOfAllegedNonpayment" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_ReversalOfAllegedNonpayment" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_ReversalOfAllegedNonpayment" xlink:type="arc" use="optional" order="12" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ReversalOfInventoryDifferences" xlink:label="ugp_ReversalOfInventoryDifferences" xlink:title="ugp_ReversalOfInventoryDifferences" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_ReversalOfInventoryDifferences" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_ReversalOfInventoryDifferences" xlink:type="arc" use="optional" order="13" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ReversalOfConditionedFruitionOfFiscalIncentive" xlink:label="ugp_ReversalOfConditionedFruitionOfFiscalIncentive" xlink:title="ugp_ReversalOfConditionedFruitionOfFiscalIncentive" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_ReversalOfConditionedFruitionOfFiscalIncentive" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_ReversalOfConditionedFruitionOfFiscalIncentive" xlink:type="arc" use="optional" order="14" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OffsetClaimsAndCreditDisallowances" xlink:label="ugp_OffsetClaimsAndCreditDisallowances" xlink:title="ugp_OffsetClaimsAndCreditDisallowances" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_OffsetClaimsAndCreditDisallowances" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_OffsetClaimsAndCreditDisallowances" xlink:type="arc" use="optional" order="15" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AmortizationOfGoodwillPaidOnAcquisitionOfSubsidiary" xlink:label="ugp_AmortizationOfGoodwillPaidOnAcquisitionOfSubsidiary" xlink:title="ugp_AmortizationOfGoodwillPaidOnAcquisitionOfSubsidiary" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_AmortizationOfGoodwillPaidOnAcquisitionOfSubsidiary" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_AmortizationOfGoodwillPaidOnAcquisitionOfSubsidiary" xlink:type="arc" use="optional" order="16" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ContingentLiabilitiesForCivilEnvironmentalAndRegulatoryClaims" xlink:label="ugp_ContingentLiabilitiesForCivilEnvironmentalAndRegulatoryClaims" xlink:title="ugp_ContingentLiabilitiesForCivilEnvironmentalAndRegulatoryClaims" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_ContingentLiabilitiesForCivilEnvironmentalAndRegulatoryClaims" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_ContingentLiabilitiesForCivilEnvironmentalAndRegulatoryClaims" xlink:type="arc" use="optional" order="17" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfLawsuitsFiledForCivilEnvironmentalAndRegulatoryClaims" xlink:label="ugp_NumberOfLawsuitsFiledForCivilEnvironmentalAndRegulatoryClaims" xlink:title="ugp_NumberOfLawsuitsFiledForCivilEnvironmentalAndRegulatoryClaims" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_NumberOfLawsuitsFiledForCivilEnvironmentalAndRegulatoryClaims" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_NumberOfLawsuitsFiledForCivilEnvironmentalAndRegulatoryClaims" xlink:type="arc" use="optional" order="18" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PenaltyOnUltragaz" xlink:label="ugp_PenaltyOnUltragaz" xlink:title="ugp_PenaltyOnUltragaz" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_PenaltyOnUltragaz" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_PenaltyOnUltragaz" xlink:type="arc" use="optional" order="19" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LegalProceedingsProvision" xlink:label="ifrs-full_LegalProceedingsProvision" xlink:title="ifrs-full_LegalProceedingsProvision" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ifrs-full_LegalProceedingsProvision" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ifrs-full_LegalProceedingsProvision" xlink:type="arc" use="optional" order="20" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ContingentLiabilitiesNotRecognizedToLawsuit" xlink:label="ugp_ContingentLiabilitiesNotRecognizedToLawsuit" xlink:title="ugp_ContingentLiabilitiesNotRecognizedToLawsuit" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_ContingentLiabilitiesNotRecognizedToLawsuit" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_ContingentLiabilitiesNotRecognizedToLawsuit" xlink:type="arc" use="optional" order="21" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ContingentLiabilitiesForLaborMatters" xlink:label="ugp_ContingentLiabilitiesForLaborMatters" xlink:title="ugp_ContingentLiabilitiesForLaborMatters" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_ContingentLiabilitiesForLaborMatters" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_ContingentLiabilitiesForLaborMatters" xlink:type="arc" use="optional" order="22" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfLawsuitsFiledForLaborMatters" xlink:label="ugp_NumberOfLawsuitsFiledForLaborMatters" xlink:title="ugp_NumberOfLawsuitsFiledForLaborMatters" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_NumberOfLawsuitsFiledForLaborMatters" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_NumberOfLawsuitsFiledForLaborMatters" xlink:type="arc" use="optional" order="23" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PenaltyOnAdministrativeProceedings" xlink:label="ugp_PenaltyOnAdministrativeProceedings" xlink:title="ugp_PenaltyOnAdministrativeProceedings" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_PenaltyOnAdministrativeProceedings" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_PenaltyOnAdministrativeProceedings" xlink:type="arc" use="optional" order="24" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CompensationSuitAgainstDamages" xlink:label="ugp_CompensationSuitAgainstDamages" xlink:title="ugp_CompensationSuitAgainstDamages" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_CompensationSuitAgainstDamages" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_CompensationSuitAgainstDamages" xlink:type="arc" use="optional" order="25" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CompensationPaidToParty" xlink:label="ugp_CompensationPaidToParty" xlink:title="ugp_CompensationPaidToParty" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_CompensationPaidToParty" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_CompensationPaidToParty" xlink:type="arc" use="optional" order="26" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_FruitionTaxExpensesBenefitsRelatedToFiscalEquilibriumFund" xlink:label="ugp_FruitionTaxExpensesBenefitsRelatedToFiscalEquilibriumFund" xlink:title="ugp_FruitionTaxExpensesBenefitsRelatedToFiscalEquilibriumFund" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_FruitionTaxExpensesBenefitsRelatedToFiscalEquilibriumFund" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_FruitionTaxExpensesBenefitsRelatedToFiscalEquilibriumFund" xlink:type="arc" use="optional" order="27" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SurchargeRateOnNonEssentialProducts" xlink:label="ugp_SurchargeRateOnNonEssentialProducts" xlink:title="ugp_SurchargeRateOnNonEssentialProducts" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_SurchargeRateOnNonEssentialProducts" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_SurchargeRateOnNonEssentialProducts" xlink:type="arc" use="optional" order="28" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SurchargeOnNonEssentialProducts" xlink:label="ugp_SurchargeOnNonEssentialProducts" xlink:title="ugp_SurchargeOnNonEssentialProducts" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_SurchargeOnNonEssentialProducts" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_SurchargeOnNonEssentialProducts" xlink:type="arc" use="optional" order="29" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfFinesReceived" xlink:label="ugp_NumberOfFinesReceived" xlink:title="ugp_NumberOfFinesReceived" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_NumberOfFinesReceived" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_NumberOfFinesReceived" xlink:type="arc" use="optional" order="30" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PaymentsForIcmsTaxAssessment" xlink:label="ugp_PaymentsForIcmsTaxAssessment" xlink:title="ugp_PaymentsForIcmsTaxAssessment" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_PaymentsForIcmsTaxAssessment" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_PaymentsForIcmsTaxAssessment" xlink:type="arc" use="optional" order="31" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ContingentLiabilitiesForTaxAssessmentsOnSales" xlink:label="ugp_ContingentLiabilitiesForTaxAssessmentsOnSales" xlink:title="ugp_ContingentLiabilitiesForTaxAssessmentsOnSales" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_ContingentLiabilitiesForTaxAssessmentsOnSales" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_ContingentLiabilitiesForTaxAssessmentsOnSales" xlink:type="arc" use="optional" order="32" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ProvisionForIndemnities" xlink:label="ugp_ProvisionForIndemnities" xlink:title="ugp_ProvisionForIndemnities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_ProvisionForIndemnities" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_ProvisionForIndemnities" xlink:type="arc" use="optional" order="33" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ProvisionForIndemnitiesRelatedToLaborClaims" xlink:label="ugp_ProvisionForIndemnitiesRelatedToLaborClaims" xlink:title="ugp_ProvisionForIndemnitiesRelatedToLaborClaims" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_ProvisionForIndemnitiesRelatedToLaborClaims" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_ProvisionForIndemnitiesRelatedToLaborClaims" xlink:type="arc" use="optional" order="34" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ProvisionForIndemnitiesRelatedToCivilClaims" xlink:label="ugp_ProvisionForIndemnitiesRelatedToCivilClaims" xlink:title="ugp_ProvisionForIndemnitiesRelatedToCivilClaims" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_ProvisionForIndemnitiesRelatedToCivilClaims" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_ProvisionForIndemnitiesRelatedToCivilClaims" xlink:type="arc" use="optional" order="35" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ProvisionForIndemnitiesRelatedToTaxClaims" xlink:label="ugp_ProvisionForIndemnitiesRelatedToTaxClaims" xlink:title="ugp_ProvisionForIndemnitiesRelatedToTaxClaims" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_ProvisionForIndemnitiesRelatedToTaxClaims" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_ProvisionForIndemnitiesRelatedToTaxClaims" xlink:type="arc" use="optional" order="36" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PercentageOfReceivablesFromAnActionForDamagesAsContingentAsset" xlink:label="ugp_PercentageOfReceivablesFromAnActionForDamagesAsContingentAsset" xlink:title="ugp_PercentageOfReceivablesFromAnActionForDamagesAsContingentAsset" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_PercentageOfReceivablesFromAnActionForDamagesAsContingentAsset" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_PercentageOfReceivablesFromAnActionForDamagesAsContingentAsset" xlink:type="arc" use="optional" order="37" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ActionForDamagesAsContingentAssetInitialFixedAmountRecognized" xlink:label="ugp_ActionForDamagesAsContingentAssetInitialFixedAmountRecognized" xlink:title="ugp_ActionForDamagesAsContingentAssetInitialFixedAmountRecognized" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_ActionForDamagesAsContingentAssetInitialFixedAmountRecognized" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_ActionForDamagesAsContingentAssetInitialFixedAmountRecognized" xlink:type="arc" use="optional" order="38" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ActionForDamagesAsContingentAssetAmountReceived" xlink:label="ugp_ActionForDamagesAsContingentAssetAmountReceived" xlink:title="ugp_ActionForDamagesAsContingentAssetAmountReceived" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_ActionForDamagesAsContingentAssetAmountReceived" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_ActionForDamagesAsContingentAssetAmountReceived" xlink:type="arc" use="optional" order="39" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_EstimatedFinancialEffectOfContingentAssets" xlink:label="ifrs-full_EstimatedFinancialEffectOfContingentAssets" xlink:title="ifrs-full_EstimatedFinancialEffectOfContingentAssets" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ifrs-full_EstimatedFinancialEffectOfContingentAssets" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ifrs-full_EstimatedFinancialEffectOfContingentAssets" xlink:type="arc" use="optional" order="40" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AdjustmentOnEscrowDeposits" xlink:label="ugp_AdjustmentOnEscrowDeposits" xlink:title="ugp_AdjustmentOnEscrowDeposits" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_AdjustmentOnEscrowDeposits" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_AdjustmentOnEscrowDeposits" xlink:type="arc" use="optional" order="41" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfContingentLiabilitiesTable" xlink:label="ifrs-full_DisclosureOfContingentLiabilitiesTable" xlink:title="ifrs-full_DisclosureOfContingentLiabilitiesTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ifrs-full_DisclosureOfContingentLiabilitiesTable" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ifrs-full_DisclosureOfContingentLiabilitiesTable" xlink:type="arc" order="42" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfProvisionsAxis" xlink:label="ifrs-full_ClassesOfProvisionsAxis" xlink:title="ifrs-full_ClassesOfProvisionsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesTable" xlink:to="ifrs-full_ClassesOfProvisionsAxis" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesTable to ifrs-full_ClassesOfProvisionsAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfOtherProvisionsDomain" xlink:label="ifrs-full_ClassesOfOtherProvisionsDomain" xlink:title="ifrs-full_ClassesOfOtherProvisionsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ClassesOfProvisionsAxis" xlink:to="ifrs-full_ClassesOfOtherProvisionsDomain" xlink:title="Definition : ifrs-full_ClassesOfProvisionsAxis to ifrs-full_ClassesOfOtherProvisionsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PisAndCofinsStateVATMember" xlink:label="ugp_PisAndCofinsStateVATMember" xlink:title="ugp_PisAndCofinsStateVATMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfOtherProvisionsDomain" xlink:to="ugp_PisAndCofinsStateVATMember" xlink:title="Definition : ifrs-full_ClassesOfOtherProvisionsDomain to ugp_PisAndCofinsStateVATMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfOtherProvisionsDomain" xlink:label="ifrs-full_ClassesOfOtherProvisionsDomain_1" xlink:title="ifrs-full_ClassesOfOtherProvisionsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ClassesOfProvisionsAxis" xlink:to="ifrs-full_ClassesOfOtherProvisionsDomain_1" xlink:title="Definition : ifrs-full_ClassesOfProvisionsAxis to ifrs-full_ClassesOfOtherProvisionsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:title="ifrs-full_CategoriesOfRelatedPartiesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesTable" xlink:to="ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesTable to ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:title="ifrs-full_CategoriesOfRelatedPartiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:to="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesAxis to ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CiaUltragazAndBahianaMember" xlink:label="ugp_CiaUltragazAndBahianaMember" xlink:title="ugp_CiaUltragazAndBahianaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:to="ugp_CiaUltragazAndBahianaMember" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesDomain to ugp_CiaUltragazAndBahianaMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ThreeEmployeesAndOneFormerEmployeeMember" xlink:label="ugp_ThreeEmployeesAndOneFormerEmployeeMember" xlink:title="ugp_ThreeEmployeesAndOneFormerEmployeeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:to="ugp_ThreeEmployeesAndOneFormerEmployeeMember" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesDomain to ugp_ThreeEmployeesAndOneFormerEmployeeMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TwoFormerEmployeesEachMember" xlink:label="ugp_TwoFormerEmployeesEachMember" xlink:title="ugp_TwoFormerEmployeesEachMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:to="ugp_TwoFormerEmployeesEachMember" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesDomain to ugp_TwoFormerEmployeesEachMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ChevronAndSubsidiaryIPPMember" xlink:label="ugp_ChevronAndSubsidiaryIPPMember" xlink:title="ugp_ChevronAndSubsidiaryIPPMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:to="ugp_ChevronAndSubsidiaryIPPMember" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesDomain to ugp_ChevronAndSubsidiaryIPPMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="ifrs-full_CategoriesOfRelatedPartiesDomain_1" xlink:title="ifrs-full_CategoriesOfRelatedPartiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:to="ifrs-full_CategoriesOfRelatedPartiesDomain_1" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesAxis to ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeAxis" xlink:label="ifrs-full_RangeAxis" xlink:title="ifrs-full_RangeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesTable" xlink:to="ifrs-full_RangeAxis" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesTable to ifrs-full_RangeAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeDomain" xlink:label="ifrs-full_RangeDomain" xlink:title="ifrs-full_RangeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_RangeAxis" xlink:to="ifrs-full_RangeDomain" xlink:title="Definition : ifrs-full_RangeAxis to ifrs-full_RangeDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BottomOfRangeMember" xlink:label="ifrs-full_BottomOfRangeMember" xlink:title="ifrs-full_BottomOfRangeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RangeDomain" xlink:to="ifrs-full_BottomOfRangeMember" xlink:title="Definition : ifrs-full_RangeDomain to ifrs-full_BottomOfRangeMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TopOfRangeMember" xlink:label="ifrs-full_TopOfRangeMember" xlink:title="ifrs-full_TopOfRangeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RangeDomain" xlink:to="ifrs-full_TopOfRangeMember" xlink:title="Definition : ifrs-full_RangeDomain to ifrs-full_TopOfRangeMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeDomain" xlink:label="ifrs-full_RangeDomain_1" xlink:title="ifrs-full_RangeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_RangeAxis" xlink:to="ifrs-full_RangeDomain_1" xlink:title="Definition : ifrs-full_RangeAxis to ifrs-full_RangeDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:label="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:title="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesTable" xlink:to="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesTable to ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ContinuingOperationsMember" xlink:label="ifrs-full_ContinuingOperationsMember" xlink:title="ifrs-full_ContinuingOperationsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:to="ifrs-full_ContinuingOperationsMember" xlink:title="Definition : ifrs-full_ContinuingAndDiscontinuedOperationsAxis to ifrs-full_ContinuingOperationsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DiscontinuedOperationsMember" xlink:label="ifrs-full_DiscontinuedOperationsMember" xlink:title="ifrs-full_DiscontinuedOperationsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ContinuingOperationsMember" xlink:to="ifrs-full_DiscontinuedOperationsMember" xlink:title="Definition : ifrs-full_ContinuingOperationsMember to ifrs-full_DiscontinuedOperationsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ContinuingOperationsMember" xlink:label="ifrs-full_ContinuingOperationsMember_1" xlink:title="ifrs-full_ContinuingOperationsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:to="ifrs-full_ContinuingOperationsMember_1" xlink:title="Definition : ifrs-full_ContinuingAndDiscontinuedOperationsAxis to ifrs-full_ContinuingOperationsMember" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesTable" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesTable to ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SubsidiaryIPPMember" xlink:label="ugp_SubsidiaryIPPMember" xlink:title="ugp_SubsidiaryIPPMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_SubsidiaryIPPMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_SubsidiaryIPPMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CiaUltragazMember" xlink:label="ugp_CiaUltragazMember" xlink:title="ugp_CiaUltragazMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_CiaUltragazMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_CiaUltragazMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OxitenoIndustriaComercioMember" xlink:label="ugp_OxitenoIndustriaComercioMember" xlink:title="ugp_OxitenoIndustriaComercioMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_OxitenoIndustriaComercioMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_OxitenoIndustriaComercioMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ExtrafarmaMember" xlink:label="ugp_ExtrafarmaMember" xlink:title="ugp_ExtrafarmaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_ExtrafarmaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_ExtrafarmaMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_CounterpartyNameAxis" xlink:label="srt_CounterpartyNameAxis" xlink:title="srt_CounterpartyNameAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesTable" xlink:to="srt_CounterpartyNameAxis" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesTable to srt_CounterpartyNameAxis" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="srt_RepurchaseAgreementCounterpartyNameDomain" xlink:title="srt_RepurchaseAgreementCounterpartyNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_CounterpartyNameAxis" xlink:to="srt_RepurchaseAgreementCounterpartyNameDomain" xlink:title="Definition : srt_CounterpartyNameAxis to srt_RepurchaseAgreementCounterpartyNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_FisheriesManagementProjectMember" xlink:label="ugp_FisheriesManagementProjectMember" xlink:title="ugp_FisheriesManagementProjectMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_RepurchaseAgreementCounterpartyNameDomain" xlink:to="ugp_FisheriesManagementProjectMember" xlink:title="Definition : srt_RepurchaseAgreementCounterpartyNameDomain to ugp_FisheriesManagementProjectMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ReceivablesInvestmentFundMember" xlink:label="ugp_ReceivablesInvestmentFundMember" xlink:title="ugp_ReceivablesInvestmentFundMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_RepurchaseAgreementCounterpartyNameDomain" xlink:to="ugp_ReceivablesInvestmentFundMember" xlink:title="Definition : srt_RepurchaseAgreementCounterpartyNameDomain to ugp_ReceivablesInvestmentFundMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="srt_RepurchaseAgreementCounterpartyNameDomain_1" xlink:title="srt_RepurchaseAgreementCounterpartyNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_CounterpartyNameAxis" xlink:to="srt_RepurchaseAgreementCounterpartyNameDomain_1" xlink:title="Definition : srt_CounterpartyNameAxis to srt_RepurchaseAgreementCounterpartyNameDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/SegmentinformationFinancialInformationofSegmentsDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:label="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:title="ifrs-full_DisclosureOfOperatingSegmentsLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProfitLossAbstract" xlink:label="ifrs-full_ProfitLossAbstract" xlink:title="ifrs-full_ProfitLossAbstract" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ifrs-full_ProfitLossAbstract" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ifrs-full_ProfitLossAbstract" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_Revenue" xlink:label="ifrs-full_Revenue" xlink:title="ifrs-full_Revenue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ProfitLossAbstract" xlink:to="ifrs-full_Revenue" xlink:title="Definition : ifrs-full_ProfitLossAbstract to ifrs-full_Revenue" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RevenueFromContractsWithCustomers" xlink:label="ifrs-full_RevenueFromContractsWithCustomers" xlink:title="ifrs-full_RevenueFromContractsWithCustomers" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ProfitLossAbstract" xlink:to="ifrs-full_RevenueFromContractsWithCustomers" xlink:title="Definition : ifrs-full_ProfitLossAbstract to ifrs-full_RevenueFromContractsWithCustomers" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CostOfSales" xlink:label="ifrs-full_CostOfSales" xlink:title="ifrs-full_CostOfSales" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ProfitLossAbstract" xlink:to="ifrs-full_CostOfSales" xlink:title="Definition : ifrs-full_ProfitLossAbstract to ifrs-full_CostOfSales" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_GrossProfit" xlink:label="ifrs-full_GrossProfit" xlink:title="ifrs-full_GrossProfit" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ProfitLossAbstract" xlink:to="ifrs-full_GrossProfit" xlink:title="Definition : ifrs-full_ProfitLossAbstract to ifrs-full_GrossProfit" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OperatingIncomeExpensesAbstract" xlink:label="ugp_OperatingIncomeExpensesAbstract" xlink:title="ugp_OperatingIncomeExpensesAbstract" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ProfitLossAbstract" xlink:to="ugp_OperatingIncomeExpensesAbstract" xlink:title="Definition : ifrs-full_ProfitLossAbstract to ugp_OperatingIncomeExpensesAbstract" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SellingAndMarketingExpenses" xlink:label="ugp_SellingAndMarketingExpenses" xlink:title="ugp_SellingAndMarketingExpenses" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_OperatingIncomeExpensesAbstract" xlink:to="ugp_SellingAndMarketingExpenses" xlink:title="Definition : ugp_OperatingIncomeExpensesAbstract to ugp_SellingAndMarketingExpenses" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossTradeReceivables" xlink:label="ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossTradeReceivables" xlink:title="ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossTradeReceivables" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_OperatingIncomeExpensesAbstract" xlink:to="ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossTradeReceivables" xlink:title="Definition : ugp_OperatingIncomeExpensesAbstract to ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossTradeReceivables" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_GeneralAndAdministrativeExpense" xlink:label="ifrs-full_GeneralAndAdministrativeExpense" xlink:title="ifrs-full_GeneralAndAdministrativeExpense" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_OperatingIncomeExpensesAbstract" xlink:to="ifrs-full_GeneralAndAdministrativeExpense" xlink:title="Definition : ugp_OperatingIncomeExpensesAbstract to ifrs-full_GeneralAndAdministrativeExpense" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_GainsLossesOnDisposalsOfNoncurrentAssets" xlink:label="ifrs-full_GainsLossesOnDisposalsOfNoncurrentAssets" xlink:title="ifrs-full_GainsLossesOnDisposalsOfNoncurrentAssets" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_OperatingIncomeExpensesAbstract" xlink:to="ifrs-full_GainsLossesOnDisposalsOfNoncurrentAssets" xlink:title="Definition : ugp_OperatingIncomeExpensesAbstract to ifrs-full_GainsLossesOnDisposalsOfNoncurrentAssets" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OtherOperatingIncomeExpense" xlink:label="ifrs-full_OtherOperatingIncomeExpense" xlink:title="ifrs-full_OtherOperatingIncomeExpense" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_OperatingIncomeExpensesAbstract" xlink:to="ifrs-full_OtherOperatingIncomeExpense" xlink:title="Definition : ugp_OperatingIncomeExpensesAbstract to ifrs-full_OtherOperatingIncomeExpense" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OperatingIncomeBeforeFinancialIncomeExpensesAndShareOfProfitLossOfJointVenturesAndAssociates" xlink:label="ugp_OperatingIncomeBeforeFinancialIncomeExpensesAndShareOfProfitLossOfJointVenturesAndAssociates" xlink:title="ugp_OperatingIncomeBeforeFinancialIncomeExpensesAndShareOfProfitLossOfJointVenturesAndAssociates" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ProfitLossAbstract" xlink:to="ugp_OperatingIncomeBeforeFinancialIncomeExpensesAndShareOfProfitLossOfJointVenturesAndAssociates" xlink:title="Definition : ifrs-full_ProfitLossAbstract to ugp_OperatingIncomeBeforeFinancialIncomeExpensesAndShareOfProfitLossOfJointVenturesAndAssociates" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ShareOfProfitLossOfSubsidiariesAssociatesAndJointVentures" xlink:label="ugp_ShareOfProfitLossOfSubsidiariesAssociatesAndJointVentures" xlink:title="ugp_ShareOfProfitLossOfSubsidiariesAssociatesAndJointVentures" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ProfitLossAbstract" xlink:to="ugp_ShareOfProfitLossOfSubsidiariesAssociatesAndJointVentures" xlink:title="Definition : ifrs-full_ProfitLossAbstract to ugp_ShareOfProfitLossOfSubsidiariesAssociatesAndJointVentures" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AmortizationOfFairValueAdjustmentOnInvestmentAccountedForUsingEquityMethod" xlink:label="ugp_AmortizationOfFairValueAdjustmentOnInvestmentAccountedForUsingEquityMethod" xlink:title="ugp_AmortizationOfFairValueAdjustmentOnInvestmentAccountedForUsingEquityMethod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ProfitLossAbstract" xlink:to="ugp_AmortizationOfFairValueAdjustmentOnInvestmentAccountedForUsingEquityMethod" xlink:title="Definition : ifrs-full_ProfitLossAbstract to ugp_AmortizationOfFairValueAdjustmentOnInvestmentAccountedForUsingEquityMethod" xlink:type="arc" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" xlink:label="ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" xlink:title="ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ProfitLossAbstract" xlink:to="ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" xlink:title="Definition : ifrs-full_ProfitLossAbstract to ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OperatingIncomeBeforeFinancialIncomeExpensesAndIncomeAndSocialContributionTaxes" xlink:label="ugp_OperatingIncomeBeforeFinancialIncomeExpensesAndIncomeAndSocialContributionTaxes" xlink:title="ugp_OperatingIncomeBeforeFinancialIncomeExpensesAndIncomeAndSocialContributionTaxes" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ProfitLossAbstract" xlink:to="ugp_OperatingIncomeBeforeFinancialIncomeExpensesAndIncomeAndSocialContributionTaxes" xlink:title="Definition : ifrs-full_ProfitLossAbstract to ugp_OperatingIncomeBeforeFinancialIncomeExpensesAndIncomeAndSocialContributionTaxes" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DepreciationAndAmortisationExpense" xlink:label="ifrs-full_DepreciationAndAmortisationExpense" xlink:title="ifrs-full_DepreciationAndAmortisationExpense" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ProfitLossAbstract" xlink:to="ifrs-full_DepreciationAndAmortisationExpense" xlink:title="Definition : ifrs-full_ProfitLossAbstract to ifrs-full_DepreciationAndAmortisationExpense" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AmortisationAssetsRecognisedFromCostsIncurredToObtainOrFulfilContractsWithCustomers" xlink:label="ifrs-full_AmortisationAssetsRecognisedFromCostsIncurredToObtainOrFulfilContractsWithCustomers" xlink:title="ifrs-full_AmortisationAssetsRecognisedFromCostsIncurredToObtainOrFulfilContractsWithCustomers" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ProfitLossAbstract" xlink:to="ifrs-full_AmortisationAssetsRecognisedFromCostsIncurredToObtainOrFulfilContractsWithCustomers" xlink:title="Definition : ifrs-full_ProfitLossAbstract to ifrs-full_AmortisationAssetsRecognisedFromCostsIncurredToObtainOrFulfilContractsWithCustomers" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AmortizationOfRightToUseAsset" xlink:label="ugp_AmortizationOfRightToUseAsset" xlink:title="ugp_AmortizationOfRightToUseAsset" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ProfitLossAbstract" xlink:to="ugp_AmortizationOfRightToUseAsset" xlink:title="Definition : ifrs-full_ProfitLossAbstract to ugp_AmortizationOfRightToUseAsset" xlink:type="arc" use="optional" order="12" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DepreciationAmortisationAndImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss" xlink:label="ifrs-full_DepreciationAmortisationAndImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss" xlink:title="ifrs-full_DepreciationAmortisationAndImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ProfitLossAbstract" xlink:to="ifrs-full_DepreciationAmortisationAndImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss" xlink:title="Definition : ifrs-full_ProfitLossAbstract to ifrs-full_DepreciationAmortisationAndImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss" xlink:type="arc" use="optional" order="14" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ExpenseOfRestructuringActivities" xlink:label="ifrs-full_ExpenseOfRestructuringActivities" xlink:title="ifrs-full_ExpenseOfRestructuringActivities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ProfitLossAbstract" xlink:to="ifrs-full_ExpenseOfRestructuringActivities" xlink:title="Definition : ifrs-full_ProfitLossAbstract to ifrs-full_ExpenseOfRestructuringActivities" xlink:type="arc" use="optional" order="15" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:label="ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:title="ifrs-full_DisclosureOfOperatingSegmentsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SegmentsAxis" xlink:label="ifrs-full_SegmentsAxis" xlink:title="ifrs-full_SegmentsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:to="ifrs-full_SegmentsAxis" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsTable to ifrs-full_SegmentsAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SegmentsDomain" xlink:label="ifrs-full_SegmentsDomain" xlink:title="ifrs-full_SegmentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SegmentsAxis" xlink:to="ifrs-full_SegmentsDomain" xlink:title="Definition : ifrs-full_SegmentsAxis to ifrs-full_SegmentsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IpirangaMember" xlink:label="ugp_IpirangaMember" xlink:title="ugp_IpirangaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SegmentsDomain" xlink:to="ugp_IpirangaMember" xlink:title="Definition : ifrs-full_SegmentsDomain to ugp_IpirangaMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltragazMember" xlink:label="ugp_UltragazMember" xlink:title="ugp_UltragazMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SegmentsDomain" xlink:to="ugp_UltragazMember" xlink:title="Definition : ifrs-full_SegmentsDomain to ugp_UltragazMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltracargoMember" xlink:label="ugp_UltracargoMember" xlink:title="ugp_UltracargoMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SegmentsDomain" xlink:to="ugp_UltracargoMember" xlink:title="Definition : ifrs-full_SegmentsDomain to ugp_UltracargoMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AllOtherSegmentsMember" xlink:label="ifrs-full_AllOtherSegmentsMember" xlink:title="ifrs-full_AllOtherSegmentsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SegmentsDomain" xlink:to="ifrs-full_AllOtherSegmentsMember" xlink:title="Definition : ifrs-full_SegmentsDomain to ifrs-full_AllOtherSegmentsMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ReportableSegmentsMember" xlink:label="ifrs-full_ReportableSegmentsMember" xlink:title="ifrs-full_ReportableSegmentsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SegmentsDomain" xlink:to="ifrs-full_ReportableSegmentsMember" xlink:title="Definition : ifrs-full_SegmentsDomain to ifrs-full_ReportableSegmentsMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AbasteceAiMember" xlink:label="ugp_AbasteceAiMember" xlink:title="ugp_AbasteceAiMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SegmentsDomain" xlink:to="ugp_AbasteceAiMember" xlink:title="Definition : ifrs-full_SegmentsDomain to ugp_AbasteceAiMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SegmentsDomain" xlink:label="ifrs-full_SegmentsDomain_1" xlink:title="ifrs-full_SegmentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SegmentsAxis" xlink:to="ifrs-full_SegmentsDomain_1" xlink:title="Definition : ifrs-full_SegmentsAxis to ifrs-full_SegmentsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SegmentConsolidationItemsAxis" xlink:label="ifrs-full_SegmentConsolidationItemsAxis" xlink:title="ifrs-full_SegmentConsolidationItemsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:to="ifrs-full_SegmentConsolidationItemsAxis" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsTable to ifrs-full_SegmentConsolidationItemsAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SegmentConsolidationItemsDomain" xlink:label="ifrs-full_SegmentConsolidationItemsDomain" xlink:title="ifrs-full_SegmentConsolidationItemsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SegmentConsolidationItemsAxis" xlink:to="ifrs-full_SegmentConsolidationItemsDomain" xlink:title="Definition : ifrs-full_SegmentConsolidationItemsAxis to ifrs-full_SegmentConsolidationItemsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_EliminationOfIntersegmentAmountsMember" xlink:label="ifrs-full_EliminationOfIntersegmentAmountsMember" xlink:title="ifrs-full_EliminationOfIntersegmentAmountsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SegmentConsolidationItemsDomain" xlink:to="ifrs-full_EliminationOfIntersegmentAmountsMember" xlink:title="Definition : ifrs-full_SegmentConsolidationItemsDomain to ifrs-full_EliminationOfIntersegmentAmountsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SegmentConsolidationItemsDomain" xlink:label="ifrs-full_SegmentConsolidationItemsDomain_1" xlink:title="ifrs-full_SegmentConsolidationItemsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SegmentConsolidationItemsAxis" xlink:to="ifrs-full_SegmentConsolidationItemsDomain_1" xlink:title="Definition : ifrs-full_SegmentConsolidationItemsAxis to ifrs-full_SegmentConsolidationItemsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxesAxis" xlink:label="ugp_TaxesAxis" xlink:title="ugp_TaxesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:to="ugp_TaxesAxis" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsTable to ugp_TaxesAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxesDomain" xlink:label="ugp_TaxesDomain" xlink:title="ugp_TaxesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_TaxesAxis" xlink:to="ugp_TaxesDomain" xlink:title="Definition : ugp_TaxesAxis to ugp_TaxesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PisAndCofinsStateVATMember" xlink:label="ugp_PisAndCofinsStateVATMember" xlink:title="ugp_PisAndCofinsStateVATMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_TaxesDomain" xlink:to="ugp_PisAndCofinsStateVATMember" xlink:title="Definition : ugp_TaxesDomain to ugp_PisAndCofinsStateVATMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxesDomain" xlink:label="ugp_TaxesDomain_1" xlink:title="ugp_TaxesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_TaxesAxis" xlink:to="ugp_TaxesDomain_1" xlink:title="Definition : ugp_TaxesAxis to ugp_TaxesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/SegmentInformationAssetsBySegmentsDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:label="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:title="ifrs-full_DisclosureOfOperatingSegmentsLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CashFlowsFromContinuingAndDiscontinuedOperationsAbstract" xlink:label="ifrs-full_CashFlowsFromContinuingAndDiscontinuedOperationsAbstract" xlink:title="ifrs-full_CashFlowsFromContinuingAndDiscontinuedOperationsAbstract" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ifrs-full_CashFlowsFromContinuingAndDiscontinuedOperationsAbstract" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ifrs-full_CashFlowsFromContinuingAndDiscontinuedOperationsAbstract" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PurchaseOfPropertyPlantAndEquipmentClassifiedAsInvestingActivities" xlink:label="ifrs-full_PurchaseOfPropertyPlantAndEquipmentClassifiedAsInvestingActivities" xlink:title="ifrs-full_PurchaseOfPropertyPlantAndEquipmentClassifiedAsInvestingActivities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CashFlowsFromContinuingAndDiscontinuedOperationsAbstract" xlink:to="ifrs-full_PurchaseOfPropertyPlantAndEquipmentClassifiedAsInvestingActivities" xlink:title="Definition : ifrs-full_CashFlowsFromContinuingAndDiscontinuedOperationsAbstract to ifrs-full_PurchaseOfPropertyPlantAndEquipmentClassifiedAsInvestingActivities" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AdjustmentsForIncreaseDecreaseInCapitalizedInterestAndOtherPropertyPlantAndEquipmentAndProvisionForARO" xlink:label="ugp_AdjustmentsForIncreaseDecreaseInCapitalizedInterestAndOtherPropertyPlantAndEquipmentAndProvisionForARO" xlink:title="ugp_AdjustmentsForIncreaseDecreaseInCapitalizedInterestAndOtherPropertyPlantAndEquipmentAndProvisionForARO" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CashFlowsFromContinuingAndDiscontinuedOperationsAbstract" xlink:to="ugp_AdjustmentsForIncreaseDecreaseInCapitalizedInterestAndOtherPropertyPlantAndEquipmentAndProvisionForARO" xlink:title="Definition : ifrs-full_CashFlowsFromContinuingAndDiscontinuedOperationsAbstract to ugp_AdjustmentsForIncreaseDecreaseInCapitalizedInterestAndOtherPropertyPlantAndEquipmentAndProvisionForARO" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PurchaseOfIntangibleAssetsClassifiedAsInvestingActivities" xlink:label="ifrs-full_PurchaseOfIntangibleAssetsClassifiedAsInvestingActivities" xlink:title="ifrs-full_PurchaseOfIntangibleAssetsClassifiedAsInvestingActivities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CashFlowsFromContinuingAndDiscontinuedOperationsAbstract" xlink:to="ifrs-full_PurchaseOfIntangibleAssetsClassifiedAsInvestingActivities" xlink:title="Definition : ifrs-full_CashFlowsFromContinuingAndDiscontinuedOperationsAbstract to ifrs-full_PurchaseOfIntangibleAssetsClassifiedAsInvestingActivities" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AdjustmentsForIncreaseDecreaseInPaymentsOfContractualAssetsWithCustomersExclusiveRights" xlink:label="ugp_AdjustmentsForIncreaseDecreaseInPaymentsOfContractualAssetsWithCustomersExclusiveRights" xlink:title="ugp_AdjustmentsForIncreaseDecreaseInPaymentsOfContractualAssetsWithCustomersExclusiveRights" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CashFlowsFromContinuingAndDiscontinuedOperationsAbstract" xlink:to="ugp_AdjustmentsForIncreaseDecreaseInPaymentsOfContractualAssetsWithCustomersExclusiveRights" xlink:title="Definition : ifrs-full_CashFlowsFromContinuingAndDiscontinuedOperationsAbstract to ugp_AdjustmentsForIncreaseDecreaseInPaymentsOfContractualAssetsWithCustomersExclusiveRights" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AdjustmentsForIncreaseDecreaseInAcquisitionOfDecarbonizationCredits" xlink:label="ugp_AdjustmentsForIncreaseDecreaseInAcquisitionOfDecarbonizationCredits" xlink:title="ugp_AdjustmentsForIncreaseDecreaseInAcquisitionOfDecarbonizationCredits" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CashFlowsFromContinuingAndDiscontinuedOperationsAbstract" xlink:to="ugp_AdjustmentsForIncreaseDecreaseInAcquisitionOfDecarbonizationCredits" xlink:title="Definition : ifrs-full_CashFlowsFromContinuingAndDiscontinuedOperationsAbstract to ugp_AdjustmentsForIncreaseDecreaseInAcquisitionOfDecarbonizationCredits" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AssetsAbstract" xlink:label="ifrs-full_AssetsAbstract" xlink:title="ifrs-full_AssetsAbstract" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ifrs-full_AssetsAbstract" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ifrs-full_AssetsAbstract" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_InvestmentAccountedForUsingEquityMethod" xlink:label="ifrs-full_InvestmentAccountedForUsingEquityMethod" xlink:title="ifrs-full_InvestmentAccountedForUsingEquityMethod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_AssetsAbstract" xlink:to="ifrs-full_InvestmentAccountedForUsingEquityMethod" xlink:title="Definition : ifrs-full_AssetsAbstract to ifrs-full_InvestmentAccountedForUsingEquityMethod" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PropertyPlantAndEquipment" xlink:label="ifrs-full_PropertyPlantAndEquipment" xlink:title="ifrs-full_PropertyPlantAndEquipment" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_AssetsAbstract" xlink:to="ifrs-full_PropertyPlantAndEquipment" xlink:title="Definition : ifrs-full_AssetsAbstract to ifrs-full_PropertyPlantAndEquipment" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IntangibleAssetsAndGoodwill" xlink:label="ifrs-full_IntangibleAssetsAndGoodwill" xlink:title="ifrs-full_IntangibleAssetsAndGoodwill" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_AssetsAbstract" xlink:to="ifrs-full_IntangibleAssetsAndGoodwill" xlink:title="Definition : ifrs-full_AssetsAbstract to ifrs-full_IntangibleAssetsAndGoodwill" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RightofuseAssets" xlink:label="ifrs-full_RightofuseAssets" xlink:title="ifrs-full_RightofuseAssets" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_AssetsAbstract" xlink:to="ifrs-full_RightofuseAssets" xlink:title="Definition : ifrs-full_AssetsAbstract to ifrs-full_RightofuseAssets" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OtherCurrentAndNoncurrentAssets" xlink:label="ugp_OtherCurrentAndNoncurrentAssets" xlink:title="ugp_OtherCurrentAndNoncurrentAssets" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_AssetsAbstract" xlink:to="ugp_OtherCurrentAndNoncurrentAssets" xlink:title="Definition : ifrs-full_AssetsAbstract to ugp_OtherCurrentAndNoncurrentAssets" xlink:type="arc" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_Assets" xlink:label="ifrs-full_Assets" xlink:title="ifrs-full_Assets" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_AssetsAbstract" xlink:to="ifrs-full_Assets" xlink:title="Definition : ifrs-full_AssetsAbstract to ifrs-full_Assets" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:label="ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:title="ifrs-full_DisclosureOfOperatingSegmentsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:type="arc" order="2" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SegmentsAxis" xlink:label="ifrs-full_SegmentsAxis" xlink:title="ifrs-full_SegmentsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:to="ifrs-full_SegmentsAxis" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsTable to ifrs-full_SegmentsAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SegmentsDomain" xlink:label="ifrs-full_SegmentsDomain" xlink:title="ifrs-full_SegmentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SegmentsAxis" xlink:to="ifrs-full_SegmentsDomain" xlink:title="Definition : ifrs-full_SegmentsAxis to ifrs-full_SegmentsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IpirangaMember" xlink:label="ugp_IpirangaMember" xlink:title="ugp_IpirangaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SegmentsDomain" xlink:to="ugp_IpirangaMember" xlink:title="Definition : ifrs-full_SegmentsDomain to ugp_IpirangaMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltragazMember" xlink:label="ugp_UltragazMember" xlink:title="ugp_UltragazMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SegmentsDomain" xlink:to="ugp_UltragazMember" xlink:title="Definition : ifrs-full_SegmentsDomain to ugp_UltragazMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OxitenoMember" xlink:label="ugp_OxitenoMember" xlink:title="ugp_OxitenoMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SegmentsDomain" xlink:to="ugp_OxitenoMember" xlink:title="Definition : ifrs-full_SegmentsDomain to ugp_OxitenoMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltracargoMember" xlink:label="ugp_UltracargoMember" xlink:title="ugp_UltracargoMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SegmentsDomain" xlink:to="ugp_UltracargoMember" xlink:title="Definition : ifrs-full_SegmentsDomain to ugp_UltracargoMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ExtrafarmaMember" xlink:label="ugp_ExtrafarmaMember" xlink:title="ugp_ExtrafarmaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SegmentsDomain" xlink:to="ugp_ExtrafarmaMember" xlink:title="Definition : ifrs-full_SegmentsDomain to ugp_ExtrafarmaMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AbasteceAiMember" xlink:label="ugp_AbasteceAiMember" xlink:title="ugp_AbasteceAiMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SegmentsDomain" xlink:to="ugp_AbasteceAiMember" xlink:title="Definition : ifrs-full_SegmentsDomain to ugp_AbasteceAiMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AllOtherSegmentsMember" xlink:label="ifrs-full_AllOtherSegmentsMember" xlink:title="ifrs-full_AllOtherSegmentsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SegmentsDomain" xlink:to="ifrs-full_AllOtherSegmentsMember" xlink:title="Definition : ifrs-full_SegmentsDomain to ifrs-full_AllOtherSegmentsMember" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ReportableSegmentsMember" xlink:label="ifrs-full_ReportableSegmentsMember" xlink:title="ifrs-full_ReportableSegmentsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SegmentsDomain" xlink:to="ifrs-full_ReportableSegmentsMember" xlink:title="Definition : ifrs-full_SegmentsDomain to ifrs-full_ReportableSegmentsMember" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AssetsHeldForSaleMember" xlink:label="ugp_AssetsHeldForSaleMember" xlink:title="ugp_AssetsHeldForSaleMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SegmentsDomain" xlink:to="ugp_AssetsHeldForSaleMember" xlink:title="Definition : ifrs-full_SegmentsDomain to ugp_AssetsHeldForSaleMember" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SegmentsDomain" xlink:label="ifrs-full_SegmentsDomain_1" xlink:title="ifrs-full_SegmentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SegmentsAxis" xlink:to="ifrs-full_SegmentsDomain_1" xlink:title="Definition : ifrs-full_SegmentsAxis to ifrs-full_SegmentsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:label="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:title="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:to="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsTable to ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ContinuingOperationsMember" xlink:label="ifrs-full_ContinuingOperationsMember" xlink:title="ifrs-full_ContinuingOperationsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:to="ifrs-full_ContinuingOperationsMember" xlink:title="Definition : ifrs-full_ContinuingAndDiscontinuedOperationsAxis to ifrs-full_ContinuingOperationsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DiscontinuedOperationsMember" xlink:label="ifrs-full_DiscontinuedOperationsMember" xlink:title="ifrs-full_DiscontinuedOperationsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ContinuingOperationsMember" xlink:to="ifrs-full_DiscontinuedOperationsMember" xlink:title="Definition : ifrs-full_ContinuingOperationsMember to ifrs-full_DiscontinuedOperationsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ContinuingOperationsMember" xlink:label="ifrs-full_ContinuingOperationsMember_1" xlink:title="ifrs-full_ContinuingOperationsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:to="ifrs-full_ContinuingOperationsMember_1" xlink:title="Definition : ifrs-full_ContinuingAndDiscontinuedOperationsAxis to ifrs-full_ContinuingOperationsMember" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SegmentConsolidationItemsAxis" xlink:label="ifrs-full_SegmentConsolidationItemsAxis" xlink:title="ifrs-full_SegmentConsolidationItemsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:to="ifrs-full_SegmentConsolidationItemsAxis" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsTable to ifrs-full_SegmentConsolidationItemsAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SegmentConsolidationItemsDomain" xlink:label="ifrs-full_SegmentConsolidationItemsDomain" xlink:title="ifrs-full_SegmentConsolidationItemsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SegmentConsolidationItemsAxis" xlink:to="ifrs-full_SegmentConsolidationItemsDomain" xlink:title="Definition : ifrs-full_SegmentConsolidationItemsAxis to ifrs-full_SegmentConsolidationItemsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_EliminationOfIntersegmentAmountsMember" xlink:label="ifrs-full_EliminationOfIntersegmentAmountsMember" xlink:title="ifrs-full_EliminationOfIntersegmentAmountsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SegmentConsolidationItemsDomain" xlink:to="ifrs-full_EliminationOfIntersegmentAmountsMember" xlink:title="Definition : ifrs-full_SegmentConsolidationItemsDomain to ifrs-full_EliminationOfIntersegmentAmountsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SegmentConsolidationItemsDomain" xlink:label="ifrs-full_SegmentConsolidationItemsDomain_1" xlink:title="ifrs-full_SegmentConsolidationItemsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SegmentConsolidationItemsAxis" xlink:to="ifrs-full_SegmentConsolidationItemsDomain_1" xlink:title="Definition : ifrs-full_SegmentConsolidationItemsAxis to ifrs-full_SegmentConsolidationItemsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/LoansfinancingdebenturesandderivativefinancialinstrumentsSummaryofmainoperationscontractedloansDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:label="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:title="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LoanDescription" xlink:label="ugp_LoanDescription" xlink:title="ugp_LoanDescription" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_LoanDescription" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_LoanDescription" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LoanIndexCurrency" xlink:label="ugp_LoanIndexCurrency" xlink:title="ugp_LoanIndexCurrency" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_LoanIndexCurrency" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_LoanIndexCurrency" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsInterestRate" xlink:label="ifrs-full_BorrowingsInterestRate" xlink:title="ifrs-full_BorrowingsInterestRate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_BorrowingsInterestRate" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_BorrowingsInterestRate" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsAdjustmentToInterestRateBasis" xlink:label="ifrs-full_BorrowingsAdjustmentToInterestRateBasis" xlink:title="ifrs-full_BorrowingsAdjustmentToInterestRateBasis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_BorrowingsAdjustmentToInterestRateBasis" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_BorrowingsAdjustmentToInterestRateBasis" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsMaturity" xlink:label="ifrs-full_BorrowingsMaturity" xlink:title="ifrs-full_BorrowingsMaturity" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_BorrowingsMaturity" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_BorrowingsMaturity" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NotionalAmount" xlink:label="ifrs-full_NotionalAmount" xlink:title="ifrs-full_NotionalAmount" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_NotionalAmount" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_NotionalAmount" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebenturePaymentOfInterestDescription" xlink:label="ugp_DebenturePaymentOfInterestDescription" xlink:title="ugp_DebenturePaymentOfInterestDescription" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_DebenturePaymentOfInterestDescription" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_DebenturePaymentOfInterestDescription" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebenturePaymentOfFaceValueDescription" xlink:label="ugp_DebenturePaymentOfFaceValueDescription" xlink:title="ugp_DebenturePaymentOfFaceValueDescription" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_DebenturePaymentOfFaceValueDescription" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_DebenturePaymentOfFaceValueDescription" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:label="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:title="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:type="arc" order="8" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OperationsContractedAxis" xlink:label="ugp_OperationsContractedAxis" xlink:title="ugp_OperationsContractedAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:to="ugp_OperationsContractedAxis" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable to ugp_OperationsContractedAxis" xlink:type="arc" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OperationsContractedDomain" xlink:label="ugp_OperationsContractedDomain" xlink:title="ugp_OperationsContractedDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_OperationsContractedAxis" xlink:to="ugp_OperationsContractedDomain" xlink:title="Definition : ugp_OperationsContractedAxis to ugp_OperationsContractedDomain" xlink:type="arc" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OperationsContractedOneMember" xlink:label="ugp_OperationsContractedOneMember" xlink:title="ugp_OperationsContractedOneMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_OperationsContractedDomain" xlink:to="ugp_OperationsContractedOneMember" xlink:title="Definition : ugp_OperationsContractedDomain to ugp_OperationsContractedOneMember" xlink:type="arc" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OperationsContractedTwoMember" xlink:label="ugp_OperationsContractedTwoMember" xlink:title="ugp_OperationsContractedTwoMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_OperationsContractedDomain" xlink:to="ugp_OperationsContractedTwoMember" xlink:title="Definition : ugp_OperationsContractedDomain to ugp_OperationsContractedTwoMember" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OperationsContractedThreeMember" xlink:label="ugp_OperationsContractedThreeMember" xlink:title="ugp_OperationsContractedThreeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_OperationsContractedDomain" xlink:to="ugp_OperationsContractedThreeMember" xlink:title="Definition : ugp_OperationsContractedDomain to ugp_OperationsContractedThreeMember" xlink:type="arc" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OperationsContractedFourMember" xlink:label="ugp_OperationsContractedFourMember" xlink:title="ugp_OperationsContractedFourMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_OperationsContractedDomain" xlink:to="ugp_OperationsContractedFourMember" xlink:title="Definition : ugp_OperationsContractedDomain to ugp_OperationsContractedFourMember" xlink:type="arc" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OperationsContractedFiveMember" xlink:label="ugp_OperationsContractedFiveMember" xlink:title="ugp_OperationsContractedFiveMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_OperationsContractedDomain" xlink:to="ugp_OperationsContractedFiveMember" xlink:title="Definition : ugp_OperationsContractedDomain to ugp_OperationsContractedFiveMember" xlink:type="arc" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OperationsContractedSixMember" xlink:label="ugp_OperationsContractedSixMember" xlink:title="ugp_OperationsContractedSixMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_OperationsContractedDomain" xlink:to="ugp_OperationsContractedSixMember" xlink:title="Definition : ugp_OperationsContractedDomain to ugp_OperationsContractedSixMember" xlink:type="arc" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OperationsContractedSevenMember" xlink:label="ugp_OperationsContractedSevenMember" xlink:title="ugp_OperationsContractedSevenMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_OperationsContractedDomain" xlink:to="ugp_OperationsContractedSevenMember" xlink:title="Definition : ugp_OperationsContractedDomain to ugp_OperationsContractedSevenMember" xlink:type="arc" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OperationsContractedEightMember" xlink:label="ugp_OperationsContractedEightMember" xlink:title="ugp_OperationsContractedEightMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_OperationsContractedDomain" xlink:to="ugp_OperationsContractedEightMember" xlink:title="Definition : ugp_OperationsContractedDomain to ugp_OperationsContractedEightMember" xlink:type="arc" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OperationsContractedNineMember" xlink:label="ugp_OperationsContractedNineMember" xlink:title="ugp_OperationsContractedNineMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_OperationsContractedDomain" xlink:to="ugp_OperationsContractedNineMember" xlink:title="Definition : ugp_OperationsContractedDomain to ugp_OperationsContractedNineMember" xlink:type="arc" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OperationsContractedTenMember" xlink:label="ugp_OperationsContractedTenMember" xlink:title="ugp_OperationsContractedTenMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_OperationsContractedDomain" xlink:to="ugp_OperationsContractedTenMember" xlink:title="Definition : ugp_OperationsContractedDomain to ugp_OperationsContractedTenMember" xlink:type="arc" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OperationsContractedElevenMember" xlink:label="ugp_OperationsContractedElevenMember" xlink:title="ugp_OperationsContractedElevenMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_OperationsContractedDomain" xlink:to="ugp_OperationsContractedElevenMember" xlink:title="Definition : ugp_OperationsContractedDomain to ugp_OperationsContractedElevenMember" xlink:type="arc" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OperationsContractedTwelveMember" xlink:label="ugp_OperationsContractedTwelveMember" xlink:title="ugp_OperationsContractedTwelveMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_OperationsContractedDomain" xlink:to="ugp_OperationsContractedTwelveMember" xlink:title="Definition : ugp_OperationsContractedDomain to ugp_OperationsContractedTwelveMember" xlink:type="arc" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OperationsContractedThirteenMember" xlink:label="ugp_OperationsContractedThirteenMember" xlink:title="ugp_OperationsContractedThirteenMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_OperationsContractedDomain" xlink:to="ugp_OperationsContractedThirteenMember" xlink:title="Definition : ugp_OperationsContractedDomain to ugp_OperationsContractedThirteenMember" xlink:type="arc" order="12" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OperationsContractedFourteenMember" xlink:label="ugp_OperationsContractedFourteenMember" xlink:title="ugp_OperationsContractedFourteenMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_OperationsContractedDomain" xlink:to="ugp_OperationsContractedFourteenMember" xlink:title="Definition : ugp_OperationsContractedDomain to ugp_OperationsContractedFourteenMember" xlink:type="arc" order="13" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OperationsContractedFifteenMember" xlink:label="ugp_OperationsContractedFifteenMember" xlink:title="ugp_OperationsContractedFifteenMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_OperationsContractedDomain" xlink:to="ugp_OperationsContractedFifteenMember" xlink:title="Definition : ugp_OperationsContractedDomain to ugp_OperationsContractedFifteenMember" xlink:type="arc" order="14" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OperationsContractedSixteenMember" xlink:label="ugp_OperationsContractedSixteenMember" xlink:title="ugp_OperationsContractedSixteenMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_OperationsContractedDomain" xlink:to="ugp_OperationsContractedSixteenMember" xlink:title="Definition : ugp_OperationsContractedDomain to ugp_OperationsContractedSixteenMember" xlink:type="arc" order="15" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OperationsContractedSeventeenMember" xlink:label="ugp_OperationsContractedSeventeenMember" xlink:title="ugp_OperationsContractedSeventeenMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_OperationsContractedDomain" xlink:to="ugp_OperationsContractedSeventeenMember" xlink:title="Definition : ugp_OperationsContractedDomain to ugp_OperationsContractedSeventeenMember" xlink:type="arc" order="16" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OperationsContractedDomain" xlink:label="ugp_OperationsContractedDomain_1" xlink:title="ugp_OperationsContractedDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_OperationsContractedAxis" xlink:to="ugp_OperationsContractedDomain_1" xlink:title="Definition : ugp_OperationsContractedAxis to ugp_OperationsContractedDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable to ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IpirangaProdutosdePetroleoSAMember" xlink:label="ugp_IpirangaProdutosdePetroleoSAMember" xlink:title="ugp_IpirangaProdutosdePetroleoSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_IpirangaProdutosdePetroleoSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_IpirangaProdutosdePetroleoSAMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IconicCblsamemberMember" xlink:label="ugp_IconicCblsamemberMember" xlink:title="ugp_IconicCblsamemberMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_IconicCblsamemberMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_IconicCblsamemberMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltracargoLogisticaSAMember" xlink:label="ugp_UltracargoLogisticaSAMember" xlink:title="ugp_UltracargoLogisticaSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltracargoLogisticaSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltracargoLogisticaSAMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CiaUltragazMember" xlink:label="ugp_CiaUltragazMember" xlink:title="ugp_CiaUltragazMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_CiaUltragazMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_CiaUltragazMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SerraDieselMember" xlink:label="ugp_SerraDieselMember" xlink:title="ugp_SerraDieselMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_SerraDieselMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_SerraDieselMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/InvestmentsinsubsidiariesjointventuresandassociatesSummaryofAmountsofBalanceSheetsandIncomeStatementsofAssociatesDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:label="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:title="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NetFinancialIncomeAndIncomeAndSocialContributionTaxes" xlink:label="ugp_NetFinancialIncomeAndIncomeAndSocialContributionTaxes" xlink:title="ugp_NetFinancialIncomeAndIncomeAndSocialContributionTaxes" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:to="ugp_NetFinancialIncomeAndIncomeAndSocialContributionTaxes" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems to ugp_NetFinancialIncomeAndIncomeAndSocialContributionTaxes" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfSharesOrUnitsHeld" xlink:label="ugp_NumberOfSharesOrUnitsHeld" xlink:title="ugp_NumberOfSharesOrUnitsHeld" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:to="ugp_NumberOfSharesOrUnitsHeld" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems to ugp_NumberOfSharesOrUnitsHeld" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesTable" xlink:label="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesTable" xlink:title="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:to="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesTable" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems to ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesTable" xlink:type="arc" order="2" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:label="ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:title="ifrs-full_SignificantInvestmentsInAssociatesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesTable" xlink:to="ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesTable to ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:label="ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:title="ifrs-full_SignificantInvestmentsInAssociatesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:to="ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInAssociatesAxis to ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TransportadoraSulbrasileiraDeGasMember" xlink:label="ugp_TransportadoraSulbrasileiraDeGasMember" xlink:title="ugp_TransportadoraSulbrasileiraDeGasMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:to="ugp_TransportadoraSulbrasileiraDeGasMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInAssociatesDomain to ugp_TransportadoraSulbrasileiraDeGasMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OxicapIndustriaDeGasesMember" xlink:label="ugp_OxicapIndustriaDeGasesMember" xlink:title="ugp_OxicapIndustriaDeGasesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:to="ugp_OxicapIndustriaDeGasesMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInAssociatesDomain to ugp_OxicapIndustriaDeGasesMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_QuimicaDaBahiaIndustriaEcomercioMember" xlink:label="ugp_QuimicaDaBahiaIndustriaEcomercioMember" xlink:title="ugp_QuimicaDaBahiaIndustriaEcomercioMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:to="ugp_QuimicaDaBahiaIndustriaEcomercioMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInAssociatesDomain to ugp_QuimicaDaBahiaIndustriaEcomercioMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_MetalurgicaPlusMember" xlink:label="ugp_MetalurgicaPlusMember" xlink:title="ugp_MetalurgicaPlusMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:to="ugp_MetalurgicaPlusMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInAssociatesDomain to ugp_MetalurgicaPlusMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PlenogasDistribuidoraDeGasMember" xlink:label="ugp_PlenogasDistribuidoraDeGasMember" xlink:title="ugp_PlenogasDistribuidoraDeGasMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:to="ugp_PlenogasDistribuidoraDeGasMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInAssociatesDomain to ugp_PlenogasDistribuidoraDeGasMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:label="ifrs-full_SignificantInvestmentsInAssociatesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInAssociatesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:to="ifrs-full_SignificantInvestmentsInAssociatesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInAssociatesAxis to ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/FinancialInstrumentsDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems" xlink:label="ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems" xlink:title="ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DescriptionOfExposureToRisk" xlink:label="ifrs-full_DescriptionOfExposureToRisk" xlink:title="ifrs-full_DescriptionOfExposureToRisk" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems" xlink:to="ifrs-full_DescriptionOfExposureToRisk" xlink:title="Definition : ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems to ifrs-full_DescriptionOfExposureToRisk" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DescriptionOfObjectivesPoliciesAndProcessesForManagingRisk" xlink:label="ifrs-full_DescriptionOfObjectivesPoliciesAndProcessesForManagingRisk" xlink:title="ifrs-full_DescriptionOfObjectivesPoliciesAndProcessesForManagingRisk" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems" xlink:to="ifrs-full_DescriptionOfObjectivesPoliciesAndProcessesForManagingRisk" xlink:title="Definition : ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems to ifrs-full_DescriptionOfObjectivesPoliciesAndProcessesForManagingRisk" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable" xlink:label="ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable" xlink:title="ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems" xlink:to="ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable" xlink:title="Definition : ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems to ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable" xlink:type="arc" order="2" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfRisksAxis" xlink:label="ifrs-full_TypesOfRisksAxis" xlink:title="ifrs-full_TypesOfRisksAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable" xlink:to="ifrs-full_TypesOfRisksAxis" xlink:title="Definition : ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable to ifrs-full_TypesOfRisksAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfRisksDomain" xlink:label="ifrs-full_TypesOfRisksDomain" xlink:title="ifrs-full_TypesOfRisksDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_TypesOfRisksAxis" xlink:to="ifrs-full_TypesOfRisksDomain" xlink:title="Definition : ifrs-full_TypesOfRisksAxis to ifrs-full_TypesOfRisksDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CurrencyRiskMember" xlink:label="ifrs-full_CurrencyRiskMember" xlink:title="ifrs-full_CurrencyRiskMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfRisksDomain" xlink:to="ifrs-full_CurrencyRiskMember" xlink:title="Definition : ifrs-full_TypesOfRisksDomain to ifrs-full_CurrencyRiskMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_InterestRateRiskMember" xlink:label="ifrs-full_InterestRateRiskMember" xlink:title="ifrs-full_InterestRateRiskMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfRisksDomain" xlink:to="ifrs-full_InterestRateRiskMember" xlink:title="Definition : ifrs-full_TypesOfRisksDomain to ifrs-full_InterestRateRiskMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CommodityPriceRiskMember" xlink:label="ifrs-full_CommodityPriceRiskMember" xlink:title="ifrs-full_CommodityPriceRiskMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfRisksDomain" xlink:to="ifrs-full_CommodityPriceRiskMember" xlink:title="Definition : ifrs-full_TypesOfRisksDomain to ifrs-full_CommodityPriceRiskMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CreditRiskMember" xlink:label="ifrs-full_CreditRiskMember" xlink:title="ifrs-full_CreditRiskMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfRisksDomain" xlink:to="ifrs-full_CreditRiskMember" xlink:title="Definition : ifrs-full_TypesOfRisksDomain to ifrs-full_CreditRiskMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LiquidityRiskMember" xlink:label="ifrs-full_LiquidityRiskMember" xlink:title="ifrs-full_LiquidityRiskMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfRisksDomain" xlink:to="ifrs-full_LiquidityRiskMember" xlink:title="Definition : ifrs-full_TypesOfRisksDomain to ifrs-full_LiquidityRiskMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfRisksDomain" xlink:label="ifrs-full_TypesOfRisksDomain_1" xlink:title="ifrs-full_TypesOfRisksDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_TypesOfRisksAxis" xlink:to="ifrs-full_TypesOfRisksDomain_1" xlink:title="Definition : ifrs-full_TypesOfRisksAxis to ifrs-full_TypesOfRisksDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/FinancialInstrumentsChangesinfinancialliabilitiesmeasuredatlevel3ofthefairvaluehierarchyDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:label="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:title="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_FinancialLiabilities" xlink:label="ifrs-full_FinancialLiabilities" xlink:title="ifrs-full_FinancialLiabilities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_FinancialLiabilities" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_FinancialLiabilities" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_FinancialLiabilitiesMeasuredAtFairValueUpdateOfEarnoutAssumptions" xlink:label="ugp_FinancialLiabilitiesMeasuredAtFairValueUpdateOfEarnoutAssumptions" xlink:title="ugp_FinancialLiabilitiesMeasuredAtFairValueUpdateOfEarnoutAssumptions" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_FinancialLiabilitiesMeasuredAtFairValueUpdateOfEarnoutAssumptions" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_FinancialLiabilitiesMeasuredAtFairValueUpdateOfEarnoutAssumptions" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_FinancialLiabilitiesMeasuredAtFairValueSettlement" xlink:label="ugp_FinancialLiabilitiesMeasuredAtFairValueSettlement" xlink:title="ugp_FinancialLiabilitiesMeasuredAtFairValueSettlement" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_FinancialLiabilitiesMeasuredAtFairValueSettlement" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_FinancialLiabilitiesMeasuredAtFairValueSettlement" xlink:type="arc" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_FinancialLiabilitiesMeasuredAtFairValueMonetaryVariation" xlink:label="ugp_FinancialLiabilitiesMeasuredAtFairValueMonetaryVariation" xlink:title="ugp_FinancialLiabilitiesMeasuredAtFairValueMonetaryVariation" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_FinancialLiabilitiesMeasuredAtFairValueMonetaryVariation" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_FinancialLiabilitiesMeasuredAtFairValueMonetaryVariation" xlink:type="arc" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:label="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:title="ifrs-full_DisclosureOfFinancialInstrumentsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:type="arc" order="5" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LevelsOfFairValueHierarchyAxis" xlink:label="ifrs-full_LevelsOfFairValueHierarchyAxis" xlink:title="ifrs-full_LevelsOfFairValueHierarchyAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="ifrs-full_LevelsOfFairValueHierarchyAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsTable to ifrs-full_LevelsOfFairValueHierarchyAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LevelsOfFairValueHierarchyDomain" xlink:label="ifrs-full_LevelsOfFairValueHierarchyDomain" xlink:title="ifrs-full_LevelsOfFairValueHierarchyDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_LevelsOfFairValueHierarchyAxis" xlink:to="ifrs-full_LevelsOfFairValueHierarchyDomain" xlink:title="Definition : ifrs-full_LevelsOfFairValueHierarchyAxis to ifrs-full_LevelsOfFairValueHierarchyDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_Level3OfFairValueHierarchyMember" xlink:label="ifrs-full_Level3OfFairValueHierarchyMember" xlink:title="ifrs-full_Level3OfFairValueHierarchyMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_LevelsOfFairValueHierarchyDomain" xlink:to="ifrs-full_Level3OfFairValueHierarchyMember" xlink:title="Definition : ifrs-full_LevelsOfFairValueHierarchyDomain to ifrs-full_Level3OfFairValueHierarchyMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LevelsOfFairValueHierarchyDomain" xlink:label="ifrs-full_LevelsOfFairValueHierarchyDomain_1" xlink:title="ifrs-full_LevelsOfFairValueHierarchyDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_LevelsOfFairValueHierarchyAxis" xlink:to="ifrs-full_LevelsOfFairValueHierarchyDomain_1" xlink:title="Definition : ifrs-full_LevelsOfFairValueHierarchyAxis to ifrs-full_LevelsOfFairValueHierarchyDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_FinancialLiabilitiesMeasuredAtFairValueAdditions" xlink:label="ugp_FinancialLiabilitiesMeasuredAtFairValueAdditions" xlink:title="ugp_FinancialLiabilitiesMeasuredAtFairValueAdditions" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_FinancialLiabilitiesMeasuredAtFairValueAdditions" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_FinancialLiabilitiesMeasuredAtFairValueAdditions" xlink:type="arc" order="6" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/RelatedPartiesRestrictedStockProgramDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:label="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:title="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DateOfGrantOfSharebasedPaymentArrangement" xlink:label="ifrs-full_DateOfGrantOfSharebasedPaymentArrangement" xlink:title="ifrs-full_DateOfGrantOfSharebasedPaymentArrangement" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ifrs-full_DateOfGrantOfSharebasedPaymentArrangement" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ifrs-full_DateOfGrantOfSharebasedPaymentArrangement" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NumberOfInstrumentsOtherEquityInstrumentsGranted" xlink:label="ifrs-full_NumberOfInstrumentsOtherEquityInstrumentsGranted" xlink:title="ifrs-full_NumberOfInstrumentsOtherEquityInstrumentsGranted" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ifrs-full_NumberOfInstrumentsOtherEquityInstrumentsGranted" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ifrs-full_NumberOfInstrumentsOtherEquityInstrumentsGranted" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DescriptionOfVestingRequirementsForSharebasedPaymentArrangement" xlink:label="ifrs-full_DescriptionOfVestingRequirementsForSharebasedPaymentArrangement" xlink:title="ifrs-full_DescriptionOfVestingRequirementsForSharebasedPaymentArrangement" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ifrs-full_DescriptionOfVestingRequirementsForSharebasedPaymentArrangement" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ifrs-full_DescriptionOfVestingRequirementsForSharebasedPaymentArrangement" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_WeightedAverageExercisePriceOfOtherEquityInstrumentsGrantedInSharebasedPaymentArrangement2019" xlink:label="ifrs-full_WeightedAverageExercisePriceOfOtherEquityInstrumentsGrantedInSharebasedPaymentArrangement2019" xlink:title="ifrs-full_WeightedAverageExercisePriceOfOtherEquityInstrumentsGrantedInSharebasedPaymentArrangement2019" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ifrs-full_WeightedAverageExercisePriceOfOtherEquityInstrumentsGrantedInSharebasedPaymentArrangement2019" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ifrs-full_WeightedAverageExercisePriceOfOtherEquityInstrumentsGrantedInSharebasedPaymentArrangement2019" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ExpenseFromSharebasedPaymentTransactionsInWhichGoodsOrServicesReceivedDidNotQualifyForRecognitionAsAssets" xlink:label="ifrs-full_ExpenseFromSharebasedPaymentTransactionsInWhichGoodsOrServicesReceivedDidNotQualifyForRecognitionAsAssets" xlink:title="ifrs-full_ExpenseFromSharebasedPaymentTransactionsInWhichGoodsOrServicesReceivedDidNotQualifyForRecognitionAsAssets" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ifrs-full_ExpenseFromSharebasedPaymentTransactionsInWhichGoodsOrServicesReceivedDidNotQualifyForRecognitionAsAssets" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ifrs-full_ExpenseFromSharebasedPaymentTransactionsInWhichGoodsOrServicesReceivedDidNotQualifyForRecognitionAsAssets" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AccumulatedRecognizedExercisableGrantCosts" xlink:label="ugp_AccumulatedRecognizedExercisableGrantCosts" xlink:title="ugp_AccumulatedRecognizedExercisableGrantCosts" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ugp_AccumulatedRecognizedExercisableGrantCosts" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ugp_AccumulatedRecognizedExercisableGrantCosts" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AccumulatedUnrecognizedExercisableGrantCosts" xlink:label="ugp_AccumulatedUnrecognizedExercisableGrantCosts" xlink:title="ugp_AccumulatedUnrecognizedExercisableGrantCosts" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ugp_AccumulatedUnrecognizedExercisableGrantCosts" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ugp_AccumulatedUnrecognizedExercisableGrantCosts" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:label="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:title="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:type="arc" order="7" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SharebasedPaymentPlanNameAxis" xlink:label="ugp_SharebasedPaymentPlanNameAxis" xlink:title="ugp_SharebasedPaymentPlanNameAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:to="ugp_SharebasedPaymentPlanNameAxis" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable to ugp_SharebasedPaymentPlanNameAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SharebasedPaymentPlanNameDomain" xlink:label="ugp_SharebasedPaymentPlanNameDomain" xlink:title="ugp_SharebasedPaymentPlanNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_SharebasedPaymentPlanNameAxis" xlink:to="ugp_SharebasedPaymentPlanNameDomain" xlink:title="Definition : ugp_SharebasedPaymentPlanNameAxis to ugp_SharebasedPaymentPlanNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_RestrictedStockAwardMember" xlink:label="ugp_RestrictedStockAwardMember" xlink:title="ugp_RestrictedStockAwardMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SharebasedPaymentPlanNameDomain" xlink:to="ugp_RestrictedStockAwardMember" xlink:title="Definition : ugp_SharebasedPaymentPlanNameDomain to ugp_RestrictedStockAwardMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PerformanceStockAwardMember" xlink:label="ugp_PerformanceStockAwardMember" xlink:title="ugp_PerformanceStockAwardMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SharebasedPaymentPlanNameDomain" xlink:to="ugp_PerformanceStockAwardMember" xlink:title="Definition : ugp_SharebasedPaymentPlanNameDomain to ugp_PerformanceStockAwardMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SharebasedPaymentPlanNameDomain" xlink:label="ugp_SharebasedPaymentPlanNameDomain_1" xlink:title="ugp_SharebasedPaymentPlanNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_SharebasedPaymentPlanNameAxis" xlink:to="ugp_SharebasedPaymentPlanNameDomain_1" xlink:title="Definition : ugp_SharebasedPaymentPlanNameAxis to ugp_SharebasedPaymentPlanNameDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:label="ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:title="ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:to="ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable to ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:label="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:title="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:to="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:title="Definition : ifrs-full_TypesOfSharebasedPaymentArrangementsAxis to ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_GrantDateSeptember22019Member" xlink:label="ugp_GrantDateSeptember22019Member" xlink:title="ugp_GrantDateSeptember22019Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:to="ugp_GrantDateSeptember22019Member" xlink:title="Definition : ifrs-full_TypesOfSharebasedPaymentArrangementsDomain to ugp_GrantDateSeptember22019Member" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_GrantDateApril12020Member" xlink:label="ugp_GrantDateApril12020Member" xlink:title="ugp_GrantDateApril12020Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:to="ugp_GrantDateApril12020Member" xlink:title="Definition : ifrs-full_TypesOfSharebasedPaymentArrangementsDomain to ugp_GrantDateApril12020Member" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_GrantDateSeptember162020Member" xlink:label="ugp_GrantDateSeptember162020Member" xlink:title="ugp_GrantDateSeptember162020Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:to="ugp_GrantDateSeptember162020Member" xlink:title="Definition : ifrs-full_TypesOfSharebasedPaymentArrangementsDomain to ugp_GrantDateSeptember162020Member" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_GrantDateSeptember222021Member" xlink:label="ugp_GrantDateSeptember222021Member" xlink:title="ugp_GrantDateSeptember222021Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:to="ugp_GrantDateSeptember222021Member" xlink:title="Definition : ifrs-full_TypesOfSharebasedPaymentArrangementsDomain to ugp_GrantDateSeptember222021Member" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_GrantDateApril62022Member" xlink:label="ugp_GrantDateApril62022Member" xlink:title="ugp_GrantDateApril62022Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:to="ugp_GrantDateApril62022Member" xlink:title="Definition : ifrs-full_TypesOfSharebasedPaymentArrangementsDomain to ugp_GrantDateApril62022Member" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_GrantDateSeptember212022Member" xlink:label="ugp_GrantDateSeptember212022Member" xlink:title="ugp_GrantDateSeptember212022Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:to="ugp_GrantDateSeptember212022Member" xlink:title="Definition : ifrs-full_TypesOfSharebasedPaymentArrangementsDomain to ugp_GrantDateSeptember212022Member" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_GrantDateDecember72022Member" xlink:label="ugp_GrantDateDecember72022Member" xlink:title="ugp_GrantDateDecember72022Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:to="ugp_GrantDateDecember72022Member" xlink:title="Definition : ifrs-full_TypesOfSharebasedPaymentArrangementsDomain to ugp_GrantDateDecember72022Member" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_GrantDateApril202023OneMember" xlink:label="ugp_GrantDateApril202023OneMember" xlink:title="ugp_GrantDateApril202023OneMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:to="ugp_GrantDateApril202023OneMember" xlink:title="Definition : ifrs-full_TypesOfSharebasedPaymentArrangementsDomain to ugp_GrantDateApril202023OneMember" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_GrantDateApril202023TwoMember" xlink:label="ugp_GrantDateApril202023TwoMember" xlink:title="ugp_GrantDateApril202023TwoMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:to="ugp_GrantDateApril202023TwoMember" xlink:title="Definition : ifrs-full_TypesOfSharebasedPaymentArrangementsDomain to ugp_GrantDateApril202023TwoMember" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_GrantDateSeptember202023Member" xlink:label="ugp_GrantDateSeptember202023Member" xlink:title="ugp_GrantDateSeptember202023Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:to="ugp_GrantDateSeptember202023Member" xlink:title="Definition : ifrs-full_TypesOfSharebasedPaymentArrangementsDomain to ugp_GrantDateSeptember202023Member" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_GrantDateApril172024Member" xlink:label="ugp_GrantDateApril172024Member" xlink:title="ugp_GrantDateApril172024Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:to="ugp_GrantDateApril172024Member" xlink:title="Definition : ifrs-full_TypesOfSharebasedPaymentArrangementsDomain to ugp_GrantDateApril172024Member" xlink:type="arc" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_GrantDateJune192024Member" xlink:label="ugp_GrantDateJune192024Member" xlink:title="ugp_GrantDateJune192024Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:to="ugp_GrantDateJune192024Member" xlink:title="Definition : ifrs-full_TypesOfSharebasedPaymentArrangementsDomain to ugp_GrantDateJune192024Member" xlink:type="arc" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_GrantDateOctober12024Member" xlink:label="ugp_GrantDateOctober12024Member" xlink:title="ugp_GrantDateOctober12024Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:to="ugp_GrantDateOctober12024Member" xlink:title="Definition : ifrs-full_TypesOfSharebasedPaymentArrangementsDomain to ugp_GrantDateOctober12024Member" xlink:type="arc" order="12" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_GrantDateApril42018Member" xlink:label="ugp_GrantDateApril42018Member" xlink:title="ugp_GrantDateApril42018Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:to="ugp_GrantDateApril42018Member" xlink:title="Definition : ifrs-full_TypesOfSharebasedPaymentArrangementsDomain to ugp_GrantDateApril42018Member" xlink:type="arc" use="optional" order="13" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_GrantDateSeptember192018Member" xlink:label="ugp_GrantDateSeptember192018Member" xlink:title="ugp_GrantDateSeptember192018Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:to="ugp_GrantDateSeptember192018Member" xlink:title="Definition : ifrs-full_TypesOfSharebasedPaymentArrangementsDomain to ugp_GrantDateSeptember192018Member" xlink:type="arc" use="optional" order="14" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_GrantDateSeptember242018Member" xlink:label="ugp_GrantDateSeptember242018Member" xlink:title="ugp_GrantDateSeptember242018Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:to="ugp_GrantDateSeptember242018Member" xlink:title="Definition : ifrs-full_TypesOfSharebasedPaymentArrangementsDomain to ugp_GrantDateSeptember242018Member" xlink:type="arc" use="optional" order="15" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_GrantDateApril32019Member" xlink:label="ugp_GrantDateApril32019Member" xlink:title="ugp_GrantDateApril32019Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:to="ugp_GrantDateApril32019Member" xlink:title="Definition : ifrs-full_TypesOfSharebasedPaymentArrangementsDomain to ugp_GrantDateApril32019Member" xlink:type="arc" use="optional" order="16" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_GrantDateApril72021Member" xlink:label="ugp_GrantDateApril72021Member" xlink:title="ugp_GrantDateApril72021Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:to="ugp_GrantDateApril72021Member" xlink:title="Definition : ifrs-full_TypesOfSharebasedPaymentArrangementsDomain to ugp_GrantDateApril72021Member" xlink:type="arc" use="optional" order="17" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:label="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_1" xlink:title="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:to="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_1" xlink:title="Definition : ifrs-full_TypesOfSharebasedPaymentArrangementsAxis to ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/ProvisionsandcontingentliabilitiesContingentliabilitiespossiblebynatureDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:label="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:title="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PossibleContingency" xlink:label="ugp_PossibleContingency" xlink:title="ugp_PossibleContingency" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ugp_PossibleContingency" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ugp_PossibleContingency" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfContingentLiabilitiesTable" xlink:label="ifrs-full_DisclosureOfContingentLiabilitiesTable" xlink:title="ifrs-full_DisclosureOfContingentLiabilitiesTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesLineItems" xlink:to="ifrs-full_DisclosureOfContingentLiabilitiesTable" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesLineItems to ifrs-full_DisclosureOfContingentLiabilitiesTable" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfContingentLiabilitiesAxis" xlink:label="ifrs-full_ClassesOfContingentLiabilitiesAxis" xlink:title="ifrs-full_ClassesOfContingentLiabilitiesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfContingentLiabilitiesTable" xlink:to="ifrs-full_ClassesOfContingentLiabilitiesAxis" xlink:title="Definition : ifrs-full_DisclosureOfContingentLiabilitiesTable to ifrs-full_ClassesOfContingentLiabilitiesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfContingentLiabilitiesDomain" xlink:label="ifrs-full_ClassesOfContingentLiabilitiesDomain" xlink:title="ifrs-full_ClassesOfContingentLiabilitiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ClassesOfContingentLiabilitiesAxis" xlink:to="ifrs-full_ClassesOfContingentLiabilitiesDomain" xlink:title="Definition : ifrs-full_ClassesOfContingentLiabilitiesAxis to ifrs-full_ClassesOfContingentLiabilitiesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TaxContingentLiabilityMember" xlink:label="ifrs-full_TaxContingentLiabilityMember" xlink:title="ifrs-full_TaxContingentLiabilityMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfContingentLiabilitiesDomain" xlink:to="ifrs-full_TaxContingentLiabilityMember" xlink:title="Definition : ifrs-full_ClassesOfContingentLiabilitiesDomain to ifrs-full_TaxContingentLiabilityMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CivilContingentLiabilityMember" xlink:label="ugp_CivilContingentLiabilityMember" xlink:title="ugp_CivilContingentLiabilityMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfContingentLiabilitiesDomain" xlink:to="ugp_CivilContingentLiabilityMember" xlink:title="Definition : ifrs-full_ClassesOfContingentLiabilitiesDomain to ugp_CivilContingentLiabilityMember" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LaborContingentLiabilityMember" xlink:label="ugp_LaborContingentLiabilityMember" xlink:title="ugp_LaborContingentLiabilityMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfContingentLiabilitiesDomain" xlink:to="ugp_LaborContingentLiabilityMember" xlink:title="Definition : ifrs-full_ClassesOfContingentLiabilitiesDomain to ugp_LaborContingentLiabilityMember" xlink:type="arc" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfContingentLiabilitiesDomain" xlink:label="ifrs-full_ClassesOfContingentLiabilitiesDomain_1" xlink:title="ifrs-full_ClassesOfContingentLiabilitiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ClassesOfContingentLiabilitiesAxis" xlink:to="ifrs-full_ClassesOfContingentLiabilitiesDomain_1" xlink:title="Definition : ifrs-full_ClassesOfContingentLiabilitiesAxis to ifrs-full_ClassesOfContingentLiabilitiesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/AcquisitionofInterestandControlScheduleofbreakdownoftheacquisitionvalueconsideringtheworkingcapitalandnetdebtadjustmentsandprimarycontributionDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:label="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:title="ifrs-full_DisclosureOfBusinessCombinationsLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MeasurementPeriodAdjustmentsRecognisedForParticularAssetsLiabilitiesNoncontrollingInterestsOrItemsOfConsideration" xlink:label="ifrs-full_MeasurementPeriodAdjustmentsRecognisedForParticularAssetsLiabilitiesNoncontrollingInterestsOrItemsOfConsideration" xlink:title="ifrs-full_MeasurementPeriodAdjustmentsRecognisedForParticularAssetsLiabilitiesNoncontrollingInterestsOrItemsOfConsideration" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ifrs-full_MeasurementPeriodAdjustmentsRecognisedForParticularAssetsLiabilitiesNoncontrollingInterestsOrItemsOfConsideration" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ifrs-full_MeasurementPeriodAdjustmentsRecognisedForParticularAssetsLiabilitiesNoncontrollingInterestsOrItemsOfConsideration" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PrimaryContributionPaid" xlink:label="ugp_PrimaryContributionPaid" xlink:title="ugp_PrimaryContributionPaid" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ugp_PrimaryContributionPaid" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ugp_PrimaryContributionPaid" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:label="ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:title="ifrs-full_DisclosureOfBusinessCombinationsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:type="arc" order="2" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsTable to ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CompanhiaUltragazMember" xlink:label="ugp_CompanhiaUltragazMember" xlink:title="ugp_CompanhiaUltragazMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_CompanhiaUltragazMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_CompanhiaUltragazMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltracargoLogisticaSAMember" xlink:label="ugp_UltracargoLogisticaSAMember" xlink:title="ugp_UltracargoLogisticaSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltracargoLogisticaSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltracargoLogisticaSAMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BusinessCombinationsAxis" xlink:label="ifrs-full_BusinessCombinationsAxis" xlink:title="ifrs-full_BusinessCombinationsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:to="ifrs-full_BusinessCombinationsAxis" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsTable to ifrs-full_BusinessCombinationsAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BusinessCombinationsDomain" xlink:label="ifrs-full_BusinessCombinationsDomain" xlink:title="ifrs-full_BusinessCombinationsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_BusinessCombinationsAxis" xlink:to="ifrs-full_BusinessCombinationsDomain" xlink:title="Definition : ifrs-full_BusinessCombinationsAxis to ifrs-full_BusinessCombinationsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NeogasGroupMember" xlink:label="ugp_NeogasGroupMember" xlink:title="ugp_NeogasGroupMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_NeogasGroupMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_NeogasGroupMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OplaGroupMember" xlink:label="ugp_OplaGroupMember" xlink:title="ugp_OplaGroupMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_OplaGroupMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_OplaGroupMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BusinessCombinationsDomain" xlink:label="ifrs-full_BusinessCombinationsDomain_1" xlink:title="ifrs-full_BusinessCombinationsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_BusinessCombinationsAxis" xlink:to="ifrs-full_BusinessCombinationsDomain_1" xlink:title="Definition : ifrs-full_BusinessCombinationsAxis to ifrs-full_BusinessCombinationsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/LoansfinancingdebenturesandderivativefinancialinstrumentsSummaryofTransactionCostsDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:label="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:title="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncurredTransactionCost" xlink:label="ugp_IncurredTransactionCost" xlink:title="ugp_IncurredTransactionCost" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_IncurredTransactionCost" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_IncurredTransactionCost" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PaymentsForDebtTransactionCosts" xlink:label="ugp_PaymentsForDebtTransactionCosts" xlink:title="ugp_PaymentsForDebtTransactionCosts" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_PaymentsForDebtTransactionCosts" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_PaymentsForDebtTransactionCosts" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DecreaseThroughClassifiedAsHeldForSaleAccumulatedTransactionCosts" xlink:label="ugp_DecreaseThroughClassifiedAsHeldForSaleAccumulatedTransactionCosts" xlink:title="ugp_DecreaseThroughClassifiedAsHeldForSaleAccumulatedTransactionCosts" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_DecreaseThroughClassifiedAsHeldForSaleAccumulatedTransactionCosts" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_DecreaseThroughClassifiedAsHeldForSaleAccumulatedTransactionCosts" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TransactionCostAmortization" xlink:label="ugp_TransactionCostAmortization" xlink:title="ugp_TransactionCostAmortization" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_TransactionCostAmortization" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_TransactionCostAmortization" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_EffectiveRateOfTransactionCosts" xlink:label="ugp_EffectiveRateOfTransactionCosts" xlink:title="ugp_EffectiveRateOfTransactionCosts" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_EffectiveRateOfTransactionCosts" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_EffectiveRateOfTransactionCosts" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:label="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:title="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:type="arc" order="5" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:label="ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:title="ifrs-full_ClassesOfFinancialInstrumentsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:to="ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable to ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:title="ifrs-full_ClassesOfFinancialInstrumentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:to="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsAxis to ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebenturesMember" xlink:label="ugp_DebenturesMember" xlink:title="ugp_DebenturesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_DebenturesMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_DebenturesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NotesInForeignMarketMember" xlink:label="ugp_NotesInForeignMarketMember" xlink:title="ugp_NotesInForeignMarketMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_NotesInForeignMarketMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_NotesInForeignMarketMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_BancoDoBrasilMember" xlink:label="ugp_BancoDoBrasilMember" xlink:title="ugp_BancoDoBrasilMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_BancoDoBrasilMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_BancoDoBrasilMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PromissoryNotesMember" xlink:label="ugp_PromissoryNotesMember" xlink:title="ugp_PromissoryNotesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_PromissoryNotesMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_PromissoryNotesMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UnsecuredNotesPayableNotConvertibleIntoSharesMember" xlink:label="ugp_UnsecuredNotesPayableNotConvertibleIntoSharesMember" xlink:title="ugp_UnsecuredNotesPayableNotConvertibleIntoSharesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_UnsecuredNotesPayableNotConvertibleIntoSharesMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_UnsecuredNotesPayableNotConvertibleIntoSharesMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ForeignLoansMember" xlink:label="ugp_ForeignLoansMember" xlink:title="ugp_ForeignLoansMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_ForeignLoansMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_ForeignLoansMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OtherTransactionCostsMember" xlink:label="ugp_OtherTransactionCostsMember" xlink:title="ugp_OtherTransactionCostsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_OtherTransactionCostsMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_OtherTransactionCostsMember" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="ifrs-full_ClassesOfFinancialInstrumentsDomain_1" xlink:title="ifrs-full_ClassesOfFinancialInstrumentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:to="ifrs-full_ClassesOfFinancialInstrumentsDomain_1" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsAxis to ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/AcquisitionofInterestandControlScheduleoftransactionamountsforacquiringaninterestDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:label="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:title="ifrs-full_DisclosureOfBusinessCombinationsLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_FinancialAssetsRecognisedAsOfAcquisitionDate" xlink:label="ifrs-full_FinancialAssetsRecognisedAsOfAcquisitionDate" xlink:title="ifrs-full_FinancialAssetsRecognisedAsOfAcquisitionDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ifrs-full_FinancialAssetsRecognisedAsOfAcquisitionDate" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ifrs-full_FinancialAssetsRecognisedAsOfAcquisitionDate" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLoss" xlink:label="ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLoss" xlink:title="ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLoss" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLoss" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLoss" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IdentifiableIntangibleAssetsRecognisedAsOfAcquisitionDate" xlink:label="ifrs-full_IdentifiableIntangibleAssetsRecognisedAsOfAcquisitionDate" xlink:title="ifrs-full_IdentifiableIntangibleAssetsRecognisedAsOfAcquisitionDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ifrs-full_IdentifiableIntangibleAssetsRecognisedAsOfAcquisitionDate" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ifrs-full_IdentifiableIntangibleAssetsRecognisedAsOfAcquisitionDate" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SubsequentAcquisitionsOfAdditionalInterests" xlink:label="ugp_SubsequentAcquisitionsOfAdditionalInterests" xlink:title="ugp_SubsequentAcquisitionsOfAdditionalInterests" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ugp_SubsequentAcquisitionsOfAdditionalInterests" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ugp_SubsequentAcquisitionsOfAdditionalInterests" xlink:type="arc" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_InvestmentAccountedForUsingEquityMethod" xlink:label="ifrs-full_InvestmentAccountedForUsingEquityMethod" xlink:title="ifrs-full_InvestmentAccountedForUsingEquityMethod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ifrs-full_InvestmentAccountedForUsingEquityMethod" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ifrs-full_InvestmentAccountedForUsingEquityMethod" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AcquisitiondateFairValueOfEquityInterestInAcquireeHeldByAcquirerImmediatelyBeforeAcquisitionDate" xlink:label="ifrs-full_AcquisitiondateFairValueOfEquityInterestInAcquireeHeldByAcquirerImmediatelyBeforeAcquisitionDate" xlink:title="ifrs-full_AcquisitiondateFairValueOfEquityInterestInAcquireeHeldByAcquirerImmediatelyBeforeAcquisitionDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ifrs-full_AcquisitiondateFairValueOfEquityInterestInAcquireeHeldByAcquirerImmediatelyBeforeAcquisitionDate" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ifrs-full_AcquisitiondateFairValueOfEquityInterestInAcquireeHeldByAcquirerImmediatelyBeforeAcquisitionDate" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_GoodwillRecognisedAsOfAcquisitionDate" xlink:label="ifrs-full_GoodwillRecognisedAsOfAcquisitionDate" xlink:title="ifrs-full_GoodwillRecognisedAsOfAcquisitionDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ifrs-full_GoodwillRecognisedAsOfAcquisitionDate" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ifrs-full_GoodwillRecognisedAsOfAcquisitionDate" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:label="ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:title="ifrs-full_DisclosureOfBusinessCombinationsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:type="arc" order="7" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BusinessCombinationsAxis" xlink:label="ifrs-full_BusinessCombinationsAxis" xlink:title="ifrs-full_BusinessCombinationsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:to="ifrs-full_BusinessCombinationsAxis" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsTable to ifrs-full_BusinessCombinationsAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BusinessCombinationsDomain" xlink:label="ifrs-full_BusinessCombinationsDomain" xlink:title="ifrs-full_BusinessCombinationsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_BusinessCombinationsAxis" xlink:to="ifrs-full_BusinessCombinationsDomain" xlink:title="Definition : ifrs-full_BusinessCombinationsAxis to ifrs-full_BusinessCombinationsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_HidroviasDoBrasilMember" xlink:label="ugp_HidroviasDoBrasilMember" xlink:title="ugp_HidroviasDoBrasilMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_HidroviasDoBrasilMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_HidroviasDoBrasilMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BusinessCombinationsDomain" xlink:label="ifrs-full_BusinessCombinationsDomain_1" xlink:title="ifrs-full_BusinessCombinationsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_BusinessCombinationsAxis" xlink:to="ifrs-full_BusinessCombinationsDomain_1" xlink:title="Definition : ifrs-full_BusinessCombinationsAxis to ifrs-full_BusinessCombinationsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/InvestmentsinsubsidiariesjointventuresandassociatesSummaryofstatementsoffinancialinformationofjointventuresandassociatesDetail">
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DisclosureOfJointVenturesAndAssociatesLineItems" xlink:label="ugp_DisclosureOfJointVenturesAndAssociatesLineItems" xlink:title="ugp_DisclosureOfJointVenturesAndAssociatesLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_Assets" xlink:label="ifrs-full_Assets" xlink:title="ifrs-full_Assets" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfJointVenturesAndAssociatesLineItems" xlink:to="ifrs-full_Assets" xlink:title="Definition : ugp_DisclosureOfJointVenturesAndAssociatesLineItems to ifrs-full_Assets" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_Liabilities" xlink:label="ifrs-full_Liabilities" xlink:title="ifrs-full_Liabilities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfJointVenturesAndAssociatesLineItems" xlink:to="ifrs-full_Liabilities" xlink:title="Definition : ugp_DisclosureOfJointVenturesAndAssociatesLineItems to ifrs-full_Liabilities" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_Equity" xlink:label="ifrs-full_Equity" xlink:title="ifrs-full_Equity" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfJointVenturesAndAssociatesLineItems" xlink:to="ifrs-full_Equity" xlink:title="Definition : ugp_DisclosureOfJointVenturesAndAssociatesLineItems to ifrs-full_Equity" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_Revenue" xlink:label="ifrs-full_Revenue" xlink:title="ifrs-full_Revenue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfJointVenturesAndAssociatesLineItems" xlink:to="ifrs-full_Revenue" xlink:title="Definition : ugp_DisclosureOfJointVenturesAndAssociatesLineItems to ifrs-full_Revenue" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProfitLoss" xlink:label="ifrs-full_ProfitLoss" xlink:title="ifrs-full_ProfitLoss" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfJointVenturesAndAssociatesLineItems" xlink:to="ifrs-full_ProfitLoss" xlink:title="Definition : ugp_DisclosureOfJointVenturesAndAssociatesLineItems to ifrs-full_ProfitLoss" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CurrentAssets" xlink:label="ifrs-full_CurrentAssets" xlink:title="ifrs-full_CurrentAssets" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfJointVenturesAndAssociatesLineItems" xlink:to="ifrs-full_CurrentAssets" xlink:title="Definition : ugp_DisclosureOfJointVenturesAndAssociatesLineItems to ifrs-full_CurrentAssets" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NoncurrentAssets" xlink:label="ifrs-full_NoncurrentAssets" xlink:title="ifrs-full_NoncurrentAssets" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfJointVenturesAndAssociatesLineItems" xlink:to="ifrs-full_NoncurrentAssets" xlink:title="Definition : ugp_DisclosureOfJointVenturesAndAssociatesLineItems to ifrs-full_NoncurrentAssets" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NoncurrentLiabilities" xlink:label="ifrs-full_NoncurrentLiabilities" xlink:title="ifrs-full_NoncurrentLiabilities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfJointVenturesAndAssociatesLineItems" xlink:to="ifrs-full_NoncurrentLiabilities" xlink:title="Definition : ugp_DisclosureOfJointVenturesAndAssociatesLineItems to ifrs-full_NoncurrentLiabilities" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CurrentLiabilities" xlink:label="ifrs-full_CurrentLiabilities" xlink:title="ifrs-full_CurrentLiabilities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfJointVenturesAndAssociatesLineItems" xlink:to="ifrs-full_CurrentLiabilities" xlink:title="Definition : ugp_DisclosureOfJointVenturesAndAssociatesLineItems to ifrs-full_CurrentLiabilities" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_GrossProfit" xlink:label="ifrs-full_GrossProfit" xlink:title="ifrs-full_GrossProfit" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfJointVenturesAndAssociatesLineItems" xlink:to="ifrs-full_GrossProfit" xlink:title="Definition : ugp_DisclosureOfJointVenturesAndAssociatesLineItems to ifrs-full_GrossProfit" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfSharesOrUnitsHeld" xlink:label="ugp_NumberOfSharesOrUnitsHeld" xlink:title="ugp_NumberOfSharesOrUnitsHeld" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfJointVenturesAndAssociatesLineItems" xlink:to="ugp_NumberOfSharesOrUnitsHeld" xlink:title="Definition : ugp_DisclosureOfJointVenturesAndAssociatesLineItems to ugp_NumberOfSharesOrUnitsHeld" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProportionOfOwnershipInterestInJointVenture" xlink:label="ifrs-full_ProportionOfOwnershipInterestInJointVenture" xlink:title="ifrs-full_ProportionOfOwnershipInterestInJointVenture" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfJointVenturesAndAssociatesLineItems" xlink:to="ifrs-full_ProportionOfOwnershipInterestInJointVenture" xlink:title="Definition : ugp_DisclosureOfJointVenturesAndAssociatesLineItems to ifrs-full_ProportionOfOwnershipInterestInJointVenture" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProportionOfOwnershipInterestInAssociate" xlink:label="ifrs-full_ProportionOfOwnershipInterestInAssociate" xlink:title="ifrs-full_ProportionOfOwnershipInterestInAssociate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfJointVenturesAndAssociatesLineItems" xlink:to="ifrs-full_ProportionOfOwnershipInterestInAssociate" xlink:title="Definition : ugp_DisclosureOfJointVenturesAndAssociatesLineItems to ifrs-full_ProportionOfOwnershipInterestInAssociate" xlink:type="arc" use="optional" order="12" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DisclosureOfJointVenturesAndAssociatesTable" xlink:label="ugp_DisclosureOfJointVenturesAndAssociatesTable" xlink:title="ugp_DisclosureOfJointVenturesAndAssociatesTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ugp_DisclosureOfJointVenturesAndAssociatesLineItems" xlink:to="ugp_DisclosureOfJointVenturesAndAssociatesTable" xlink:title="Definition : ugp_DisclosureOfJointVenturesAndAssociatesLineItems to ugp_DisclosureOfJointVenturesAndAssociatesTable" xlink:type="arc" order="13" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_JointVenturesAxis" xlink:label="ifrs-full_JointVenturesAxis" xlink:title="ifrs-full_JointVenturesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_DisclosureOfJointVenturesAndAssociatesTable" xlink:to="ifrs-full_JointVenturesAxis" xlink:title="Definition : ugp_DisclosureOfJointVenturesAndAssociatesTable to ifrs-full_JointVenturesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_JointVenturesDomain" xlink:label="ifrs-full_JointVenturesDomain" xlink:title="ifrs-full_JointVenturesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_JointVenturesAxis" xlink:to="ifrs-full_JointVenturesDomain" xlink:title="Definition : ifrs-full_JointVenturesAxis to ifrs-full_JointVenturesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_RPRMember" xlink:label="ugp_RPRMember" xlink:title="ugp_RPRMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_JointVenturesDomain" xlink:to="ugp_RPRMember" xlink:title="Definition : ifrs-full_JointVenturesDomain to ugp_RPRMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TerminalDeCombustiveisPauliniaSAOplaMember" xlink:label="ugp_TerminalDeCombustiveisPauliniaSAOplaMember" xlink:title="ugp_TerminalDeCombustiveisPauliniaSAOplaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_JointVenturesDomain" xlink:to="ugp_TerminalDeCombustiveisPauliniaSAOplaMember" xlink:title="Definition : ifrs-full_JointVenturesDomain to ugp_TerminalDeCombustiveisPauliniaSAOplaMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_JointVenturesDomain" xlink:label="ifrs-full_JointVenturesDomain_1" xlink:title="ifrs-full_JointVenturesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_JointVenturesAxis" xlink:to="ifrs-full_JointVenturesDomain_1" xlink:title="Definition : ifrs-full_JointVenturesAxis to ifrs-full_JointVenturesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:label="ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:title="ifrs-full_SignificantInvestmentsInAssociatesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_DisclosureOfJointVenturesAndAssociatesTable" xlink:to="ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:title="Definition : ugp_DisclosureOfJointVenturesAndAssociatesTable to ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:label="ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:title="ifrs-full_SignificantInvestmentsInAssociatesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:to="ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInAssociatesAxis to ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_HidroviasDoBrasilMember" xlink:label="ugp_HidroviasDoBrasilMember" xlink:title="ugp_HidroviasDoBrasilMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:to="ugp_HidroviasDoBrasilMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInAssociatesDomain to ugp_HidroviasDoBrasilMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:label="ifrs-full_SignificantInvestmentsInAssociatesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInAssociatesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:to="ifrs-full_SignificantInvestmentsInAssociatesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInAssociatesAxis to ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/FinancialInstrumentsSensitivityanalysislevel2hierarchyDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:label="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:title="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_FinancialAssetsAtFairValue" xlink:label="ifrs-full_FinancialAssetsAtFairValue" xlink:title="ifrs-full_FinancialAssetsAtFairValue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_FinancialAssetsAtFairValue" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_FinancialAssetsAtFairValue" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_FinancialLiabilitiesAtFairValue" xlink:label="ifrs-full_FinancialLiabilitiesAtFairValue" xlink:title="ifrs-full_FinancialLiabilitiesAtFairValue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_FinancialLiabilitiesAtFairValue" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_FinancialLiabilitiesAtFairValue" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PercentageOfReasonablyPossibleIncreaseInUnobservableInputLiabilities" xlink:label="ifrs-full_PercentageOfReasonablyPossibleIncreaseInUnobservableInputLiabilities" xlink:title="ifrs-full_PercentageOfReasonablyPossibleIncreaseInUnobservableInputLiabilities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_PercentageOfReasonablyPossibleIncreaseInUnobservableInputLiabilities" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_PercentageOfReasonablyPossibleIncreaseInUnobservableInputLiabilities" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PercentageOfReasonablyPossibleDecreaseInUnobservableInputLiabilities" xlink:label="ifrs-full_PercentageOfReasonablyPossibleDecreaseInUnobservableInputLiabilities" xlink:title="ifrs-full_PercentageOfReasonablyPossibleDecreaseInUnobservableInputLiabilities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_PercentageOfReasonablyPossibleDecreaseInUnobservableInputLiabilities" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_PercentageOfReasonablyPossibleDecreaseInUnobservableInputLiabilities" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PercentageOfReasonablyPossibleIncreaseInUnobservableInputAssets" xlink:label="ifrs-full_PercentageOfReasonablyPossibleIncreaseInUnobservableInputAssets" xlink:title="ifrs-full_PercentageOfReasonablyPossibleIncreaseInUnobservableInputAssets" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_PercentageOfReasonablyPossibleIncreaseInUnobservableInputAssets" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_PercentageOfReasonablyPossibleIncreaseInUnobservableInputAssets" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PercentageOfReasonablyPossibleDecreaseInUnobservableInputAssets" xlink:label="ifrs-full_PercentageOfReasonablyPossibleDecreaseInUnobservableInputAssets" xlink:title="ifrs-full_PercentageOfReasonablyPossibleDecreaseInUnobservableInputAssets" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_PercentageOfReasonablyPossibleDecreaseInUnobservableInputAssets" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_PercentageOfReasonablyPossibleDecreaseInUnobservableInputAssets" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IncreaseDecreaseInFairValueMeasurementDueToReasonablyPossibleIncreaseInUnobservableInputAssets" xlink:label="ifrs-full_IncreaseDecreaseInFairValueMeasurementDueToReasonablyPossibleIncreaseInUnobservableInputAssets" xlink:title="ifrs-full_IncreaseDecreaseInFairValueMeasurementDueToReasonablyPossibleIncreaseInUnobservableInputAssets" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_IncreaseDecreaseInFairValueMeasurementDueToReasonablyPossibleIncreaseInUnobservableInputAssets" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_IncreaseDecreaseInFairValueMeasurementDueToReasonablyPossibleIncreaseInUnobservableInputAssets" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IncreaseDecreaseInFairValueMeasurementDueToReasonablyPossibleDecreaseInUnobservableInputAssets" xlink:label="ifrs-full_IncreaseDecreaseInFairValueMeasurementDueToReasonablyPossibleDecreaseInUnobservableInputAssets" xlink:title="ifrs-full_IncreaseDecreaseInFairValueMeasurementDueToReasonablyPossibleDecreaseInUnobservableInputAssets" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_IncreaseDecreaseInFairValueMeasurementDueToReasonablyPossibleDecreaseInUnobservableInputAssets" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_IncreaseDecreaseInFairValueMeasurementDueToReasonablyPossibleDecreaseInUnobservableInputAssets" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:label="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:title="ifrs-full_DisclosureOfFinancialInstrumentsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:type="arc" order="8" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:label="ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:title="ifrs-full_ClassesOfFinancialInstrumentsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsTable to ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:title="ifrs-full_ClassesOfFinancialInstrumentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:to="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsAxis to ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_EnergyTradingFuturesContractsAssetsMember" xlink:label="ugp_EnergyTradingFuturesContractsAssetsMember" xlink:title="ugp_EnergyTradingFuturesContractsAssetsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_EnergyTradingFuturesContractsAssetsMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_EnergyTradingFuturesContractsAssetsMember" xlink:type="arc" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_EnergyTradingFuturesContractsLiabilitiesMember" xlink:label="ugp_EnergyTradingFuturesContractsLiabilitiesMember" xlink:title="ugp_EnergyTradingFuturesContractsLiabilitiesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_EnergyTradingFuturesContractsLiabilitiesMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_EnergyTradingFuturesContractsLiabilitiesMember" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="ifrs-full_ClassesOfFinancialInstrumentsDomain_1" xlink:title="ifrs-full_ClassesOfFinancialInstrumentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:to="ifrs-full_ClassesOfFinancialInstrumentsDomain_1" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsAxis to ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ValuationTechniquesUsedInFairValueMeasurementAxis" xlink:label="ifrs-full_ValuationTechniquesUsedInFairValueMeasurementAxis" xlink:title="ifrs-full_ValuationTechniquesUsedInFairValueMeasurementAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="ifrs-full_ValuationTechniquesUsedInFairValueMeasurementAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsTable to ifrs-full_ValuationTechniquesUsedInFairValueMeasurementAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ValuationTechniquesUsedInFairValueMeasurementDomain" xlink:label="ifrs-full_ValuationTechniquesUsedInFairValueMeasurementDomain" xlink:title="ifrs-full_ValuationTechniquesUsedInFairValueMeasurementDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ValuationTechniquesUsedInFairValueMeasurementAxis" xlink:to="ifrs-full_ValuationTechniquesUsedInFairValueMeasurementDomain" xlink:title="Definition : ifrs-full_ValuationTechniquesUsedInFairValueMeasurementAxis to ifrs-full_ValuationTechniquesUsedInFairValueMeasurementDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DiscountedCashFlowMember" xlink:label="ifrs-full_DiscountedCashFlowMember" xlink:title="ifrs-full_DiscountedCashFlowMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ValuationTechniquesUsedInFairValueMeasurementDomain" xlink:to="ifrs-full_DiscountedCashFlowMember" xlink:title="Definition : ifrs-full_ValuationTechniquesUsedInFairValueMeasurementDomain to ifrs-full_DiscountedCashFlowMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ValuationTechniquesUsedInFairValueMeasurementDomain" xlink:label="ifrs-full_ValuationTechniquesUsedInFairValueMeasurementDomain_1" xlink:title="ifrs-full_ValuationTechniquesUsedInFairValueMeasurementDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ValuationTechniquesUsedInFairValueMeasurementAxis" xlink:to="ifrs-full_ValuationTechniquesUsedInFairValueMeasurementDomain_1" xlink:title="Definition : ifrs-full_ValuationTechniquesUsedInFairValueMeasurementAxis to ifrs-full_ValuationTechniquesUsedInFairValueMeasurementDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/FinancialInstrumentsAssetsandliabilitiesexposedtoforeigncurrencytranslatedtoReaisandorexposedtofloatinginterestratesDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:label="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:title="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AssetsInForeignCurrencyAbstract" xlink:label="ugp_AssetsInForeignCurrencyAbstract" xlink:title="ugp_AssetsInForeignCurrencyAbstract" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_AssetsInForeignCurrencyAbstract" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_AssetsInForeignCurrencyAbstract" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CashCashEquivalentsAndFinancialInvestmentsInForeignCurrencyExceptHedgingInstruments" xlink:label="ugp_CashCashEquivalentsAndFinancialInvestmentsInForeignCurrencyExceptHedgingInstruments" xlink:title="ugp_CashCashEquivalentsAndFinancialInvestmentsInForeignCurrencyExceptHedgingInstruments" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AssetsInForeignCurrencyAbstract" xlink:to="ugp_CashCashEquivalentsAndFinancialInvestmentsInForeignCurrencyExceptHedgingInstruments" xlink:title="Definition : ugp_AssetsInForeignCurrencyAbstract to ugp_CashCashEquivalentsAndFinancialInvestmentsInForeignCurrencyExceptHedgingInstruments" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ForeignTradeReceivablesNetOfAllowanceForDoubtfulAccountsAndAdvancesToForeignCustomers" xlink:label="ugp_ForeignTradeReceivablesNetOfAllowanceForDoubtfulAccountsAndAdvancesToForeignCustomers" xlink:title="ugp_ForeignTradeReceivablesNetOfAllowanceForDoubtfulAccountsAndAdvancesToForeignCustomers" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AssetsInForeignCurrencyAbstract" xlink:to="ugp_ForeignTradeReceivablesNetOfAllowanceForDoubtfulAccountsAndAdvancesToForeignCustomers" xlink:title="Definition : ugp_AssetsInForeignCurrencyAbstract to ugp_ForeignTradeReceivablesNetOfAllowanceForDoubtfulAccountsAndAdvancesToForeignCustomers" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_InventoriesTotal" xlink:label="ifrs-full_InventoriesTotal" xlink:title="ifrs-full_InventoriesTotal" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AssetsInForeignCurrencyAbstract" xlink:to="ifrs-full_InventoriesTotal" xlink:title="Definition : ugp_AssetsInForeignCurrencyAbstract to ifrs-full_InventoriesTotal" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OtherReceivablesInForeignCurrency" xlink:label="ugp_OtherReceivablesInForeignCurrency" xlink:title="ugp_OtherReceivablesInForeignCurrency" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AssetsInForeignCurrencyAbstract" xlink:to="ugp_OtherReceivablesInForeignCurrency" xlink:title="Definition : ugp_AssetsInForeignCurrencyAbstract to ugp_OtherReceivablesInForeignCurrency" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OtherNetAssetsOfForeignSubsidiariesInForeignCurrencyExceptCashCashEquivalentsFinancialInvestmentsTradeReceivablesFinancingAndPayables" xlink:label="ugp_OtherNetAssetsOfForeignSubsidiariesInForeignCurrencyExceptCashCashEquivalentsFinancialInvestmentsTradeReceivablesFinancingAndPayables" xlink:title="ugp_OtherNetAssetsOfForeignSubsidiariesInForeignCurrencyExceptCashCashEquivalentsFinancialInvestmentsTradeReceivablesFinancingAndPayables" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AssetsInForeignCurrencyAbstract" xlink:to="ugp_OtherNetAssetsOfForeignSubsidiariesInForeignCurrencyExceptCashCashEquivalentsFinancialInvestmentsTradeReceivablesFinancingAndPayables" xlink:title="Definition : ugp_AssetsInForeignCurrencyAbstract to ugp_OtherNetAssetsOfForeignSubsidiariesInForeignCurrencyExceptCashCashEquivalentsFinancialInvestmentsTradeReceivablesFinancingAndPayables" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AssetsInForeignCurrency" xlink:label="ugp_AssetsInForeignCurrency" xlink:title="ugp_AssetsInForeignCurrency" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AssetsInForeignCurrencyAbstract" xlink:to="ugp_AssetsInForeignCurrency" xlink:title="Definition : ugp_AssetsInForeignCurrencyAbstract to ugp_AssetsInForeignCurrency" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LiabilitiesInForeignCurrencyAbstract" xlink:label="ugp_LiabilitiesInForeignCurrencyAbstract" xlink:title="ugp_LiabilitiesInForeignCurrencyAbstract" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AssetsInForeignCurrencyAbstract" xlink:to="ugp_LiabilitiesInForeignCurrencyAbstract" xlink:title="Definition : ugp_AssetsInForeignCurrencyAbstract to ugp_LiabilitiesInForeignCurrencyAbstract" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_FinancingInForeignCurrency" xlink:label="ugp_FinancingInForeignCurrency" xlink:title="ugp_FinancingInForeignCurrency" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_LiabilitiesInForeignCurrencyAbstract" xlink:to="ugp_FinancingInForeignCurrency" xlink:title="Definition : ugp_LiabilitiesInForeignCurrencyAbstract to ugp_FinancingInForeignCurrency" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NetAssetsLiabilitiesPositionExposedToFloatingInterestRates" xlink:label="ugp_NetAssetsLiabilitiesPositionExposedToFloatingInterestRates" xlink:title="ugp_NetAssetsLiabilitiesPositionExposedToFloatingInterestRates" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_LiabilitiesInForeignCurrencyAbstract" xlink:to="ugp_NetAssetsLiabilitiesPositionExposedToFloatingInterestRates" xlink:title="Definition : ugp_LiabilitiesInForeignCurrencyAbstract to ugp_NetAssetsLiabilitiesPositionExposedToFloatingInterestRates" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PayablesArisingFromImports" xlink:label="ugp_PayablesArisingFromImports" xlink:title="ugp_PayablesArisingFromImports" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_LiabilitiesInForeignCurrencyAbstract" xlink:to="ugp_PayablesArisingFromImports" xlink:title="Definition : ugp_LiabilitiesInForeignCurrencyAbstract to ugp_PayablesArisingFromImports" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LiabilitiesExposureFromSubsidiariesHeldForSale" xlink:label="ugp_LiabilitiesExposureFromSubsidiariesHeldForSale" xlink:title="ugp_LiabilitiesExposureFromSubsidiariesHeldForSale" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_LiabilitiesInForeignCurrencyAbstract" xlink:to="ugp_LiabilitiesExposureFromSubsidiariesHeldForSale" xlink:title="Definition : ugp_LiabilitiesInForeignCurrencyAbstract to ugp_LiabilitiesExposureFromSubsidiariesHeldForSale" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LiabilitiesInForeignCurrency" xlink:label="ugp_LiabilitiesInForeignCurrency" xlink:title="ugp_LiabilitiesInForeignCurrency" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_LiabilitiesInForeignCurrencyAbstract" xlink:to="ugp_LiabilitiesInForeignCurrency" xlink:title="Definition : ugp_LiabilitiesInForeignCurrencyAbstract to ugp_LiabilitiesInForeignCurrency" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ForeignCurrencyHedgingInstruments" xlink:label="ugp_ForeignCurrencyHedgingInstruments" xlink:title="ugp_ForeignCurrencyHedgingInstruments" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AssetsInForeignCurrencyAbstract" xlink:to="ugp_ForeignCurrencyHedgingInstruments" xlink:title="Definition : ugp_AssetsInForeignCurrencyAbstract to ugp_ForeignCurrencyHedgingInstruments" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NetAssetLiabilityPositionTotal" xlink:label="ugp_NetAssetLiabilityPositionTotal" xlink:title="ugp_NetAssetLiabilityPositionTotal" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AssetsInForeignCurrencyAbstract" xlink:to="ugp_NetAssetLiabilityPositionTotal" xlink:title="Definition : ugp_AssetsInForeignCurrencyAbstract to ugp_NetAssetLiabilityPositionTotal" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NetAssetLiabilityPositionEffectStatementIncome" xlink:label="ugp_NetAssetLiabilityPositionEffectStatementIncome" xlink:title="ugp_NetAssetLiabilityPositionEffectStatementIncome" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AssetsInForeignCurrencyAbstract" xlink:to="ugp_NetAssetLiabilityPositionEffectStatementIncome" xlink:title="Definition : ugp_AssetsInForeignCurrencyAbstract to ugp_NetAssetLiabilityPositionEffectStatementIncome" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NetAssetLiabilityPositionShareholdersEffectEquity" xlink:label="ugp_NetAssetLiabilityPositionShareholdersEffectEquity" xlink:title="ugp_NetAssetLiabilityPositionShareholdersEffectEquity" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AssetsInForeignCurrencyAbstract" xlink:to="ugp_NetAssetLiabilityPositionShareholdersEffectEquity" xlink:title="Definition : ugp_AssetsInForeignCurrencyAbstract to ugp_NetAssetLiabilityPositionShareholdersEffectEquity" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:label="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:title="ifrs-full_DisclosureOfFinancialInstrumentsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfRisksAxis" xlink:label="ifrs-full_TypesOfRisksAxis" xlink:title="ifrs-full_TypesOfRisksAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="ifrs-full_TypesOfRisksAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsTable to ifrs-full_TypesOfRisksAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfRisksDomain" xlink:label="ifrs-full_TypesOfRisksDomain" xlink:title="ifrs-full_TypesOfRisksDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_TypesOfRisksAxis" xlink:to="ifrs-full_TypesOfRisksDomain" xlink:title="Definition : ifrs-full_TypesOfRisksAxis to ifrs-full_TypesOfRisksDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CurrencyRiskMember" xlink:label="ifrs-full_CurrencyRiskMember" xlink:title="ifrs-full_CurrencyRiskMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfRisksDomain" xlink:to="ifrs-full_CurrencyRiskMember" xlink:title="Definition : ifrs-full_TypesOfRisksDomain to ifrs-full_CurrencyRiskMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_InterestRateRiskMember" xlink:label="ifrs-full_InterestRateRiskMember" xlink:title="ifrs-full_InterestRateRiskMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfRisksDomain" xlink:to="ifrs-full_InterestRateRiskMember" xlink:title="Definition : ifrs-full_TypesOfRisksDomain to ifrs-full_InterestRateRiskMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfRisksDomain" xlink:label="ifrs-full_TypesOfRisksDomain_1" xlink:title="ifrs-full_TypesOfRisksDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_TypesOfRisksAxis" xlink:to="ifrs-full_TypesOfRisksDomain_1" xlink:title="Definition : ifrs-full_TypesOfRisksAxis to ifrs-full_TypesOfRisksDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/EquityBalanceOfOtherComprehensiveIncomeDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:label="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:title="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ReserveOfValuationAdjustments" xlink:label="ugp_ReserveOfValuationAdjustments" xlink:title="ugp_ReserveOfValuationAdjustments" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ugp_ReserveOfValuationAdjustments" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ugp_ReserveOfValuationAdjustments" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OtherComprehensiveIncomeBeforeTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome" xlink:label="ifrs-full_OtherComprehensiveIncomeBeforeTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome" xlink:title="ifrs-full_OtherComprehensiveIncomeBeforeTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ifrs-full_OtherComprehensiveIncomeBeforeTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ifrs-full_OtherComprehensiveIncomeBeforeTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IncomeTaxRelatingToFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome" xlink:label="ifrs-full_IncomeTaxRelatingToFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome" xlink:title="ifrs-full_IncomeTaxRelatingToFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ifrs-full_IncomeTaxRelatingToFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ifrs-full_IncomeTaxRelatingToFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans" xlink:label="ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans" xlink:title="ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome" xlink:label="ifrs-full_IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome" xlink:title="ifrs-full_IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ifrs-full_IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ifrs-full_IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationBeforeTax" xlink:label="ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationBeforeTax" xlink:title="ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationBeforeTax" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationBeforeTax" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationBeforeTax" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfClassesOfShareCapitalTable" xlink:label="ifrs-full_DisclosureOfClassesOfShareCapitalTable" xlink:title="ifrs-full_DisclosureOfClassesOfShareCapitalTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ifrs-full_DisclosureOfClassesOfShareCapitalTable" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ifrs-full_DisclosureOfClassesOfShareCapitalTable" xlink:type="arc" order="6" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ComponentsOfEquityAxis" xlink:label="ifrs-full_ComponentsOfEquityAxis" xlink:title="ifrs-full_ComponentsOfEquityAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalTable" xlink:to="ifrs-full_ComponentsOfEquityAxis" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalTable to ifrs-full_ComponentsOfEquityAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ComponentsOfEquityDomain" xlink:label="ifrs-full_ComponentsOfEquityDomain" xlink:title="ifrs-full_ComponentsOfEquityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ComponentsOfEquityAxis" xlink:to="ifrs-full_ComponentsOfEquityDomain" xlink:title="Definition : ifrs-full_ComponentsOfEquityAxis to ifrs-full_ComponentsOfEquityDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ValuationAdjustmentsMember" xlink:label="ugp_ValuationAdjustmentsMember" xlink:title="ugp_ValuationAdjustmentsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ComponentsOfEquityDomain" xlink:to="ugp_ValuationAdjustmentsMember" xlink:title="Definition : ifrs-full_ComponentsOfEquityDomain to ugp_ValuationAdjustmentsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ReserveOfCashFlowHedgesMember" xlink:label="ifrs-full_ReserveOfCashFlowHedgesMember" xlink:title="ifrs-full_ReserveOfCashFlowHedgesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_ValuationAdjustmentsMember" xlink:to="ifrs-full_ReserveOfCashFlowHedgesMember" xlink:title="Definition : ugp_ValuationAdjustmentsMember to ifrs-full_ReserveOfCashFlowHedgesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ReserveOfGainsAndLossesOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeMember" xlink:label="ifrs-full_ReserveOfGainsAndLossesOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeMember" xlink:title="ifrs-full_ReserveOfGainsAndLossesOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_ValuationAdjustmentsMember" xlink:to="ifrs-full_ReserveOfGainsAndLossesOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeMember" xlink:title="Definition : ugp_ValuationAdjustmentsMember to ifrs-full_ReserveOfGainsAndLossesOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ReserveOfRemeasurementsOfDefinedBenefitPlansMember" xlink:label="ifrs-full_ReserveOfRemeasurementsOfDefinedBenefitPlansMember" xlink:title="ifrs-full_ReserveOfRemeasurementsOfDefinedBenefitPlansMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_ValuationAdjustmentsMember" xlink:to="ifrs-full_ReserveOfRemeasurementsOfDefinedBenefitPlansMember" xlink:title="Definition : ugp_ValuationAdjustmentsMember to ifrs-full_ReserveOfRemeasurementsOfDefinedBenefitPlansMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NoncontrollingShareholdersInterestChangeMember" xlink:label="ugp_NoncontrollingShareholdersInterestChangeMember" xlink:title="ugp_NoncontrollingShareholdersInterestChangeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_ValuationAdjustmentsMember" xlink:to="ugp_NoncontrollingShareholdersInterestChangeMember" xlink:title="Definition : ugp_ValuationAdjustmentsMember to ugp_NoncontrollingShareholdersInterestChangeMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ReserveOfExchangeDifferencesOnTranslationMember" xlink:label="ifrs-full_ReserveOfExchangeDifferencesOnTranslationMember" xlink:title="ifrs-full_ReserveOfExchangeDifferencesOnTranslationMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_ValuationAdjustmentsMember" xlink:to="ifrs-full_ReserveOfExchangeDifferencesOnTranslationMember" xlink:title="Definition : ugp_ValuationAdjustmentsMember to ifrs-full_ReserveOfExchangeDifferencesOnTranslationMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OtherValuationAdjustmentsMember" xlink:label="ugp_OtherValuationAdjustmentsMember" xlink:title="ugp_OtherValuationAdjustmentsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_ValuationAdjustmentsMember" xlink:to="ugp_OtherValuationAdjustmentsMember" xlink:title="Definition : ugp_ValuationAdjustmentsMember to ugp_OtherValuationAdjustmentsMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ComponentsOfEquityDomain" xlink:label="ifrs-full_ComponentsOfEquityDomain_1" xlink:title="ifrs-full_ComponentsOfEquityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ComponentsOfEquityAxis" xlink:to="ifrs-full_ComponentsOfEquityDomain_1" xlink:title="Definition : ifrs-full_ComponentsOfEquityAxis to ifrs-full_ComponentsOfEquityDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/RecoverabletaxesAdditionalInformationDetail">
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems" xlink:label="ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems" xlink:title="ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ReceivablesFromTaxesOtherThanIncomeTax" xlink:label="ifrs-full_ReceivablesFromTaxesOtherThanIncomeTax" xlink:title="ifrs-full_ReceivablesFromTaxesOtherThanIncomeTax" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems" xlink:to="ifrs-full_ReceivablesFromTaxesOtherThanIncomeTax" xlink:title="Definition : ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems to ifrs-full_ReceivablesFromTaxesOtherThanIncomeTax" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_RealizationOfTaxCreditPeriod" xlink:label="ugp_RealizationOfTaxCreditPeriod" xlink:title="ugp_RealizationOfTaxCreditPeriod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems" xlink:to="ugp_RealizationOfTaxCreditPeriod" xlink:title="Definition : ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems to ugp_RealizationOfTaxCreditPeriod" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ProfitLossOnProvisionForTaxCivilAndLaborRisks" xlink:label="ugp_ProfitLossOnProvisionForTaxCivilAndLaborRisks" xlink:title="ugp_ProfitLossOnProvisionForTaxCivilAndLaborRisks" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems" xlink:to="ugp_ProfitLossOnProvisionForTaxCivilAndLaborRisks" xlink:title="Definition : ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems to ugp_ProfitLossOnProvisionForTaxCivilAndLaborRisks" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ReceivablesFromTaxesOtherThanIncomeTaxReclassifiedToAssetsHeldForSaleNetOfProvisionForImpairmentLosses" xlink:label="ugp_ReceivablesFromTaxesOtherThanIncomeTaxReclassifiedToAssetsHeldForSaleNetOfProvisionForImpairmentLosses" xlink:title="ugp_ReceivablesFromTaxesOtherThanIncomeTaxReclassifiedToAssetsHeldForSaleNetOfProvisionForImpairmentLosses" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems" xlink:to="ugp_ReceivablesFromTaxesOtherThanIncomeTaxReclassifiedToAssetsHeldForSaleNetOfProvisionForImpairmentLosses" xlink:title="Definition : ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems to ugp_ReceivablesFromTaxesOtherThanIncomeTaxReclassifiedToAssetsHeldForSaleNetOfProvisionForImpairmentLosses" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ReceivablesFromTaxesOtherThanIncomeTaxProvisionForImpairmentLosses" xlink:label="ugp_ReceivablesFromTaxesOtherThanIncomeTaxProvisionForImpairmentLosses" xlink:title="ugp_ReceivablesFromTaxesOtherThanIncomeTaxProvisionForImpairmentLosses" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems" xlink:to="ugp_ReceivablesFromTaxesOtherThanIncomeTaxProvisionForImpairmentLosses" xlink:title="Definition : ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems to ugp_ReceivablesFromTaxesOtherThanIncomeTaxProvisionForImpairmentLosses" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxCreditsReceivedForReceivablesFromTaxesOtherThanIncomeTax" xlink:label="ugp_TaxCreditsReceivedForReceivablesFromTaxesOtherThanIncomeTax" xlink:title="ugp_TaxCreditsReceivedForReceivablesFromTaxesOtherThanIncomeTax" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems" xlink:to="ugp_TaxCreditsReceivedForReceivablesFromTaxesOtherThanIncomeTax" xlink:title="Definition : ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems to ugp_TaxCreditsReceivedForReceivablesFromTaxesOtherThanIncomeTax" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ReceivablesFromTaxesOtherThanIncomeTaxPrincipalAmountReceived" xlink:label="ugp_ReceivablesFromTaxesOtherThanIncomeTaxPrincipalAmountReceived" xlink:title="ugp_ReceivablesFromTaxesOtherThanIncomeTaxPrincipalAmountReceived" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems" xlink:to="ugp_ReceivablesFromTaxesOtherThanIncomeTaxPrincipalAmountReceived" xlink:title="Definition : ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems to ugp_ReceivablesFromTaxesOtherThanIncomeTaxPrincipalAmountReceived" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ReceivablesFromTaxesOtherThanIncomeTaxMonetaryVariationAmountReceived" xlink:label="ugp_ReceivablesFromTaxesOtherThanIncomeTaxMonetaryVariationAmountReceived" xlink:title="ugp_ReceivablesFromTaxesOtherThanIncomeTaxMonetaryVariationAmountReceived" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems" xlink:to="ugp_ReceivablesFromTaxesOtherThanIncomeTaxMonetaryVariationAmountReceived" xlink:title="Definition : ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems to ugp_ReceivablesFromTaxesOtherThanIncomeTaxMonetaryVariationAmountReceived" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CurrentTaxAssets" xlink:label="ifrs-full_CurrentTaxAssets" xlink:title="ifrs-full_CurrentTaxAssets" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems" xlink:to="ifrs-full_CurrentTaxAssets" xlink:title="Definition : ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems to ifrs-full_CurrentTaxAssets" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CurrentTaxAssetsCurrent" xlink:label="ifrs-full_CurrentTaxAssetsCurrent" xlink:title="ifrs-full_CurrentTaxAssetsCurrent" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems" xlink:to="ifrs-full_CurrentTaxAssetsCurrent" xlink:title="Definition : ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems to ifrs-full_CurrentTaxAssetsCurrent" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CurrentTaxAssetsNoncurrent" xlink:label="ifrs-full_CurrentTaxAssetsNoncurrent" xlink:title="ifrs-full_CurrentTaxAssetsNoncurrent" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems" xlink:to="ifrs-full_CurrentTaxAssetsNoncurrent" xlink:title="Definition : ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems to ifrs-full_CurrentTaxAssetsNoncurrent" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesTable" xlink:label="ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesTable" xlink:title="ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems" xlink:to="ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesTable" xlink:title="Definition : ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems to ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesTable" xlink:type="arc" order="11" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesTable" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="Definition : ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesTable to ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SubsidiariesGroupOneMember" xlink:label="ugp_SubsidiariesGroupOneMember" xlink:title="ugp_SubsidiariesGroupOneMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_SubsidiariesGroupOneMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_SubsidiariesGroupOneMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SubsidiariesGroupTwoMember" xlink:label="ugp_SubsidiariesGroupTwoMember" xlink:title="ugp_SubsidiariesGroupTwoMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_SubsidiariesGroupTwoMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_SubsidiariesGroupTwoMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SubsidiariesGroupThreeMember" xlink:label="ugp_SubsidiariesGroupThreeMember" xlink:title="ugp_SubsidiariesGroupThreeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_SubsidiariesGroupThreeMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_SubsidiariesGroupThreeMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SubsidiariesGroupFourMember" xlink:label="ugp_SubsidiariesGroupFourMember" xlink:title="ugp_SubsidiariesGroupFourMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_SubsidiariesGroupFourMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_SubsidiariesGroupFourMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_BrazilianFederalRevenueServiceMember" xlink:label="ugp_BrazilianFederalRevenueServiceMember" xlink:title="ugp_BrazilianFederalRevenueServiceMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_BrazilianFederalRevenueServiceMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_BrazilianFederalRevenueServiceMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SubsidiariesMember" xlink:label="ifrs-full_SubsidiariesMember" xlink:title="ifrs-full_SubsidiariesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ifrs-full_SubsidiariesMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ifrs-full_SubsidiariesMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SubsidiariesGroupFiveMember" xlink:label="ugp_SubsidiariesGroupFiveMember" xlink:title="ugp_SubsidiariesGroupFiveMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_SubsidiariesGroupFiveMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_SubsidiariesGroupFiveMember" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IpirangaMember" xlink:label="ugp_IpirangaMember" xlink:title="ugp_IpirangaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_IpirangaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_IpirangaMember" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxesAxis" xlink:label="ugp_TaxesAxis" xlink:title="ugp_TaxesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesTable" xlink:to="ugp_TaxesAxis" xlink:title="Definition : ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesTable to ugp_TaxesAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxesDomain" xlink:label="ugp_TaxesDomain" xlink:title="ugp_TaxesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_TaxesAxis" xlink:to="ugp_TaxesDomain" xlink:title="Definition : ugp_TaxesAxis to ugp_TaxesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IrpjAndCsll1Member" xlink:label="ugp_IrpjAndCsll1Member" xlink:title="ugp_IrpjAndCsll1Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_TaxesDomain" xlink:to="ugp_IrpjAndCsll1Member" xlink:title="Definition : ugp_TaxesDomain to ugp_IrpjAndCsll1Member" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ICMSStatevatMember" xlink:label="ugp_ICMSStatevatMember" xlink:title="ugp_ICMSStatevatMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_TaxesDomain" xlink:to="ugp_ICMSStatevatMember" xlink:title="Definition : ugp_TaxesDomain to ugp_ICMSStatevatMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PisAndCofinsStateVATMember" xlink:label="ugp_PisAndCofinsStateVATMember" xlink:title="ugp_PisAndCofinsStateVATMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_TaxesDomain" xlink:to="ugp_PisAndCofinsStateVATMember" xlink:title="Definition : ugp_TaxesDomain to ugp_PisAndCofinsStateVATMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IrpjandcsllMember" xlink:label="ugp_IrpjandcsllMember" xlink:title="ugp_IrpjandcsllMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_TaxesDomain" xlink:to="ugp_IrpjandcsllMember" xlink:title="Definition : ugp_TaxesDomain to ugp_IrpjandcsllMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxesDomain" xlink:label="ugp_TaxesDomain_1" xlink:title="ugp_TaxesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_TaxesAxis" xlink:to="ugp_TaxesDomain_1" xlink:title="Definition : ugp_TaxesAxis to ugp_TaxesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeAxis" xlink:label="ifrs-full_RangeAxis" xlink:title="ifrs-full_RangeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesTable" xlink:to="ifrs-full_RangeAxis" xlink:title="Definition : ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesTable to ifrs-full_RangeAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeDomain" xlink:label="ifrs-full_RangeDomain" xlink:title="ifrs-full_RangeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_RangeAxis" xlink:to="ifrs-full_RangeDomain" xlink:title="Definition : ifrs-full_RangeAxis to ifrs-full_RangeDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TopOfRangeMember" xlink:label="ifrs-full_TopOfRangeMember" xlink:title="ifrs-full_TopOfRangeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RangeDomain" xlink:to="ifrs-full_TopOfRangeMember" xlink:title="Definition : ifrs-full_RangeDomain to ifrs-full_TopOfRangeMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeDomain" xlink:label="ifrs-full_RangeDomain_1" xlink:title="ifrs-full_RangeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_RangeAxis" xlink:to="ifrs-full_RangeDomain_1" xlink:title="Definition : ifrs-full_RangeAxis to ifrs-full_RangeDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/RisksAndFinancialInstrumentsValueOfGainsLossesRecognizedDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:label="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:title="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_GainsLossesOnHedgingInstrument" xlink:label="ifrs-full_GainsLossesOnHedgingInstrument" xlink:title="ifrs-full_GainsLossesOnHedgingInstrument" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_GainsLossesOnHedgingInstrument" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_GainsLossesOnHedgingInstrument" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:label="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:title="ifrs-full_DisclosureOfFinancialInstrumentsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:type="arc" use="optional" order="1" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_HedgingInstrumentsAxis" xlink:label="ifrs-full_HedgingInstrumentsAxis" xlink:title="ifrs-full_HedgingInstrumentsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="ifrs-full_HedgingInstrumentsAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsTable to ifrs-full_HedgingInstrumentsAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_HedgingInstrumentsDomain" xlink:label="ifrs-full_HedgingInstrumentsDomain" xlink:title="ifrs-full_HedgingInstrumentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_HedgingInstrumentsAxis" xlink:to="ifrs-full_HedgingInstrumentsDomain" xlink:title="Definition : ifrs-full_HedgingInstrumentsAxis to ifrs-full_HedgingInstrumentsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ProfitOrLossMember" xlink:label="ugp_ProfitOrLossMember" xlink:title="ugp_ProfitOrLossMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_HedgingInstrumentsDomain" xlink:to="ugp_ProfitOrLossMember" xlink:title="Definition : ifrs-full_HedgingInstrumentsDomain to ugp_ProfitOrLossMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_HedgingInstrumentEquityMember" xlink:label="ugp_HedgingInstrumentEquityMember" xlink:title="ugp_HedgingInstrumentEquityMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_HedgingInstrumentsDomain" xlink:to="ugp_HedgingInstrumentEquityMember" xlink:title="Definition : ifrs-full_HedgingInstrumentsDomain to ugp_HedgingInstrumentEquityMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_HedgingInstrumentsDomain" xlink:label="ifrs-full_HedgingInstrumentsDomain_1" xlink:title="ifrs-full_HedgingInstrumentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_HedgingInstrumentsAxis" xlink:to="ifrs-full_HedgingInstrumentsDomain_1" xlink:title="Definition : ifrs-full_HedgingInstrumentsAxis to ifrs-full_HedgingInstrumentsDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_HedgingInstrumentRatesAxis" xlink:label="ugp_HedgingInstrumentRatesAxis" xlink:title="ugp_HedgingInstrumentRatesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="ugp_HedgingInstrumentRatesAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsTable to ugp_HedgingInstrumentRatesAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_HedgingInstrumentRatesDomain" xlink:label="ugp_HedgingInstrumentRatesDomain" xlink:title="ugp_HedgingInstrumentRatesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_HedgingInstrumentRatesAxis" xlink:to="ugp_HedgingInstrumentRatesDomain" xlink:title="Definition : ugp_HedgingInstrumentRatesAxis to ugp_HedgingInstrumentRatesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ExchangeRateSwapReceivableInUSDollarsAndCommoditiesMember" xlink:label="ugp_ExchangeRateSwapReceivableInUSDollarsAndCommoditiesMember" xlink:title="ugp_ExchangeRateSwapReceivableInUSDollarsAndCommoditiesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_HedgingInstrumentRatesDomain" xlink:to="ugp_ExchangeRateSwapReceivableInUSDollarsAndCommoditiesMember" xlink:title="Definition : ugp_HedgingInstrumentRatesDomain to ugp_ExchangeRateSwapReceivableInUSDollarsAndCommoditiesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ExchangeRateDerivatesPayableInUSDollarsMember" xlink:label="ugp_ExchangeRateDerivatesPayableInUSDollarsMember" xlink:title="ugp_ExchangeRateDerivatesPayableInUSDollarsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_HedgingInstrumentRatesDomain" xlink:to="ugp_ExchangeRateDerivatesPayableInUSDollarsMember" xlink:title="Definition : ugp_HedgingInstrumentRatesDomain to ugp_ExchangeRateDerivatesPayableInUSDollarsMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_InterestRateSwapsBrlMember" xlink:label="ugp_InterestRateSwapsBrlMember" xlink:title="ugp_InterestRateSwapsBrlMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_HedgingInstrumentRatesDomain" xlink:to="ugp_InterestRateSwapsBrlMember" xlink:title="Definition : ugp_HedgingInstrumentRatesDomain to ugp_InterestRateSwapsBrlMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NonDerivativeFinancialInstrumentsMember" xlink:label="ugp_NonDerivativeFinancialInstrumentsMember" xlink:title="ugp_NonDerivativeFinancialInstrumentsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_HedgingInstrumentRatesDomain" xlink:to="ugp_NonDerivativeFinancialInstrumentsMember" xlink:title="Definition : ugp_HedgingInstrumentRatesDomain to ugp_NonDerivativeFinancialInstrumentsMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_HedgingInstrumentRatesDomain" xlink:label="ugp_HedgingInstrumentRatesDomain_1" xlink:title="ugp_HedgingInstrumentRatesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_HedgingInstrumentRatesAxis" xlink:to="ugp_HedgingInstrumentRatesDomain_1" xlink:title="Definition : ugp_HedgingInstrumentRatesAxis to ugp_HedgingInstrumentRatesDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/RisksAndFinancialInstrumentsContractualUndiscountedCashOutflowsParentheticalDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:label="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:title="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DiRate" xlink:label="ugp_DiRate" xlink:title="ugp_DiRate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_DiRate" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_DiRate" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AverageForeignExchangeRate" xlink:label="ifrs-full_AverageForeignExchangeRate" xlink:title="ifrs-full_AverageForeignExchangeRate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_AverageForeignExchangeRate" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_AverageForeignExchangeRate" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TJLPRate" xlink:label="ugp_TJLPRate" xlink:title="ugp_TJLPRate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_TJLPRate" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_TJLPRate" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IPCARate" xlink:label="ugp_IPCARate" xlink:title="ugp_IPCARate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_IPCARate" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_IPCARate" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:label="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:title="ifrs-full_DisclosureOfFinancialInstrumentsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:type="arc" use="optional" order="4" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MaturityAxis" xlink:label="ifrs-full_MaturityAxis" xlink:title="ifrs-full_MaturityAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="ifrs-full_MaturityAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsTable to ifrs-full_MaturityAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="ifrs-full_MaturityDomain" xlink:title="ifrs-full_MaturityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_MaturityAxis" xlink:to="ifrs-full_MaturityDomain" xlink:title="Definition : ifrs-full_MaturityAxis to ifrs-full_MaturityDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TwentyTwentyOneMember" xlink:label="ugp_TwentyTwentyOneMember" xlink:title="ugp_TwentyTwentyOneMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ugp_TwentyTwentyOneMember" xlink:title="Definition : ifrs-full_MaturityDomain to ugp_TwentyTwentyOneMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TwentyTwentyTwoMember" xlink:label="ugp_TwentyTwentyTwoMember" xlink:title="ugp_TwentyTwentyTwoMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ugp_TwentyTwentyTwoMember" xlink:title="Definition : ifrs-full_MaturityDomain to ugp_TwentyTwentyTwoMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TwentyTwentyThreeMember" xlink:label="ugp_TwentyTwentyThreeMember" xlink:title="ugp_TwentyTwentyThreeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ugp_TwentyTwentyThreeMember" xlink:title="Definition : ifrs-full_MaturityDomain to ugp_TwentyTwentyThreeMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TwentyTwentyFourMember" xlink:label="ugp_TwentyTwentyFourMember" xlink:title="ugp_TwentyTwentyFourMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ugp_TwentyTwentyFourMember" xlink:title="Definition : ifrs-full_MaturityDomain to ugp_TwentyTwentyFourMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TwentyTwentyFiveMember" xlink:label="ugp_TwentyTwentyFiveMember" xlink:title="ugp_TwentyTwentyFiveMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ugp_TwentyTwentyFiveMember" xlink:title="Definition : ifrs-full_MaturityDomain to ugp_TwentyTwentyFiveMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="ifrs-full_MaturityDomain_1" xlink:title="ifrs-full_MaturityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_MaturityAxis" xlink:to="ifrs-full_MaturityDomain_1" xlink:title="Definition : ifrs-full_MaturityAxis to ifrs-full_MaturityDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/EventsafterthereportingperiodAdditionalInformationDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" xlink:label="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" xlink:title="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NotionalAmount" xlink:label="ifrs-full_NotionalAmount" xlink:title="ifrs-full_NotionalAmount" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" xlink:to="ifrs-full_NotionalAmount" xlink:title="Definition : ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems to ifrs-full_NotionalAmount" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PrepaymentOfTradeRelatedDebt" xlink:label="ugp_PrepaymentOfTradeRelatedDebt" xlink:title="ugp_PrepaymentOfTradeRelatedDebt" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" xlink:to="ugp_PrepaymentOfTradeRelatedDebt" xlink:title="Definition : ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems to ugp_PrepaymentOfTradeRelatedDebt" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LoanIndexCurrency" xlink:label="ugp_LoanIndexCurrency" xlink:title="ugp_LoanIndexCurrency" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" xlink:to="ugp_LoanIndexCurrency" xlink:title="Definition : ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems to ugp_LoanIndexCurrency" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsInterestRate" xlink:label="ifrs-full_BorrowingsInterestRate" xlink:title="ifrs-full_BorrowingsInterestRate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" xlink:to="ifrs-full_BorrowingsInterestRate" xlink:title="Definition : ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems to ifrs-full_BorrowingsInterestRate" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsMaturity" xlink:label="ifrs-full_BorrowingsMaturity" xlink:title="ifrs-full_BorrowingsMaturity" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" xlink:to="ifrs-full_BorrowingsMaturity" xlink:title="Definition : ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems to ifrs-full_BorrowingsMaturity" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsAdjustmentToInterestRateBasis" xlink:label="ifrs-full_BorrowingsAdjustmentToInterestRateBasis" xlink:title="ifrs-full_BorrowingsAdjustmentToInterestRateBasis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" xlink:to="ifrs-full_BorrowingsAdjustmentToInterestRateBasis" xlink:title="Definition : ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems to ifrs-full_BorrowingsAdjustmentToInterestRateBasis" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsInterestRateBasis" xlink:label="ifrs-full_BorrowingsInterestRateBasis" xlink:title="ifrs-full_BorrowingsInterestRateBasis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" xlink:to="ifrs-full_BorrowingsInterestRateBasis" xlink:title="Definition : ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems to ifrs-full_BorrowingsInterestRateBasis" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NumberOfSharesIssuedAndFullyPaid" xlink:label="ifrs-full_NumberOfSharesIssuedAndFullyPaid" xlink:title="ifrs-full_NumberOfSharesIssuedAndFullyPaid" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" xlink:to="ifrs-full_NumberOfSharesIssuedAndFullyPaid" xlink:title="Definition : ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems to ifrs-full_NumberOfSharesIssuedAndFullyPaid" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ParValuePerShare" xlink:label="ifrs-full_ParValuePerShare" xlink:title="ifrs-full_ParValuePerShare" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" xlink:to="ifrs-full_ParValuePerShare" xlink:title="Definition : ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems to ifrs-full_ParValuePerShare" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProportionOfOwnershipInterestInAssociate" xlink:label="ifrs-full_ProportionOfOwnershipInterestInAssociate" xlink:title="ifrs-full_ProportionOfOwnershipInterestInAssociate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" xlink:to="ifrs-full_ProportionOfOwnershipInterestInAssociate" xlink:title="Definition : ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems to ifrs-full_ProportionOfOwnershipInterestInAssociate" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_FinalSubsequentInstallmentReceivedFromDisposalGroupTransaction" xlink:label="ugp_FinalSubsequentInstallmentReceivedFromDisposalGroupTransaction" xlink:title="ugp_FinalSubsequentInstallmentReceivedFromDisposalGroupTransaction" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" xlink:to="ugp_FinalSubsequentInstallmentReceivedFromDisposalGroupTransaction" xlink:title="Definition : ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems to ugp_FinalSubsequentInstallmentReceivedFromDisposalGroupTransaction" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IncreaseDecreaseThroughTransferToStatutoryReserve" xlink:label="ifrs-full_IncreaseDecreaseThroughTransferToStatutoryReserve" xlink:title="ifrs-full_IncreaseDecreaseThroughTransferToStatutoryReserve" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" xlink:to="ifrs-full_IncreaseDecreaseThroughTransferToStatutoryReserve" xlink:title="Definition : ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems to ifrs-full_IncreaseDecreaseThroughTransferToStatutoryReserve" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable" xlink:label="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable" xlink:title="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" xlink:to="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable" xlink:title="Definition : ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems to ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable" xlink:type="arc" order="12" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodAxis" xlink:label="ifrs-full_NonadjustingEventsAfterReportingPeriodAxis" xlink:title="ifrs-full_NonadjustingEventsAfterReportingPeriodAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable" xlink:to="ifrs-full_NonadjustingEventsAfterReportingPeriodAxis" xlink:title="Definition : ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable to ifrs-full_NonadjustingEventsAfterReportingPeriodAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xlink:label="ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xlink:title="ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_NonadjustingEventsAfterReportingPeriodAxis" xlink:to="ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xlink:title="Definition : ifrs-full_NonadjustingEventsAfterReportingPeriodAxis to ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_MajorBorrowingsMember" xlink:label="ugp_MajorBorrowingsMember" xlink:title="ugp_MajorBorrowingsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xlink:to="ugp_MajorBorrowingsMember" xlink:title="Definition : ifrs-full_NonadjustingEventsAfterReportingPeriodDomain to ugp_MajorBorrowingsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MajorBusinessCombinationMember" xlink:label="ifrs-full_MajorBusinessCombinationMember" xlink:title="ifrs-full_MajorBusinessCombinationMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xlink:to="ifrs-full_MajorBusinessCombinationMember" xlink:title="Definition : ifrs-full_NonadjustingEventsAfterReportingPeriodDomain to ifrs-full_MajorBusinessCombinationMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MajorOrdinaryShareTransactionsMember" xlink:label="ifrs-full_MajorOrdinaryShareTransactionsMember" xlink:title="ifrs-full_MajorOrdinaryShareTransactionsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xlink:to="ifrs-full_MajorOrdinaryShareTransactionsMember" xlink:title="Definition : ifrs-full_NonadjustingEventsAfterReportingPeriodDomain to ifrs-full_MajorOrdinaryShareTransactionsMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_MajorTransactionsFromDiscontinuedOperationsMember" xlink:label="ugp_MajorTransactionsFromDiscontinuedOperationsMember" xlink:title="ugp_MajorTransactionsFromDiscontinuedOperationsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xlink:to="ugp_MajorTransactionsFromDiscontinuedOperationsMember" xlink:title="Definition : ifrs-full_NonadjustingEventsAfterReportingPeriodDomain to ugp_MajorTransactionsFromDiscontinuedOperationsMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xlink:label="ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_1" xlink:title="ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_NonadjustingEventsAfterReportingPeriodAxis" xlink:to="ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_1" xlink:title="Definition : ifrs-full_NonadjustingEventsAfterReportingPeriodAxis to ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="Definition : ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable to ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IpirangaProdutosdePetroleoSAMember" xlink:label="ugp_IpirangaProdutosdePetroleoSAMember" xlink:title="ugp_IpirangaProdutosdePetroleoSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_IpirangaProdutosdePetroleoSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_IpirangaProdutosdePetroleoSAMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltracargoLogisticaSAMember" xlink:label="ugp_UltracargoLogisticaSAMember" xlink:title="ugp_UltracargoLogisticaSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltracargoLogisticaSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltracargoLogisticaSAMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OxitenoIndustriaComercioMember" xlink:label="ugp_OxitenoIndustriaComercioMember" xlink:title="ugp_OxitenoIndustriaComercioMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_OxitenoIndustriaComercioMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_OxitenoIndustriaComercioMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CiaUltragazMember" xlink:label="ugp_CiaUltragazMember" xlink:title="ugp_CiaUltragazMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_CiaUltragazMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_CiaUltragazMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsByNameAxis" xlink:label="ifrs-full_BorrowingsByNameAxis" xlink:title="ifrs-full_BorrowingsByNameAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable" xlink:to="ifrs-full_BorrowingsByNameAxis" xlink:title="Definition : ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable to ifrs-full_BorrowingsByNameAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsByNameDomain" xlink:label="ifrs-full_BorrowingsByNameDomain" xlink:title="ifrs-full_BorrowingsByNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_BorrowingsByNameAxis" xlink:to="ifrs-full_BorrowingsByNameDomain" xlink:title="Definition : ifrs-full_BorrowingsByNameAxis to ifrs-full_BorrowingsByNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ForeignLoansMember" xlink:label="ugp_ForeignLoansMember" xlink:title="ugp_ForeignLoansMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BorrowingsByNameDomain" xlink:to="ugp_ForeignLoansMember" xlink:title="Definition : ifrs-full_BorrowingsByNameDomain to ugp_ForeignLoansMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_BankCreditBillWithoutFinancialCovenantsMember" xlink:label="ugp_BankCreditBillWithoutFinancialCovenantsMember" xlink:title="ugp_BankCreditBillWithoutFinancialCovenantsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BorrowingsByNameDomain" xlink:to="ugp_BankCreditBillWithoutFinancialCovenantsMember" xlink:title="Definition : ifrs-full_BorrowingsByNameDomain to ugp_BankCreditBillWithoutFinancialCovenantsMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NortheastRegionConstitutionalFundMember" xlink:label="ugp_NortheastRegionConstitutionalFundMember" xlink:title="ugp_NortheastRegionConstitutionalFundMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BorrowingsByNameDomain" xlink:to="ugp_NortheastRegionConstitutionalFundMember" xlink:title="Definition : ifrs-full_BorrowingsByNameDomain to ugp_NortheastRegionConstitutionalFundMember" xlink:type="arc" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebenturesFourthIssueMember" xlink:label="ugp_DebenturesFourthIssueMember" xlink:title="ugp_DebenturesFourthIssueMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BorrowingsByNameDomain" xlink:to="ugp_DebenturesFourthIssueMember" xlink:title="Definition : ifrs-full_BorrowingsByNameDomain to ugp_DebenturesFourthIssueMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsByNameDomain" xlink:label="ifrs-full_BorrowingsByNameDomain_1" xlink:title="ifrs-full_BorrowingsByNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_BorrowingsByNameAxis" xlink:to="ifrs-full_BorrowingsByNameDomain_1" xlink:title="Definition : ifrs-full_BorrowingsByNameAxis to ifrs-full_BorrowingsByNameDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BusinessCombinationsAxis" xlink:label="ifrs-full_BusinessCombinationsAxis" xlink:title="ifrs-full_BusinessCombinationsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable" xlink:to="ifrs-full_BusinessCombinationsAxis" xlink:title="Definition : ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable to ifrs-full_BusinessCombinationsAxis" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BusinessCombinationsDomain" xlink:label="ifrs-full_BusinessCombinationsDomain" xlink:title="ifrs-full_BusinessCombinationsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_BusinessCombinationsAxis" xlink:to="ifrs-full_BusinessCombinationsDomain" xlink:title="Definition : ifrs-full_BusinessCombinationsAxis to ifrs-full_BusinessCombinationsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_HidroviasDoBrasilMember" xlink:label="ugp_HidroviasDoBrasilMember" xlink:title="ugp_HidroviasDoBrasilMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_HidroviasDoBrasilMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_HidroviasDoBrasilMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BusinessCombinationsDomain" xlink:label="ifrs-full_BusinessCombinationsDomain_1" xlink:title="ifrs-full_BusinessCombinationsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_BusinessCombinationsAxis" xlink:to="ifrs-full_BusinessCombinationsDomain_1" xlink:title="Definition : ifrs-full_BusinessCombinationsAxis to ifrs-full_BusinessCombinationsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:label="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:title="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable" xlink:to="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:title="Definition : ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable to ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ContinuingOperationsMember" xlink:label="ifrs-full_ContinuingOperationsMember" xlink:title="ifrs-full_ContinuingOperationsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:to="ifrs-full_ContinuingOperationsMember" xlink:title="Definition : ifrs-full_ContinuingAndDiscontinuedOperationsAxis to ifrs-full_ContinuingOperationsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DiscontinuedOperationsMember" xlink:label="ifrs-full_DiscontinuedOperationsMember" xlink:title="ifrs-full_DiscontinuedOperationsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ContinuingOperationsMember" xlink:to="ifrs-full_DiscontinuedOperationsMember" xlink:title="Definition : ifrs-full_ContinuingOperationsMember to ifrs-full_DiscontinuedOperationsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ContinuingOperationsMember" xlink:label="ifrs-full_ContinuingOperationsMember_1" xlink:title="ifrs-full_ContinuingOperationsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:to="ifrs-full_ContinuingOperationsMember_1" xlink:title="Definition : ifrs-full_ContinuingAndDiscontinuedOperationsAxis to ifrs-full_ContinuingOperationsMember" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_CounterpartyNameAxis" xlink:label="srt_CounterpartyNameAxis" xlink:title="srt_CounterpartyNameAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable" xlink:to="srt_CounterpartyNameAxis" xlink:title="Definition : ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable to srt_CounterpartyNameAxis" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="srt_RepurchaseAgreementCounterpartyNameDomain" xlink:title="srt_RepurchaseAgreementCounterpartyNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_CounterpartyNameAxis" xlink:to="srt_RepurchaseAgreementCounterpartyNameDomain" xlink:title="Definition : srt_CounterpartyNameAxis to srt_RepurchaseAgreementCounterpartyNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IndoramaVenturesPlcMember" xlink:label="ugp_IndoramaVenturesPlcMember" xlink:title="ugp_IndoramaVenturesPlcMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_RepurchaseAgreementCounterpartyNameDomain" xlink:to="ugp_IndoramaVenturesPlcMember" xlink:title="Definition : srt_RepurchaseAgreementCounterpartyNameDomain to ugp_IndoramaVenturesPlcMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="srt_RepurchaseAgreementCounterpartyNameDomain_1" xlink:title="srt_RepurchaseAgreementCounterpartyNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_CounterpartyNameAxis" xlink:to="srt_RepurchaseAgreementCounterpartyNameDomain_1" xlink:title="Definition : srt_CounterpartyNameAxis to srt_RepurchaseAgreementCounterpartyNameDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_HedgingInstrumentsAxis" xlink:label="ifrs-full_HedgingInstrumentsAxis" xlink:title="ifrs-full_HedgingInstrumentsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable" xlink:to="ifrs-full_HedgingInstrumentsAxis" xlink:title="Definition : ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable to ifrs-full_HedgingInstrumentsAxis" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_HedgingInstrumentsDomain" xlink:label="ifrs-full_HedgingInstrumentsDomain" xlink:title="ifrs-full_HedgingInstrumentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_HedgingInstrumentsAxis" xlink:to="ifrs-full_HedgingInstrumentsDomain" xlink:title="Definition : ifrs-full_HedgingInstrumentsAxis to ifrs-full_HedgingInstrumentsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_BrazilianRealPerUSDollarMember" xlink:label="ugp_BrazilianRealPerUSDollarMember" xlink:title="ugp_BrazilianRealPerUSDollarMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_HedgingInstrumentsDomain" xlink:to="ugp_BrazilianRealPerUSDollarMember" xlink:title="Definition : ifrs-full_HedgingInstrumentsDomain to ugp_BrazilianRealPerUSDollarMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_HedgingInstrumentsDomain" xlink:label="ifrs-full_HedgingInstrumentsDomain_1" xlink:title="ifrs-full_HedgingInstrumentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_HedgingInstrumentsAxis" xlink:to="ifrs-full_HedgingInstrumentsDomain_1" xlink:title="Definition : ifrs-full_HedgingInstrumentsAxis to ifrs-full_HedgingInstrumentsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/DiscontinuedoperationsDetails3Textuals2">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems" xlink:label="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems" xlink:title="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AggregateSalePriceOfSubsidiary" xlink:label="ugp_AggregateSalePriceOfSubsidiary" xlink:title="ugp_AggregateSalePriceOfSubsidiary" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems" xlink:to="ugp_AggregateSalePriceOfSubsidiary" xlink:title="Definition : ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems to ugp_AggregateSalePriceOfSubsidiary" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ExercisePeriodOfPreemptiveRight" xlink:label="ugp_ExercisePeriodOfPreemptiveRight" xlink:title="ugp_ExercisePeriodOfPreemptiveRight" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems" xlink:to="ugp_ExercisePeriodOfPreemptiveRight" xlink:title="Definition : ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems to ugp_ExercisePeriodOfPreemptiveRight" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfShareholdersExercisedPreemptiveRight" xlink:label="ugp_NumberOfShareholdersExercisedPreemptiveRight" xlink:title="ugp_NumberOfShareholdersExercisedPreemptiveRight" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems" xlink:to="ugp_NumberOfShareholdersExercisedPreemptiveRight" xlink:title="Definition : ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems to ugp_NumberOfShareholdersExercisedPreemptiveRight" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsTable" xlink:label="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsTable" xlink:title="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems" xlink:to="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsTable" xlink:title="Definition : ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems to ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsTable" xlink:type="arc" use="optional" order="3" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:label="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:title="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsTable" xlink:to="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:title="Definition : ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsTable to ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ContinuingOperationsMember" xlink:label="ifrs-full_ContinuingOperationsMember" xlink:title="ifrs-full_ContinuingOperationsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:to="ifrs-full_ContinuingOperationsMember" xlink:title="Definition : ifrs-full_ContinuingAndDiscontinuedOperationsAxis to ifrs-full_ContinuingOperationsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DiscontinuedOperationsMember" xlink:label="ifrs-full_DiscontinuedOperationsMember" xlink:title="ifrs-full_DiscontinuedOperationsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ContinuingOperationsMember" xlink:to="ifrs-full_DiscontinuedOperationsMember" xlink:title="Definition : ifrs-full_ContinuingOperationsMember to ifrs-full_DiscontinuedOperationsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ContinuingOperationsMember" xlink:label="ifrs-full_ContinuingOperationsMember_1" xlink:title="ifrs-full_ContinuingOperationsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:to="ifrs-full_ContinuingOperationsMember_1" xlink:title="Definition : ifrs-full_ContinuingAndDiscontinuedOperationsAxis to ifrs-full_ContinuingOperationsMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_CounterpartyNameAxis" xlink:label="srt_CounterpartyNameAxis" xlink:title="srt_CounterpartyNameAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsTable" xlink:to="srt_CounterpartyNameAxis" xlink:title="Definition : ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsTable to srt_CounterpartyNameAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="srt_RepurchaseAgreementCounterpartyNameDomain" xlink:title="srt_RepurchaseAgreementCounterpartyNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_CounterpartyNameAxis" xlink:to="srt_RepurchaseAgreementCounterpartyNameDomain" xlink:title="Definition : srt_CounterpartyNameAxis to srt_RepurchaseAgreementCounterpartyNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IndoramaVenturesPlcMember" xlink:label="ugp_IndoramaVenturesPlcMember" xlink:title="ugp_IndoramaVenturesPlcMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_RepurchaseAgreementCounterpartyNameDomain" xlink:to="ugp_IndoramaVenturesPlcMember" xlink:title="Definition : srt_RepurchaseAgreementCounterpartyNameDomain to ugp_IndoramaVenturesPlcMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="srt_RepurchaseAgreementCounterpartyNameDomain_1" xlink:title="srt_RepurchaseAgreementCounterpartyNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_CounterpartyNameAxis" xlink:to="srt_RepurchaseAgreementCounterpartyNameDomain_1" xlink:title="Definition : srt_CounterpartyNameAxis to srt_RepurchaseAgreementCounterpartyNameDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsTable" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="Definition : ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsTable to ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OxitenoIndustriaComercioMember" xlink:label="ugp_OxitenoIndustriaComercioMember" xlink:title="ugp_OxitenoIndustriaComercioMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_OxitenoIndustriaComercioMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_OxitenoIndustriaComercioMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/DiscontinuedoperationsDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems" xlink:label="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems" xlink:title="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_Revenue" xlink:label="ifrs-full_Revenue" xlink:title="ifrs-full_Revenue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems" xlink:to="ifrs-full_Revenue" xlink:title="Definition : ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems to ifrs-full_Revenue" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CostOfSales" xlink:label="ifrs-full_CostOfSales" xlink:title="ifrs-full_CostOfSales" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems" xlink:to="ifrs-full_CostOfSales" xlink:title="Definition : ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems to ifrs-full_CostOfSales" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_GrossProfit" xlink:label="ifrs-full_GrossProfit" xlink:title="ifrs-full_GrossProfit" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems" xlink:to="ifrs-full_GrossProfit" xlink:title="Definition : ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems to ifrs-full_GrossProfit" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SalesAndMarketingExpense" xlink:label="ifrs-full_SalesAndMarketingExpense" xlink:title="ifrs-full_SalesAndMarketingExpense" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems" xlink:to="ifrs-full_SalesAndMarketingExpense" xlink:title="Definition : ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems to ifrs-full_SalesAndMarketingExpense" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OtherOperatingIncomeExpense" xlink:label="ifrs-full_OtherOperatingIncomeExpense" xlink:title="ifrs-full_OtherOperatingIncomeExpense" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems" xlink:to="ifrs-full_OtherOperatingIncomeExpense" xlink:title="Definition : ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems to ifrs-full_OtherOperatingIncomeExpense" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OperatingIncomeBeforeFinancialIncomeExpensesAndShareOfProfitLossOfJointVenturesAndAssociates" xlink:label="ugp_OperatingIncomeBeforeFinancialIncomeExpensesAndShareOfProfitLossOfJointVenturesAndAssociates" xlink:title="ugp_OperatingIncomeBeforeFinancialIncomeExpensesAndShareOfProfitLossOfJointVenturesAndAssociates" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems" xlink:to="ugp_OperatingIncomeBeforeFinancialIncomeExpensesAndShareOfProfitLossOfJointVenturesAndAssociates" xlink:title="Definition : ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems to ugp_OperatingIncomeBeforeFinancialIncomeExpensesAndShareOfProfitLossOfJointVenturesAndAssociates" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ShareOfProfitLossOfAssociatesAccountedForUsingEquityMethod" xlink:label="ifrs-full_ShareOfProfitLossOfAssociatesAccountedForUsingEquityMethod" xlink:title="ifrs-full_ShareOfProfitLossOfAssociatesAccountedForUsingEquityMethod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems" xlink:to="ifrs-full_ShareOfProfitLossOfAssociatesAccountedForUsingEquityMethod" xlink:title="Definition : ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems to ifrs-full_ShareOfProfitLossOfAssociatesAccountedForUsingEquityMethod" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OperatingIncomeBeforeFinancialIncomeExpensesAndIncomeAndSocialContributionTaxes" xlink:label="ugp_OperatingIncomeBeforeFinancialIncomeExpensesAndIncomeAndSocialContributionTaxes" xlink:title="ugp_OperatingIncomeBeforeFinancialIncomeExpensesAndIncomeAndSocialContributionTaxes" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems" xlink:to="ugp_OperatingIncomeBeforeFinancialIncomeExpensesAndIncomeAndSocialContributionTaxes" xlink:title="Definition : ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems to ugp_OperatingIncomeBeforeFinancialIncomeExpensesAndIncomeAndSocialContributionTaxes" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_FinanceIncomeCost" xlink:label="ifrs-full_FinanceIncomeCost" xlink:title="ifrs-full_FinanceIncomeCost" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems" xlink:to="ifrs-full_FinanceIncomeCost" xlink:title="Definition : ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems to ifrs-full_FinanceIncomeCost" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProfitLossBeforeTax" xlink:label="ifrs-full_ProfitLossBeforeTax" xlink:title="ifrs-full_ProfitLossBeforeTax" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems" xlink:to="ifrs-full_ProfitLossBeforeTax" xlink:title="Definition : ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems to ifrs-full_ProfitLossBeforeTax" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TaxExpenseRelatingToProfitLossFromOrdinaryActivitiesOfDiscontinuedOperations" xlink:label="ifrs-full_TaxExpenseRelatingToProfitLossFromOrdinaryActivitiesOfDiscontinuedOperations" xlink:title="ifrs-full_TaxExpenseRelatingToProfitLossFromOrdinaryActivitiesOfDiscontinuedOperations" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems" xlink:to="ifrs-full_TaxExpenseRelatingToProfitLossFromOrdinaryActivitiesOfDiscontinuedOperations" xlink:title="Definition : ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems to ifrs-full_TaxExpenseRelatingToProfitLossFromOrdinaryActivitiesOfDiscontinuedOperations" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CessationOfDepreciationOnDisposalOfInvestments" xlink:label="ugp_CessationOfDepreciationOnDisposalOfInvestments" xlink:title="ugp_CessationOfDepreciationOnDisposalOfInvestments" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems" xlink:to="ugp_CessationOfDepreciationOnDisposalOfInvestments" xlink:title="Definition : ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems to ugp_CessationOfDepreciationOnDisposalOfInvestments" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProfitLossFromDiscontinuedOperations" xlink:label="ifrs-full_ProfitLossFromDiscontinuedOperations" xlink:title="ifrs-full_ProfitLossFromDiscontinuedOperations" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems" xlink:to="ifrs-full_ProfitLossFromDiscontinuedOperations" xlink:title="Definition : ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems to ifrs-full_ProfitLossFromDiscontinuedOperations" xlink:type="arc" use="optional" order="12" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DepreciationAmortisationAndImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss" xlink:label="ifrs-full_DepreciationAmortisationAndImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss" xlink:title="ifrs-full_DepreciationAmortisationAndImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems" xlink:to="ifrs-full_DepreciationAmortisationAndImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss" xlink:title="Definition : ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems to ifrs-full_DepreciationAmortisationAndImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss" xlink:type="arc" use="optional" order="13" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CashFlowsFromUsedInOperatingActivitiesDiscontinuedOperations" xlink:label="ifrs-full_CashFlowsFromUsedInOperatingActivitiesDiscontinuedOperations" xlink:title="ifrs-full_CashFlowsFromUsedInOperatingActivitiesDiscontinuedOperations" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems" xlink:to="ifrs-full_CashFlowsFromUsedInOperatingActivitiesDiscontinuedOperations" xlink:title="Definition : ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems to ifrs-full_CashFlowsFromUsedInOperatingActivitiesDiscontinuedOperations" xlink:type="arc" use="optional" order="14" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CashFlowsFromUsedInInvestingActivitiesDiscontinuedOperations" xlink:label="ifrs-full_CashFlowsFromUsedInInvestingActivitiesDiscontinuedOperations" xlink:title="ifrs-full_CashFlowsFromUsedInInvestingActivitiesDiscontinuedOperations" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems" xlink:to="ifrs-full_CashFlowsFromUsedInInvestingActivitiesDiscontinuedOperations" xlink:title="Definition : ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems to ifrs-full_CashFlowsFromUsedInInvestingActivitiesDiscontinuedOperations" xlink:type="arc" use="optional" order="15" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CashFlowsFromUsedInFinancingActivitiesDiscontinuedOperations" xlink:label="ifrs-full_CashFlowsFromUsedInFinancingActivitiesDiscontinuedOperations" xlink:title="ifrs-full_CashFlowsFromUsedInFinancingActivitiesDiscontinuedOperations" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems" xlink:to="ifrs-full_CashFlowsFromUsedInFinancingActivitiesDiscontinuedOperations" xlink:title="Definition : ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems to ifrs-full_CashFlowsFromUsedInFinancingActivitiesDiscontinuedOperations" xlink:type="arc" use="optional" order="16" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_EffectOfExchangeRateChangesOnCashAndCashEquivalentsDiscontinuedOperations" xlink:label="ugp_EffectOfExchangeRateChangesOnCashAndCashEquivalentsDiscontinuedOperations" xlink:title="ugp_EffectOfExchangeRateChangesOnCashAndCashEquivalentsDiscontinuedOperations" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems" xlink:to="ugp_EffectOfExchangeRateChangesOnCashAndCashEquivalentsDiscontinuedOperations" xlink:title="Definition : ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems to ugp_EffectOfExchangeRateChangesOnCashAndCashEquivalentsDiscontinuedOperations" xlink:type="arc" use="optional" order="17" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreaseDecreaseInCashAndCashEquivalentsIncludingEffectOfExchangeRateChangesOnCashAndCashEquivalentsDiscontinuedOperations" xlink:label="ugp_IncreaseDecreaseInCashAndCashEquivalentsIncludingEffectOfExchangeRateChangesOnCashAndCashEquivalentsDiscontinuedOperations" xlink:title="ugp_IncreaseDecreaseInCashAndCashEquivalentsIncludingEffectOfExchangeRateChangesOnCashAndCashEquivalentsDiscontinuedOperations" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems" xlink:to="ugp_IncreaseDecreaseInCashAndCashEquivalentsIncludingEffectOfExchangeRateChangesOnCashAndCashEquivalentsDiscontinuedOperations" xlink:title="Definition : ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems to ugp_IncreaseDecreaseInCashAndCashEquivalentsIncludingEffectOfExchangeRateChangesOnCashAndCashEquivalentsDiscontinuedOperations" xlink:type="arc" use="optional" order="18" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsTable" xlink:label="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsTable" xlink:title="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems" xlink:to="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsTable" xlink:title="Definition : ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems to ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsTable" xlink:type="arc" order="19" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:label="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:title="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsTable" xlink:to="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:title="Definition : ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsTable to ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ContinuingOperationsMember" xlink:label="ifrs-full_ContinuingOperationsMember" xlink:title="ifrs-full_ContinuingOperationsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:to="ifrs-full_ContinuingOperationsMember" xlink:title="Definition : ifrs-full_ContinuingAndDiscontinuedOperationsAxis to ifrs-full_ContinuingOperationsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DiscontinuedOperationsMember" xlink:label="ifrs-full_DiscontinuedOperationsMember" xlink:title="ifrs-full_DiscontinuedOperationsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ContinuingOperationsMember" xlink:to="ifrs-full_DiscontinuedOperationsMember" xlink:title="Definition : ifrs-full_ContinuingOperationsMember to ifrs-full_DiscontinuedOperationsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ContinuingOperationsMember" xlink:label="ifrs-full_ContinuingOperationsMember_1" xlink:title="ifrs-full_ContinuingOperationsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:to="ifrs-full_ContinuingOperationsMember_1" xlink:title="Definition : ifrs-full_ContinuingAndDiscontinuedOperationsAxis to ifrs-full_ContinuingOperationsMember" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SegmentConsolidationItemsAxis" xlink:label="ifrs-full_SegmentConsolidationItemsAxis" xlink:title="ifrs-full_SegmentConsolidationItemsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsTable" xlink:to="ifrs-full_SegmentConsolidationItemsAxis" xlink:title="Definition : ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsTable to ifrs-full_SegmentConsolidationItemsAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SegmentConsolidationItemsDomain" xlink:label="ifrs-full_SegmentConsolidationItemsDomain" xlink:title="ifrs-full_SegmentConsolidationItemsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SegmentConsolidationItemsAxis" xlink:to="ifrs-full_SegmentConsolidationItemsDomain" xlink:title="Definition : ifrs-full_SegmentConsolidationItemsAxis to ifrs-full_SegmentConsolidationItemsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_EliminationOfIntersegmentAmountsMember" xlink:label="ifrs-full_EliminationOfIntersegmentAmountsMember" xlink:title="ifrs-full_EliminationOfIntersegmentAmountsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SegmentConsolidationItemsDomain" xlink:to="ifrs-full_EliminationOfIntersegmentAmountsMember" xlink:title="Definition : ifrs-full_SegmentConsolidationItemsDomain to ifrs-full_EliminationOfIntersegmentAmountsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SegmentConsolidationItemsDomain" xlink:label="ifrs-full_SegmentConsolidationItemsDomain_1" xlink:title="ifrs-full_SegmentConsolidationItemsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SegmentConsolidationItemsAxis" xlink:to="ifrs-full_SegmentConsolidationItemsDomain_1" xlink:title="Definition : ifrs-full_SegmentConsolidationItemsAxis to ifrs-full_SegmentConsolidationItemsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsTable" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="Definition : ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsTable to ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OxitenoIndustriaComercioMember" xlink:label="ugp_OxitenoIndustriaComercioMember" xlink:title="ugp_OxitenoIndustriaComercioMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_OxitenoIndustriaComercioMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_OxitenoIndustriaComercioMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ExtrafarmaMember" xlink:label="ugp_ExtrafarmaMember" xlink:title="ugp_ExtrafarmaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_ExtrafarmaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_ExtrafarmaMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltraparMember" xlink:label="ugp_UltraparMember" xlink:title="ugp_UltraparMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltraparMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltraparMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/AcquisitionofInterestandControlScheduleoftheprovisionalbalancesofassetsacquiredandliabilitiesassumedontheacquisitiondateDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:label="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:title="ifrs-full_DisclosureOfBusinessCombinationsLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAbstract" xlink:label="ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAbstract" xlink:title="ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAbstract" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAbstract" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAbstract" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CashAndCashEquivalentsRecognisedAsOfAcquisitionDate" xlink:label="ifrs-full_CashAndCashEquivalentsRecognisedAsOfAcquisitionDate" xlink:title="ifrs-full_CashAndCashEquivalentsRecognisedAsOfAcquisitionDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAbstract" xlink:to="ifrs-full_CashAndCashEquivalentsRecognisedAsOfAcquisitionDate" xlink:title="Definition : ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAbstract to ifrs-full_CashAndCashEquivalentsRecognisedAsOfAcquisitionDate" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_FairValueOfAcquiredReceivables" xlink:label="ifrs-full_FairValueOfAcquiredReceivables" xlink:title="ifrs-full_FairValueOfAcquiredReceivables" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAbstract" xlink:to="ifrs-full_FairValueOfAcquiredReceivables" xlink:title="Definition : ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAbstract to ifrs-full_FairValueOfAcquiredReceivables" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_InventoryRecognisedAsOfAcquisitionDate" xlink:label="ifrs-full_InventoryRecognisedAsOfAcquisitionDate" xlink:title="ifrs-full_InventoryRecognisedAsOfAcquisitionDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAbstract" xlink:to="ifrs-full_InventoryRecognisedAsOfAcquisitionDate" xlink:title="Definition : ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAbstract to ifrs-full_InventoryRecognisedAsOfAcquisitionDate" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxAssetsRecognisedAsOfAcquisitionDate" xlink:label="ugp_TaxAssetsRecognisedAsOfAcquisitionDate" xlink:title="ugp_TaxAssetsRecognisedAsOfAcquisitionDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAbstract" xlink:to="ugp_TaxAssetsRecognisedAsOfAcquisitionDate" xlink:title="Definition : ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAbstract to ugp_TaxAssetsRecognisedAsOfAcquisitionDate" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PrepaidExpensesRecognisedAsOfAcquisitionDate" xlink:label="ugp_PrepaidExpensesRecognisedAsOfAcquisitionDate" xlink:title="ugp_PrepaidExpensesRecognisedAsOfAcquisitionDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAbstract" xlink:to="ugp_PrepaidExpensesRecognisedAsOfAcquisitionDate" xlink:title="Definition : ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAbstract to ugp_PrepaidExpensesRecognisedAsOfAcquisitionDate" xlink:type="arc" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_JudicialDepositsRecognisedAsOfAcquisitionDate" xlink:label="ugp_JudicialDepositsRecognisedAsOfAcquisitionDate" xlink:title="ugp_JudicialDepositsRecognisedAsOfAcquisitionDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAbstract" xlink:to="ugp_JudicialDepositsRecognisedAsOfAcquisitionDate" xlink:title="Definition : ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAbstract to ugp_JudicialDepositsRecognisedAsOfAcquisitionDate" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OtherReceivablesRecognisedAsOfAcquisitionDate" xlink:label="ugp_OtherReceivablesRecognisedAsOfAcquisitionDate" xlink:title="ugp_OtherReceivablesRecognisedAsOfAcquisitionDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAbstract" xlink:to="ugp_OtherReceivablesRecognisedAsOfAcquisitionDate" xlink:title="Definition : ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAbstract to ugp_OtherReceivablesRecognisedAsOfAcquisitionDate" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OtherReceivablesAndOtherAssetsRecognisedAsOfAcquisitionDate" xlink:label="ugp_OtherReceivablesAndOtherAssetsRecognisedAsOfAcquisitionDate" xlink:title="ugp_OtherReceivablesAndOtherAssetsRecognisedAsOfAcquisitionDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAbstract" xlink:to="ugp_OtherReceivablesAndOtherAssetsRecognisedAsOfAcquisitionDate" xlink:title="Definition : ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAbstract to ugp_OtherReceivablesAndOtherAssetsRecognisedAsOfAcquisitionDate" xlink:type="arc" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OtherInvestmentsRecognisedAsOfAcquisitionDate" xlink:label="ugp_OtherInvestmentsRecognisedAsOfAcquisitionDate" xlink:title="ugp_OtherInvestmentsRecognisedAsOfAcquisitionDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAbstract" xlink:to="ugp_OtherInvestmentsRecognisedAsOfAcquisitionDate" xlink:title="Definition : ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAbstract to ugp_OtherInvestmentsRecognisedAsOfAcquisitionDate" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_RightOfUseAssetsNetRecognisedAsOfAcquisitionDate" xlink:label="ugp_RightOfUseAssetsNetRecognisedAsOfAcquisitionDate" xlink:title="ugp_RightOfUseAssetsNetRecognisedAsOfAcquisitionDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAbstract" xlink:to="ugp_RightOfUseAssetsNetRecognisedAsOfAcquisitionDate" xlink:title="Definition : ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAbstract to ugp_RightOfUseAssetsNetRecognisedAsOfAcquisitionDate" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PropertyPlantAndEquipmentRecognisedAsOfAcquisitionDate" xlink:label="ifrs-full_PropertyPlantAndEquipmentRecognisedAsOfAcquisitionDate" xlink:title="ifrs-full_PropertyPlantAndEquipmentRecognisedAsOfAcquisitionDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAbstract" xlink:to="ifrs-full_PropertyPlantAndEquipmentRecognisedAsOfAcquisitionDate" xlink:title="Definition : ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAbstract to ifrs-full_PropertyPlantAndEquipmentRecognisedAsOfAcquisitionDate" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IdentifiableIntangibleAssetsRecognisedAsOfAcquisitionDate" xlink:label="ifrs-full_IdentifiableIntangibleAssetsRecognisedAsOfAcquisitionDate" xlink:title="ifrs-full_IdentifiableIntangibleAssetsRecognisedAsOfAcquisitionDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAbstract" xlink:to="ifrs-full_IdentifiableIntangibleAssetsRecognisedAsOfAcquisitionDate" xlink:title="Definition : ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAbstract to ifrs-full_IdentifiableIntangibleAssetsRecognisedAsOfAcquisitionDate" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DerivativeInstrumentsRecognisedAsOfAcquisitionDate" xlink:label="ugp_DerivativeInstrumentsRecognisedAsOfAcquisitionDate" xlink:title="ugp_DerivativeInstrumentsRecognisedAsOfAcquisitionDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAbstract" xlink:to="ugp_DerivativeInstrumentsRecognisedAsOfAcquisitionDate" xlink:title="Definition : ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAbstract to ugp_DerivativeInstrumentsRecognisedAsOfAcquisitionDate" xlink:type="arc" order="12" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfLiabilitiesAssumedAbstract" xlink:label="ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfLiabilitiesAssumedAbstract" xlink:title="ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfLiabilitiesAssumedAbstract" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfLiabilitiesAssumedAbstract" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfLiabilitiesAssumedAbstract" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsRecognisedAsOfAcquisitionDate" xlink:label="ifrs-full_BorrowingsRecognisedAsOfAcquisitionDate" xlink:title="ifrs-full_BorrowingsRecognisedAsOfAcquisitionDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfLiabilitiesAssumedAbstract" xlink:to="ifrs-full_BorrowingsRecognisedAsOfAcquisitionDate" xlink:title="Definition : ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfLiabilitiesAssumedAbstract to ifrs-full_BorrowingsRecognisedAsOfAcquisitionDate" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TradeAndOtherPayablesRecognisedAsOfAcquisitionDate" xlink:label="ifrs-full_TradeAndOtherPayablesRecognisedAsOfAcquisitionDate" xlink:title="ifrs-full_TradeAndOtherPayablesRecognisedAsOfAcquisitionDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfLiabilitiesAssumedAbstract" xlink:to="ifrs-full_TradeAndOtherPayablesRecognisedAsOfAcquisitionDate" xlink:title="Definition : ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfLiabilitiesAssumedAbstract to ifrs-full_TradeAndOtherPayablesRecognisedAsOfAcquisitionDate" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_EmployeeBenefitLiabilitiesRecognisedAsOfAcquisitionDate" xlink:label="ugp_EmployeeBenefitLiabilitiesRecognisedAsOfAcquisitionDate" xlink:title="ugp_EmployeeBenefitLiabilitiesRecognisedAsOfAcquisitionDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfLiabilitiesAssumedAbstract" xlink:to="ugp_EmployeeBenefitLiabilitiesRecognisedAsOfAcquisitionDate" xlink:title="Definition : ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfLiabilitiesAssumedAbstract to ugp_EmployeeBenefitLiabilitiesRecognisedAsOfAcquisitionDate" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxLiabilitiesRecognisedAsOfAcquisitionDate" xlink:label="ugp_TaxLiabilitiesRecognisedAsOfAcquisitionDate" xlink:title="ugp_TaxLiabilitiesRecognisedAsOfAcquisitionDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfLiabilitiesAssumedAbstract" xlink:to="ugp_TaxLiabilitiesRecognisedAsOfAcquisitionDate" xlink:title="Definition : ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfLiabilitiesAssumedAbstract to ugp_TaxLiabilitiesRecognisedAsOfAcquisitionDate" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ContingentLiabilitiesRecognisedAsOfAcquisitionDate" xlink:label="ifrs-full_ContingentLiabilitiesRecognisedAsOfAcquisitionDate" xlink:title="ifrs-full_ContingentLiabilitiesRecognisedAsOfAcquisitionDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfLiabilitiesAssumedAbstract" xlink:to="ifrs-full_ContingentLiabilitiesRecognisedAsOfAcquisitionDate" xlink:title="Definition : ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfLiabilitiesAssumedAbstract to ifrs-full_ContingentLiabilitiesRecognisedAsOfAcquisitionDate" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LeasesPayableRecognisedAsOfAcquisitionDate" xlink:label="ugp_LeasesPayableRecognisedAsOfAcquisitionDate" xlink:title="ugp_LeasesPayableRecognisedAsOfAcquisitionDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfLiabilitiesAssumedAbstract" xlink:to="ugp_LeasesPayableRecognisedAsOfAcquisitionDate" xlink:title="Definition : ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfLiabilitiesAssumedAbstract to ugp_LeasesPayableRecognisedAsOfAcquisitionDate" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OtherPayablesRecognisedAsOfAcquisitionDate" xlink:label="ugp_OtherPayablesRecognisedAsOfAcquisitionDate" xlink:title="ugp_OtherPayablesRecognisedAsOfAcquisitionDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfLiabilitiesAssumedAbstract" xlink:to="ugp_OtherPayablesRecognisedAsOfAcquisitionDate" xlink:title="Definition : ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfLiabilitiesAssumedAbstract to ugp_OtherPayablesRecognisedAsOfAcquisitionDate" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_FairValueOfAssetsAndLiabilitiesAccordingToSubsidiariesInterestRecognisedAsOfAcquisitionDate" xlink:label="ugp_FairValueOfAssetsAndLiabilitiesAccordingToSubsidiariesInterestRecognisedAsOfAcquisitionDate" xlink:title="ugp_FairValueOfAssetsAndLiabilitiesAccordingToSubsidiariesInterestRecognisedAsOfAcquisitionDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfLiabilitiesAssumedAbstract" xlink:to="ugp_FairValueOfAssetsAndLiabilitiesAccordingToSubsidiariesInterestRecognisedAsOfAcquisitionDate" xlink:title="Definition : ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfLiabilitiesAssumedAbstract to ugp_FairValueOfAssetsAndLiabilitiesAccordingToSubsidiariesInterestRecognisedAsOfAcquisitionDate" xlink:type="arc" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_GoodwillRecognisedAsOfAcquisitionDate" xlink:label="ifrs-full_GoodwillRecognisedAsOfAcquisitionDate" xlink:title="ifrs-full_GoodwillRecognisedAsOfAcquisitionDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfLiabilitiesAssumedAbstract" xlink:to="ifrs-full_GoodwillRecognisedAsOfAcquisitionDate" xlink:title="Definition : ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfLiabilitiesAssumedAbstract to ifrs-full_GoodwillRecognisedAsOfAcquisitionDate" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NoncontrollingInterestInAcquireeRecognisedAtAcquisitionDate" xlink:label="ifrs-full_NoncontrollingInterestInAcquireeRecognisedAtAcquisitionDate" xlink:title="ifrs-full_NoncontrollingInterestInAcquireeRecognisedAtAcquisitionDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfLiabilitiesAssumedAbstract" xlink:to="ifrs-full_NoncontrollingInterestInAcquireeRecognisedAtAcquisitionDate" xlink:title="Definition : ugp_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfLiabilitiesAssumedAbstract to ifrs-full_NoncontrollingInterestInAcquireeRecognisedAtAcquisitionDate" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_FairValueOfInvesteesAssetsAndLiabilitiesRecognisedAsOfAcquisitionDate" xlink:label="ugp_FairValueOfInvesteesAssetsAndLiabilitiesRecognisedAsOfAcquisitionDate" xlink:title="ugp_FairValueOfInvesteesAssetsAndLiabilitiesRecognisedAsOfAcquisitionDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ugp_FairValueOfInvesteesAssetsAndLiabilitiesRecognisedAsOfAcquisitionDate" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ugp_FairValueOfInvesteesAssetsAndLiabilitiesRecognisedAsOfAcquisitionDate" xlink:type="arc" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NetAssetsRecognisedAsOfAcquisitionDate" xlink:label="ugp_NetAssetsRecognisedAsOfAcquisitionDate" xlink:title="ugp_NetAssetsRecognisedAsOfAcquisitionDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ugp_NetAssetsRecognisedAsOfAcquisitionDate" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ugp_NetAssetsRecognisedAsOfAcquisitionDate" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NetLiabilitiesRecognisedAsOfAcquisitionDate" xlink:label="ugp_NetLiabilitiesRecognisedAsOfAcquisitionDate" xlink:title="ugp_NetLiabilitiesRecognisedAsOfAcquisitionDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ugp_NetLiabilitiesRecognisedAsOfAcquisitionDate" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ugp_NetLiabilitiesRecognisedAsOfAcquisitionDate" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IdentifiableAssetsAcquiredLiabilitiesAssumed" xlink:label="ifrs-full_IdentifiableAssetsAcquiredLiabilitiesAssumed" xlink:title="ifrs-full_IdentifiableAssetsAcquiredLiabilitiesAssumed" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ifrs-full_IdentifiableAssetsAcquiredLiabilitiesAssumed" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ifrs-full_IdentifiableAssetsAcquiredLiabilitiesAssumed" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AdditionalDisclosuresForAmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAndLiabilitiesAssumedAbstract" xlink:label="ifrs-full_AdditionalDisclosuresForAmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAndLiabilitiesAssumedAbstract" xlink:title="ifrs-full_AdditionalDisclosuresForAmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAndLiabilitiesAssumedAbstract" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ifrs-full_AdditionalDisclosuresForAmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAndLiabilitiesAssumedAbstract" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ifrs-full_AdditionalDisclosuresForAmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAndLiabilitiesAssumedAbstract" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CashTransferred" xlink:label="ifrs-full_CashTransferred" xlink:title="ifrs-full_CashTransferred" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_AdditionalDisclosuresForAmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAndLiabilitiesAssumedAbstract" xlink:to="ifrs-full_CashTransferred" xlink:title="Definition : ifrs-full_AdditionalDisclosuresForAmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAndLiabilitiesAssumedAbstract to ifrs-full_CashTransferred" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NoncontrollingInterestsOfAcquirer" xlink:label="ugp_NoncontrollingInterestsOfAcquirer" xlink:title="ugp_NoncontrollingInterestsOfAcquirer" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_AdditionalDisclosuresForAmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAndLiabilitiesAssumedAbstract" xlink:to="ugp_NoncontrollingInterestsOfAcquirer" xlink:title="Definition : ifrs-full_AdditionalDisclosuresForAmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAndLiabilitiesAssumedAbstract to ugp_NoncontrollingInterestsOfAcquirer" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ContingentConsiderationRecognisedAsOfAcquisitionDate" xlink:label="ifrs-full_ContingentConsiderationRecognisedAsOfAcquisitionDate" xlink:title="ifrs-full_ContingentConsiderationRecognisedAsOfAcquisitionDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_AdditionalDisclosuresForAmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAndLiabilitiesAssumedAbstract" xlink:to="ifrs-full_ContingentConsiderationRecognisedAsOfAcquisitionDate" xlink:title="Definition : ifrs-full_AdditionalDisclosuresForAmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAndLiabilitiesAssumedAbstract to ifrs-full_ContingentConsiderationRecognisedAsOfAcquisitionDate" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AcquisitiondateFairValueOfTotalConsiderationTransferred" xlink:label="ifrs-full_AcquisitiondateFairValueOfTotalConsiderationTransferred" xlink:title="ifrs-full_AcquisitiondateFairValueOfTotalConsiderationTransferred" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_AdditionalDisclosuresForAmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAndLiabilitiesAssumedAbstract" xlink:to="ifrs-full_AcquisitiondateFairValueOfTotalConsiderationTransferred" xlink:title="Definition : ifrs-full_AdditionalDisclosuresForAmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAndLiabilitiesAssumedAbstract to ifrs-full_AcquisitiondateFairValueOfTotalConsiderationTransferred" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PaymentToAcquireBusinessesNetOfCashAcquiredAbstract" xlink:label="ugp_PaymentToAcquireBusinessesNetOfCashAcquiredAbstract" xlink:title="ugp_PaymentToAcquireBusinessesNetOfCashAcquiredAbstract" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ugp_PaymentToAcquireBusinessesNetOfCashAcquiredAbstract" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ugp_PaymentToAcquireBusinessesNetOfCashAcquiredAbstract" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PortionOfInitialConsiderationPaidConsistingOfCashAndCashEquivalents" xlink:label="ugp_PortionOfInitialConsiderationPaidConsistingOfCashAndCashEquivalents" xlink:title="ugp_PortionOfInitialConsiderationPaidConsistingOfCashAndCashEquivalents" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_PaymentToAcquireBusinessesNetOfCashAcquiredAbstract" xlink:to="ugp_PortionOfInitialConsiderationPaidConsistingOfCashAndCashEquivalents" xlink:title="Definition : ugp_PaymentToAcquireBusinessesNetOfCashAcquiredAbstract to ugp_PortionOfInitialConsiderationPaidConsistingOfCashAndCashEquivalents" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PortionOfSubsequentConsiderationPaidConsistingOfCashAndCashEquivalents" xlink:label="ugp_PortionOfSubsequentConsiderationPaidConsistingOfCashAndCashEquivalents" xlink:title="ugp_PortionOfSubsequentConsiderationPaidConsistingOfCashAndCashEquivalents" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_PaymentToAcquireBusinessesNetOfCashAcquiredAbstract" xlink:to="ugp_PortionOfSubsequentConsiderationPaidConsistingOfCashAndCashEquivalents" xlink:title="Definition : ugp_PaymentToAcquireBusinessesNetOfCashAcquiredAbstract to ugp_PortionOfSubsequentConsiderationPaidConsistingOfCashAndCashEquivalents" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PortionOfConsiderationPaidReceivedConsistingOfCashAndCashEquivalents" xlink:label="ifrs-full_PortionOfConsiderationPaidReceivedConsistingOfCashAndCashEquivalents" xlink:title="ifrs-full_PortionOfConsiderationPaidReceivedConsistingOfCashAndCashEquivalents" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_PaymentToAcquireBusinessesNetOfCashAcquiredAbstract" xlink:to="ifrs-full_PortionOfConsiderationPaidReceivedConsistingOfCashAndCashEquivalents" xlink:title="Definition : ugp_PaymentToAcquireBusinessesNetOfCashAcquiredAbstract to ifrs-full_PortionOfConsiderationPaidReceivedConsistingOfCashAndCashEquivalents" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CashAndCashEquivalentsInSubsidiaryOrBusinessesAcquiredOrDisposed2013" xlink:label="ifrs-full_CashAndCashEquivalentsInSubsidiaryOrBusinessesAcquiredOrDisposed2013" xlink:title="ifrs-full_CashAndCashEquivalentsInSubsidiaryOrBusinessesAcquiredOrDisposed2013" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_PaymentToAcquireBusinessesNetOfCashAcquiredAbstract" xlink:to="ifrs-full_CashAndCashEquivalentsInSubsidiaryOrBusinessesAcquiredOrDisposed2013" xlink:title="Definition : ugp_PaymentToAcquireBusinessesNetOfCashAcquiredAbstract to ifrs-full_CashAndCashEquivalentsInSubsidiaryOrBusinessesAcquiredOrDisposed2013" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities" xlink:label="ifrs-full_CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities" xlink:title="ifrs-full_CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_PaymentToAcquireBusinessesNetOfCashAcquiredAbstract" xlink:to="ifrs-full_CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities" xlink:title="Definition : ugp_PaymentToAcquireBusinessesNetOfCashAcquiredAbstract to ifrs-full_CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:label="ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:title="ifrs-full_DisclosureOfBusinessCombinationsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:type="arc" order="8" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsTable to ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltragazComercialLtdaMember" xlink:label="ugp_UltragazComercialLtdaMember" xlink:title="ugp_UltragazComercialLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltragazComercialLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltragazComercialLtdaMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CompanhiaUltragazMember" xlink:label="ugp_CompanhiaUltragazMember" xlink:title="ugp_CompanhiaUltragazMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_CompanhiaUltragazMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_CompanhiaUltragazMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltracargoLogisticaSAMember" xlink:label="ugp_UltracargoLogisticaSAMember" xlink:title="ugp_UltracargoLogisticaSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltracargoLogisticaSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltracargoLogisticaSAMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CiaUltragazMember" xlink:label="ugp_CiaUltragazMember" xlink:title="ugp_CiaUltragazMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_CiaUltragazMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_CiaUltragazMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltraparMobilidadeLtdaMember" xlink:label="ugp_UltraparMobilidadeLtdaMember" xlink:title="ugp_UltraparMobilidadeLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltraparMobilidadeLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltraparMobilidadeLtdaMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltraparEmpreendimentosLtdaMember" xlink:label="ugp_UltraparEmpreendimentosLtdaMember" xlink:title="ugp_UltraparEmpreendimentosLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltraparEmpreendimentosLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltraparEmpreendimentosLtdaMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BusinessCombinationsAxis" xlink:label="ifrs-full_BusinessCombinationsAxis" xlink:title="ifrs-full_BusinessCombinationsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:to="ifrs-full_BusinessCombinationsAxis" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsTable to ifrs-full_BusinessCombinationsAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BusinessCombinationsDomain" xlink:label="ifrs-full_BusinessCombinationsDomain" xlink:title="ifrs-full_BusinessCombinationsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_BusinessCombinationsAxis" xlink:to="ifrs-full_BusinessCombinationsDomain" xlink:title="Definition : ifrs-full_BusinessCombinationsAxis to ifrs-full_BusinessCombinationsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_StellaGroupMember" xlink:label="ugp_StellaGroupMember" xlink:title="ugp_StellaGroupMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_StellaGroupMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_StellaGroupMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NeogasGroupMember" xlink:label="ugp_NeogasGroupMember" xlink:title="ugp_NeogasGroupMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_NeogasGroupMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_NeogasGroupMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OplaGroupMember" xlink:label="ugp_OplaGroupMember" xlink:title="ugp_OplaGroupMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_OplaGroupMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_OplaGroupMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SerraDieselGroupMember" xlink:label="ugp_SerraDieselGroupMember" xlink:title="ugp_SerraDieselGroupMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_SerraDieselGroupMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_SerraDieselGroupMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_WtzParticipacoesSAMember" xlink:label="ugp_WtzParticipacoesSAMember" xlink:title="ugp_WtzParticipacoesSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_WtzParticipacoesSAMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_WtzParticipacoesSAMember" xlink:type="arc" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BusinessCombinationsDomain" xlink:label="ifrs-full_BusinessCombinationsDomain_1" xlink:title="ifrs-full_BusinessCombinationsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_BusinessCombinationsAxis" xlink:to="ifrs-full_BusinessCombinationsDomain_1" xlink:title="Definition : ifrs-full_BusinessCombinationsAxis to ifrs-full_BusinessCombinationsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/CommitmentsAdditionalInformationDetail">
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DisclosureOfCommitmentsAndContingenciesLineItems" xlink:label="ugp_DisclosureOfCommitmentsAndContingenciesLineItems" xlink:title="ugp_DisclosureOfCommitmentsAndContingenciesLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CargoRatesPerTon" xlink:label="ugp_CargoRatesPerTon" xlink:title="ugp_CargoRatesPerTon" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfCommitmentsAndContingenciesLineItems" xlink:to="ugp_CargoRatesPerTon" xlink:title="Definition : ugp_DisclosureOfCommitmentsAndContingenciesLineItems to ugp_CargoRatesPerTon" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfPortConcessions" xlink:label="ugp_NumberOfPortConcessions" xlink:title="ugp_NumberOfPortConcessions" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfCommitmentsAndContingenciesLineItems" xlink:to="ugp_NumberOfPortConcessions" xlink:title="Definition : ugp_DisclosureOfCommitmentsAndContingenciesLineItems to ugp_NumberOfPortConcessions" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PercentageOfConsortiumOwned" xlink:label="ugp_PercentageOfConsortiumOwned" xlink:title="ugp_PercentageOfConsortiumOwned" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfCommitmentsAndContingenciesLineItems" xlink:to="ugp_PercentageOfConsortiumOwned" xlink:title="Definition : ugp_DisclosureOfCommitmentsAndContingenciesLineItems to ugp_PercentageOfConsortiumOwned" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_MinimumPortStorageCapacity" xlink:label="ugp_MinimumPortStorageCapacity" xlink:title="ugp_MinimumPortStorageCapacity" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfCommitmentsAndContingenciesLineItems" xlink:to="ugp_MinimumPortStorageCapacity" xlink:title="Definition : ugp_DisclosureOfCommitmentsAndContingenciesLineItems to ugp_MinimumPortStorageCapacity" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PeriodOfConcession" xlink:label="ugp_PeriodOfConcession" xlink:title="ugp_PeriodOfConcession" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfCommitmentsAndContingenciesLineItems" xlink:to="ugp_PeriodOfConcession" xlink:title="Definition : ugp_DisclosureOfCommitmentsAndContingenciesLineItems to ugp_PeriodOfConcession" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates" xlink:label="ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates" xlink:title="ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfCommitmentsAndContingenciesLineItems" xlink:to="ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates" xlink:title="Definition : ugp_DisclosureOfCommitmentsAndContingenciesLineItems to ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DescriptionOfPortConcessions" xlink:label="ugp_DescriptionOfPortConcessions" xlink:title="ugp_DescriptionOfPortConcessions" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfCommitmentsAndContingenciesLineItems" xlink:to="ugp_DescriptionOfPortConcessions" xlink:title="Definition : ugp_DisclosureOfCommitmentsAndContingenciesLineItems to ugp_DescriptionOfPortConcessions" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PeriodOfPortConcession" xlink:label="ugp_PeriodOfPortConcession" xlink:title="ugp_PeriodOfPortConcession" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfCommitmentsAndContingenciesLineItems" xlink:to="ugp_PeriodOfPortConcession" xlink:title="Definition : ugp_DisclosureOfCommitmentsAndContingenciesLineItems to ugp_PeriodOfPortConcession" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_EstimatedInvestmentsToPortConcessions" xlink:label="ugp_EstimatedInvestmentsToPortConcessions" xlink:title="ugp_EstimatedInvestmentsToPortConcessions" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfCommitmentsAndContingenciesLineItems" xlink:to="ugp_EstimatedInvestmentsToPortConcessions" xlink:title="Definition : ugp_DisclosureOfCommitmentsAndContingenciesLineItems to ugp_EstimatedInvestmentsToPortConcessions" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_MinimumLeasePeriodOfPortConcession" xlink:label="ugp_MinimumLeasePeriodOfPortConcession" xlink:title="ugp_MinimumLeasePeriodOfPortConcession" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfCommitmentsAndContingenciesLineItems" xlink:to="ugp_MinimumLeasePeriodOfPortConcession" xlink:title="Definition : ugp_DisclosureOfCommitmentsAndContingenciesLineItems to ugp_MinimumLeasePeriodOfPortConcession" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_EstimatedInvestmentsDisbursementPeriod" xlink:label="ugp_EstimatedInvestmentsDisbursementPeriod" xlink:title="ugp_EstimatedInvestmentsDisbursementPeriod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfCommitmentsAndContingenciesLineItems" xlink:to="ugp_EstimatedInvestmentsDisbursementPeriod" xlink:title="Definition : ugp_DisclosureOfCommitmentsAndContingenciesLineItems to ugp_EstimatedInvestmentsDisbursementPeriod" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ContractualCapitalCommitments" xlink:label="ifrs-full_ContractualCapitalCommitments" xlink:title="ifrs-full_ContractualCapitalCommitments" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfCommitmentsAndContingenciesLineItems" xlink:to="ifrs-full_ContractualCapitalCommitments" xlink:title="Definition : ugp_DisclosureOfCommitmentsAndContingenciesLineItems to ifrs-full_ContractualCapitalCommitments" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DisclosureOfCommitmentsAndContingenciesTable" xlink:label="ugp_DisclosureOfCommitmentsAndContingenciesTable" xlink:title="ugp_DisclosureOfCommitmentsAndContingenciesTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ugp_DisclosureOfCommitmentsAndContingenciesLineItems" xlink:to="ugp_DisclosureOfCommitmentsAndContingenciesTable" xlink:title="Definition : ugp_DisclosureOfCommitmentsAndContingenciesLineItems to ugp_DisclosureOfCommitmentsAndContingenciesTable" xlink:type="arc" use="optional" order="12" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:title="ifrs-full_CategoriesOfRelatedPartiesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_DisclosureOfCommitmentsAndContingenciesTable" xlink:to="ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:title="Definition : ugp_DisclosureOfCommitmentsAndContingenciesTable to ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:title="ifrs-full_CategoriesOfRelatedPartiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:to="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesAxis to ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ThirdPartiesMember" xlink:label="ugp_ThirdPartiesMember" xlink:title="ugp_ThirdPartiesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:to="ugp_ThirdPartiesMember" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesDomain to ugp_ThirdPartiesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DirectorsAndOfficersMember" xlink:label="ugp_DirectorsAndOfficersMember" xlink:title="ugp_DirectorsAndOfficersMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:to="ugp_DirectorsAndOfficersMember" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesDomain to ugp_DirectorsAndOfficersMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="ifrs-full_CategoriesOfRelatedPartiesDomain_1" xlink:title="ifrs-full_CategoriesOfRelatedPartiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:to="ifrs-full_CategoriesOfRelatedPartiesDomain_1" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesAxis to ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfContractsAxis" xlink:label="ifrs-full_TypesOfContractsAxis" xlink:title="ifrs-full_TypesOfContractsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_DisclosureOfCommitmentsAndContingenciesTable" xlink:to="ifrs-full_TypesOfContractsAxis" xlink:title="Definition : ugp_DisclosureOfCommitmentsAndContingenciesTable to ifrs-full_TypesOfContractsAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfContractsDomain" xlink:label="ifrs-full_TypesOfContractsDomain" xlink:title="ifrs-full_TypesOfContractsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_TypesOfContractsAxis" xlink:to="ifrs-full_TypesOfContractsDomain" xlink:title="Definition : ifrs-full_TypesOfContractsAxis to ifrs-full_TypesOfContractsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AratuMember" xlink:label="ugp_AratuMember" xlink:title="ugp_AratuMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfContractsDomain" xlink:to="ugp_AratuMember" xlink:title="Definition : ifrs-full_TypesOfContractsDomain to ugp_AratuMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SuapeMember" xlink:label="ugp_SuapeMember" xlink:title="ugp_SuapeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfContractsDomain" xlink:to="ugp_SuapeMember" xlink:title="Definition : ifrs-full_TypesOfContractsDomain to ugp_SuapeMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ItaquiMember" xlink:label="ugp_ItaquiMember" xlink:title="ugp_ItaquiMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfContractsDomain" xlink:to="ugp_ItaquiMember" xlink:title="Definition : ifrs-full_TypesOfContractsDomain to ugp_ItaquiMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfContractsDomain" xlink:label="ifrs-full_TypesOfContractsDomain_1" xlink:title="ifrs-full_TypesOfContractsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_TypesOfContractsAxis" xlink:to="ifrs-full_TypesOfContractsDomain_1" xlink:title="Definition : ifrs-full_TypesOfContractsAxis to ifrs-full_TypesOfContractsDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ServiceConcessionArrangementsAxis" xlink:label="ifrs-full_ServiceConcessionArrangementsAxis" xlink:title="ifrs-full_ServiceConcessionArrangementsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_DisclosureOfCommitmentsAndContingenciesTable" xlink:to="ifrs-full_ServiceConcessionArrangementsAxis" xlink:title="Definition : ugp_DisclosureOfCommitmentsAndContingenciesTable to ifrs-full_ServiceConcessionArrangementsAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ServiceConcessionArrangementsDomain" xlink:label="ifrs-full_ServiceConcessionArrangementsDomain" xlink:title="ifrs-full_ServiceConcessionArrangementsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ServiceConcessionArrangementsAxis" xlink:to="ifrs-full_ServiceConcessionArrangementsDomain" xlink:title="Definition : ifrs-full_ServiceConcessionArrangementsAxis to ifrs-full_ServiceConcessionArrangementsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AreaPortLeaseMember" xlink:label="ugp_AreaPortLeaseMember" xlink:title="ugp_AreaPortLeaseMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ServiceConcessionArrangementsDomain" xlink:to="ugp_AreaPortLeaseMember" xlink:title="Definition : ifrs-full_ServiceConcessionArrangementsDomain to ugp_AreaPortLeaseMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ServiceConcessionArrangementsDomain" xlink:label="ifrs-full_ServiceConcessionArrangementsDomain_1" xlink:title="ifrs-full_ServiceConcessionArrangementsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ServiceConcessionArrangementsAxis" xlink:to="ifrs-full_ServiceConcessionArrangementsDomain_1" xlink:title="Definition : ifrs-full_ServiceConcessionArrangementsAxis to ifrs-full_ServiceConcessionArrangementsDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_DisclosureOfCommitmentsAndContingenciesTable" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="Definition : ugp_DisclosureOfCommitmentsAndContingenciesTable to ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IpirangaProdutosdePetroleoSAMember" xlink:label="ugp_IpirangaProdutosdePetroleoSAMember" xlink:title="ugp_IpirangaProdutosdePetroleoSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_IpirangaProdutosdePetroleoSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_IpirangaProdutosdePetroleoSAMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltracargoMember" xlink:label="ugp_UltracargoMember" xlink:title="ugp_UltracargoMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltracargoMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltracargoMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IpirangaProdutosDepetroleoSaAndUltracargoMember" xlink:label="ugp_IpirangaProdutosDepetroleoSaAndUltracargoMember" xlink:title="ugp_IpirangaProdutosDepetroleoSaAndUltracargoMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_IpirangaProdutosDepetroleoSaAndUltracargoMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_IpirangaProdutosDepetroleoSaAndUltracargoMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltracargoLogisticaSAMember" xlink:label="ugp_UltracargoLogisticaSAMember" xlink:title="ugp_UltracargoLogisticaSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltracargoLogisticaSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltracargoLogisticaSAMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IpirangaProdutosDepetroleoSaAndUltracargoLogisticaSAMember" xlink:label="ugp_IpirangaProdutosDepetroleoSaAndUltracargoLogisticaSAMember" xlink:title="ugp_IpirangaProdutosDepetroleoSaAndUltracargoLogisticaSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_IpirangaProdutosDepetroleoSaAndUltracargoLogisticaSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_IpirangaProdutosDepetroleoSaAndUltracargoLogisticaSAMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_EntitiesByLocationAxis" xlink:label="ugp_EntitiesByLocationAxis" xlink:title="ugp_EntitiesByLocationAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_DisclosureOfCommitmentsAndContingenciesTable" xlink:to="ugp_EntitiesByLocationAxis" xlink:title="Definition : ugp_DisclosureOfCommitmentsAndContingenciesTable to ugp_EntitiesByLocationAxis" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_EntitiesByLocationDomain" xlink:label="ugp_EntitiesByLocationDomain" xlink:title="ugp_EntitiesByLocationDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_EntitiesByLocationAxis" xlink:to="ugp_EntitiesByLocationDomain" xlink:title="Definition : ugp_EntitiesByLocationAxis to ugp_EntitiesByLocationDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ParaibaMember" xlink:label="ugp_ParaibaMember" xlink:title="ugp_ParaibaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_EntitiesByLocationDomain" xlink:to="ugp_ParaibaMember" xlink:title="Definition : ugp_EntitiesByLocationDomain to ugp_ParaibaMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_EspiritoSantoMember" xlink:label="ugp_EspiritoSantoMember" xlink:title="ugp_EspiritoSantoMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_EntitiesByLocationDomain" xlink:to="ugp_EspiritoSantoMember" xlink:title="Definition : ugp_EntitiesByLocationDomain to ugp_EspiritoSantoMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_EntitiesByLocationDomain" xlink:label="ugp_EntitiesByLocationDomain_1" xlink:title="ugp_EntitiesByLocationDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_EntitiesByLocationAxis" xlink:to="ugp_EntitiesByLocationDomain_1" xlink:title="Definition : ugp_EntitiesByLocationAxis to ugp_EntitiesByLocationDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TerminalAxis" xlink:label="ugp_TerminalAxis" xlink:title="ugp_TerminalAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_DisclosureOfCommitmentsAndContingenciesTable" xlink:to="ugp_TerminalAxis" xlink:title="Definition : ugp_DisclosureOfCommitmentsAndContingenciesTable to ugp_TerminalAxis" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_Terminal1Member" xlink:label="ugp_Terminal1Member" xlink:title="ugp_Terminal1Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_TerminalAxis" xlink:to="ugp_Terminal1Member" xlink:title="Definition : ugp_TerminalAxis to ugp_Terminal1Member" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PortOfCabedeloMember" xlink:label="ugp_PortOfCabedeloMember" xlink:title="ugp_PortOfCabedeloMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_Terminal1Member" xlink:to="ugp_PortOfCabedeloMember" xlink:title="Definition : ugp_Terminal1Member to ugp_PortOfCabedeloMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PortOfVitoriaMember" xlink:label="ugp_PortOfVitoriaMember" xlink:title="ugp_PortOfVitoriaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_Terminal1Member" xlink:to="ugp_PortOfVitoriaMember" xlink:title="Definition : ugp_Terminal1Member to ugp_PortOfVitoriaMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PortOfMiramarMember" xlink:label="ugp_PortOfMiramarMember" xlink:title="ugp_PortOfMiramarMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_Terminal1Member" xlink:to="ugp_PortOfMiramarMember" xlink:title="Definition : ugp_Terminal1Member to ugp_PortOfMiramarMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AreaBel02AMember" xlink:label="ugp_AreaBel02AMember" xlink:title="ugp_AreaBel02AMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_Terminal1Member" xlink:to="ugp_AreaBel02AMember" xlink:title="Definition : ugp_Terminal1Member to ugp_AreaBel02AMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AreaBel04aMember" xlink:label="ugp_AreaBel04aMember" xlink:title="ugp_AreaBel04aMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_Terminal1Member" xlink:to="ugp_AreaBel04aMember" xlink:title="Definition : ugp_Terminal1Member to ugp_AreaBel04aMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AreaVdc12Member" xlink:label="ugp_AreaVdc12Member" xlink:title="ugp_AreaVdc12Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_Terminal1Member" xlink:to="ugp_AreaVdc12Member" xlink:title="Definition : ugp_Terminal1Member to ugp_AreaVdc12Member" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AreaIqi13Member" xlink:label="ugp_AreaIqi13Member" xlink:title="ugp_AreaIqi13Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_Terminal1Member" xlink:to="ugp_AreaIqi13Member" xlink:title="Definition : ugp_Terminal1Member to ugp_AreaIqi13Member" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_Terminal1Member" xlink:label="ugp_Terminal1Member_1" xlink:title="ugp_Terminal1Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_TerminalAxis" xlink:to="ugp_Terminal1Member_1" xlink:title="Definition : ugp_TerminalAxis to ugp_Terminal1Member" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/LoansfinancingdebenturesandderivativefinancialinstrumentsNotesDetailsTextual">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:label="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:title="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfDebtInstrumentsIssued" xlink:label="ugp_NumberOfDebtInstrumentsIssued" xlink:title="ugp_NumberOfDebtInstrumentsIssued" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_NumberOfDebtInstrumentsIssued" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_NumberOfDebtInstrumentsIssued" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DescriptionOfPaymentOfFaceValueOfBorrowings" xlink:label="ugp_DescriptionOfPaymentOfFaceValueOfBorrowings" xlink:title="ugp_DescriptionOfPaymentOfFaceValueOfBorrowings" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_DescriptionOfPaymentOfFaceValueOfBorrowings" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_DescriptionOfPaymentOfFaceValueOfBorrowings" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DescriptionOfPaymentOfInterestOfBorrowings" xlink:label="ugp_DescriptionOfPaymentOfInterestOfBorrowings" xlink:title="ugp_DescriptionOfPaymentOfInterestOfBorrowings" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_DescriptionOfPaymentOfInterestOfBorrowings" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_DescriptionOfPaymentOfInterestOfBorrowings" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DescriptionOfBorrowingsReprice" xlink:label="ugp_DescriptionOfBorrowingsReprice" xlink:title="ugp_DescriptionOfBorrowingsReprice" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_DescriptionOfBorrowingsReprice" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_DescriptionOfBorrowingsReprice" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:label="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:title="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:type="arc" use="optional" order="4" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsByNameAxis" xlink:label="ifrs-full_BorrowingsByNameAxis" xlink:title="ifrs-full_BorrowingsByNameAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:to="ifrs-full_BorrowingsByNameAxis" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable to ifrs-full_BorrowingsByNameAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsByNameDomain" xlink:label="ifrs-full_BorrowingsByNameDomain" xlink:title="ifrs-full_BorrowingsByNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_BorrowingsByNameAxis" xlink:to="ifrs-full_BorrowingsByNameDomain" xlink:title="Definition : ifrs-full_BorrowingsByNameAxis to ifrs-full_BorrowingsByNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UnsecuredNotesPayableNotConvertibleIntoSharesMember" xlink:label="ugp_UnsecuredNotesPayableNotConvertibleIntoSharesMember" xlink:title="ugp_UnsecuredNotesPayableNotConvertibleIntoSharesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BorrowingsByNameDomain" xlink:to="ugp_UnsecuredNotesPayableNotConvertibleIntoSharesMember" xlink:title="Definition : ifrs-full_BorrowingsByNameDomain to ugp_UnsecuredNotesPayableNotConvertibleIntoSharesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UnsecuredCommercialNotesPayableNotConvertibleIntoSharesMaturityAt6thApril2021Member" xlink:label="ugp_UnsecuredCommercialNotesPayableNotConvertibleIntoSharesMaturityAt6thApril2021Member" xlink:title="ugp_UnsecuredCommercialNotesPayableNotConvertibleIntoSharesMaturityAt6thApril2021Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_UnsecuredNotesPayableNotConvertibleIntoSharesMember" xlink:to="ugp_UnsecuredCommercialNotesPayableNotConvertibleIntoSharesMaturityAt6thApril2021Member" xlink:title="Definition : ugp_UnsecuredNotesPayableNotConvertibleIntoSharesMember to ugp_UnsecuredCommercialNotesPayableNotConvertibleIntoSharesMaturityAt6thApril2021Member" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UnsecuredCommercialNotesPayableNotConvertibleIntoSharesMaturityAt3rdApril2021Member" xlink:label="ugp_UnsecuredCommercialNotesPayableNotConvertibleIntoSharesMaturityAt3rdApril2021Member" xlink:title="ugp_UnsecuredCommercialNotesPayableNotConvertibleIntoSharesMaturityAt3rdApril2021Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_UnsecuredNotesPayableNotConvertibleIntoSharesMember" xlink:to="ugp_UnsecuredCommercialNotesPayableNotConvertibleIntoSharesMaturityAt3rdApril2021Member" xlink:title="Definition : ugp_UnsecuredNotesPayableNotConvertibleIntoSharesMember to ugp_UnsecuredCommercialNotesPayableNotConvertibleIntoSharesMaturityAt3rdApril2021Member" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsByNameDomain" xlink:label="ifrs-full_BorrowingsByNameDomain_1" xlink:title="ifrs-full_BorrowingsByNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_BorrowingsByNameAxis" xlink:to="ifrs-full_BorrowingsByNameDomain_1" xlink:title="Definition : ifrs-full_BorrowingsByNameAxis to ifrs-full_BorrowingsByNameDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable to ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IpirangaProdutosdePetroleoSAMember" xlink:label="ugp_IpirangaProdutosdePetroleoSAMember" xlink:title="ugp_IpirangaProdutosdePetroleoSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_IpirangaProdutosdePetroleoSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_IpirangaProdutosdePetroleoSAMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/SegmentInformationAdditionstoPropertyPlantandEquipmentandintangibleAssetsandContractualassetswithcustomersexclusiverightsDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:label="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:title="ifrs-full_DisclosureOfOperatingSegmentsLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AdditionsPropertyPlantAndEquipmentAndIntangibleAssets" xlink:label="ugp_AdditionsPropertyPlantAndEquipmentAndIntangibleAssets" xlink:title="ugp_AdditionsPropertyPlantAndEquipmentAndIntangibleAssets" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ugp_AdditionsPropertyPlantAndEquipmentAndIntangibleAssets" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ugp_AdditionsPropertyPlantAndEquipmentAndIntangibleAssets" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RetirementsIntangibleAssetsAndGoodwill" xlink:label="ifrs-full_RetirementsIntangibleAssetsAndGoodwill" xlink:title="ifrs-full_RetirementsIntangibleAssetsAndGoodwill" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ifrs-full_RetirementsIntangibleAssetsAndGoodwill" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ifrs-full_RetirementsIntangibleAssetsAndGoodwill" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingCostsCapitalised" xlink:label="ifrs-full_BorrowingCostsCapitalised" xlink:title="ifrs-full_BorrowingCostsCapitalised" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ifrs-full_BorrowingCostsCapitalised" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ifrs-full_BorrowingCostsCapitalised" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PurchaseOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets" xlink:label="ifrs-full_PurchaseOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets" xlink:title="ifrs-full_PurchaseOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ifrs-full_PurchaseOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ifrs-full_PurchaseOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:label="ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:title="ifrs-full_DisclosureOfOperatingSegmentsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:type="arc" use="optional" order="4" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SegmentsAxis" xlink:label="ifrs-full_SegmentsAxis" xlink:title="ifrs-full_SegmentsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:to="ifrs-full_SegmentsAxis" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsTable to ifrs-full_SegmentsAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SegmentsDomain" xlink:label="ifrs-full_SegmentsDomain" xlink:title="ifrs-full_SegmentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SegmentsAxis" xlink:to="ifrs-full_SegmentsDomain" xlink:title="Definition : ifrs-full_SegmentsAxis to ifrs-full_SegmentsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltragazMember" xlink:label="ugp_UltragazMember" xlink:title="ugp_UltragazMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SegmentsDomain" xlink:to="ugp_UltragazMember" xlink:title="Definition : ifrs-full_SegmentsDomain to ugp_UltragazMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IpirangaMember" xlink:label="ugp_IpirangaMember" xlink:title="ugp_IpirangaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SegmentsDomain" xlink:to="ugp_IpirangaMember" xlink:title="Definition : ifrs-full_SegmentsDomain to ugp_IpirangaMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltracargoMember" xlink:label="ugp_UltracargoMember" xlink:title="ugp_UltracargoMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SegmentsDomain" xlink:to="ugp_UltracargoMember" xlink:title="Definition : ifrs-full_SegmentsDomain to ugp_UltracargoMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AbasteceAiMember" xlink:label="ugp_AbasteceAiMember" xlink:title="ugp_AbasteceAiMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SegmentsDomain" xlink:to="ugp_AbasteceAiMember" xlink:title="Definition : ifrs-full_SegmentsDomain to ugp_AbasteceAiMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ReportableSegmentsMember" xlink:label="ifrs-full_ReportableSegmentsMember" xlink:title="ifrs-full_ReportableSegmentsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SegmentsDomain" xlink:to="ifrs-full_ReportableSegmentsMember" xlink:title="Definition : ifrs-full_SegmentsDomain to ifrs-full_ReportableSegmentsMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AllOtherSegmentsMember" xlink:label="ifrs-full_AllOtherSegmentsMember" xlink:title="ifrs-full_AllOtherSegmentsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SegmentsDomain" xlink:to="ifrs-full_AllOtherSegmentsMember" xlink:title="Definition : ifrs-full_SegmentsDomain to ifrs-full_AllOtherSegmentsMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SegmentsDomain" xlink:label="ifrs-full_SegmentsDomain_1" xlink:title="ifrs-full_SegmentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SegmentsAxis" xlink:to="ifrs-full_SegmentsDomain_1" xlink:title="Definition : ifrs-full_SegmentsAxis to ifrs-full_SegmentsDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/FinancialInstrumentsSummaryofthefinancialassetsandfinancialliabilitiesmeasuredatfairvalueDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:label="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:title="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_FinancialAssets" xlink:label="ifrs-full_FinancialAssets" xlink:title="ifrs-full_FinancialAssets" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_FinancialAssets" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_FinancialAssets" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_FinancialAssetsAtFairValue" xlink:label="ifrs-full_FinancialAssetsAtFairValue" xlink:title="ifrs-full_FinancialAssetsAtFairValue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_FinancialAssetsAtFairValue" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_FinancialAssetsAtFairValue" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_FinancialLiabilities" xlink:label="ifrs-full_FinancialLiabilities" xlink:title="ifrs-full_FinancialLiabilities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_FinancialLiabilities" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_FinancialLiabilities" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_FinancialLiabilitiesAtFairValue" xlink:label="ifrs-full_FinancialLiabilitiesAtFairValue" xlink:title="ifrs-full_FinancialLiabilitiesAtFairValue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_FinancialLiabilitiesAtFairValue" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_FinancialLiabilitiesAtFairValue" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:label="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:title="ifrs-full_DisclosureOfFinancialInstrumentsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:type="arc" order="4" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CategoriesOfFinancialAssetsAxis" xlink:label="ifrs-full_CategoriesOfFinancialAssetsAxis" xlink:title="ifrs-full_CategoriesOfFinancialAssetsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="ifrs-full_CategoriesOfFinancialAssetsAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsTable to ifrs-full_CategoriesOfFinancialAssetsAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CategoriesOfFinancialAssetsDomain" xlink:label="ifrs-full_CategoriesOfFinancialAssetsDomain" xlink:title="ifrs-full_CategoriesOfFinancialAssetsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_CategoriesOfFinancialAssetsAxis" xlink:to="ifrs-full_CategoriesOfFinancialAssetsDomain" xlink:title="Definition : ifrs-full_CategoriesOfFinancialAssetsAxis to ifrs-full_CategoriesOfFinancialAssetsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLossCategoryMember" xlink:label="ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLossCategoryMember" xlink:title="ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLossCategoryMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfFinancialAssetsDomain" xlink:to="ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLossCategoryMember" xlink:title="Definition : ifrs-full_CategoriesOfFinancialAssetsDomain to ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLossCategoryMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_FinancialAssetsAtFairValueThroughOtherComprehensiveIncomeCategoryMember" xlink:label="ifrs-full_FinancialAssetsAtFairValueThroughOtherComprehensiveIncomeCategoryMember" xlink:title="ifrs-full_FinancialAssetsAtFairValueThroughOtherComprehensiveIncomeCategoryMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfFinancialAssetsDomain" xlink:to="ifrs-full_FinancialAssetsAtFairValueThroughOtherComprehensiveIncomeCategoryMember" xlink:title="Definition : ifrs-full_CategoriesOfFinancialAssetsDomain to ifrs-full_FinancialAssetsAtFairValueThroughOtherComprehensiveIncomeCategoryMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_FinancialAssetsAtAmortisedCostCategoryMember" xlink:label="ifrs-full_FinancialAssetsAtAmortisedCostCategoryMember" xlink:title="ifrs-full_FinancialAssetsAtAmortisedCostCategoryMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfFinancialAssetsDomain" xlink:to="ifrs-full_FinancialAssetsAtAmortisedCostCategoryMember" xlink:title="Definition : ifrs-full_CategoriesOfFinancialAssetsDomain to ifrs-full_FinancialAssetsAtAmortisedCostCategoryMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CategoriesOfFinancialAssetsDomain" xlink:label="ifrs-full_CategoriesOfFinancialAssetsDomain_1" xlink:title="ifrs-full_CategoriesOfFinancialAssetsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_CategoriesOfFinancialAssetsAxis" xlink:to="ifrs-full_CategoriesOfFinancialAssetsDomain_1" xlink:title="Definition : ifrs-full_CategoriesOfFinancialAssetsAxis to ifrs-full_CategoriesOfFinancialAssetsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:label="ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:title="ifrs-full_ClassesOfFinancialInstrumentsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsTable to ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:title="ifrs-full_ClassesOfFinancialInstrumentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:to="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsAxis to ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CashAndBankDepositsMember" xlink:label="ugp_CashAndBankDepositsMember" xlink:title="ugp_CashAndBankDepositsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_CashAndBankDepositsMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_CashAndBankDepositsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CashAndCashEquivalentsSecuritiesAndFundsInLocalCurrencyMember" xlink:label="ugp_CashAndCashEquivalentsSecuritiesAndFundsInLocalCurrencyMember" xlink:title="ugp_CashAndCashEquivalentsSecuritiesAndFundsInLocalCurrencyMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_CashAndCashEquivalentsSecuritiesAndFundsInLocalCurrencyMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_CashAndCashEquivalentsSecuritiesAndFundsInLocalCurrencyMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CashAndCashEquivalentsSecuritiesAndFundsInForeignCurrencyMember" xlink:label="ugp_CashAndCashEquivalentsSecuritiesAndFundsInForeignCurrencyMember" xlink:title="ugp_CashAndCashEquivalentsSecuritiesAndFundsInForeignCurrencyMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_CashAndCashEquivalentsSecuritiesAndFundsInForeignCurrencyMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_CashAndCashEquivalentsSecuritiesAndFundsInForeignCurrencyMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_FinancialInvestmentsSecuritiesAndFundsInLocalCurrencyMember" xlink:label="ugp_FinancialInvestmentsSecuritiesAndFundsInLocalCurrencyMember" xlink:title="ugp_FinancialInvestmentsSecuritiesAndFundsInLocalCurrencyMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_FinancialInvestmentsSecuritiesAndFundsInLocalCurrencyMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_FinancialInvestmentsSecuritiesAndFundsInLocalCurrencyMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_FinancialInvestmentsSecuritiesAndFundsInForeignCurrencyMember" xlink:label="ugp_FinancialInvestmentsSecuritiesAndFundsInForeignCurrencyMember" xlink:title="ugp_FinancialInvestmentsSecuritiesAndFundsInForeignCurrencyMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_FinancialInvestmentsSecuritiesAndFundsInForeignCurrencyMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_FinancialInvestmentsSecuritiesAndFundsInForeignCurrencyMember" xlink:type="arc" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DerivativeFinancialInstrumentsAndOtherFinancialAssetsMember" xlink:label="ugp_DerivativeFinancialInstrumentsAndOtherFinancialAssetsMember" xlink:title="ugp_DerivativeFinancialInstrumentsAndOtherFinancialAssetsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_DerivativeFinancialInstrumentsAndOtherFinancialAssetsMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_DerivativeFinancialInstrumentsAndOtherFinancialAssetsMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_EnergyTradingFuturesContractsAssetsMember" xlink:label="ugp_EnergyTradingFuturesContractsAssetsMember" xlink:title="ugp_EnergyTradingFuturesContractsAssetsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_EnergyTradingFuturesContractsAssetsMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_EnergyTradingFuturesContractsAssetsMember" xlink:type="arc" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TradeReceivablesMember" xlink:label="ifrs-full_TradeReceivablesMember" xlink:title="ifrs-full_TradeReceivablesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ifrs-full_TradeReceivablesMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ifrs-full_TradeReceivablesMember" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ResellerFinancingMember" xlink:label="ugp_ResellerFinancingMember" xlink:title="ugp_ResellerFinancingMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_ResellerFinancingMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_ResellerFinancingMember" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OtherReceivablesAndOtherAssetsMember" xlink:label="ugp_OtherReceivablesAndOtherAssetsMember" xlink:title="ugp_OtherReceivablesAndOtherAssetsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_OtherReceivablesAndOtherAssetsMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_OtherReceivablesAndOtherAssetsMember" xlink:type="arc" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ReceivablesFromSaleOfInvestmentsMember" xlink:label="ugp_ReceivablesFromSaleOfInvestmentsMember" xlink:title="ugp_ReceivablesFromSaleOfInvestmentsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_ReceivablesFromSaleOfInvestmentsMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_ReceivablesFromSaleOfInvestmentsMember" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OtherAssetsMember" xlink:label="ifrs-full_OtherAssetsMember" xlink:title="ifrs-full_OtherAssetsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ifrs-full_OtherAssetsMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ifrs-full_OtherAssetsMember" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LoanFinancingLiabilitiesMember" xlink:label="ugp_LoanFinancingLiabilitiesMember" xlink:title="ugp_LoanFinancingLiabilitiesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_LoanFinancingLiabilitiesMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_LoanFinancingLiabilitiesMember" xlink:type="arc" use="optional" order="12" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebenturesMember" xlink:label="ugp_DebenturesMember" xlink:title="ugp_DebenturesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_DebenturesMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_DebenturesMember" xlink:type="arc" use="optional" order="13" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ForeignExchangeInterestRateAndCommodityHedgingInstrumentLiabilitiesMember" xlink:label="ugp_ForeignExchangeInterestRateAndCommodityHedgingInstrumentLiabilitiesMember" xlink:title="ugp_ForeignExchangeInterestRateAndCommodityHedgingInstrumentLiabilitiesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_ForeignExchangeInterestRateAndCommodityHedgingInstrumentLiabilitiesMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_ForeignExchangeInterestRateAndCommodityHedgingInstrumentLiabilitiesMember" xlink:type="arc" use="optional" order="14" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_EnergyTradingFuturesContractsLiabilitiesMember" xlink:label="ugp_EnergyTradingFuturesContractsLiabilitiesMember" xlink:title="ugp_EnergyTradingFuturesContractsLiabilitiesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_EnergyTradingFuturesContractsLiabilitiesMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_EnergyTradingFuturesContractsLiabilitiesMember" xlink:type="arc" order="15" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TradePayableMember" xlink:label="ugp_TradePayableMember" xlink:title="ugp_TradePayableMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_TradePayableMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_TradePayableMember" xlink:type="arc" use="optional" order="16" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TradePayablesReverseFactoringMember" xlink:label="ugp_TradePayablesReverseFactoringMember" xlink:title="ugp_TradePayablesReverseFactoringMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_TradePayablesReverseFactoringMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_TradePayablesReverseFactoringMember" xlink:type="arc" use="optional" order="17" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SubscriptionWarrantsIndemnificationMember" xlink:label="ugp_SubscriptionWarrantsIndemnificationMember" xlink:title="ugp_SubscriptionWarrantsIndemnificationMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_SubscriptionWarrantsIndemnificationMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_SubscriptionWarrantsIndemnificationMember" xlink:type="arc" use="optional" order="18" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_FinancialLiabilitiesOfCustomersMember" xlink:label="ugp_FinancialLiabilitiesOfCustomersMember" xlink:title="ugp_FinancialLiabilitiesOfCustomersMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_FinancialLiabilitiesOfCustomersMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_FinancialLiabilitiesOfCustomersMember" xlink:type="arc" use="optional" order="19" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ContingentConsiderationMember" xlink:label="ifrs-full_ContingentConsiderationMember" xlink:title="ifrs-full_ContingentConsiderationMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ifrs-full_ContingentConsiderationMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ifrs-full_ContingentConsiderationMember" xlink:type="arc" use="optional" order="20" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OtherPayablesMember" xlink:label="ugp_OtherPayablesMember" xlink:title="ugp_OtherPayablesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_OtherPayablesMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_OtherPayablesMember" xlink:type="arc" use="optional" order="21" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LeaseLiabilitiesMember" xlink:label="ifrs-full_LeaseLiabilitiesMember" xlink:title="ifrs-full_LeaseLiabilitiesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ifrs-full_LeaseLiabilitiesMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ifrs-full_LeaseLiabilitiesMember" xlink:type="arc" use="optional" order="22" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="ifrs-full_ClassesOfFinancialInstrumentsDomain_1" xlink:title="ifrs-full_ClassesOfFinancialInstrumentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:to="ifrs-full_ClassesOfFinancialInstrumentsDomain_1" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsAxis to ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CategoriesOfFinancialLiabilitiesAxis" xlink:label="ifrs-full_CategoriesOfFinancialLiabilitiesAxis" xlink:title="ifrs-full_CategoriesOfFinancialLiabilitiesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="ifrs-full_CategoriesOfFinancialLiabilitiesAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsTable to ifrs-full_CategoriesOfFinancialLiabilitiesAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CategoriesOfFinancialLiabilitiesDomain" xlink:label="ifrs-full_CategoriesOfFinancialLiabilitiesDomain" xlink:title="ifrs-full_CategoriesOfFinancialLiabilitiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_CategoriesOfFinancialLiabilitiesAxis" xlink:to="ifrs-full_CategoriesOfFinancialLiabilitiesDomain" xlink:title="Definition : ifrs-full_CategoriesOfFinancialLiabilitiesAxis to ifrs-full_CategoriesOfFinancialLiabilitiesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_FinancialLiabilitiesAtFairValueThroughProfitOrLossCategoryMember" xlink:label="ifrs-full_FinancialLiabilitiesAtFairValueThroughProfitOrLossCategoryMember" xlink:title="ifrs-full_FinancialLiabilitiesAtFairValueThroughProfitOrLossCategoryMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfFinancialLiabilitiesDomain" xlink:to="ifrs-full_FinancialLiabilitiesAtFairValueThroughProfitOrLossCategoryMember" xlink:title="Definition : ifrs-full_CategoriesOfFinancialLiabilitiesDomain to ifrs-full_FinancialLiabilitiesAtFairValueThroughProfitOrLossCategoryMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_FinancialLiabilitiesMeasuredAtFairValueThroughOtherComprehensiveIncomeCategoryMember" xlink:label="ugp_FinancialLiabilitiesMeasuredAtFairValueThroughOtherComprehensiveIncomeCategoryMember" xlink:title="ugp_FinancialLiabilitiesMeasuredAtFairValueThroughOtherComprehensiveIncomeCategoryMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfFinancialLiabilitiesDomain" xlink:to="ugp_FinancialLiabilitiesMeasuredAtFairValueThroughOtherComprehensiveIncomeCategoryMember" xlink:title="Definition : ifrs-full_CategoriesOfFinancialLiabilitiesDomain to ugp_FinancialLiabilitiesMeasuredAtFairValueThroughOtherComprehensiveIncomeCategoryMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_FinancialLiabilitiesAtAmortisedCostCategoryMember" xlink:label="ifrs-full_FinancialLiabilitiesAtAmortisedCostCategoryMember" xlink:title="ifrs-full_FinancialLiabilitiesAtAmortisedCostCategoryMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfFinancialLiabilitiesDomain" xlink:to="ifrs-full_FinancialLiabilitiesAtAmortisedCostCategoryMember" xlink:title="Definition : ifrs-full_CategoriesOfFinancialLiabilitiesDomain to ifrs-full_FinancialLiabilitiesAtAmortisedCostCategoryMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CategoriesOfFinancialLiabilitiesDomain" xlink:label="ifrs-full_CategoriesOfFinancialLiabilitiesDomain_1" xlink:title="ifrs-full_CategoriesOfFinancialLiabilitiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_CategoriesOfFinancialLiabilitiesAxis" xlink:to="ifrs-full_CategoriesOfFinancialLiabilitiesDomain_1" xlink:title="Definition : ifrs-full_CategoriesOfFinancialLiabilitiesAxis to ifrs-full_CategoriesOfFinancialLiabilitiesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LevelsOfFairValueHierarchyAxis" xlink:label="ifrs-full_LevelsOfFairValueHierarchyAxis" xlink:title="ifrs-full_LevelsOfFairValueHierarchyAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="ifrs-full_LevelsOfFairValueHierarchyAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsTable to ifrs-full_LevelsOfFairValueHierarchyAxis" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LevelsOfFairValueHierarchyDomain" xlink:label="ifrs-full_LevelsOfFairValueHierarchyDomain" xlink:title="ifrs-full_LevelsOfFairValueHierarchyDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_LevelsOfFairValueHierarchyAxis" xlink:to="ifrs-full_LevelsOfFairValueHierarchyDomain" xlink:title="Definition : ifrs-full_LevelsOfFairValueHierarchyAxis to ifrs-full_LevelsOfFairValueHierarchyDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_Level1OfFairValueHierarchyMember" xlink:label="ifrs-full_Level1OfFairValueHierarchyMember" xlink:title="ifrs-full_Level1OfFairValueHierarchyMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_LevelsOfFairValueHierarchyDomain" xlink:to="ifrs-full_Level1OfFairValueHierarchyMember" xlink:title="Definition : ifrs-full_LevelsOfFairValueHierarchyDomain to ifrs-full_Level1OfFairValueHierarchyMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_Level2OfFairValueHierarchyMember" xlink:label="ifrs-full_Level2OfFairValueHierarchyMember" xlink:title="ifrs-full_Level2OfFairValueHierarchyMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_LevelsOfFairValueHierarchyDomain" xlink:to="ifrs-full_Level2OfFairValueHierarchyMember" xlink:title="Definition : ifrs-full_LevelsOfFairValueHierarchyDomain to ifrs-full_Level2OfFairValueHierarchyMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_Level3OfFairValueHierarchyMember" xlink:label="ifrs-full_Level3OfFairValueHierarchyMember" xlink:title="ifrs-full_Level3OfFairValueHierarchyMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_LevelsOfFairValueHierarchyDomain" xlink:to="ifrs-full_Level3OfFairValueHierarchyMember" xlink:title="Definition : ifrs-full_LevelsOfFairValueHierarchyDomain to ifrs-full_Level3OfFairValueHierarchyMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LevelsOfFairValueHierarchyDomain" xlink:label="ifrs-full_LevelsOfFairValueHierarchyDomain_1" xlink:title="ifrs-full_LevelsOfFairValueHierarchyDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_LevelsOfFairValueHierarchyAxis" xlink:to="ifrs-full_LevelsOfFairValueHierarchyDomain_1" xlink:title="Definition : ifrs-full_LevelsOfFairValueHierarchyAxis to ifrs-full_LevelsOfFairValueHierarchyDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/FinancialInstrumentsAdditionalInformationDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:label="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:title="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TransactionCostsFinancialInstruments" xlink:label="ugp_TransactionCostsFinancialInstruments" xlink:title="ugp_TransactionCostsFinancialInstruments" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_TransactionCostsFinancialInstruments" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_TransactionCostsFinancialInstruments" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsInterestRate" xlink:label="ifrs-full_BorrowingsInterestRate" xlink:title="ifrs-full_BorrowingsInterestRate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_BorrowingsInterestRate" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_BorrowingsInterestRate" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AverageForeignExchangeRate" xlink:label="ifrs-full_AverageForeignExchangeRate" xlink:title="ifrs-full_AverageForeignExchangeRate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_AverageForeignExchangeRate" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_AverageForeignExchangeRate" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClosingForeignExchangeRate" xlink:label="ifrs-full_ClosingForeignExchangeRate" xlink:title="ifrs-full_ClosingForeignExchangeRate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_ClosingForeignExchangeRate" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_ClosingForeignExchangeRate" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NetAssetLiabilityPositionTotal" xlink:label="ugp_NetAssetLiabilityPositionTotal" xlink:title="ugp_NetAssetLiabilityPositionTotal" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_NetAssetLiabilityPositionTotal" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_NetAssetLiabilityPositionTotal" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfCustomers" xlink:label="ugp_NumberOfCustomers" xlink:title="ugp_NumberOfCustomers" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_NumberOfCustomers" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_NumberOfCustomers" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PercentageOfEntitysRevenue" xlink:label="ifrs-full_PercentageOfEntitysRevenue" xlink:title="ifrs-full_PercentageOfEntitysRevenue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_PercentageOfEntitysRevenue" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_PercentageOfEntitysRevenue" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfCustomersAccountedForMoreThanTenPercentOfRevenue" xlink:label="ugp_NumberOfCustomersAccountedForMoreThanTenPercentOfRevenue" xlink:title="ugp_NumberOfCustomersAccountedForMoreThanTenPercentOfRevenue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_NumberOfCustomersAccountedForMoreThanTenPercentOfRevenue" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_NumberOfCustomersAccountedForMoreThanTenPercentOfRevenue" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_MaximumPercentageOfIdentifiedRiskToCoverByDerivativeFinancialInstruments" xlink:label="ugp_MaximumPercentageOfIdentifiedRiskToCoverByDerivativeFinancialInstruments" xlink:title="ugp_MaximumPercentageOfIdentifiedRiskToCoverByDerivativeFinancialInstruments" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_MaximumPercentageOfIdentifiedRiskToCoverByDerivativeFinancialInstruments" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_MaximumPercentageOfIdentifiedRiskToCoverByDerivativeFinancialInstruments" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_InvestmentPlan" xlink:label="ugp_InvestmentPlan" xlink:title="ugp_InvestmentPlan" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_InvestmentPlan" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_InvestmentPlan" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CashCashEquivalentsAndShortTermFinancialInvestments" xlink:label="ugp_CashCashEquivalentsAndShortTermFinancialInvestments" xlink:title="ugp_CashCashEquivalentsAndShortTermFinancialInvestments" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_CashCashEquivalentsAndShortTermFinancialInvestments" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_CashCashEquivalentsAndShortTermFinancialInvestments" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NotionalAmountOfForeignExchangeHedgingInstrumentsForHighlyProbableFutureTransactionsDesignatedAsCashFlowHedgeRelatedToNotesInForeignMarket" xlink:label="ugp_NotionalAmountOfForeignExchangeHedgingInstrumentsForHighlyProbableFutureTransactionsDesignatedAsCashFlowHedgeRelatedToNotesInForeignMarket" xlink:title="ugp_NotionalAmountOfForeignExchangeHedgingInstrumentsForHighlyProbableFutureTransactionsDesignatedAsCashFlowHedgeRelatedToNotesInForeignMarket" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_NotionalAmountOfForeignExchangeHedgingInstrumentsForHighlyProbableFutureTransactionsDesignatedAsCashFlowHedgeRelatedToNotesInForeignMarket" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_NotionalAmountOfForeignExchangeHedgingInstrumentsForHighlyProbableFutureTransactionsDesignatedAsCashFlowHedgeRelatedToNotesInForeignMarket" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CashFlowHedgeUnrealizedGainLossOfOtherComprehensiveIncomeNetRelatedToNotesInForeignMarket" xlink:label="ugp_CashFlowHedgeUnrealizedGainLossOfOtherComprehensiveIncomeNetRelatedToNotesInForeignMarket" xlink:title="ugp_CashFlowHedgeUnrealizedGainLossOfOtherComprehensiveIncomeNetRelatedToNotesInForeignMarket" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_CashFlowHedgeUnrealizedGainLossOfOtherComprehensiveIncomeNetRelatedToNotesInForeignMarket" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_CashFlowHedgeUnrealizedGainLossOfOtherComprehensiveIncomeNetRelatedToNotesInForeignMarket" xlink:type="arc" use="optional" order="12" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_BalanceOfForeignExchangeHedgingInstrumentsDesignatedAsNetInvestmentsHedgeInForeignEntities" xlink:label="ugp_BalanceOfForeignExchangeHedgingInstrumentsDesignatedAsNetInvestmentsHedgeInForeignEntities" xlink:title="ugp_BalanceOfForeignExchangeHedgingInstrumentsDesignatedAsNetInvestmentsHedgeInForeignEntities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_BalanceOfForeignExchangeHedgingInstrumentsDesignatedAsNetInvestmentsHedgeInForeignEntities" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_BalanceOfForeignExchangeHedgingInstrumentsDesignatedAsNetInvestmentsHedgeInForeignEntities" xlink:type="arc" use="optional" order="13" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OtherComprehensiveIncomeNetOfTaxHedgesOfNetInvestmentsInForeignOperations" xlink:label="ifrs-full_OtherComprehensiveIncomeNetOfTaxHedgesOfNetInvestmentsInForeignOperations" xlink:title="ifrs-full_OtherComprehensiveIncomeNetOfTaxHedgesOfNetInvestmentsInForeignOperations" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_OtherComprehensiveIncomeNetOfTaxHedgesOfNetInvestmentsInForeignOperations" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_OtherComprehensiveIncomeNetOfTaxHedgesOfNetInvestmentsInForeignOperations" xlink:type="arc" use="optional" order="14" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_MaturityOfForeignExchangeHedgingInstruments" xlink:label="ugp_MaturityOfForeignExchangeHedgingInstruments" xlink:title="ugp_MaturityOfForeignExchangeHedgingInstruments" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_MaturityOfForeignExchangeHedgingInstruments" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_MaturityOfForeignExchangeHedgingInstruments" xlink:type="arc" use="optional" order="15" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_FloatingInterestRate" xlink:label="ugp_FloatingInterestRate" xlink:title="ugp_FloatingInterestRate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_FloatingInterestRate" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_FloatingInterestRate" xlink:type="arc" use="optional" order="16" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_EstimatedInvestmentsForNextFiscalYear" xlink:label="ugp_EstimatedInvestmentsForNextFiscalYear" xlink:title="ugp_EstimatedInvestmentsForNextFiscalYear" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_EstimatedInvestmentsForNextFiscalYear" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_EstimatedInvestmentsForNextFiscalYear" xlink:type="arc" use="optional" order="17" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CashFlowHedgeUnrealizedLossOfOtherComprehensiveIncomeNetRelatedToFutureSalesRevenues" xlink:label="ugp_CashFlowHedgeUnrealizedLossOfOtherComprehensiveIncomeNetRelatedToFutureSalesRevenues" xlink:title="ugp_CashFlowHedgeUnrealizedLossOfOtherComprehensiveIncomeNetRelatedToFutureSalesRevenues" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_CashFlowHedgeUnrealizedLossOfOtherComprehensiveIncomeNetRelatedToFutureSalesRevenues" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_CashFlowHedgeUnrealizedLossOfOtherComprehensiveIncomeNetRelatedToFutureSalesRevenues" xlink:type="arc" use="optional" order="18" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ForeignExchangeHedgingInstrumentsDesignatedAsNetInvestmentsHedgeInForeignEntities" xlink:label="ugp_ForeignExchangeHedgingInstrumentsDesignatedAsNetInvestmentsHedgeInForeignEntities" xlink:title="ugp_ForeignExchangeHedgingInstrumentsDesignatedAsNetInvestmentsHedgeInForeignEntities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_ForeignExchangeHedgingInstrumentsDesignatedAsNetInvestmentsHedgeInForeignEntities" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_ForeignExchangeHedgingInstrumentsDesignatedAsNetInvestmentsHedgeInForeignEntities" xlink:type="arc" use="optional" order="19" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ExchangeRatePerShareForLastMaturityOfForeignExchangeHedgingInstruments" xlink:label="ugp_ExchangeRatePerShareForLastMaturityOfForeignExchangeHedgingInstruments" xlink:title="ugp_ExchangeRatePerShareForLastMaturityOfForeignExchangeHedgingInstruments" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_ExchangeRatePerShareForLastMaturityOfForeignExchangeHedgingInstruments" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_ExchangeRatePerShareForLastMaturityOfForeignExchangeHedgingInstruments" xlink:type="arc" use="optional" order="20" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ExpectedPercentageOfHedgeEffectivenessInRetrospectiveAssessmentToDiscontinueHedgeAccountingForHedgeRelationshipIsSubjectToInterestRateBenchmarkReforms" xlink:label="ugp_ExpectedPercentageOfHedgeEffectivenessInRetrospectiveAssessmentToDiscontinueHedgeAccountingForHedgeRelationshipIsSubjectToInterestRateBenchmarkReforms" xlink:title="ugp_ExpectedPercentageOfHedgeEffectivenessInRetrospectiveAssessmentToDiscontinueHedgeAccountingForHedgeRelationshipIsSubjectToInterestRateBenchmarkReforms" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_ExpectedPercentageOfHedgeEffectivenessInRetrospectiveAssessmentToDiscontinueHedgeAccountingForHedgeRelationshipIsSubjectToInterestRateBenchmarkReforms" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_ExpectedPercentageOfHedgeEffectivenessInRetrospectiveAssessmentToDiscontinueHedgeAccountingForHedgeRelationshipIsSubjectToInterestRateBenchmarkReforms" xlink:type="arc" use="optional" order="21" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ExpectedPercentageOfHedgeEffectivenessInRetrospectiveAssessmentToContinueHedgeAccountingForHedgeRelationshipIsNotSubjectToInterestRateBenchmarkReforms" xlink:label="ugp_ExpectedPercentageOfHedgeEffectivenessInRetrospectiveAssessmentToContinueHedgeAccountingForHedgeRelationshipIsNotSubjectToInterestRateBenchmarkReforms" xlink:title="ugp_ExpectedPercentageOfHedgeEffectivenessInRetrospectiveAssessmentToContinueHedgeAccountingForHedgeRelationshipIsNotSubjectToInterestRateBenchmarkReforms" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_ExpectedPercentageOfHedgeEffectivenessInRetrospectiveAssessmentToContinueHedgeAccountingForHedgeRelationshipIsNotSubjectToInterestRateBenchmarkReforms" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_ExpectedPercentageOfHedgeEffectivenessInRetrospectiveAssessmentToContinueHedgeAccountingForHedgeRelationshipIsNotSubjectToInterestRateBenchmarkReforms" xlink:type="arc" use="optional" order="22" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NegativeGoodwillOfNotesInForeignMarket" xlink:label="ugp_NegativeGoodwillOfNotesInForeignMarket" xlink:title="ugp_NegativeGoodwillOfNotesInForeignMarket" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_NegativeGoodwillOfNotesInForeignMarket" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_NegativeGoodwillOfNotesInForeignMarket" xlink:type="arc" use="optional" order="23" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PeriodForSensitivityAnalysis" xlink:label="ugp_PeriodForSensitivityAnalysis" xlink:title="ugp_PeriodForSensitivityAnalysis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_PeriodForSensitivityAnalysis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_PeriodForSensitivityAnalysis" xlink:type="arc" use="optional" order="24" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PercentageOfReasonablyPossibleIncreaseDecreaseInUnobservableInputLiabilities" xlink:label="ugp_PercentageOfReasonablyPossibleIncreaseDecreaseInUnobservableInputLiabilities" xlink:title="ugp_PercentageOfReasonablyPossibleIncreaseDecreaseInUnobservableInputLiabilities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_PercentageOfReasonablyPossibleIncreaseDecreaseInUnobservableInputLiabilities" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_PercentageOfReasonablyPossibleIncreaseDecreaseInUnobservableInputLiabilities" xlink:type="arc" order="25" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:label="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:title="ifrs-full_DisclosureOfFinancialInstrumentsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:type="arc" order="26" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ScenarioAxis" xlink:label="ugp_ScenarioAxis" xlink:title="ugp_ScenarioAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="ugp_ScenarioAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsTable to ugp_ScenarioAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ScenarioDomain" xlink:label="ugp_ScenarioDomain" xlink:title="ugp_ScenarioDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_ScenarioAxis" xlink:to="ugp_ScenarioDomain" xlink:title="Definition : ugp_ScenarioAxis to ugp_ScenarioDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ScenarioMember" xlink:label="ugp_ScenarioMember" xlink:title="ugp_ScenarioMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_ScenarioDomain" xlink:to="ugp_ScenarioMember" xlink:title="Definition : ugp_ScenarioDomain to ugp_ScenarioMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_Scenario2Member" xlink:label="ugp_Scenario2Member" xlink:title="ugp_Scenario2Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_ScenarioDomain" xlink:to="ugp_Scenario2Member" xlink:title="Definition : ugp_ScenarioDomain to ugp_Scenario2Member" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_Scenario3Member" xlink:label="ugp_Scenario3Member" xlink:title="ugp_Scenario3Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_ScenarioDomain" xlink:to="ugp_Scenario3Member" xlink:title="Definition : ugp_ScenarioDomain to ugp_Scenario3Member" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ScenarioDomain" xlink:label="ugp_ScenarioDomain_1" xlink:title="ugp_ScenarioDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_ScenarioAxis" xlink:to="ugp_ScenarioDomain_1" xlink:title="Definition : ugp_ScenarioAxis to ugp_ScenarioDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MaturityAxis" xlink:label="ifrs-full_MaturityAxis" xlink:title="ifrs-full_MaturityAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="ifrs-full_MaturityAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsTable to ifrs-full_MaturityAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="ifrs-full_MaturityDomain" xlink:title="ifrs-full_MaturityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_MaturityAxis" xlink:to="ifrs-full_MaturityDomain" xlink:title="Definition : ifrs-full_MaturityAxis to ifrs-full_MaturityDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanOneYearMember" xlink:label="ifrs-full_LaterThanOneYearMember" xlink:title="ifrs-full_LaterThanOneYearMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ifrs-full_LaterThanOneYearMember" xlink:title="Definition : ifrs-full_MaturityDomain to ifrs-full_LaterThanOneYearMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="ifrs-full_MaturityDomain_1" xlink:title="ifrs-full_MaturityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_MaturityAxis" xlink:to="ifrs-full_MaturityDomain_1" xlink:title="Definition : ifrs-full_MaturityAxis to ifrs-full_MaturityDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_HedgingInstrumentsAxis" xlink:label="ifrs-full_HedgingInstrumentsAxis" xlink:title="ifrs-full_HedgingInstrumentsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="ifrs-full_HedgingInstrumentsAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsTable to ifrs-full_HedgingInstrumentsAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_HedgingInstrumentsDomain" xlink:label="ifrs-full_HedgingInstrumentsDomain" xlink:title="ifrs-full_HedgingInstrumentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_HedgingInstrumentsAxis" xlink:to="ifrs-full_HedgingInstrumentsDomain" xlink:title="Definition : ifrs-full_HedgingInstrumentsAxis to ifrs-full_HedgingInstrumentsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_BrazilianRealPerUSDollarMember" xlink:label="ugp_BrazilianRealPerUSDollarMember" xlink:title="ugp_BrazilianRealPerUSDollarMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_HedgingInstrumentsDomain" xlink:to="ugp_BrazilianRealPerUSDollarMember" xlink:title="Definition : ifrs-full_HedgingInstrumentsDomain to ugp_BrazilianRealPerUSDollarMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_HedgingInstrumentsDomain" xlink:label="ifrs-full_HedgingInstrumentsDomain_1" xlink:title="ifrs-full_HedgingInstrumentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_HedgingInstrumentsAxis" xlink:to="ifrs-full_HedgingInstrumentsDomain_1" xlink:title="Definition : ifrs-full_HedgingInstrumentsAxis to ifrs-full_HedgingInstrumentsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ConcentrationsOfRiskAxis" xlink:label="ifrs-full_ConcentrationsOfRiskAxis" xlink:title="ifrs-full_ConcentrationsOfRiskAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="ifrs-full_ConcentrationsOfRiskAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsTable to ifrs-full_ConcentrationsOfRiskAxis" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ConcentrationsOfRiskDomain" xlink:label="ifrs-full_ConcentrationsOfRiskDomain" xlink:title="ifrs-full_ConcentrationsOfRiskDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ConcentrationsOfRiskAxis" xlink:to="ifrs-full_ConcentrationsOfRiskDomain" xlink:title="Definition : ifrs-full_ConcentrationsOfRiskAxis to ifrs-full_ConcentrationsOfRiskDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CustomerConcentrationsRiskMember" xlink:label="ugp_CustomerConcentrationsRiskMember" xlink:title="ugp_CustomerConcentrationsRiskMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ConcentrationsOfRiskDomain" xlink:to="ugp_CustomerConcentrationsRiskMember" xlink:title="Definition : ifrs-full_ConcentrationsOfRiskDomain to ugp_CustomerConcentrationsRiskMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ConcentrationsOfRiskDomain" xlink:label="ifrs-full_ConcentrationsOfRiskDomain_1" xlink:title="ifrs-full_ConcentrationsOfRiskDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ConcentrationsOfRiskAxis" xlink:to="ifrs-full_ConcentrationsOfRiskDomain_1" xlink:title="Definition : ifrs-full_ConcentrationsOfRiskAxis to ifrs-full_ConcentrationsOfRiskDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MajorCustomersAxis" xlink:label="srt_MajorCustomersAxis" xlink:title="srt_MajorCustomersAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="srt_MajorCustomersAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsTable to srt_MajorCustomersAxis" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_NameOfMajorCustomerDomain" xlink:label="srt_NameOfMajorCustomerDomain" xlink:title="srt_NameOfMajorCustomerDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_MajorCustomersAxis" xlink:to="srt_NameOfMajorCustomerDomain" xlink:title="Definition : srt_MajorCustomersAxis to srt_NameOfMajorCustomerDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CustomerOneMember" xlink:label="ugp_CustomerOneMember" xlink:title="ugp_CustomerOneMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_NameOfMajorCustomerDomain" xlink:to="ugp_CustomerOneMember" xlink:title="Definition : srt_NameOfMajorCustomerDomain to ugp_CustomerOneMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_NameOfMajorCustomerDomain" xlink:label="srt_NameOfMajorCustomerDomain_1" xlink:title="srt_NameOfMajorCustomerDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_MajorCustomersAxis" xlink:to="srt_NameOfMajorCustomerDomain_1" xlink:title="Definition : srt_MajorCustomersAxis to srt_NameOfMajorCustomerDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeAxis" xlink:label="ifrs-full_RangeAxis" xlink:title="ifrs-full_RangeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="ifrs-full_RangeAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsTable to ifrs-full_RangeAxis" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeDomain" xlink:label="ifrs-full_RangeDomain" xlink:title="ifrs-full_RangeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_RangeAxis" xlink:to="ifrs-full_RangeDomain" xlink:title="Definition : ifrs-full_RangeAxis to ifrs-full_RangeDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BottomOfRangeMember" xlink:label="ifrs-full_BottomOfRangeMember" xlink:title="ifrs-full_BottomOfRangeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RangeDomain" xlink:to="ifrs-full_BottomOfRangeMember" xlink:title="Definition : ifrs-full_RangeDomain to ifrs-full_BottomOfRangeMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TopOfRangeMember" xlink:label="ifrs-full_TopOfRangeMember" xlink:title="ifrs-full_TopOfRangeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RangeDomain" xlink:to="ifrs-full_TopOfRangeMember" xlink:title="Definition : ifrs-full_RangeDomain to ifrs-full_TopOfRangeMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeDomain" xlink:label="ifrs-full_RangeDomain_1" xlink:title="ifrs-full_RangeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_RangeAxis" xlink:to="ifrs-full_RangeDomain_1" xlink:title="Definition : ifrs-full_RangeAxis to ifrs-full_RangeDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:label="ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:title="ifrs-full_ClassesOfFinancialInstrumentsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsTable to ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:title="ifrs-full_ClassesOfFinancialInstrumentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:to="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsAxis to ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NotesInForeignMarketMember" xlink:label="ugp_NotesInForeignMarketMember" xlink:title="ugp_NotesInForeignMarketMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_NotesInForeignMarketMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_NotesInForeignMarketMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="ifrs-full_ClassesOfFinancialInstrumentsDomain_1" xlink:title="ifrs-full_ClassesOfFinancialInstrumentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:to="ifrs-full_ClassesOfFinancialInstrumentsDomain_1" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsAxis to ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfRisksAxis" xlink:label="ifrs-full_TypesOfRisksAxis" xlink:title="ifrs-full_TypesOfRisksAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="ifrs-full_TypesOfRisksAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsTable to ifrs-full_TypesOfRisksAxis" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfRisksDomain" xlink:label="ifrs-full_TypesOfRisksDomain" xlink:title="ifrs-full_TypesOfRisksDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_TypesOfRisksAxis" xlink:to="ifrs-full_TypesOfRisksDomain" xlink:title="Definition : ifrs-full_TypesOfRisksAxis to ifrs-full_TypesOfRisksDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DiMember" xlink:label="ugp_DiMember" xlink:title="ugp_DiMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfRisksDomain" xlink:to="ugp_DiMember" xlink:title="Definition : ifrs-full_TypesOfRisksDomain to ugp_DiMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfRisksDomain" xlink:label="ifrs-full_TypesOfRisksDomain_1" xlink:title="ifrs-full_TypesOfRisksDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_TypesOfRisksAxis" xlink:to="ifrs-full_TypesOfRisksDomain_1" xlink:title="Definition : ifrs-full_TypesOfRisksAxis to ifrs-full_TypesOfRisksDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/EquityAdditionalInformationDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:label="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:title="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NumberOfSharesIssuedAndFullyPaid" xlink:label="ifrs-full_NumberOfSharesIssuedAndFullyPaid" xlink:title="ifrs-full_NumberOfSharesIssuedAndFullyPaid" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ifrs-full_NumberOfSharesIssuedAndFullyPaid" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ifrs-full_NumberOfSharesIssuedAndFullyPaid" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ParValuePerShare" xlink:label="ifrs-full_ParValuePerShare" xlink:title="ifrs-full_ParValuePerShare" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ifrs-full_ParValuePerShare" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ifrs-full_ParValuePerShare" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RightsPreferencesAndRestrictionsAttachingToClassOfShareCapital" xlink:label="ifrs-full_RightsPreferencesAndRestrictionsAttachingToClassOfShareCapital" xlink:title="ifrs-full_RightsPreferencesAndRestrictionsAttachingToClassOfShareCapital" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ifrs-full_RightsPreferencesAndRestrictionsAttachingToClassOfShareCapital" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ifrs-full_RightsPreferencesAndRestrictionsAttachingToClassOfShareCapital" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfSharesOutstandingAbroadInFormOfAmericanDepositaryReceipts" xlink:label="ugp_NumberOfSharesOutstandingAbroadInFormOfAmericanDepositaryReceipts" xlink:title="ugp_NumberOfSharesOutstandingAbroadInFormOfAmericanDepositaryReceipts" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ugp_NumberOfSharesOutstandingAbroadInFormOfAmericanDepositaryReceipts" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ugp_NumberOfSharesOutstandingAbroadInFormOfAmericanDepositaryReceipts" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfTreasurySharesGrantedWithRightOfUse" xlink:label="ugp_NumberOfTreasurySharesGrantedWithRightOfUse" xlink:title="ugp_NumberOfTreasurySharesGrantedWithRightOfUse" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ugp_NumberOfTreasurySharesGrantedWithRightOfUse" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ugp_NumberOfTreasurySharesGrantedWithRightOfUse" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SharesInEntityHeldByEntityOrByItsSubsidiariesOrAssociates" xlink:label="ifrs-full_SharesInEntityHeldByEntityOrByItsSubsidiariesOrAssociates" xlink:title="ifrs-full_SharesInEntityHeldByEntityOrByItsSubsidiariesOrAssociates" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ifrs-full_SharesInEntityHeldByEntityOrByItsSubsidiariesOrAssociates" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ifrs-full_SharesInEntityHeldByEntityOrByItsSubsidiariesOrAssociates" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TreasurySharesAveragePrice" xlink:label="ugp_TreasurySharesAveragePrice" xlink:title="ugp_TreasurySharesAveragePrice" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ugp_TreasurySharesAveragePrice" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ugp_TreasurySharesAveragePrice" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IncreaseDecreaseThroughAcquisitionOfSubsidiary" xlink:label="ifrs-full_IncreaseDecreaseThroughAcquisitionOfSubsidiary" xlink:title="ifrs-full_IncreaseDecreaseThroughAcquisitionOfSubsidiary" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ifrs-full_IncreaseDecreaseThroughAcquisitionOfSubsidiary" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ifrs-full_IncreaseDecreaseThroughAcquisitionOfSubsidiary" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ShareIssueRelatedCost" xlink:label="ifrs-full_ShareIssueRelatedCost" xlink:title="ifrs-full_ShareIssueRelatedCost" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ifrs-full_ShareIssueRelatedCost" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ifrs-full_ShareIssueRelatedCost" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_RetentionOfProfitsAndInvestmentsReserve" xlink:label="ugp_RetentionOfProfitsAndInvestmentsReserve" xlink:title="ugp_RetentionOfProfitsAndInvestmentsReserve" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ugp_RetentionOfProfitsAndInvestmentsReserve" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ugp_RetentionOfProfitsAndInvestmentsReserve" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TreasuryShares" xlink:label="ifrs-full_TreasuryShares" xlink:title="ifrs-full_TreasuryShares" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ifrs-full_TreasuryShares" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ifrs-full_TreasuryShares" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DividendsPayable" xlink:label="ifrs-full_DividendsPayable" xlink:title="ifrs-full_DividendsPayable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ifrs-full_DividendsPayable" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ifrs-full_DividendsPayable" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DividendsRecognisedAsDistributionsToOwnersPerShare" xlink:label="ifrs-full_DividendsRecognisedAsDistributionsToOwnersPerShare" xlink:title="ifrs-full_DividendsRecognisedAsDistributionsToOwnersPerShare" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ifrs-full_DividendsRecognisedAsDistributionsToOwnersPerShare" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ifrs-full_DividendsRecognisedAsDistributionsToOwnersPerShare" xlink:type="arc" use="optional" order="12" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DividendsProposedOrDeclaredBeforeFinancialStatementsAuthorisedForIssueButNotRecognisedAsDistributionToOwners" xlink:label="ifrs-full_DividendsProposedOrDeclaredBeforeFinancialStatementsAuthorisedForIssueButNotRecognisedAsDistributionToOwners" xlink:title="ifrs-full_DividendsProposedOrDeclaredBeforeFinancialStatementsAuthorisedForIssueButNotRecognisedAsDistributionToOwners" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ifrs-full_DividendsProposedOrDeclaredBeforeFinancialStatementsAuthorisedForIssueButNotRecognisedAsDistributionToOwners" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ifrs-full_DividendsProposedOrDeclaredBeforeFinancialStatementsAuthorisedForIssueButNotRecognisedAsDistributionToOwners" xlink:type="arc" use="optional" order="13" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DividendsProposedOrDeclaredBeforeFinancialStatementsAuthorisedForIssueButNotRecognisedAsDistributionToOwnersPerShare" xlink:label="ifrs-full_DividendsProposedOrDeclaredBeforeFinancialStatementsAuthorisedForIssueButNotRecognisedAsDistributionToOwnersPerShare" xlink:title="ifrs-full_DividendsProposedOrDeclaredBeforeFinancialStatementsAuthorisedForIssueButNotRecognisedAsDistributionToOwnersPerShare" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ifrs-full_DividendsProposedOrDeclaredBeforeFinancialStatementsAuthorisedForIssueButNotRecognisedAsDistributionToOwnersPerShare" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ifrs-full_DividendsProposedOrDeclaredBeforeFinancialStatementsAuthorisedForIssueButNotRecognisedAsDistributionToOwnersPerShare" xlink:type="arc" use="optional" order="14" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LegalReserveAsPercentageOfNetIncome" xlink:label="ugp_LegalReserveAsPercentageOfNetIncome" xlink:title="ugp_LegalReserveAsPercentageOfNetIncome" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ugp_LegalReserveAsPercentageOfNetIncome" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ugp_LegalReserveAsPercentageOfNetIncome" xlink:type="arc" use="optional" order="15" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ThresholdPercentageOfShareCapitalForLegalReserveAllocation" xlink:label="ugp_ThresholdPercentageOfShareCapitalForLegalReserveAllocation" xlink:title="ugp_ThresholdPercentageOfShareCapitalForLegalReserveAllocation" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ugp_ThresholdPercentageOfShareCapitalForLegalReserveAllocation" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ugp_ThresholdPercentageOfShareCapitalForLegalReserveAllocation" xlink:type="arc" use="optional" order="16" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LegalReserves" xlink:label="ugp_LegalReserves" xlink:title="ugp_LegalReserves" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ugp_LegalReserves" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ugp_LegalReserves" xlink:type="arc" use="optional" order="17" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_InvestmentStatutoryReserveAsMaximumPercentageOfNetIncome" xlink:label="ugp_InvestmentStatutoryReserveAsMaximumPercentageOfNetIncome" xlink:title="ugp_InvestmentStatutoryReserveAsMaximumPercentageOfNetIncome" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ugp_InvestmentStatutoryReserveAsMaximumPercentageOfNetIncome" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ugp_InvestmentStatutoryReserveAsMaximumPercentageOfNetIncome" xlink:type="arc" use="optional" order="18" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ThresholdPercentageOfShareCapitalForInvestmentsReserveAllocation" xlink:label="ugp_ThresholdPercentageOfShareCapitalForInvestmentsReserveAllocation" xlink:title="ugp_ThresholdPercentageOfShareCapitalForInvestmentsReserveAllocation" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ugp_ThresholdPercentageOfShareCapitalForInvestmentsReserveAllocation" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ugp_ThresholdPercentageOfShareCapitalForInvestmentsReserveAllocation" xlink:type="arc" use="optional" order="19" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IncreaseDecreaseThroughTransferToStatutoryReserve" xlink:label="ifrs-full_IncreaseDecreaseThroughTransferToStatutoryReserve" xlink:title="ifrs-full_IncreaseDecreaseThroughTransferToStatutoryReserve" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ifrs-full_IncreaseDecreaseThroughTransferToStatutoryReserve" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ifrs-full_IncreaseDecreaseThroughTransferToStatutoryReserve" xlink:type="arc" use="optional" order="20" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_MinimumMandatoryDividendsAsPercentageOfNetIncome" xlink:label="ugp_MinimumMandatoryDividendsAsPercentageOfNetIncome" xlink:title="ugp_MinimumMandatoryDividendsAsPercentageOfNetIncome" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ugp_MinimumMandatoryDividendsAsPercentageOfNetIncome" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ugp_MinimumMandatoryDividendsAsPercentageOfNetIncome" xlink:type="arc" use="optional" order="21" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OutstandingSharesPricePerShare" xlink:label="ugp_OutstandingSharesPricePerShare" xlink:title="ugp_OutstandingSharesPricePerShare" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ugp_OutstandingSharesPricePerShare" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ugp_OutstandingSharesPricePerShare" xlink:type="arc" order="22" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DescriptionSharesBuybackProgram" xlink:label="ugp_DescriptionSharesBuybackProgram" xlink:title="ugp_DescriptionSharesBuybackProgram" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ugp_DescriptionSharesBuybackProgram" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ugp_DescriptionSharesBuybackProgram" xlink:type="arc" order="23" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NumberOfSharesAuthorised" xlink:label="ifrs-full_NumberOfSharesAuthorised" xlink:title="ifrs-full_NumberOfSharesAuthorised" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ifrs-full_NumberOfSharesAuthorised" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ifrs-full_NumberOfSharesAuthorised" xlink:type="arc" use="optional" order="24" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfSharesRepurchased" xlink:label="ugp_NumberOfSharesRepurchased" xlink:title="ugp_NumberOfSharesRepurchased" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ugp_NumberOfSharesRepurchased" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ugp_NumberOfSharesRepurchased" xlink:type="arc" order="25" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SharesRepurchasedAveragePricePerShare" xlink:label="ugp_SharesRepurchasedAveragePricePerShare" xlink:title="ugp_SharesRepurchasedAveragePricePerShare" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ugp_SharesRepurchasedAveragePricePerShare" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ugp_SharesRepurchasedAveragePricePerShare" xlink:type="arc" order="26" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DividendsPaidClassifiedAsOperatingActivities" xlink:label="ifrs-full_DividendsPaidClassifiedAsOperatingActivities" xlink:title="ifrs-full_DividendsPaidClassifiedAsOperatingActivities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ifrs-full_DividendsPaidClassifiedAsOperatingActivities" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ifrs-full_DividendsPaidClassifiedAsOperatingActivities" xlink:type="arc" use="optional" order="27" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DividendsPaidOrdinarySharesPerShare" xlink:label="ifrs-full_DividendsPaidOrdinarySharesPerShare" xlink:title="ifrs-full_DividendsPaidOrdinarySharesPerShare" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ifrs-full_DividendsPaidOrdinarySharesPerShare" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ifrs-full_DividendsPaidOrdinarySharesPerShare" xlink:type="arc" use="optional" order="28" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DividendPayableDate" xlink:label="ugp_DividendPayableDate" xlink:title="ugp_DividendPayableDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ugp_DividendPayableDate" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ugp_DividendPayableDate" xlink:type="arc" order="29" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfClassesOfShareCapitalTable" xlink:label="ifrs-full_DisclosureOfClassesOfShareCapitalTable" xlink:title="ifrs-full_DisclosureOfClassesOfShareCapitalTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ifrs-full_DisclosureOfClassesOfShareCapitalTable" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ifrs-full_DisclosureOfClassesOfShareCapitalTable" xlink:type="arc" order="30" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfShareCapitalAxis" xlink:label="ifrs-full_ClassesOfShareCapitalAxis" xlink:title="ifrs-full_ClassesOfShareCapitalAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalTable" xlink:to="ifrs-full_ClassesOfShareCapitalAxis" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalTable to ifrs-full_ClassesOfShareCapitalAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfShareCapitalDomain" xlink:label="ifrs-full_ClassesOfShareCapitalDomain" xlink:title="ifrs-full_ClassesOfShareCapitalDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ClassesOfShareCapitalAxis" xlink:to="ifrs-full_ClassesOfShareCapitalDomain" xlink:title="Definition : ifrs-full_ClassesOfShareCapitalAxis to ifrs-full_ClassesOfShareCapitalDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OrdinarySharesMember" xlink:label="ifrs-full_OrdinarySharesMember" xlink:title="ifrs-full_OrdinarySharesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfShareCapitalDomain" xlink:to="ifrs-full_OrdinarySharesMember" xlink:title="Definition : ifrs-full_ClassesOfShareCapitalDomain to ifrs-full_OrdinarySharesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfShareCapitalDomain" xlink:label="ifrs-full_ClassesOfShareCapitalDomain_1" xlink:title="ifrs-full_ClassesOfShareCapitalDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ClassesOfShareCapitalAxis" xlink:to="ifrs-full_ClassesOfShareCapitalDomain_1" xlink:title="Definition : ifrs-full_ClassesOfShareCapitalAxis to ifrs-full_ClassesOfShareCapitalDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ComponentsOfEquityAxis" xlink:label="ifrs-full_ComponentsOfEquityAxis" xlink:title="ifrs-full_ComponentsOfEquityAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalTable" xlink:to="ifrs-full_ComponentsOfEquityAxis" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalTable to ifrs-full_ComponentsOfEquityAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ComponentsOfEquityDomain" xlink:label="ifrs-full_ComponentsOfEquityDomain" xlink:title="ifrs-full_ComponentsOfEquityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ComponentsOfEquityAxis" xlink:to="ifrs-full_ComponentsOfEquityDomain" xlink:title="Definition : ifrs-full_ComponentsOfEquityAxis to ifrs-full_ComponentsOfEquityDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TreasurySharesMember" xlink:label="ifrs-full_TreasurySharesMember" xlink:title="ifrs-full_TreasurySharesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ComponentsOfEquityDomain" xlink:to="ifrs-full_TreasurySharesMember" xlink:title="Definition : ifrs-full_ComponentsOfEquityDomain to ifrs-full_TreasurySharesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CapitalReserveMember" xlink:label="ifrs-full_CapitalReserveMember" xlink:title="ifrs-full_CapitalReserveMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ComponentsOfEquityDomain" xlink:to="ifrs-full_CapitalReserveMember" xlink:title="Definition : ifrs-full_ComponentsOfEquityDomain to ifrs-full_CapitalReserveMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_InvestmentsStatutoryReserveMember" xlink:label="ugp_InvestmentsStatutoryReserveMember" xlink:title="ugp_InvestmentsStatutoryReserveMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ComponentsOfEquityDomain" xlink:to="ugp_InvestmentsStatutoryReserveMember" xlink:title="Definition : ifrs-full_ComponentsOfEquityDomain to ugp_InvestmentsStatutoryReserveMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_StatutoryReserveMember" xlink:label="ifrs-full_StatutoryReserveMember" xlink:title="ifrs-full_StatutoryReserveMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ComponentsOfEquityDomain" xlink:to="ifrs-full_StatutoryReserveMember" xlink:title="Definition : ifrs-full_ComponentsOfEquityDomain to ifrs-full_StatutoryReserveMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ComponentsOfEquityDomain" xlink:label="ifrs-full_ComponentsOfEquityDomain_1" xlink:title="ifrs-full_ComponentsOfEquityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ComponentsOfEquityAxis" xlink:to="ifrs-full_ComponentsOfEquityDomain_1" xlink:title="Definition : ifrs-full_ComponentsOfEquityAxis to ifrs-full_ComponentsOfEquityDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalTable" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalTable to ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ExtrafarmaMember" xlink:label="ugp_ExtrafarmaMember" xlink:title="ugp_ExtrafarmaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_ExtrafarmaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_ExtrafarmaMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/IncomeandSocialContributionTaxesSummaryoftaxlosscarryforwardsDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems" xlink:label="ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems" xlink:title="ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxLossCarryforwards" xlink:label="ugp_TaxLossCarryforwards" xlink:title="ugp_TaxLossCarryforwards" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems" xlink:to="ugp_TaxLossCarryforwards" xlink:title="Definition : ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems to ugp_TaxLossCarryforwards" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable" xlink:label="ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable" xlink:title="ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems" xlink:to="ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable" xlink:title="Definition : ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems to ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable" xlink:type="arc" use="optional" order="1" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="Definition : ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable to ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OxitenoUSAMember" xlink:label="ugp_OxitenoUSAMember" xlink:title="ugp_OxitenoUSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_OxitenoUSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_OxitenoUSAMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OxitenoUruguayMember" xlink:label="ugp_OxitenoUruguayMember" xlink:title="ugp_OxitenoUruguayMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_OxitenoUruguayMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_OxitenoUruguayMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltraparInternationalMember" xlink:label="ugp_UltraparInternationalMember" xlink:title="ugp_UltraparInternationalMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltraparInternationalMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltraparInternationalMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/RelatedPartiesSummaryOfSubsidiariesAndOtherRelatedPartiesParentheticalDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:label="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:title="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ContractTermOfLoansReceivableFromRelatedParties" xlink:label="ugp_ContractTermOfLoansReceivableFromRelatedParties" xlink:title="ugp_ContractTermOfLoansReceivableFromRelatedParties" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ugp_ContractTermOfLoansReceivableFromRelatedParties" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ugp_ContractTermOfLoansReceivableFromRelatedParties" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfDrugstoresUnderRentalContracts" xlink:label="ugp_NumberOfDrugstoresUnderRentalContracts" xlink:title="ugp_NumberOfDrugstoresUnderRentalContracts" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ugp_NumberOfDrugstoresUnderRentalContracts" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ugp_NumberOfDrugstoresUnderRentalContracts" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:label="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:title="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:type="arc" use="optional" order="2" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:label="ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:title="ifrs-full_SignificantInvestmentsInAssociatesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:to="ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable to ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:label="ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:title="ifrs-full_SignificantInvestmentsInAssociatesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:to="ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInAssociatesAxis to ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_RouteasyServicosDeAssessoriaLogisticaLtdaMember" xlink:label="ugp_RouteasyServicosDeAssessoriaLogisticaLtdaMember" xlink:title="ugp_RouteasyServicosDeAssessoriaLogisticaLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:to="ugp_RouteasyServicosDeAssessoriaLogisticaLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInAssociatesDomain to ugp_RouteasyServicosDeAssessoriaLogisticaLtdaMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LA7ParticipaesEEmpreendImobLtdaMember" xlink:label="ugp_LA7ParticipaesEEmpreendImobLtdaMember" xlink:title="ugp_LA7ParticipaesEEmpreendImobLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:to="ugp_LA7ParticipaesEEmpreendImobLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInAssociatesDomain to ugp_LA7ParticipaesEEmpreendImobLtdaMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:label="ifrs-full_SignificantInvestmentsInAssociatesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInAssociatesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:to="ifrs-full_SignificantInvestmentsInAssociatesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInAssociatesAxis to ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/RecoverabletaxesSummaryofestimatedrecoveryofPISandCOFINScreditDetail">
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DisclosureOfEstimatedRecoveryOfIcmsAssetsLineItems" xlink:label="ugp_DisclosureOfEstimatedRecoveryOfIcmsAssetsLineItems" xlink:title="ugp_DisclosureOfEstimatedRecoveryOfIcmsAssetsLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DisclosureOfEstimatedRecoveryOfIcmsAssetsTable" xlink:label="ugp_DisclosureOfEstimatedRecoveryOfIcmsAssetsTable" xlink:title="ugp_DisclosureOfEstimatedRecoveryOfIcmsAssetsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ugp_DisclosureOfEstimatedRecoveryOfIcmsAssetsLineItems" xlink:to="ugp_DisclosureOfEstimatedRecoveryOfIcmsAssetsTable" xlink:title="Definition : ugp_DisclosureOfEstimatedRecoveryOfIcmsAssetsLineItems to ugp_DisclosureOfEstimatedRecoveryOfIcmsAssetsTable" xlink:type="arc" use="optional" order="0" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MaturityAxis" xlink:label="ifrs-full_MaturityAxis" xlink:title="ifrs-full_MaturityAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_DisclosureOfEstimatedRecoveryOfIcmsAssetsTable" xlink:to="ifrs-full_MaturityAxis" xlink:title="Definition : ugp_DisclosureOfEstimatedRecoveryOfIcmsAssetsTable to ifrs-full_MaturityAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="ifrs-full_MaturityDomain" xlink:title="ifrs-full_MaturityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_MaturityAxis" xlink:to="ifrs-full_MaturityDomain" xlink:title="Definition : ifrs-full_MaturityAxis to ifrs-full_MaturityDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NotLaterThanOneYearMember" xlink:label="ifrs-full_NotLaterThanOneYearMember" xlink:title="ifrs-full_NotLaterThanOneYearMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ifrs-full_NotLaterThanOneYearMember" xlink:title="Definition : ifrs-full_MaturityDomain to ifrs-full_NotLaterThanOneYearMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:label="ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:title="ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:title="Definition : ifrs-full_MaturityDomain to ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:label="ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:title="ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:title="Definition : ifrs-full_MaturityDomain to ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="ifrs-full_MaturityDomain_1" xlink:title="ifrs-full_MaturityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_MaturityAxis" xlink:to="ifrs-full_MaturityDomain_1" xlink:title="Definition : ifrs-full_MaturityAxis to ifrs-full_MaturityDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxesAxis" xlink:label="ugp_TaxesAxis" xlink:title="ugp_TaxesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_DisclosureOfEstimatedRecoveryOfIcmsAssetsTable" xlink:to="ugp_TaxesAxis" xlink:title="Definition : ugp_DisclosureOfEstimatedRecoveryOfIcmsAssetsTable to ugp_TaxesAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxesDomain" xlink:label="ugp_TaxesDomain" xlink:title="ugp_TaxesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_TaxesAxis" xlink:to="ugp_TaxesDomain" xlink:title="Definition : ugp_TaxesAxis to ugp_TaxesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PisAndCofinsStateVATMember" xlink:label="ugp_PisAndCofinsStateVATMember" xlink:title="ugp_PisAndCofinsStateVATMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_TaxesDomain" xlink:to="ugp_PisAndCofinsStateVATMember" xlink:title="Definition : ugp_TaxesDomain to ugp_PisAndCofinsStateVATMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxesDomain" xlink:label="ugp_TaxesDomain_1" xlink:title="ugp_TaxesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_TaxesAxis" xlink:to="ugp_TaxesDomain_1" xlink:title="Definition : ugp_TaxesAxis to ugp_TaxesDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/RecoverabletaxesSummaryofestimatedrecoveryofICMSassetsDetail">
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DisclosureOfEstimatedRecoveryOfIcmsAssetsLineItems" xlink:label="ugp_DisclosureOfEstimatedRecoveryOfIcmsAssetsLineItems" xlink:title="ugp_DisclosureOfEstimatedRecoveryOfIcmsAssetsLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DisclosureOfEstimatedRecoveryOfIcmsAssetsTable" xlink:label="ugp_DisclosureOfEstimatedRecoveryOfIcmsAssetsTable" xlink:title="ugp_DisclosureOfEstimatedRecoveryOfIcmsAssetsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ugp_DisclosureOfEstimatedRecoveryOfIcmsAssetsLineItems" xlink:to="ugp_DisclosureOfEstimatedRecoveryOfIcmsAssetsTable" xlink:title="Definition : ugp_DisclosureOfEstimatedRecoveryOfIcmsAssetsLineItems to ugp_DisclosureOfEstimatedRecoveryOfIcmsAssetsTable" xlink:type="arc" use="optional" order="0" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MaturityAxis" xlink:label="ifrs-full_MaturityAxis" xlink:title="ifrs-full_MaturityAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_DisclosureOfEstimatedRecoveryOfIcmsAssetsTable" xlink:to="ifrs-full_MaturityAxis" xlink:title="Definition : ugp_DisclosureOfEstimatedRecoveryOfIcmsAssetsTable to ifrs-full_MaturityAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="ifrs-full_MaturityDomain" xlink:title="ifrs-full_MaturityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_MaturityAxis" xlink:to="ifrs-full_MaturityDomain" xlink:title="Definition : ifrs-full_MaturityAxis to ifrs-full_MaturityDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NotLaterThanOneYearMember" xlink:label="ifrs-full_NotLaterThanOneYearMember" xlink:title="ifrs-full_NotLaterThanOneYearMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ifrs-full_NotLaterThanOneYearMember" xlink:title="Definition : ifrs-full_MaturityDomain to ifrs-full_NotLaterThanOneYearMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:label="ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:title="ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:title="Definition : ifrs-full_MaturityDomain to ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:label="ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:title="ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:title="Definition : ifrs-full_MaturityDomain to ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanThreeYearsAndNotLaterThanFiveYearsMember" xlink:label="ifrs-full_LaterThanThreeYearsAndNotLaterThanFiveYearsMember" xlink:title="ifrs-full_LaterThanThreeYearsAndNotLaterThanFiveYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ifrs-full_LaterThanThreeYearsAndNotLaterThanFiveYearsMember" xlink:title="Definition : ifrs-full_MaturityDomain to ifrs-full_LaterThanThreeYearsAndNotLaterThanFiveYearsMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="ifrs-full_MaturityDomain_1" xlink:title="ifrs-full_MaturityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_MaturityAxis" xlink:to="ifrs-full_MaturityDomain_1" xlink:title="Definition : ifrs-full_MaturityAxis to ifrs-full_MaturityDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxesAxis" xlink:label="ugp_TaxesAxis" xlink:title="ugp_TaxesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_DisclosureOfEstimatedRecoveryOfIcmsAssetsTable" xlink:to="ugp_TaxesAxis" xlink:title="Definition : ugp_DisclosureOfEstimatedRecoveryOfIcmsAssetsTable to ugp_TaxesAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxesDomain" xlink:label="ugp_TaxesDomain" xlink:title="ugp_TaxesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_TaxesAxis" xlink:to="ugp_TaxesDomain" xlink:title="Definition : ugp_TaxesAxis to ugp_TaxesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ICMSStatevatMember" xlink:label="ugp_ICMSStatevatMember" xlink:title="ugp_ICMSStatevatMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_TaxesDomain" xlink:to="ugp_ICMSStatevatMember" xlink:title="Definition : ugp_TaxesDomain to ugp_ICMSStatevatMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxesDomain" xlink:label="ugp_TaxesDomain_1" xlink:title="ugp_TaxesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_TaxesAxis" xlink:to="ugp_TaxesDomain_1" xlink:title="Definition : ugp_TaxesAxis to ugp_TaxesDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/InvestmentSummaryOfBalancesAndChangesInAssociatesDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:label="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:title="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CapitalReductionInAssociates" xlink:label="ugp_CapitalReductionInAssociates" xlink:title="ugp_CapitalReductionInAssociates" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:to="ugp_CapitalReductionInAssociates" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems to ugp_CapitalReductionInAssociates" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ShareOfProfitLossOfContinuingOperationsOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" xlink:label="ifrs-full_ShareOfProfitLossOfContinuingOperationsOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" xlink:title="ifrs-full_ShareOfProfitLossOfContinuingOperationsOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:to="ifrs-full_ShareOfProfitLossOfContinuingOperationsOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems to ifrs-full_ShareOfProfitLossOfContinuingOperationsOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DecreaseThroughClassifiedAsHeldForSaleInvestmentsInAssociates" xlink:label="ugp_DecreaseThroughClassifiedAsHeldForSaleInvestmentsInAssociates" xlink:title="ugp_DecreaseThroughClassifiedAsHeldForSaleInvestmentsInAssociates" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:to="ugp_DecreaseThroughClassifiedAsHeldForSaleInvestmentsInAssociates" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems to ugp_DecreaseThroughClassifiedAsHeldForSaleInvestmentsInAssociates" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesTable" xlink:label="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesTable" xlink:title="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:to="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesTable" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems to ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesTable" xlink:type="arc" use="optional" order="3" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:label="ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:title="ifrs-full_SignificantInvestmentsInAssociatesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesTable" xlink:to="ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesTable to ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:label="ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:title="ifrs-full_SignificantInvestmentsInAssociatesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:to="ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInAssociatesAxis to ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TransportadoraSulbrasileiraDeGasMember" xlink:label="ugp_TransportadoraSulbrasileiraDeGasMember" xlink:title="ugp_TransportadoraSulbrasileiraDeGasMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:to="ugp_TransportadoraSulbrasileiraDeGasMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInAssociatesDomain to ugp_TransportadoraSulbrasileiraDeGasMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OxicapIndustriaDeGasesMember" xlink:label="ugp_OxicapIndustriaDeGasesMember" xlink:title="ugp_OxicapIndustriaDeGasesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:to="ugp_OxicapIndustriaDeGasesMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInAssociatesDomain to ugp_OxicapIndustriaDeGasesMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_QuimicaDaBahiaIndustriaEcomercioMember" xlink:label="ugp_QuimicaDaBahiaIndustriaEcomercioMember" xlink:title="ugp_QuimicaDaBahiaIndustriaEcomercioMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:to="ugp_QuimicaDaBahiaIndustriaEcomercioMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInAssociatesDomain to ugp_QuimicaDaBahiaIndustriaEcomercioMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_MetalurgicaPlusMember" xlink:label="ugp_MetalurgicaPlusMember" xlink:title="ugp_MetalurgicaPlusMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:to="ugp_MetalurgicaPlusMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInAssociatesDomain to ugp_MetalurgicaPlusMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PlenogasDistribuidoraDeGasMember" xlink:label="ugp_PlenogasDistribuidoraDeGasMember" xlink:title="ugp_PlenogasDistribuidoraDeGasMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:to="ugp_PlenogasDistribuidoraDeGasMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInAssociatesDomain to ugp_PlenogasDistribuidoraDeGasMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AssociatesMember" xlink:label="ifrs-full_AssociatesMember" xlink:title="ifrs-full_AssociatesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:to="ifrs-full_AssociatesMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInAssociatesDomain to ifrs-full_AssociatesMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:label="ifrs-full_SignificantInvestmentsInAssociatesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInAssociatesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:to="ifrs-full_SignificantInvestmentsInAssociatesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInAssociatesAxis to ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/LoansfinancingdebenturesandderivativefinancialinstrumentsAdditionalInformationDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:label="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:title="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_MaximumAggregateTenderAmount" xlink:label="ugp_MaximumAggregateTenderAmount" xlink:title="ugp_MaximumAggregateTenderAmount" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_MaximumAggregateTenderAmount" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_MaximumAggregateTenderAmount" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NotesAndDebenturesIssued" xlink:label="ifrs-full_NotesAndDebenturesIssued" xlink:title="ifrs-full_NotesAndDebenturesIssued" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_NotesAndDebenturesIssued" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_NotesAndDebenturesIssued" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ShorttermBorrowings" xlink:label="ifrs-full_ShorttermBorrowings" xlink:title="ifrs-full_ShorttermBorrowings" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_ShorttermBorrowings" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_ShorttermBorrowings" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DecreaseThroughClassifiedAsHeldForSaleLoansAndBorrowings" xlink:label="ugp_DecreaseThroughClassifiedAsHeldForSaleLoansAndBorrowings" xlink:title="ugp_DecreaseThroughClassifiedAsHeldForSaleLoansAndBorrowings" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_DecreaseThroughClassifiedAsHeldForSaleLoansAndBorrowings" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_DecreaseThroughClassifiedAsHeldForSaleLoansAndBorrowings" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_MaximumAggregateTenderAmountAvailableForIncrease" xlink:label="ugp_MaximumAggregateTenderAmountAvailableForIncrease" xlink:title="ugp_MaximumAggregateTenderAmountAvailableForIncrease" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_MaximumAggregateTenderAmountAvailableForIncrease" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_MaximumAggregateTenderAmountAvailableForIncrease" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_BondsIssuePriceInPercentage" xlink:label="ugp_BondsIssuePriceInPercentage" xlink:title="ugp_BondsIssuePriceInPercentage" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_BondsIssuePriceInPercentage" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_BondsIssuePriceInPercentage" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LiabilitiesToWhichSignificantRestrictionsApply" xlink:label="ifrs-full_LiabilitiesToWhichSignificantRestrictionsApply" xlink:title="ifrs-full_LiabilitiesToWhichSignificantRestrictionsApply" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_LiabilitiesToWhichSignificantRestrictionsApply" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_LiabilitiesToWhichSignificantRestrictionsApply" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ValueOfAssetsPercentage" xlink:label="ugp_ValueOfAssetsPercentage" xlink:title="ugp_ValueOfAssetsPercentage" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_ValueOfAssetsPercentage" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_ValueOfAssetsPercentage" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_MaximumPotentialAmountOfFuturePaymentsOnGuarantees" xlink:label="ugp_MaximumPotentialAmountOfFuturePaymentsOnGuarantees" xlink:title="ugp_MaximumPotentialAmountOfFuturePaymentsOnGuarantees" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_MaximumPotentialAmountOfFuturePaymentsOnGuarantees" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_MaximumPotentialAmountOfFuturePaymentsOnGuarantees" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NotionalAmount" xlink:label="ifrs-full_NotionalAmount" xlink:title="ifrs-full_NotionalAmount" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_NotionalAmount" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_NotionalAmount" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TransactionCostsFinancialInstruments" xlink:label="ugp_TransactionCostsFinancialInstruments" xlink:title="ugp_TransactionCostsFinancialInstruments" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_TransactionCostsFinancialInstruments" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_TransactionCostsFinancialInstruments" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AmountAppropriatedToProfitOrLossInFuture" xlink:label="ugp_AmountAppropriatedToProfitOrLossInFuture" xlink:title="ugp_AmountAppropriatedToProfitOrLossInFuture" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_AmountAppropriatedToProfitOrLossInFuture" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_AmountAppropriatedToProfitOrLossInFuture" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CollateralFinancingRealGuarantees" xlink:label="ugp_CollateralFinancingRealGuarantees" xlink:title="ugp_CollateralFinancingRealGuarantees" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_CollateralFinancingRealGuarantees" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_CollateralFinancingRealGuarantees" xlink:type="arc" order="12" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_GuaranteesDebtors" xlink:label="ugp_GuaranteesDebtors" xlink:title="ugp_GuaranteesDebtors" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_GuaranteesDebtors" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_GuaranteesDebtors" xlink:type="arc" use="optional" order="13" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CollateralAssetsLettersOfCreditOrGuarantees" xlink:label="ugp_CollateralAssetsLettersOfCreditOrGuarantees" xlink:title="ugp_CollateralAssetsLettersOfCreditOrGuarantees" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_CollateralAssetsLettersOfCreditOrGuarantees" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_CollateralAssetsLettersOfCreditOrGuarantees" xlink:type="arc" use="optional" order="14" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:label="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:title="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:type="arc" order="15" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsByNameAxis" xlink:label="ifrs-full_BorrowingsByNameAxis" xlink:title="ifrs-full_BorrowingsByNameAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:to="ifrs-full_BorrowingsByNameAxis" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable to ifrs-full_BorrowingsByNameAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsByNameDomain" xlink:label="ifrs-full_BorrowingsByNameDomain" xlink:title="ifrs-full_BorrowingsByNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_BorrowingsByNameAxis" xlink:to="ifrs-full_BorrowingsByNameDomain" xlink:title="Definition : ifrs-full_BorrowingsByNameAxis to ifrs-full_BorrowingsByNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ForeignLoansMember" xlink:label="ugp_ForeignLoansMember" xlink:title="ugp_ForeignLoansMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BorrowingsByNameDomain" xlink:to="ugp_ForeignLoansMember" xlink:title="Definition : ifrs-full_BorrowingsByNameDomain to ugp_ForeignLoansMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_BancoDoBrasilMember" xlink:label="ugp_BancoDoBrasilMember" xlink:title="ugp_BancoDoBrasilMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BorrowingsByNameDomain" xlink:to="ugp_BancoDoBrasilMember" xlink:title="Definition : ifrs-full_BorrowingsByNameDomain to ugp_BancoDoBrasilMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NotesInForeignMarketMember" xlink:label="ugp_NotesInForeignMarketMember" xlink:title="ugp_NotesInForeignMarketMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BorrowingsByNameDomain" xlink:to="ugp_NotesInForeignMarketMember" xlink:title="Definition : ifrs-full_BorrowingsByNameDomain to ugp_NotesInForeignMarketMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_BankCreditNoteMember" xlink:label="ugp_BankCreditNoteMember" xlink:title="ugp_BankCreditNoteMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BorrowingsByNameDomain" xlink:to="ugp_BankCreditNoteMember" xlink:title="Definition : ifrs-full_BorrowingsByNameDomain to ugp_BankCreditNoteMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AgribusinessCreditRightsCertificateMember" xlink:label="ugp_AgribusinessCreditRightsCertificateMember" xlink:title="ugp_AgribusinessCreditRightsCertificateMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BorrowingsByNameDomain" xlink:to="ugp_AgribusinessCreditRightsCertificateMember" xlink:title="Definition : ifrs-full_BorrowingsByNameDomain to ugp_AgribusinessCreditRightsCertificateMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsByNameDomain" xlink:label="ifrs-full_BorrowingsByNameDomain_1" xlink:title="ifrs-full_BorrowingsByNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_BorrowingsByNameAxis" xlink:to="ifrs-full_BorrowingsByNameDomain_1" xlink:title="Definition : ifrs-full_BorrowingsByNameAxis to ifrs-full_BorrowingsByNameDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebtInstrumentsAxis" xlink:label="ugp_DebtInstrumentsAxis" xlink:title="ugp_DebtInstrumentsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:to="ugp_DebtInstrumentsAxis" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable to ugp_DebtInstrumentsAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebtInstrumentsDomain" xlink:label="ugp_DebtInstrumentsDomain" xlink:title="ugp_DebtInstrumentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_DebtInstrumentsAxis" xlink:to="ugp_DebtInstrumentsDomain" xlink:title="Definition : ugp_DebtInstrumentsAxis to ugp_DebtInstrumentsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NotesDue2026Member" xlink:label="ugp_NotesDue2026Member" xlink:title="ugp_NotesDue2026Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DebtInstrumentsDomain" xlink:to="ugp_NotesDue2026Member" xlink:title="Definition : ugp_DebtInstrumentsDomain to ugp_NotesDue2026Member" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NotesDue2029Member" xlink:label="ugp_NotesDue2029Member" xlink:title="ugp_NotesDue2029Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DebtInstrumentsDomain" xlink:to="ugp_NotesDue2029Member" xlink:title="Definition : ugp_DebtInstrumentsDomain to ugp_NotesDue2029Member" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebtInstrumentsDomain" xlink:label="ugp_DebtInstrumentsDomain_1" xlink:title="ugp_DebtInstrumentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_DebtInstrumentsAxis" xlink:to="ugp_DebtInstrumentsDomain_1" xlink:title="Definition : ugp_DebtInstrumentsAxis to ugp_DebtInstrumentsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LiabilitiesArisingFromFinancingActivitiesAxis" xlink:label="ifrs-full_LiabilitiesArisingFromFinancingActivitiesAxis" xlink:title="ifrs-full_LiabilitiesArisingFromFinancingActivitiesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:to="ifrs-full_LiabilitiesArisingFromFinancingActivitiesAxis" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable to ifrs-full_LiabilitiesArisingFromFinancingActivitiesAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LiabilitiesArisingFromFinancingActivitiesDomain" xlink:label="ifrs-full_LiabilitiesArisingFromFinancingActivitiesDomain" xlink:title="ifrs-full_LiabilitiesArisingFromFinancingActivitiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_LiabilitiesArisingFromFinancingActivitiesAxis" xlink:to="ifrs-full_LiabilitiesArisingFromFinancingActivitiesDomain" xlink:title="Definition : ifrs-full_LiabilitiesArisingFromFinancingActivitiesAxis to ifrs-full_LiabilitiesArisingFromFinancingActivitiesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_FixedInterestRateMember" xlink:label="ifrs-full_FixedInterestRateMember" xlink:title="ifrs-full_FixedInterestRateMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_LiabilitiesArisingFromFinancingActivitiesDomain" xlink:to="ifrs-full_FixedInterestRateMember" xlink:title="Definition : ifrs-full_LiabilitiesArisingFromFinancingActivitiesDomain to ifrs-full_FixedInterestRateMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LiabilitiesArisingFromFinancingActivitiesDomain" xlink:label="ifrs-full_LiabilitiesArisingFromFinancingActivitiesDomain_1" xlink:title="ifrs-full_LiabilitiesArisingFromFinancingActivitiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_LiabilitiesArisingFromFinancingActivitiesAxis" xlink:to="ifrs-full_LiabilitiesArisingFromFinancingActivitiesDomain_1" xlink:title="Definition : ifrs-full_LiabilitiesArisingFromFinancingActivitiesAxis to ifrs-full_LiabilitiesArisingFromFinancingActivitiesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable to ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SubsidiariesMember" xlink:label="ifrs-full_SubsidiariesMember" xlink:title="ifrs-full_SubsidiariesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ifrs-full_SubsidiariesMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ifrs-full_SubsidiariesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltraparInternationalSAMember" xlink:label="ugp_UltraparInternationalSAMember" xlink:title="ugp_UltraparInternationalSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SubsidiariesMember" xlink:to="ugp_UltraparInternationalSAMember" xlink:title="Definition : ifrs-full_SubsidiariesMember to ugp_UltraparInternationalSAMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IconicLubrificantesSAMember" xlink:label="ugp_IconicLubrificantesSAMember" xlink:title="ugp_IconicLubrificantesSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SubsidiariesMember" xlink:to="ugp_IconicLubrificantesSAMember" xlink:title="Definition : ifrs-full_SubsidiariesMember to ugp_IconicLubrificantesSAMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CompanhiaUltragazMember" xlink:label="ugp_CompanhiaUltragazMember" xlink:title="ugp_CompanhiaUltragazMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SubsidiariesMember" xlink:to="ugp_CompanhiaUltragazMember" xlink:title="Definition : ifrs-full_SubsidiariesMember to ugp_CompanhiaUltragazMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IpirangaProdutosdePetroleoSAMember" xlink:label="ugp_IpirangaProdutosdePetroleoSAMember" xlink:title="ugp_IpirangaProdutosdePetroleoSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SubsidiariesMember" xlink:to="ugp_IpirangaProdutosdePetroleoSAMember" xlink:title="Definition : ifrs-full_SubsidiariesMember to ugp_IpirangaProdutosdePetroleoSAMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AbasteceAiMember" xlink:label="ugp_AbasteceAiMember" xlink:title="ugp_AbasteceAiMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SubsidiariesMember" xlink:to="ugp_AbasteceAiMember" xlink:title="Definition : ifrs-full_SubsidiariesMember to ugp_AbasteceAiMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OxitenoMexicoSADeCVMember" xlink:label="ugp_OxitenoMexicoSADeCVMember" xlink:title="ugp_OxitenoMexicoSADeCVMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SubsidiariesMember" xlink:to="ugp_OxitenoMexicoSADeCVMember" xlink:title="Definition : ifrs-full_SubsidiariesMember to ugp_OxitenoMexicoSADeCVMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:label="ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:title="ifrs-full_ClassesOfFinancialInstrumentsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:to="ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable to ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:title="ifrs-full_ClassesOfFinancialInstrumentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:to="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsAxis to ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ChargesMember" xlink:label="ugp_ChargesMember" xlink:title="ugp_ChargesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_ChargesMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_ChargesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="ifrs-full_ClassesOfFinancialInstrumentsDomain_1" xlink:title="ifrs-full_ClassesOfFinancialInstrumentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:to="ifrs-full_ClassesOfFinancialInstrumentsDomain_1" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsAxis to ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfRateregulatedActivitiesAxis" xlink:label="ifrs-full_TypesOfRateregulatedActivitiesAxis" xlink:title="ifrs-full_TypesOfRateregulatedActivitiesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:to="ifrs-full_TypesOfRateregulatedActivitiesAxis" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable to ifrs-full_TypesOfRateregulatedActivitiesAxis" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfRateregulatedActivitiesDomain" xlink:label="ifrs-full_TypesOfRateregulatedActivitiesDomain" xlink:title="ifrs-full_TypesOfRateregulatedActivitiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_TypesOfRateregulatedActivitiesAxis" xlink:to="ifrs-full_TypesOfRateregulatedActivitiesDomain" xlink:title="Definition : ifrs-full_TypesOfRateregulatedActivitiesAxis to ifrs-full_TypesOfRateregulatedActivitiesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_RestrictedAssetsMember" xlink:label="ugp_RestrictedAssetsMember" xlink:title="ugp_RestrictedAssetsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfRateregulatedActivitiesDomain" xlink:to="ugp_RestrictedAssetsMember" xlink:title="Definition : ifrs-full_TypesOfRateregulatedActivitiesDomain to ugp_RestrictedAssetsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfRateregulatedActivitiesDomain" xlink:label="ifrs-full_TypesOfRateregulatedActivitiesDomain_1" xlink:title="ifrs-full_TypesOfRateregulatedActivitiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_TypesOfRateregulatedActivitiesAxis" xlink:to="ifrs-full_TypesOfRateregulatedActivitiesDomain_1" xlink:title="Definition : ifrs-full_TypesOfRateregulatedActivitiesAxis to ifrs-full_TypesOfRateregulatedActivitiesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfLiabilitiesAxis" xlink:label="ifrs-full_ClassesOfLiabilitiesAxis" xlink:title="ifrs-full_ClassesOfLiabilitiesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:to="ifrs-full_ClassesOfLiabilitiesAxis" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable to ifrs-full_ClassesOfLiabilitiesAxis" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfLiabilitiesDomain" xlink:label="ifrs-full_ClassesOfLiabilitiesDomain" xlink:title="ifrs-full_ClassesOfLiabilitiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ClassesOfLiabilitiesAxis" xlink:to="ifrs-full_ClassesOfLiabilitiesDomain" xlink:title="Definition : ifrs-full_ClassesOfLiabilitiesAxis to ifrs-full_ClassesOfLiabilitiesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_Loan1Member" xlink:label="ugp_Loan1Member" xlink:title="ugp_Loan1Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfLiabilitiesDomain" xlink:to="ugp_Loan1Member" xlink:title="Definition : ifrs-full_ClassesOfLiabilitiesDomain to ugp_Loan1Member" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfLiabilitiesDomain" xlink:label="ifrs-full_ClassesOfLiabilitiesDomain_1" xlink:title="ifrs-full_ClassesOfLiabilitiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ClassesOfLiabilitiesAxis" xlink:to="ifrs-full_ClassesOfLiabilitiesDomain_1" xlink:title="Definition : ifrs-full_ClassesOfLiabilitiesAxis to ifrs-full_ClassesOfLiabilitiesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/CommitmentsContractsDetail">
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SummaryOfContractCommitmentsLineItems" xlink:label="ugp_SummaryOfContractCommitmentsLineItems" xlink:title="ugp_SummaryOfContractCommitmentsLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CargoPort" xlink:label="ugp_CargoPort" xlink:title="ugp_CargoPort" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfContractCommitmentsLineItems" xlink:to="ugp_CargoPort" xlink:title="Definition : ugp_SummaryOfContractCommitmentsLineItems to ugp_CargoPort" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_MinimumCargoMovementPerYear" xlink:label="ugp_MinimumCargoMovementPerYear" xlink:title="ugp_MinimumCargoMovementPerYear" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfContractCommitmentsLineItems" xlink:to="ugp_MinimumCargoMovementPerYear" xlink:title="Definition : ugp_SummaryOfContractCommitmentsLineItems to ugp_MinimumCargoMovementPerYear" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CargoAgreementMaturity" xlink:label="ugp_CargoAgreementMaturity" xlink:title="ugp_CargoAgreementMaturity" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfContractCommitmentsLineItems" xlink:to="ugp_CargoAgreementMaturity" xlink:title="Definition : ugp_SummaryOfContractCommitmentsLineItems to ugp_CargoAgreementMaturity" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CommitmentsTable" xlink:label="ugp_CommitmentsTable" xlink:title="ugp_CommitmentsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ugp_SummaryOfContractCommitmentsLineItems" xlink:to="ugp_CommitmentsTable" xlink:title="Definition : ugp_SummaryOfContractCommitmentsLineItems to ugp_CommitmentsTable" xlink:type="arc" order="3" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfContractsAxis" xlink:label="ifrs-full_TypesOfContractsAxis" xlink:title="ifrs-full_TypesOfContractsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_CommitmentsTable" xlink:to="ifrs-full_TypesOfContractsAxis" xlink:title="Definition : ugp_CommitmentsTable to ifrs-full_TypesOfContractsAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfContractsDomain" xlink:label="ifrs-full_TypesOfContractsDomain" xlink:title="ifrs-full_TypesOfContractsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_TypesOfContractsAxis" xlink:to="ifrs-full_TypesOfContractsDomain" xlink:title="Definition : ifrs-full_TypesOfContractsAxis to ifrs-full_TypesOfContractsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CargoContractOneMember" xlink:label="ugp_CargoContractOneMember" xlink:title="ugp_CargoContractOneMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfContractsDomain" xlink:to="ugp_CargoContractOneMember" xlink:title="Definition : ifrs-full_TypesOfContractsDomain to ugp_CargoContractOneMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CargoContractTwoMember" xlink:label="ugp_CargoContractTwoMember" xlink:title="ugp_CargoContractTwoMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfContractsDomain" xlink:to="ugp_CargoContractTwoMember" xlink:title="Definition : ifrs-full_TypesOfContractsDomain to ugp_CargoContractTwoMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CargoContractThreeMember" xlink:label="ugp_CargoContractThreeMember" xlink:title="ugp_CargoContractThreeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfContractsDomain" xlink:to="ugp_CargoContractThreeMember" xlink:title="Definition : ifrs-full_TypesOfContractsDomain to ugp_CargoContractThreeMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CargoContractFourMember" xlink:label="ugp_CargoContractFourMember" xlink:title="ugp_CargoContractFourMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfContractsDomain" xlink:to="ugp_CargoContractFourMember" xlink:title="Definition : ifrs-full_TypesOfContractsDomain to ugp_CargoContractFourMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CargoContractFiveMember" xlink:label="ugp_CargoContractFiveMember" xlink:title="ugp_CargoContractFiveMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfContractsDomain" xlink:to="ugp_CargoContractFiveMember" xlink:title="Definition : ifrs-full_TypesOfContractsDomain to ugp_CargoContractFiveMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CargoContractSixMember" xlink:label="ugp_CargoContractSixMember" xlink:title="ugp_CargoContractSixMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfContractsDomain" xlink:to="ugp_CargoContractSixMember" xlink:title="Definition : ifrs-full_TypesOfContractsDomain to ugp_CargoContractSixMember" xlink:type="arc" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfContractsDomain" xlink:label="ifrs-full_TypesOfContractsDomain_1" xlink:title="ifrs-full_TypesOfContractsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_TypesOfContractsAxis" xlink:to="ifrs-full_TypesOfContractsDomain_1" xlink:title="Definition : ifrs-full_TypesOfContractsAxis to ifrs-full_TypesOfContractsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/RisksandFinancialInstrumentsSummaryoflossallowanceforexpectedcreditlossesbalancesbygeographicareaDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:label="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:title="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:label="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:title="ifrs-full_DisclosureOfFinancialInstrumentsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:type="arc" order="0" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_StatementGeographicalAxis" xlink:label="srt_StatementGeographicalAxis" xlink:title="srt_StatementGeographicalAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="srt_StatementGeographicalAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsTable to srt_StatementGeographicalAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_SegmentGeographicalDomain" xlink:label="srt_SegmentGeographicalDomain" xlink:title="srt_SegmentGeographicalDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_StatementGeographicalAxis" xlink:to="srt_SegmentGeographicalDomain" xlink:title="Definition : srt_StatementGeographicalAxis to srt_SegmentGeographicalDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2024/country-2024.xsd#country_BR" xlink:label="country_BR" xlink:title="country_BR" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_SegmentGeographicalDomain" xlink:to="country_BR" xlink:title="Definition : srt_SegmentGeographicalDomain to country_BR" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UnitedStatesOfAmericaAndCanadaMember" xlink:label="ugp_UnitedStatesOfAmericaAndCanadaMember" xlink:title="ugp_UnitedStatesOfAmericaAndCanadaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_SegmentGeographicalDomain" xlink:to="ugp_UnitedStatesOfAmericaAndCanadaMember" xlink:title="Definition : srt_SegmentGeographicalDomain to ugp_UnitedStatesOfAmericaAndCanadaMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OtherLatinAmericanCountriesMember" xlink:label="ugp_OtherLatinAmericanCountriesMember" xlink:title="ugp_OtherLatinAmericanCountriesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_SegmentGeographicalDomain" xlink:to="ugp_OtherLatinAmericanCountriesMember" xlink:title="Definition : srt_SegmentGeographicalDomain to ugp_OtherLatinAmericanCountriesMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_EuropeMember" xlink:label="srt_EuropeMember" xlink:title="srt_EuropeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_SegmentGeographicalDomain" xlink:to="srt_EuropeMember" xlink:title="Definition : srt_SegmentGeographicalDomain to srt_EuropeMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AsiaAndOthersRegionsMember" xlink:label="ugp_AsiaAndOthersRegionsMember" xlink:title="ugp_AsiaAndOthersRegionsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_SegmentGeographicalDomain" xlink:to="ugp_AsiaAndOthersRegionsMember" xlink:title="Definition : srt_SegmentGeographicalDomain to ugp_AsiaAndOthersRegionsMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_SegmentGeographicalDomain" xlink:label="srt_SegmentGeographicalDomain_1" xlink:title="srt_SegmentGeographicalDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_StatementGeographicalAxis" xlink:to="srt_SegmentGeographicalDomain_1" xlink:title="Definition : srt_StatementGeographicalAxis to srt_SegmentGeographicalDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/RisksandFinancialInstrumentsLossallowanceforexpectedcreditlossesbalancesontradereceivablesDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:label="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:title="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:label="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:title="ifrs-full_DisclosureOfFinancialInstrumentsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:type="arc" order="0" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SegmentsAxis" xlink:label="ifrs-full_SegmentsAxis" xlink:title="ifrs-full_SegmentsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="ifrs-full_SegmentsAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsTable to ifrs-full_SegmentsAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SegmentsDomain" xlink:label="ifrs-full_SegmentsDomain" xlink:title="ifrs-full_SegmentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SegmentsAxis" xlink:to="ifrs-full_SegmentsDomain" xlink:title="Definition : ifrs-full_SegmentsAxis to ifrs-full_SegmentsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IpirangaMember" xlink:label="ugp_IpirangaMember" xlink:title="ugp_IpirangaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SegmentsDomain" xlink:to="ugp_IpirangaMember" xlink:title="Definition : ifrs-full_SegmentsDomain to ugp_IpirangaMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltragazMember" xlink:label="ugp_UltragazMember" xlink:title="ugp_UltragazMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SegmentsDomain" xlink:to="ugp_UltragazMember" xlink:title="Definition : ifrs-full_SegmentsDomain to ugp_UltragazMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OxitenoMember" xlink:label="ugp_OxitenoMember" xlink:title="ugp_OxitenoMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SegmentsDomain" xlink:to="ugp_OxitenoMember" xlink:title="Definition : ifrs-full_SegmentsDomain to ugp_OxitenoMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ExtrafarmaMember" xlink:label="ugp_ExtrafarmaMember" xlink:title="ugp_ExtrafarmaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SegmentsDomain" xlink:to="ugp_ExtrafarmaMember" xlink:title="Definition : ifrs-full_SegmentsDomain to ugp_ExtrafarmaMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltracargoMember" xlink:label="ugp_UltracargoMember" xlink:title="ugp_UltracargoMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SegmentsDomain" xlink:to="ugp_UltracargoMember" xlink:title="Definition : ifrs-full_SegmentsDomain to ugp_UltracargoMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AllOtherSegmentsMember" xlink:label="ifrs-full_AllOtherSegmentsMember" xlink:title="ifrs-full_AllOtherSegmentsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SegmentsDomain" xlink:to="ifrs-full_AllOtherSegmentsMember" xlink:title="Definition : ifrs-full_SegmentsDomain to ifrs-full_AllOtherSegmentsMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SegmentsDomain" xlink:label="ifrs-full_SegmentsDomain_1" xlink:title="ifrs-full_SegmentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SegmentsAxis" xlink:to="ifrs-full_SegmentsDomain_1" xlink:title="Definition : ifrs-full_SegmentsAxis to ifrs-full_SegmentsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/FinancialInstrumentsSummaryofcreditriskoffinancialinstitutionandgovernmentofcashcashequivalentsandfinancialinvestmentsDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfExternalCreditExposuresLineItems" xlink:label="ifrs-full_DisclosureOfExternalCreditExposuresLineItems" xlink:title="ifrs-full_DisclosureOfExternalCreditExposuresLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CashCashEquivalentsAndFinancialInvestments" xlink:label="ugp_CashCashEquivalentsAndFinancialInvestments" xlink:title="ugp_CashCashEquivalentsAndFinancialInvestments" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfExternalCreditExposuresLineItems" xlink:to="ugp_CashCashEquivalentsAndFinancialInvestments" xlink:title="Definition : ifrs-full_DisclosureOfExternalCreditExposuresLineItems to ugp_CashCashEquivalentsAndFinancialInvestments" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfExternalCreditExposuresTable" xlink:label="ifrs-full_DisclosureOfExternalCreditExposuresTable" xlink:title="ifrs-full_DisclosureOfExternalCreditExposuresTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfExternalCreditExposuresLineItems" xlink:to="ifrs-full_DisclosureOfExternalCreditExposuresTable" xlink:title="Definition : ifrs-full_DisclosureOfExternalCreditExposuresLineItems to ifrs-full_DisclosureOfExternalCreditExposuresTable" xlink:type="arc" use="optional" order="1" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ExternalCreditGradesAxis" xlink:label="ifrs-full_ExternalCreditGradesAxis" xlink:title="ifrs-full_ExternalCreditGradesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfExternalCreditExposuresTable" xlink:to="ifrs-full_ExternalCreditGradesAxis" xlink:title="Definition : ifrs-full_DisclosureOfExternalCreditExposuresTable to ifrs-full_ExternalCreditGradesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ExternalCreditGradesDomain" xlink:label="ifrs-full_ExternalCreditGradesDomain" xlink:title="ifrs-full_ExternalCreditGradesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ExternalCreditGradesAxis" xlink:to="ifrs-full_ExternalCreditGradesDomain" xlink:title="Definition : ifrs-full_ExternalCreditGradesAxis to ifrs-full_ExternalCreditGradesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AAAMember" xlink:label="ugp_AAAMember" xlink:title="ugp_AAAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ExternalCreditGradesDomain" xlink:to="ugp_AAAMember" xlink:title="Definition : ifrs-full_ExternalCreditGradesDomain to ugp_AAAMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AAMember" xlink:label="ugp_AAMember" xlink:title="ugp_AAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ExternalCreditGradesDomain" xlink:to="ugp_AAMember" xlink:title="Definition : ifrs-full_ExternalCreditGradesDomain to ugp_AAMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AMember" xlink:label="ugp_AMember" xlink:title="ugp_AMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ExternalCreditGradesDomain" xlink:to="ugp_AMember" xlink:title="Definition : ifrs-full_ExternalCreditGradesDomain to ugp_AMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OtherExternalCreditGradesMember" xlink:label="ugp_OtherExternalCreditGradesMember" xlink:title="ugp_OtherExternalCreditGradesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ExternalCreditGradesDomain" xlink:to="ugp_OtherExternalCreditGradesMember" xlink:title="Definition : ifrs-full_ExternalCreditGradesDomain to ugp_OtherExternalCreditGradesMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ExternalCreditGradesDomain" xlink:label="ifrs-full_ExternalCreditGradesDomain_1" xlink:title="ifrs-full_ExternalCreditGradesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ExternalCreditGradesAxis" xlink:to="ifrs-full_ExternalCreditGradesDomain_1" xlink:title="Definition : ifrs-full_ExternalCreditGradesAxis to ifrs-full_ExternalCreditGradesDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/FinancialInstrumentsSensitivityanalysiswithdevaluationoftheRealandinterestrateincreaseDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:label="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:title="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncomeStatementEffectDecrease" xlink:label="ugp_IncomeStatementEffectDecrease" xlink:title="ugp_IncomeStatementEffectDecrease" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_IncomeStatementEffectDecrease" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_IncomeStatementEffectDecrease" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncomeStatementEffectDecreaseShareHoldersEquityIncreaseNetEffect" xlink:label="ugp_IncomeStatementEffectDecreaseShareHoldersEquityIncreaseNetEffect" xlink:title="ugp_IncomeStatementEffectDecreaseShareHoldersEquityIncreaseNetEffect" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_IncomeStatementEffectDecreaseShareHoldersEquityIncreaseNetEffect" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_IncomeStatementEffectDecreaseShareHoldersEquityIncreaseNetEffect" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:label="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:title="ifrs-full_DisclosureOfFinancialInstrumentsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:type="arc" order="2" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfRisksAxis" xlink:label="ifrs-full_TypesOfRisksAxis" xlink:title="ifrs-full_TypesOfRisksAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="ifrs-full_TypesOfRisksAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsTable to ifrs-full_TypesOfRisksAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfRisksDomain" xlink:label="ifrs-full_TypesOfRisksDomain" xlink:title="ifrs-full_TypesOfRisksDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_TypesOfRisksAxis" xlink:to="ifrs-full_TypesOfRisksDomain" xlink:title="Definition : ifrs-full_TypesOfRisksAxis to ifrs-full_TypesOfRisksDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CurrencyRiskMember" xlink:label="ifrs-full_CurrencyRiskMember" xlink:title="ifrs-full_CurrencyRiskMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfRisksDomain" xlink:to="ifrs-full_CurrencyRiskMember" xlink:title="Definition : ifrs-full_TypesOfRisksDomain to ifrs-full_CurrencyRiskMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_InterestRateRiskMember" xlink:label="ifrs-full_InterestRateRiskMember" xlink:title="ifrs-full_InterestRateRiskMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfRisksDomain" xlink:to="ifrs-full_InterestRateRiskMember" xlink:title="Definition : ifrs-full_TypesOfRisksDomain to ifrs-full_InterestRateRiskMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfRisksDomain" xlink:label="ifrs-full_TypesOfRisksDomain_1" xlink:title="ifrs-full_TypesOfRisksDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_TypesOfRisksAxis" xlink:to="ifrs-full_TypesOfRisksDomain_1" xlink:title="Definition : ifrs-full_TypesOfRisksAxis to ifrs-full_TypesOfRisksDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/LoansfinancingdebenturesandderivativefinancialinstrumentsNarrativeofDebenturesDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:label="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:title="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfDebentureSeriesIssued" xlink:label="ugp_NumberOfDebentureSeriesIssued" xlink:title="ugp_NumberOfDebentureSeriesIssued" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_NumberOfDebentureSeriesIssued" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_NumberOfDebentureSeriesIssued" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfDebenturesDistributedThroughPublicOffer" xlink:label="ugp_NumberOfDebenturesDistributedThroughPublicOffer" xlink:title="ugp_NumberOfDebenturesDistributedThroughPublicOffer" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_NumberOfDebenturesDistributedThroughPublicOffer" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_NumberOfDebenturesDistributedThroughPublicOffer" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfDebenturesIssued" xlink:label="ugp_NumberOfDebenturesIssued" xlink:title="ugp_NumberOfDebenturesIssued" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_NumberOfDebenturesIssued" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_NumberOfDebenturesIssued" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProvisionOfGuaranteesOrCollateralByEntityRelatedPartyTransactions" xlink:label="ifrs-full_ProvisionOfGuaranteesOrCollateralByEntityRelatedPartyTransactions" xlink:title="ifrs-full_ProvisionOfGuaranteesOrCollateralByEntityRelatedPartyTransactions" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_ProvisionOfGuaranteesOrCollateralByEntityRelatedPartyTransactions" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_ProvisionOfGuaranteesOrCollateralByEntityRelatedPartyTransactions" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:label="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:title="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:type="arc" order="4" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebentureAxis" xlink:label="ugp_DebentureAxis" xlink:title="ugp_DebentureAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:to="ugp_DebentureAxis" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable to ugp_DebentureAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebentureDomain" xlink:label="ugp_DebentureDomain" xlink:title="ugp_DebentureDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_DebentureAxis" xlink:to="ugp_DebentureDomain" xlink:title="Definition : ugp_DebentureAxis to ugp_DebentureDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebentureOneMember" xlink:label="ugp_DebentureOneMember" xlink:title="ugp_DebentureOneMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DebentureDomain" xlink:to="ugp_DebentureOneMember" xlink:title="Definition : ugp_DebentureDomain to ugp_DebentureOneMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebentureTwoMember" xlink:label="ugp_DebentureTwoMember" xlink:title="ugp_DebentureTwoMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DebentureDomain" xlink:to="ugp_DebentureTwoMember" xlink:title="Definition : ugp_DebentureDomain to ugp_DebentureTwoMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebentureThreeMember" xlink:label="ugp_DebentureThreeMember" xlink:title="ugp_DebentureThreeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DebentureDomain" xlink:to="ugp_DebentureThreeMember" xlink:title="Definition : ugp_DebentureDomain to ugp_DebentureThreeMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebentureFourMember" xlink:label="ugp_DebentureFourMember" xlink:title="ugp_DebentureFourMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DebentureDomain" xlink:to="ugp_DebentureFourMember" xlink:title="Definition : ugp_DebentureDomain to ugp_DebentureFourMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebentureFiveMember" xlink:label="ugp_DebentureFiveMember" xlink:title="ugp_DebentureFiveMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DebentureDomain" xlink:to="ugp_DebentureFiveMember" xlink:title="Definition : ugp_DebentureDomain to ugp_DebentureFiveMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebentureSixMember" xlink:label="ugp_DebentureSixMember" xlink:title="ugp_DebentureSixMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DebentureDomain" xlink:to="ugp_DebentureSixMember" xlink:title="Definition : ugp_DebentureDomain to ugp_DebentureSixMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebentureSevenMember" xlink:label="ugp_DebentureSevenMember" xlink:title="ugp_DebentureSevenMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DebentureDomain" xlink:to="ugp_DebentureSevenMember" xlink:title="Definition : ugp_DebentureDomain to ugp_DebentureSevenMember" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebentureEightMember" xlink:label="ugp_DebentureEightMember" xlink:title="ugp_DebentureEightMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DebentureDomain" xlink:to="ugp_DebentureEightMember" xlink:title="Definition : ugp_DebentureDomain to ugp_DebentureEightMember" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebentureNineMember" xlink:label="ugp_DebentureNineMember" xlink:title="ugp_DebentureNineMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DebentureDomain" xlink:to="ugp_DebentureNineMember" xlink:title="Definition : ugp_DebentureDomain to ugp_DebentureNineMember" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebentureTenMember" xlink:label="ugp_DebentureTenMember" xlink:title="ugp_DebentureTenMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DebentureDomain" xlink:to="ugp_DebentureTenMember" xlink:title="Definition : ugp_DebentureDomain to ugp_DebentureTenMember" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebentureElevenMember" xlink:label="ugp_DebentureElevenMember" xlink:title="ugp_DebentureElevenMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DebentureDomain" xlink:to="ugp_DebentureElevenMember" xlink:title="Definition : ugp_DebentureDomain to ugp_DebentureElevenMember" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebentureTwelveMember" xlink:label="ugp_DebentureTwelveMember" xlink:title="ugp_DebentureTwelveMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DebentureDomain" xlink:to="ugp_DebentureTwelveMember" xlink:title="Definition : ugp_DebentureDomain to ugp_DebentureTwelveMember" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebentureThirteenMember" xlink:label="ugp_DebentureThirteenMember" xlink:title="ugp_DebentureThirteenMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DebentureDomain" xlink:to="ugp_DebentureThirteenMember" xlink:title="Definition : ugp_DebentureDomain to ugp_DebentureThirteenMember" xlink:type="arc" use="optional" order="12" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebentureDomain" xlink:label="ugp_DebentureDomain_1" xlink:title="ugp_DebentureDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_DebentureAxis" xlink:to="ugp_DebentureDomain_1" xlink:title="Definition : ugp_DebentureAxis to ugp_DebentureDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsByNameAxis" xlink:label="ifrs-full_BorrowingsByNameAxis" xlink:title="ifrs-full_BorrowingsByNameAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:to="ifrs-full_BorrowingsByNameAxis" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable to ifrs-full_BorrowingsByNameAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsByNameDomain" xlink:label="ifrs-full_BorrowingsByNameDomain" xlink:title="ifrs-full_BorrowingsByNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_BorrowingsByNameAxis" xlink:to="ifrs-full_BorrowingsByNameDomain" xlink:title="Definition : ifrs-full_BorrowingsByNameAxis to ifrs-full_BorrowingsByNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebenturesFirstIssueMember" xlink:label="ugp_DebenturesFirstIssueMember" xlink:title="ugp_DebenturesFirstIssueMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BorrowingsByNameDomain" xlink:to="ugp_DebenturesFirstIssueMember" xlink:title="Definition : ifrs-full_BorrowingsByNameDomain to ugp_DebenturesFirstIssueMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebenturesSecondIssueMember" xlink:label="ugp_DebenturesSecondIssueMember" xlink:title="ugp_DebenturesSecondIssueMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BorrowingsByNameDomain" xlink:to="ugp_DebenturesSecondIssueMember" xlink:title="Definition : ifrs-full_BorrowingsByNameDomain to ugp_DebenturesSecondIssueMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebenturesFourthIssueMember" xlink:label="ugp_DebenturesFourthIssueMember" xlink:title="ugp_DebenturesFourthIssueMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BorrowingsByNameDomain" xlink:to="ugp_DebenturesFourthIssueMember" xlink:title="Definition : ifrs-full_BorrowingsByNameDomain to ugp_DebenturesFourthIssueMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebenturesFifthIssueMember" xlink:label="ugp_DebenturesFifthIssueMember" xlink:title="ugp_DebenturesFifthIssueMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BorrowingsByNameDomain" xlink:to="ugp_DebenturesFifthIssueMember" xlink:title="Definition : ifrs-full_BorrowingsByNameDomain to ugp_DebenturesFifthIssueMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebenturesSixthIssueMember" xlink:label="ugp_DebenturesSixthIssueMember" xlink:title="ugp_DebenturesSixthIssueMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BorrowingsByNameDomain" xlink:to="ugp_DebenturesSixthIssueMember" xlink:title="Definition : ifrs-full_BorrowingsByNameDomain to ugp_DebenturesSixthIssueMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebenturesSeventhIssueMember" xlink:label="ugp_DebenturesSeventhIssueMember" xlink:title="ugp_DebenturesSeventhIssueMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BorrowingsByNameDomain" xlink:to="ugp_DebenturesSeventhIssueMember" xlink:title="Definition : ifrs-full_BorrowingsByNameDomain to ugp_DebenturesSeventhIssueMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebenturesEighthIssueMember" xlink:label="ugp_DebenturesEighthIssueMember" xlink:title="ugp_DebenturesEighthIssueMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BorrowingsByNameDomain" xlink:to="ugp_DebenturesEighthIssueMember" xlink:title="Definition : ifrs-full_BorrowingsByNameDomain to ugp_DebenturesEighthIssueMember" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebenturesTenthIssueMember" xlink:label="ugp_DebenturesTenthIssueMember" xlink:title="ugp_DebenturesTenthIssueMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BorrowingsByNameDomain" xlink:to="ugp_DebenturesTenthIssueMember" xlink:title="Definition : ifrs-full_BorrowingsByNameDomain to ugp_DebenturesTenthIssueMember" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebenturesEleventhIssueMember" xlink:label="ugp_DebenturesEleventhIssueMember" xlink:title="ugp_DebenturesEleventhIssueMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BorrowingsByNameDomain" xlink:to="ugp_DebenturesEleventhIssueMember" xlink:title="Definition : ifrs-full_BorrowingsByNameDomain to ugp_DebenturesEleventhIssueMember" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsByNameDomain" xlink:label="ifrs-full_BorrowingsByNameDomain_1" xlink:title="ifrs-full_BorrowingsByNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_BorrowingsByNameAxis" xlink:to="ifrs-full_BorrowingsByNameDomain_1" xlink:title="Definition : ifrs-full_BorrowingsByNameAxis to ifrs-full_BorrowingsByNameDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable to ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IpirangaProdutosdePetroleoSAMember" xlink:label="ugp_IpirangaProdutosdePetroleoSAMember" xlink:title="ugp_IpirangaProdutosdePetroleoSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_IpirangaProdutosdePetroleoSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_IpirangaProdutosdePetroleoSAMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltracargoLogisticaSAMember" xlink:label="ugp_UltracargoLogisticaSAMember" xlink:title="ugp_UltracargoLogisticaSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltracargoLogisticaSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltracargoLogisticaSAMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TequimarVilaDoCondeMember" xlink:label="ugp_TequimarVilaDoCondeMember" xlink:title="ugp_TequimarVilaDoCondeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_TequimarVilaDoCondeMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_TequimarVilaDoCondeMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/SegmentInformationRevenueFromOperationsAbroadDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:label="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:title="ifrs-full_DisclosureOfOperatingSegmentsLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_Revenue" xlink:label="ifrs-full_Revenue" xlink:title="ifrs-full_Revenue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ifrs-full_Revenue" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ifrs-full_Revenue" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:label="ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:title="ifrs-full_DisclosureOfOperatingSegmentsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="ifrs-full_GeographicalAreasAxis" xlink:title="ifrs-full_GeographicalAreasAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:to="ifrs-full_GeographicalAreasAxis" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsTable to ifrs-full_GeographicalAreasAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="ifrs-full_GeographicalAreasDomain" xlink:title="ifrs-full_GeographicalAreasDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_GeographicalAreasAxis" xlink:to="ifrs-full_GeographicalAreasDomain" xlink:title="Definition : ifrs-full_GeographicalAreasAxis to ifrs-full_GeographicalAreasDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2024/country-2024.xsd#country_BR" xlink:label="country_BR" xlink:title="country_BR" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_GeographicalAreasDomain" xlink:to="country_BR" xlink:title="Definition : ifrs-full_GeographicalAreasDomain to country_BR" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_EuropeMember" xlink:label="srt_EuropeMember" xlink:title="srt_EuropeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_GeographicalAreasDomain" xlink:to="srt_EuropeMember" xlink:title="Definition : ifrs-full_GeographicalAreasDomain to srt_EuropeMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2024/country-2024.xsd#country_SG" xlink:label="country_SG" xlink:title="country_SG" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_GeographicalAreasDomain" xlink:to="country_SG" xlink:title="Definition : ifrs-full_GeographicalAreasDomain to country_SG" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UnitedStatesOfAmericaAndCanadaMember" xlink:label="ugp_UnitedStatesOfAmericaAndCanadaMember" xlink:title="ugp_UnitedStatesOfAmericaAndCanadaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_GeographicalAreasDomain" xlink:to="ugp_UnitedStatesOfAmericaAndCanadaMember" xlink:title="Definition : ifrs-full_GeographicalAreasDomain to ugp_UnitedStatesOfAmericaAndCanadaMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OtherLatinAmericanCountriesMember" xlink:label="ugp_OtherLatinAmericanCountriesMember" xlink:title="ugp_OtherLatinAmericanCountriesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_GeographicalAreasDomain" xlink:to="ugp_OtherLatinAmericanCountriesMember" xlink:title="Definition : ifrs-full_GeographicalAreasDomain to ugp_OtherLatinAmericanCountriesMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AsiaAndOthersRegionsMember" xlink:label="ugp_AsiaAndOthersRegionsMember" xlink:title="ugp_AsiaAndOthersRegionsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_GeographicalAreasDomain" xlink:to="ugp_AsiaAndOthersRegionsMember" xlink:title="Definition : ifrs-full_GeographicalAreasDomain to ugp_AsiaAndOthersRegionsMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OthersRegionsMember" xlink:label="ugp_OthersRegionsMember" xlink:title="ugp_OthersRegionsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_GeographicalAreasDomain" xlink:to="ugp_OthersRegionsMember" xlink:title="Definition : ifrs-full_GeographicalAreasDomain to ugp_OthersRegionsMember" xlink:type="arc" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="ifrs-full_GeographicalAreasDomain_1" xlink:title="ifrs-full_GeographicalAreasDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_GeographicalAreasAxis" xlink:to="ifrs-full_GeographicalAreasDomain_1" xlink:title="Definition : ifrs-full_GeographicalAreasAxis to ifrs-full_GeographicalAreasDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/LoansfinancingdebenturesandderivativefinancialinstrumentsSummaryofDebenturesDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:label="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:title="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsMaturity" xlink:label="ifrs-full_BorrowingsMaturity" xlink:title="ifrs-full_BorrowingsMaturity" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_BorrowingsMaturity" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_BorrowingsMaturity" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NotionalAmount" xlink:label="ifrs-full_NotionalAmount" xlink:title="ifrs-full_NotionalAmount" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_NotionalAmount" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_NotionalAmount" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsInterestRateBasis" xlink:label="ifrs-full_BorrowingsInterestRateBasis" xlink:title="ifrs-full_BorrowingsInterestRateBasis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_BorrowingsInterestRateBasis" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_BorrowingsInterestRateBasis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsAdjustmentToInterestRateBasis" xlink:label="ifrs-full_BorrowingsAdjustmentToInterestRateBasis" xlink:title="ifrs-full_BorrowingsAdjustmentToInterestRateBasis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_BorrowingsAdjustmentToInterestRateBasis" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_BorrowingsAdjustmentToInterestRateBasis" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebenturePaymentOfInterestDescription" xlink:label="ugp_DebenturePaymentOfInterestDescription" xlink:title="ugp_DebenturePaymentOfInterestDescription" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_DebenturePaymentOfInterestDescription" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_DebenturePaymentOfInterestDescription" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebenturePaymentOfFaceValueDescription" xlink:label="ugp_DebenturePaymentOfFaceValueDescription" xlink:title="ugp_DebenturePaymentOfFaceValueDescription" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_DebenturePaymentOfFaceValueDescription" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_DebenturePaymentOfFaceValueDescription" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_FaceValuePerDebtInstrument" xlink:label="ugp_FaceValuePerDebtInstrument" xlink:title="ugp_FaceValuePerDebtInstrument" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_FaceValuePerDebtInstrument" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_FaceValuePerDebtInstrument" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebentureReprice" xlink:label="ugp_DebentureReprice" xlink:title="ugp_DebentureReprice" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_DebentureReprice" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_DebentureReprice" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:label="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:title="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:type="arc" order="8" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebentureAxis" xlink:label="ugp_DebentureAxis" xlink:title="ugp_DebentureAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:to="ugp_DebentureAxis" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable to ugp_DebentureAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebentureDomain" xlink:label="ugp_DebentureDomain" xlink:title="ugp_DebentureDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_DebentureAxis" xlink:to="ugp_DebentureDomain" xlink:title="Definition : ugp_DebentureAxis to ugp_DebentureDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebentureOneMember" xlink:label="ugp_DebentureOneMember" xlink:title="ugp_DebentureOneMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DebentureDomain" xlink:to="ugp_DebentureOneMember" xlink:title="Definition : ugp_DebentureDomain to ugp_DebentureOneMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebentureTwoMember" xlink:label="ugp_DebentureTwoMember" xlink:title="ugp_DebentureTwoMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DebentureDomain" xlink:to="ugp_DebentureTwoMember" xlink:title="Definition : ugp_DebentureDomain to ugp_DebentureTwoMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebentureThreeMember" xlink:label="ugp_DebentureThreeMember" xlink:title="ugp_DebentureThreeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DebentureDomain" xlink:to="ugp_DebentureThreeMember" xlink:title="Definition : ugp_DebentureDomain to ugp_DebentureThreeMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebentureFourMember" xlink:label="ugp_DebentureFourMember" xlink:title="ugp_DebentureFourMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DebentureDomain" xlink:to="ugp_DebentureFourMember" xlink:title="Definition : ugp_DebentureDomain to ugp_DebentureFourMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebentureFiveMember" xlink:label="ugp_DebentureFiveMember" xlink:title="ugp_DebentureFiveMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DebentureDomain" xlink:to="ugp_DebentureFiveMember" xlink:title="Definition : ugp_DebentureDomain to ugp_DebentureFiveMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebentureSixMember" xlink:label="ugp_DebentureSixMember" xlink:title="ugp_DebentureSixMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DebentureDomain" xlink:to="ugp_DebentureSixMember" xlink:title="Definition : ugp_DebentureDomain to ugp_DebentureSixMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebentureSevenMember" xlink:label="ugp_DebentureSevenMember" xlink:title="ugp_DebentureSevenMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DebentureDomain" xlink:to="ugp_DebentureSevenMember" xlink:title="Definition : ugp_DebentureDomain to ugp_DebentureSevenMember" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebentureEightMember" xlink:label="ugp_DebentureEightMember" xlink:title="ugp_DebentureEightMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DebentureDomain" xlink:to="ugp_DebentureEightMember" xlink:title="Definition : ugp_DebentureDomain to ugp_DebentureEightMember" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebentureNineMember" xlink:label="ugp_DebentureNineMember" xlink:title="ugp_DebentureNineMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DebentureDomain" xlink:to="ugp_DebentureNineMember" xlink:title="Definition : ugp_DebentureDomain to ugp_DebentureNineMember" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebentureTenMember" xlink:label="ugp_DebentureTenMember" xlink:title="ugp_DebentureTenMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DebentureDomain" xlink:to="ugp_DebentureTenMember" xlink:title="Definition : ugp_DebentureDomain to ugp_DebentureTenMember" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebentureElevenMember" xlink:label="ugp_DebentureElevenMember" xlink:title="ugp_DebentureElevenMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DebentureDomain" xlink:to="ugp_DebentureElevenMember" xlink:title="Definition : ugp_DebentureDomain to ugp_DebentureElevenMember" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebentureTwelveMember" xlink:label="ugp_DebentureTwelveMember" xlink:title="ugp_DebentureTwelveMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DebentureDomain" xlink:to="ugp_DebentureTwelveMember" xlink:title="Definition : ugp_DebentureDomain to ugp_DebentureTwelveMember" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebentureThirteenMember" xlink:label="ugp_DebentureThirteenMember" xlink:title="ugp_DebentureThirteenMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DebentureDomain" xlink:to="ugp_DebentureThirteenMember" xlink:title="Definition : ugp_DebentureDomain to ugp_DebentureThirteenMember" xlink:type="arc" use="optional" order="12" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebentureFourteenMember" xlink:label="ugp_DebentureFourteenMember" xlink:title="ugp_DebentureFourteenMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DebentureDomain" xlink:to="ugp_DebentureFourteenMember" xlink:title="Definition : ugp_DebentureDomain to ugp_DebentureFourteenMember" xlink:type="arc" order="13" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebentureFifteenMember" xlink:label="ugp_DebentureFifteenMember" xlink:title="ugp_DebentureFifteenMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DebentureDomain" xlink:to="ugp_DebentureFifteenMember" xlink:title="Definition : ugp_DebentureDomain to ugp_DebentureFifteenMember" xlink:type="arc" order="14" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebentureDomain" xlink:label="ugp_DebentureDomain_1" xlink:title="ugp_DebentureDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_DebentureAxis" xlink:to="ugp_DebentureDomain_1" xlink:title="Definition : ugp_DebentureAxis to ugp_DebentureDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsByNameAxis" xlink:label="ifrs-full_BorrowingsByNameAxis" xlink:title="ifrs-full_BorrowingsByNameAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:to="ifrs-full_BorrowingsByNameAxis" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable to ifrs-full_BorrowingsByNameAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsByNameDomain" xlink:label="ifrs-full_BorrowingsByNameDomain" xlink:title="ifrs-full_BorrowingsByNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_BorrowingsByNameAxis" xlink:to="ifrs-full_BorrowingsByNameDomain" xlink:title="Definition : ifrs-full_BorrowingsByNameAxis to ifrs-full_BorrowingsByNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebenturesFirstIssueMember" xlink:label="ugp_DebenturesFirstIssueMember" xlink:title="ugp_DebenturesFirstIssueMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BorrowingsByNameDomain" xlink:to="ugp_DebenturesFirstIssueMember" xlink:title="Definition : ifrs-full_BorrowingsByNameDomain to ugp_DebenturesFirstIssueMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebenturesSecondIssueMember" xlink:label="ugp_DebenturesSecondIssueMember" xlink:title="ugp_DebenturesSecondIssueMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BorrowingsByNameDomain" xlink:to="ugp_DebenturesSecondIssueMember" xlink:title="Definition : ifrs-full_BorrowingsByNameDomain to ugp_DebenturesSecondIssueMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebenturesThirdIssueMember" xlink:label="ugp_DebenturesThirdIssueMember" xlink:title="ugp_DebenturesThirdIssueMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BorrowingsByNameDomain" xlink:to="ugp_DebenturesThirdIssueMember" xlink:title="Definition : ifrs-full_BorrowingsByNameDomain to ugp_DebenturesThirdIssueMember" xlink:type="arc" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebenturesFourthIssueMember" xlink:label="ugp_DebenturesFourthIssueMember" xlink:title="ugp_DebenturesFourthIssueMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BorrowingsByNameDomain" xlink:to="ugp_DebenturesFourthIssueMember" xlink:title="Definition : ifrs-full_BorrowingsByNameDomain to ugp_DebenturesFourthIssueMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebenturesFifthIssueMember" xlink:label="ugp_DebenturesFifthIssueMember" xlink:title="ugp_DebenturesFifthIssueMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BorrowingsByNameDomain" xlink:to="ugp_DebenturesFifthIssueMember" xlink:title="Definition : ifrs-full_BorrowingsByNameDomain to ugp_DebenturesFifthIssueMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebenturesSixthIssueMember" xlink:label="ugp_DebenturesSixthIssueMember" xlink:title="ugp_DebenturesSixthIssueMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BorrowingsByNameDomain" xlink:to="ugp_DebenturesSixthIssueMember" xlink:title="Definition : ifrs-full_BorrowingsByNameDomain to ugp_DebenturesSixthIssueMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebenturesSeventhIssueMember" xlink:label="ugp_DebenturesSeventhIssueMember" xlink:title="ugp_DebenturesSeventhIssueMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BorrowingsByNameDomain" xlink:to="ugp_DebenturesSeventhIssueMember" xlink:title="Definition : ifrs-full_BorrowingsByNameDomain to ugp_DebenturesSeventhIssueMember" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebenturesEighthIssueMember" xlink:label="ugp_DebenturesEighthIssueMember" xlink:title="ugp_DebenturesEighthIssueMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BorrowingsByNameDomain" xlink:to="ugp_DebenturesEighthIssueMember" xlink:title="Definition : ifrs-full_BorrowingsByNameDomain to ugp_DebenturesEighthIssueMember" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebenturesTenthIssueMember" xlink:label="ugp_DebenturesTenthIssueMember" xlink:title="ugp_DebenturesTenthIssueMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BorrowingsByNameDomain" xlink:to="ugp_DebenturesTenthIssueMember" xlink:title="Definition : ifrs-full_BorrowingsByNameDomain to ugp_DebenturesTenthIssueMember" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebenturesEleventhIssueMember" xlink:label="ugp_DebenturesEleventhIssueMember" xlink:title="ugp_DebenturesEleventhIssueMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BorrowingsByNameDomain" xlink:to="ugp_DebenturesEleventhIssueMember" xlink:title="Definition : ifrs-full_BorrowingsByNameDomain to ugp_DebenturesEleventhIssueMember" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebenturesTwelthIssueMember" xlink:label="ugp_DebenturesTwelthIssueMember" xlink:title="ugp_DebenturesTwelthIssueMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BorrowingsByNameDomain" xlink:to="ugp_DebenturesTwelthIssueMember" xlink:title="Definition : ifrs-full_BorrowingsByNameDomain to ugp_DebenturesTwelthIssueMember" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebenturesThirteenthIssueMember" xlink:label="ugp_DebenturesThirteenthIssueMember" xlink:title="ugp_DebenturesThirteenthIssueMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BorrowingsByNameDomain" xlink:to="ugp_DebenturesThirteenthIssueMember" xlink:title="Definition : ifrs-full_BorrowingsByNameDomain to ugp_DebenturesThirteenthIssueMember" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsByNameDomain" xlink:label="ifrs-full_BorrowingsByNameDomain_1" xlink:title="ifrs-full_BorrowingsByNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_BorrowingsByNameAxis" xlink:to="ifrs-full_BorrowingsByNameDomain_1" xlink:title="Definition : ifrs-full_BorrowingsByNameAxis to ifrs-full_BorrowingsByNameDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable to ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IpirangaProdutosdePetroleoSAMember" xlink:label="ugp_IpirangaProdutosdePetroleoSAMember" xlink:title="ugp_IpirangaProdutosdePetroleoSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_IpirangaProdutosdePetroleoSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_IpirangaProdutosdePetroleoSAMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltracargoLogisticaSAMember" xlink:label="ugp_UltracargoLogisticaSAMember" xlink:title="ugp_UltracargoLogisticaSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltracargoLogisticaSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltracargoLogisticaSAMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltracargoSolucoesLogisticaSAMember" xlink:label="ugp_UltracargoSolucoesLogisticaSAMember" xlink:title="ugp_UltracargoSolucoesLogisticaSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltracargoSolucoesLogisticaSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltracargoSolucoesLogisticaSAMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TequimarVilaDoCondeMember" xlink:label="ugp_TequimarVilaDoCondeMember" xlink:title="ugp_TequimarVilaDoCondeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_TequimarVilaDoCondeMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_TequimarVilaDoCondeMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CompanhiaUltragazMember" xlink:label="ugp_CompanhiaUltragazMember" xlink:title="ugp_CompanhiaUltragazMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_CompanhiaUltragazMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_CompanhiaUltragazMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/LoansfinancingdebenturesandderivativefinancialinstrumentsSummaryofCompostionofloansDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:label="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:title="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LoanDescription" xlink:label="ugp_LoanDescription" xlink:title="ugp_LoanDescription" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_LoanDescription" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_LoanDescription" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LoanIndexCurrency" xlink:label="ugp_LoanIndexCurrency" xlink:title="ugp_LoanIndexCurrency" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_LoanIndexCurrency" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_LoanIndexCurrency" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsInterestRate" xlink:label="ifrs-full_BorrowingsInterestRate" xlink:title="ifrs-full_BorrowingsInterestRate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_BorrowingsInterestRate" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_BorrowingsInterestRate" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsAdjustmentToInterestRateBasis" xlink:label="ifrs-full_BorrowingsAdjustmentToInterestRateBasis" xlink:title="ifrs-full_BorrowingsAdjustmentToInterestRateBasis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_BorrowingsAdjustmentToInterestRateBasis" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_BorrowingsAdjustmentToInterestRateBasis" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsMaturity" xlink:label="ifrs-full_BorrowingsMaturity" xlink:title="ifrs-full_BorrowingsMaturity" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_BorrowingsMaturity" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_BorrowingsMaturity" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ForeignCurrencyDenominatedLoans" xlink:label="ugp_ForeignCurrencyDenominatedLoans" xlink:title="ugp_ForeignCurrencyDenominatedLoans" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_ForeignCurrencyDenominatedLoans" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_ForeignCurrencyDenominatedLoans" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_BrazilianRealDenominatedLoans" xlink:label="ugp_BrazilianRealDenominatedLoans" xlink:title="ugp_BrazilianRealDenominatedLoans" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_BrazilianRealDenominatedLoans" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_BrazilianRealDenominatedLoans" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LoansReceived" xlink:label="ifrs-full_LoansReceived" xlink:title="ifrs-full_LoansReceived" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_LoansReceived" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_LoansReceived" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DerivativeFinancialLiabilitiesHeldForHedging" xlink:label="ifrs-full_DerivativeFinancialLiabilitiesHeldForHedging" xlink:title="ifrs-full_DerivativeFinancialLiabilitiesHeldForHedging" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_DerivativeFinancialLiabilitiesHeldForHedging" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_DerivativeFinancialLiabilitiesHeldForHedging" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_Borrowings" xlink:label="ifrs-full_Borrowings" xlink:title="ifrs-full_Borrowings" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_Borrowings" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_Borrowings" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CurrentBorrowingsAndCurrentPortionOfNoncurrentBorrowings" xlink:label="ifrs-full_CurrentBorrowingsAndCurrentPortionOfNoncurrentBorrowings" xlink:title="ifrs-full_CurrentBorrowingsAndCurrentPortionOfNoncurrentBorrowings" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_CurrentBorrowingsAndCurrentPortionOfNoncurrentBorrowings" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_CurrentBorrowingsAndCurrentPortionOfNoncurrentBorrowings" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LongtermBorrowings" xlink:label="ifrs-full_LongtermBorrowings" xlink:title="ifrs-full_LongtermBorrowings" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_LongtermBorrowings" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_LongtermBorrowings" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:label="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:title="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:type="arc" order="12" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfLiabilitiesAxis" xlink:label="ifrs-full_ClassesOfLiabilitiesAxis" xlink:title="ifrs-full_ClassesOfLiabilitiesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:to="ifrs-full_ClassesOfLiabilitiesAxis" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable to ifrs-full_ClassesOfLiabilitiesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfLiabilitiesDomain" xlink:label="ifrs-full_ClassesOfLiabilitiesDomain" xlink:title="ifrs-full_ClassesOfLiabilitiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ClassesOfLiabilitiesAxis" xlink:to="ifrs-full_ClassesOfLiabilitiesDomain" xlink:title="Definition : ifrs-full_ClassesOfLiabilitiesAxis to ifrs-full_ClassesOfLiabilitiesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_Loan1Member" xlink:label="ugp_Loan1Member" xlink:title="ugp_Loan1Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfLiabilitiesDomain" xlink:to="ugp_Loan1Member" xlink:title="Definition : ifrs-full_ClassesOfLiabilitiesDomain to ugp_Loan1Member" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_Loan2Member" xlink:label="ugp_Loan2Member" xlink:title="ugp_Loan2Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfLiabilitiesDomain" xlink:to="ugp_Loan2Member" xlink:title="Definition : ifrs-full_ClassesOfLiabilitiesDomain to ugp_Loan2Member" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_Loan3Member" xlink:label="ugp_Loan3Member" xlink:title="ugp_Loan3Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfLiabilitiesDomain" xlink:to="ugp_Loan3Member" xlink:title="Definition : ifrs-full_ClassesOfLiabilitiesDomain to ugp_Loan3Member" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_Loan4Member" xlink:label="ugp_Loan4Member" xlink:title="ugp_Loan4Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfLiabilitiesDomain" xlink:to="ugp_Loan4Member" xlink:title="Definition : ifrs-full_ClassesOfLiabilitiesDomain to ugp_Loan4Member" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_Loan5Member" xlink:label="ugp_Loan5Member" xlink:title="ugp_Loan5Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfLiabilitiesDomain" xlink:to="ugp_Loan5Member" xlink:title="Definition : ifrs-full_ClassesOfLiabilitiesDomain to ugp_Loan5Member" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_Loan6Member" xlink:label="ugp_Loan6Member" xlink:title="ugp_Loan6Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfLiabilitiesDomain" xlink:to="ugp_Loan6Member" xlink:title="Definition : ifrs-full_ClassesOfLiabilitiesDomain to ugp_Loan6Member" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_Loan7Member" xlink:label="ugp_Loan7Member" xlink:title="ugp_Loan7Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfLiabilitiesDomain" xlink:to="ugp_Loan7Member" xlink:title="Definition : ifrs-full_ClassesOfLiabilitiesDomain to ugp_Loan7Member" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_Loan8Member" xlink:label="ugp_Loan8Member" xlink:title="ugp_Loan8Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfLiabilitiesDomain" xlink:to="ugp_Loan8Member" xlink:title="Definition : ifrs-full_ClassesOfLiabilitiesDomain to ugp_Loan8Member" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_Loan9Member" xlink:label="ugp_Loan9Member" xlink:title="ugp_Loan9Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfLiabilitiesDomain" xlink:to="ugp_Loan9Member" xlink:title="Definition : ifrs-full_ClassesOfLiabilitiesDomain to ugp_Loan9Member" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_Loan10Member" xlink:label="ugp_Loan10Member" xlink:title="ugp_Loan10Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfLiabilitiesDomain" xlink:to="ugp_Loan10Member" xlink:title="Definition : ifrs-full_ClassesOfLiabilitiesDomain to ugp_Loan10Member" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_Loan11Member" xlink:label="ugp_Loan11Member" xlink:title="ugp_Loan11Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfLiabilitiesDomain" xlink:to="ugp_Loan11Member" xlink:title="Definition : ifrs-full_ClassesOfLiabilitiesDomain to ugp_Loan11Member" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_Loan12Member" xlink:label="ugp_Loan12Member" xlink:title="ugp_Loan12Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfLiabilitiesDomain" xlink:to="ugp_Loan12Member" xlink:title="Definition : ifrs-full_ClassesOfLiabilitiesDomain to ugp_Loan12Member" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_Loan13Member" xlink:label="ugp_Loan13Member" xlink:title="ugp_Loan13Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfLiabilitiesDomain" xlink:to="ugp_Loan13Member" xlink:title="Definition : ifrs-full_ClassesOfLiabilitiesDomain to ugp_Loan13Member" xlink:type="arc" use="optional" order="12" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_Loan14Member" xlink:label="ugp_Loan14Member" xlink:title="ugp_Loan14Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfLiabilitiesDomain" xlink:to="ugp_Loan14Member" xlink:title="Definition : ifrs-full_ClassesOfLiabilitiesDomain to ugp_Loan14Member" xlink:type="arc" use="optional" order="13" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_Loan15Member" xlink:label="ugp_Loan15Member" xlink:title="ugp_Loan15Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfLiabilitiesDomain" xlink:to="ugp_Loan15Member" xlink:title="Definition : ifrs-full_ClassesOfLiabilitiesDomain to ugp_Loan15Member" xlink:type="arc" use="optional" order="14" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_Loan16Member" xlink:label="ugp_Loan16Member" xlink:title="ugp_Loan16Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfLiabilitiesDomain" xlink:to="ugp_Loan16Member" xlink:title="Definition : ifrs-full_ClassesOfLiabilitiesDomain to ugp_Loan16Member" xlink:type="arc" use="optional" order="15" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_Loan17Member" xlink:label="ugp_Loan17Member" xlink:title="ugp_Loan17Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfLiabilitiesDomain" xlink:to="ugp_Loan17Member" xlink:title="Definition : ifrs-full_ClassesOfLiabilitiesDomain to ugp_Loan17Member" xlink:type="arc" use="optional" order="16" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_Loan18Member" xlink:label="ugp_Loan18Member" xlink:title="ugp_Loan18Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfLiabilitiesDomain" xlink:to="ugp_Loan18Member" xlink:title="Definition : ifrs-full_ClassesOfLiabilitiesDomain to ugp_Loan18Member" xlink:type="arc" use="optional" order="17" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_Loan19Member" xlink:label="ugp_Loan19Member" xlink:title="ugp_Loan19Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfLiabilitiesDomain" xlink:to="ugp_Loan19Member" xlink:title="Definition : ifrs-full_ClassesOfLiabilitiesDomain to ugp_Loan19Member" xlink:type="arc" use="optional" order="18" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_Loan20Member" xlink:label="ugp_Loan20Member" xlink:title="ugp_Loan20Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfLiabilitiesDomain" xlink:to="ugp_Loan20Member" xlink:title="Definition : ifrs-full_ClassesOfLiabilitiesDomain to ugp_Loan20Member" xlink:type="arc" use="optional" order="19" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_Loan21Member" xlink:label="ugp_Loan21Member" xlink:title="ugp_Loan21Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfLiabilitiesDomain" xlink:to="ugp_Loan21Member" xlink:title="Definition : ifrs-full_ClassesOfLiabilitiesDomain to ugp_Loan21Member" xlink:type="arc" use="optional" order="20" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_Loan22Member" xlink:label="ugp_Loan22Member" xlink:title="ugp_Loan22Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfLiabilitiesDomain" xlink:to="ugp_Loan22Member" xlink:title="Definition : ifrs-full_ClassesOfLiabilitiesDomain to ugp_Loan22Member" xlink:type="arc" use="optional" order="21" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_Loan23Member" xlink:label="ugp_Loan23Member" xlink:title="ugp_Loan23Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfLiabilitiesDomain" xlink:to="ugp_Loan23Member" xlink:title="Definition : ifrs-full_ClassesOfLiabilitiesDomain to ugp_Loan23Member" xlink:type="arc" use="optional" order="22" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_Loan24Member" xlink:label="ugp_Loan24Member" xlink:title="ugp_Loan24Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfLiabilitiesDomain" xlink:to="ugp_Loan24Member" xlink:title="Definition : ifrs-full_ClassesOfLiabilitiesDomain to ugp_Loan24Member" xlink:type="arc" use="optional" order="23" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_Loan25Member" xlink:label="ugp_Loan25Member" xlink:title="ugp_Loan25Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfLiabilitiesDomain" xlink:to="ugp_Loan25Member" xlink:title="Definition : ifrs-full_ClassesOfLiabilitiesDomain to ugp_Loan25Member" xlink:type="arc" use="optional" order="24" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfLiabilitiesDomain" xlink:label="ifrs-full_ClassesOfLiabilitiesDomain_1" xlink:title="ifrs-full_ClassesOfLiabilitiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ClassesOfLiabilitiesAxis" xlink:to="ifrs-full_ClassesOfLiabilitiesDomain_1" xlink:title="Definition : ifrs-full_ClassesOfLiabilitiesAxis to ifrs-full_ClassesOfLiabilitiesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeAxis" xlink:label="ifrs-full_RangeAxis" xlink:title="ifrs-full_RangeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:to="ifrs-full_RangeAxis" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable to ifrs-full_RangeAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeDomain" xlink:label="ifrs-full_RangeDomain" xlink:title="ifrs-full_RangeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_RangeAxis" xlink:to="ifrs-full_RangeDomain" xlink:title="Definition : ifrs-full_RangeAxis to ifrs-full_RangeDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:label="ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:title="ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RangeDomain" xlink:to="ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:title="Definition : ifrs-full_RangeDomain to ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:label="ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:title="ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RangeDomain" xlink:to="ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:title="Definition : ifrs-full_RangeDomain to ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember" xlink:label="ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember" xlink:title="ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RangeDomain" xlink:to="ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember" xlink:title="Definition : ifrs-full_RangeDomain to ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember" xlink:label="ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember" xlink:title="ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RangeDomain" xlink:to="ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember" xlink:title="Definition : ifrs-full_RangeDomain to ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanFiveYearsMember" xlink:label="ifrs-full_LaterThanFiveYearsMember" xlink:title="ifrs-full_LaterThanFiveYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RangeDomain" xlink:to="ifrs-full_LaterThanFiveYearsMember" xlink:title="Definition : ifrs-full_RangeDomain to ifrs-full_LaterThanFiveYearsMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeDomain" xlink:label="ifrs-full_RangeDomain_1" xlink:title="ifrs-full_RangeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_RangeAxis" xlink:to="ifrs-full_RangeDomain_1" xlink:title="Definition : ifrs-full_RangeAxis to ifrs-full_RangeDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/IntangibleassetsBalanceandchangesinintangibleassetsDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfIntangibleAssetsLineItems" xlink:label="ifrs-full_DisclosureOfIntangibleAssetsLineItems" xlink:title="ifrs-full_DisclosureOfIntangibleAssetsLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_UsefulLifeMeasuredAsPeriodOfTimeIntangibleAssetsOtherThanGoodwill" xlink:label="ifrs-full_UsefulLifeMeasuredAsPeriodOfTimeIntangibleAssetsOtherThanGoodwill" xlink:title="ifrs-full_UsefulLifeMeasuredAsPeriodOfTimeIntangibleAssetsOtherThanGoodwill" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfIntangibleAssetsLineItems" xlink:to="ifrs-full_UsefulLifeMeasuredAsPeriodOfTimeIntangibleAssetsOtherThanGoodwill" xlink:title="Definition : ifrs-full_DisclosureOfIntangibleAssetsLineItems to ifrs-full_UsefulLifeMeasuredAsPeriodOfTimeIntangibleAssetsOtherThanGoodwill" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IntangibleAssetsAndGoodwill" xlink:label="ifrs-full_IntangibleAssetsAndGoodwill" xlink:title="ifrs-full_IntangibleAssetsAndGoodwill" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfIntangibleAssetsLineItems" xlink:to="ifrs-full_IntangibleAssetsAndGoodwill" xlink:title="Definition : ifrs-full_DisclosureOfIntangibleAssetsLineItems to ifrs-full_IntangibleAssetsAndGoodwill" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AmountOfReclassificationsOrChangesInPresentation" xlink:label="ifrs-full_AmountOfReclassificationsOrChangesInPresentation" xlink:title="ifrs-full_AmountOfReclassificationsOrChangesInPresentation" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfIntangibleAssetsLineItems" xlink:to="ifrs-full_AmountOfReclassificationsOrChangesInPresentation" xlink:title="Definition : ifrs-full_DisclosureOfIntangibleAssetsLineItems to ifrs-full_AmountOfReclassificationsOrChangesInPresentation" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AdditionsOtherThanThroughBusinessCombinationsIntangibleAssetsOtherThanGoodwill" xlink:label="ifrs-full_AdditionsOtherThanThroughBusinessCombinationsIntangibleAssetsOtherThanGoodwill" xlink:title="ifrs-full_AdditionsOtherThanThroughBusinessCombinationsIntangibleAssetsOtherThanGoodwill" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfIntangibleAssetsLineItems" xlink:to="ifrs-full_AdditionsOtherThanThroughBusinessCombinationsIntangibleAssetsOtherThanGoodwill" xlink:title="Definition : ifrs-full_DisclosureOfIntangibleAssetsLineItems to ifrs-full_AdditionsOtherThanThroughBusinessCombinationsIntangibleAssetsOtherThanGoodwill" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AmortisationIntangibleAssetsOtherThanGoodwill" xlink:label="ifrs-full_AmortisationIntangibleAssetsOtherThanGoodwill" xlink:title="ifrs-full_AmortisationIntangibleAssetsOtherThanGoodwill" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfIntangibleAssetsLineItems" xlink:to="ifrs-full_AmortisationIntangibleAssetsOtherThanGoodwill" xlink:title="Definition : ifrs-full_DisclosureOfIntangibleAssetsLineItems to ifrs-full_AmortisationIntangibleAssetsOtherThanGoodwill" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IncreaseDecreaseThroughTransfersIntangibleAssetsAndGoodwill" xlink:label="ifrs-full_IncreaseDecreaseThroughTransfersIntangibleAssetsAndGoodwill" xlink:title="ifrs-full_IncreaseDecreaseThroughTransfersIntangibleAssetsAndGoodwill" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfIntangibleAssetsLineItems" xlink:to="ifrs-full_IncreaseDecreaseThroughTransfersIntangibleAssetsAndGoodwill" xlink:title="Definition : ifrs-full_DisclosureOfIntangibleAssetsLineItems to ifrs-full_IncreaseDecreaseThroughTransfersIntangibleAssetsAndGoodwill" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisposalsIntangibleAssetsAndGoodwill" xlink:label="ifrs-full_DisposalsIntangibleAssetsAndGoodwill" xlink:title="ifrs-full_DisposalsIntangibleAssetsAndGoodwill" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfIntangibleAssetsLineItems" xlink:to="ifrs-full_DisposalsIntangibleAssetsAndGoodwill" xlink:title="Definition : ifrs-full_DisclosureOfIntangibleAssetsLineItems to ifrs-full_DisposalsIntangibleAssetsAndGoodwill" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesIntangibleAssetsAndGoodwill" xlink:label="ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesIntangibleAssetsAndGoodwill" xlink:title="ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesIntangibleAssetsAndGoodwill" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfIntangibleAssetsLineItems" xlink:to="ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesIntangibleAssetsAndGoodwill" xlink:title="Definition : ifrs-full_DisclosureOfIntangibleAssetsLineItems to ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesIntangibleAssetsAndGoodwill" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DecreaseThroughClassifiedAsHeldForSaleIntangibleAssetsAndGoodwill" xlink:label="ifrs-full_DecreaseThroughClassifiedAsHeldForSaleIntangibleAssetsAndGoodwill" xlink:title="ifrs-full_DecreaseThroughClassifiedAsHeldForSaleIntangibleAssetsAndGoodwill" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfIntangibleAssetsLineItems" xlink:to="ifrs-full_DecreaseThroughClassifiedAsHeldForSaleIntangibleAssetsAndGoodwill" xlink:title="Definition : ifrs-full_DisclosureOfIntangibleAssetsLineItems to ifrs-full_DecreaseThroughClassifiedAsHeldForSaleIntangibleAssetsAndGoodwill" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RetirementsIntangibleAssetsAndGoodwill" xlink:label="ifrs-full_RetirementsIntangibleAssetsAndGoodwill" xlink:title="ifrs-full_RetirementsIntangibleAssetsAndGoodwill" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfIntangibleAssetsLineItems" xlink:to="ifrs-full_RetirementsIntangibleAssetsAndGoodwill" xlink:title="Definition : ifrs-full_DisclosureOfIntangibleAssetsLineItems to ifrs-full_RetirementsIntangibleAssetsAndGoodwill" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AcquisitionsThroughBusinessCombinationsIntangibleAssetsAndGoodwill" xlink:label="ifrs-full_AcquisitionsThroughBusinessCombinationsIntangibleAssetsAndGoodwill" xlink:title="ifrs-full_AcquisitionsThroughBusinessCombinationsIntangibleAssetsAndGoodwill" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfIntangibleAssetsLineItems" xlink:to="ifrs-full_AcquisitionsThroughBusinessCombinationsIntangibleAssetsAndGoodwill" xlink:title="Definition : ifrs-full_DisclosureOfIntangibleAssetsLineItems to ifrs-full_AcquisitionsThroughBusinessCombinationsIntangibleAssetsAndGoodwill" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfIntangibleAssetsTable" xlink:label="ifrs-full_DisclosureOfIntangibleAssetsTable" xlink:title="ifrs-full_DisclosureOfIntangibleAssetsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfIntangibleAssetsLineItems" xlink:to="ifrs-full_DisclosureOfIntangibleAssetsTable" xlink:title="Definition : ifrs-full_DisclosureOfIntangibleAssetsLineItems to ifrs-full_DisclosureOfIntangibleAssetsTable" xlink:type="arc" use="optional" order="11" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xlink:label="ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xlink:title="ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfIntangibleAssetsTable" xlink:to="ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xlink:title="Definition : ifrs-full_DisclosureOfIntangibleAssetsTable to ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CarryingAmountMember" xlink:label="ifrs-full_CarryingAmountMember" xlink:title="ifrs-full_CarryingAmountMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xlink:to="ifrs-full_CarryingAmountMember" xlink:title="Definition : ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis to ifrs-full_CarryingAmountMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_GrossCarryingAmountMember" xlink:label="ifrs-full_GrossCarryingAmountMember" xlink:title="ifrs-full_GrossCarryingAmountMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CarryingAmountMember" xlink:to="ifrs-full_GrossCarryingAmountMember" xlink:title="Definition : ifrs-full_CarryingAmountMember to ifrs-full_GrossCarryingAmountMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AccumulatedDepreciationAndAmortisationMember" xlink:label="ifrs-full_AccumulatedDepreciationAndAmortisationMember" xlink:title="ifrs-full_AccumulatedDepreciationAndAmortisationMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CarryingAmountMember" xlink:to="ifrs-full_AccumulatedDepreciationAndAmortisationMember" xlink:title="Definition : ifrs-full_CarryingAmountMember to ifrs-full_AccumulatedDepreciationAndAmortisationMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AccumulatedImpairmentMember" xlink:label="ifrs-full_AccumulatedImpairmentMember" xlink:title="ifrs-full_AccumulatedImpairmentMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CarryingAmountMember" xlink:to="ifrs-full_AccumulatedImpairmentMember" xlink:title="Definition : ifrs-full_CarryingAmountMember to ifrs-full_AccumulatedImpairmentMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CarryingAmountMember" xlink:label="ifrs-full_CarryingAmountMember_1" xlink:title="ifrs-full_CarryingAmountMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xlink:to="ifrs-full_CarryingAmountMember_1" xlink:title="Definition : ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis to ifrs-full_CarryingAmountMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis" xlink:label="ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis" xlink:title="ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfIntangibleAssetsTable" xlink:to="ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis" xlink:title="Definition : ifrs-full_DisclosureOfIntangibleAssetsTable to ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RestatedMember" xlink:label="ifrs-full_RestatedMember" xlink:title="ifrs-full_RestatedMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis" xlink:to="ifrs-full_RestatedMember" xlink:title="Definition : ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis to ifrs-full_RestatedMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PreviouslyStatedMember" xlink:label="ifrs-full_PreviouslyStatedMember" xlink:title="ifrs-full_PreviouslyStatedMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RestatedMember" xlink:to="ifrs-full_PreviouslyStatedMember" xlink:title="Definition : ifrs-full_RestatedMember to ifrs-full_PreviouslyStatedMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreasedecreaseDueToApplicationOfIfrs16Member" xlink:label="ugp_IncreasedecreaseDueToApplicationOfIfrs16Member" xlink:title="ugp_IncreasedecreaseDueToApplicationOfIfrs16Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RestatedMember" xlink:to="ugp_IncreasedecreaseDueToApplicationOfIfrs16Member" xlink:title="Definition : ifrs-full_RestatedMember to ugp_IncreasedecreaseDueToApplicationOfIfrs16Member" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RestatedMember" xlink:label="ifrs-full_RestatedMember_1" xlink:title="ifrs-full_RestatedMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis" xlink:to="ifrs-full_RestatedMember_1" xlink:title="Definition : ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis to ifrs-full_RestatedMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis" xlink:label="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis" xlink:title="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfIntangibleAssetsTable" xlink:to="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis" xlink:title="Definition : ifrs-full_DisclosureOfIntangibleAssetsTable to ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" xlink:label="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" xlink:title="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis" xlink:to="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" xlink:title="Definition : ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis to ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_GoodwillMember" xlink:label="ifrs-full_GoodwillMember" xlink:title="ifrs-full_GoodwillMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" xlink:to="ifrs-full_GoodwillMember" xlink:title="Definition : ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain to ifrs-full_GoodwillMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ComputerSoftwareMember" xlink:label="ifrs-full_ComputerSoftwareMember" xlink:title="ifrs-full_ComputerSoftwareMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" xlink:to="ifrs-full_ComputerSoftwareMember" xlink:title="Definition : ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain to ifrs-full_ComputerSoftwareMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TechnologybasedIntangibleAssetsMember" xlink:label="ifrs-full_TechnologybasedIntangibleAssetsMember" xlink:title="ifrs-full_TechnologybasedIntangibleAssetsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" xlink:to="ifrs-full_TechnologybasedIntangibleAssetsMember" xlink:title="Definition : ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain to ifrs-full_TechnologybasedIntangibleAssetsMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CommercialPropertyRightsMember" xlink:label="ugp_CommercialPropertyRightsMember" xlink:title="ugp_CommercialPropertyRightsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" xlink:to="ugp_CommercialPropertyRightsMember" xlink:title="Definition : ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain to ugp_CommercialPropertyRightsMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DistributionRightsAssetMember" xlink:label="ugp_DistributionRightsAssetMember" xlink:title="ugp_DistributionRightsAssetMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" xlink:to="ugp_DistributionRightsAssetMember" xlink:title="Definition : ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain to ugp_DistributionRightsAssetMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BrandNamesMember" xlink:label="ifrs-full_BrandNamesMember" xlink:title="ifrs-full_BrandNamesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" xlink:to="ifrs-full_BrandNamesMember" xlink:title="Definition : ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain to ifrs-full_BrandNamesMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TrademarkRightsMember" xlink:label="ugp_TrademarkRightsMember" xlink:title="ugp_TrademarkRightsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" xlink:to="ugp_TrademarkRightsMember" xlink:title="Definition : ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain to ugp_TrademarkRightsMember" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OtherIntangibleAssetsMember" xlink:label="ifrs-full_OtherIntangibleAssetsMember" xlink:title="ifrs-full_OtherIntangibleAssetsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" xlink:to="ifrs-full_OtherIntangibleAssetsMember" xlink:title="Definition : ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain to ifrs-full_OtherIntangibleAssetsMember" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DecarbonizationCreditsMember" xlink:label="ugp_DecarbonizationCreditsMember" xlink:title="ugp_DecarbonizationCreditsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" xlink:to="ugp_DecarbonizationCreditsMember" xlink:title="Definition : ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain to ugp_DecarbonizationCreditsMember" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" xlink:label="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain_1" xlink:title="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis" xlink:to="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain_1" xlink:title="Definition : ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis to ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfIntangibleAssetsTable" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="Definition : ifrs-full_DisclosureOfIntangibleAssetsTable to ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OxitenoAndinaCAMember" xlink:label="ugp_OxitenoAndinaCAMember" xlink:title="ugp_OxitenoAndinaCAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_OxitenoAndinaCAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_OxitenoAndinaCAMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_InitiallyAppliedIFRSsAxis" xlink:label="ifrs-full_InitiallyAppliedIFRSsAxis" xlink:title="ifrs-full_InitiallyAppliedIFRSsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfIntangibleAssetsTable" xlink:to="ifrs-full_InitiallyAppliedIFRSsAxis" xlink:title="Definition : ifrs-full_DisclosureOfIntangibleAssetsTable to ifrs-full_InitiallyAppliedIFRSsAxis" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_InitiallyAppliedIFRSsDomain" xlink:label="ifrs-full_InitiallyAppliedIFRSsDomain" xlink:title="ifrs-full_InitiallyAppliedIFRSsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_InitiallyAppliedIFRSsAxis" xlink:to="ifrs-full_InitiallyAppliedIFRSsDomain" xlink:title="Definition : ifrs-full_InitiallyAppliedIFRSsAxis to ifrs-full_InitiallyAppliedIFRSsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IFRS16Member" xlink:label="ugp_IFRS16Member" xlink:title="ugp_IFRS16Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_InitiallyAppliedIFRSsDomain" xlink:to="ugp_IFRS16Member" xlink:title="Definition : ifrs-full_InitiallyAppliedIFRSsDomain to ugp_IFRS16Member" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_InitiallyAppliedIFRSsDomain" xlink:label="ifrs-full_InitiallyAppliedIFRSsDomain_1" xlink:title="ifrs-full_InitiallyAppliedIFRSsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_InitiallyAppliedIFRSsAxis" xlink:to="ifrs-full_InitiallyAppliedIFRSsDomain_1" xlink:title="Definition : ifrs-full_InitiallyAppliedIFRSsAxis to ifrs-full_InitiallyAppliedIFRSsDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfAssetsAxis" xlink:label="ifrs-full_ClassesOfAssetsAxis" xlink:title="ifrs-full_ClassesOfAssetsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfIntangibleAssetsTable" xlink:to="ifrs-full_ClassesOfAssetsAxis" xlink:title="Definition : ifrs-full_DisclosureOfIntangibleAssetsTable to ifrs-full_ClassesOfAssetsAxis" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="ifrs-full_ClassesOfAssetsDomain" xlink:title="ifrs-full_ClassesOfAssetsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ClassesOfAssetsAxis" xlink:to="ifrs-full_ClassesOfAssetsDomain" xlink:title="Definition : ifrs-full_ClassesOfAssetsAxis to ifrs-full_ClassesOfAssetsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IntangibleAssetsOtherThanGoodwillMember" xlink:label="ifrs-full_IntangibleAssetsOtherThanGoodwillMember" xlink:title="ifrs-full_IntangibleAssetsOtherThanGoodwillMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfAssetsDomain" xlink:to="ifrs-full_IntangibleAssetsOtherThanGoodwillMember" xlink:title="Definition : ifrs-full_ClassesOfAssetsDomain to ifrs-full_IntangibleAssetsOtherThanGoodwillMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="ifrs-full_ClassesOfAssetsDomain_1" xlink:title="ifrs-full_ClassesOfAssetsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ClassesOfAssetsAxis" xlink:to="ifrs-full_ClassesOfAssetsDomain_1" xlink:title="Definition : ifrs-full_ClassesOfAssetsAxis to ifrs-full_ClassesOfAssetsDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/SegmentInformationRightofuseAssetsPPEandIntangibleAssetsoftheCompanyAbroadDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:label="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:title="ifrs-full_DisclosureOfOperatingSegmentsLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NoncurrentAssetsOtherThanFinancialInstrumentsDeferredTaxAssetsPostemploymentBenefitAssetsAndRightsArisingUnderInsuranceContracts" xlink:label="ifrs-full_NoncurrentAssetsOtherThanFinancialInstrumentsDeferredTaxAssetsPostemploymentBenefitAssetsAndRightsArisingUnderInsuranceContracts" xlink:title="ifrs-full_NoncurrentAssetsOtherThanFinancialInstrumentsDeferredTaxAssetsPostemploymentBenefitAssetsAndRightsArisingUnderInsuranceContracts" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ifrs-full_NoncurrentAssetsOtherThanFinancialInstrumentsDeferredTaxAssetsPostemploymentBenefitAssetsAndRightsArisingUnderInsuranceContracts" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ifrs-full_NoncurrentAssetsOtherThanFinancialInstrumentsDeferredTaxAssetsPostemploymentBenefitAssetsAndRightsArisingUnderInsuranceContracts" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:label="ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:title="ifrs-full_DisclosureOfOperatingSegmentsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:type="arc" use="optional" order="1" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="ifrs-full_GeographicalAreasAxis" xlink:title="ifrs-full_GeographicalAreasAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:to="ifrs-full_GeographicalAreasAxis" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsTable to ifrs-full_GeographicalAreasAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="ifrs-full_GeographicalAreasDomain" xlink:title="ifrs-full_GeographicalAreasDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_GeographicalAreasAxis" xlink:to="ifrs-full_GeographicalAreasDomain" xlink:title="Definition : ifrs-full_GeographicalAreasAxis to ifrs-full_GeographicalAreasDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2024/country-2024.xsd#country_MX" xlink:label="country_MX" xlink:title="country_MX" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_GeographicalAreasDomain" xlink:to="country_MX" xlink:title="Definition : ifrs-full_GeographicalAreasDomain to country_MX" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2024/country-2024.xsd#country_US" xlink:label="country_US" xlink:title="country_US" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_GeographicalAreasDomain" xlink:to="country_US" xlink:title="Definition : ifrs-full_GeographicalAreasDomain to country_US" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2024/country-2024.xsd#country_UY" xlink:label="country_UY" xlink:title="country_UY" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_GeographicalAreasDomain" xlink:to="country_UY" xlink:title="Definition : ifrs-full_GeographicalAreasDomain to country_UY" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="ifrs-full_GeographicalAreasDomain_1" xlink:title="ifrs-full_GeographicalAreasDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_GeographicalAreasAxis" xlink:to="ifrs-full_GeographicalAreasDomain_1" xlink:title="Definition : ifrs-full_GeographicalAreasAxis to ifrs-full_GeographicalAreasDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/PropertyPlantAndEquipmentBalancesAndChangesInPropertyPlantAndEquipmentBeginningAndEndingDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" xlink:label="ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" xlink:title="ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment" xlink:label="ifrs-full_UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment" xlink:title="ifrs-full_UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" xlink:to="ifrs-full_UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment" xlink:title="Definition : ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems to ifrs-full_UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PropertyPlantAndEquipment" xlink:label="ifrs-full_PropertyPlantAndEquipment" xlink:title="ifrs-full_PropertyPlantAndEquipment" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" xlink:to="ifrs-full_PropertyPlantAndEquipment" xlink:title="Definition : ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems to ifrs-full_PropertyPlantAndEquipment" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AdditionsOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment" xlink:label="ifrs-full_AdditionsOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment" xlink:title="ifrs-full_AdditionsOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" xlink:to="ifrs-full_AdditionsOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment" xlink:title="Definition : ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems to ifrs-full_AdditionsOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DepreciationPropertyPlantAndEquipment" xlink:label="ifrs-full_DepreciationPropertyPlantAndEquipment" xlink:title="ifrs-full_DepreciationPropertyPlantAndEquipment" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" xlink:to="ifrs-full_DepreciationPropertyPlantAndEquipment" xlink:title="Definition : ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems to ifrs-full_DepreciationPropertyPlantAndEquipment" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IncreaseDecreaseThroughTransfersPropertyPlantAndEquipment" xlink:label="ifrs-full_IncreaseDecreaseThroughTransfersPropertyPlantAndEquipment" xlink:title="ifrs-full_IncreaseDecreaseThroughTransfersPropertyPlantAndEquipment" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" xlink:to="ifrs-full_IncreaseDecreaseThroughTransfersPropertyPlantAndEquipment" xlink:title="Definition : ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems to ifrs-full_IncreaseDecreaseThroughTransfersPropertyPlantAndEquipment" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisposalsPropertyPlantAndEquipment" xlink:label="ifrs-full_DisposalsPropertyPlantAndEquipment" xlink:title="ifrs-full_DisposalsPropertyPlantAndEquipment" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" xlink:to="ifrs-full_DisposalsPropertyPlantAndEquipment" xlink:title="Definition : ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems to ifrs-full_DisposalsPropertyPlantAndEquipment" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment" xlink:label="ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment" xlink:title="ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" xlink:to="ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment" xlink:title="Definition : ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems to ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DecreaseThroughClassifiedAsHeldForSalePropertyPlantAndEquipment" xlink:label="ifrs-full_DecreaseThroughClassifiedAsHeldForSalePropertyPlantAndEquipment" xlink:title="ifrs-full_DecreaseThroughClassifiedAsHeldForSalePropertyPlantAndEquipment" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" xlink:to="ifrs-full_DecreaseThroughClassifiedAsHeldForSalePropertyPlantAndEquipment" xlink:title="Definition : ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems to ifrs-full_DecreaseThroughClassifiedAsHeldForSalePropertyPlantAndEquipment" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RetirementsPropertyPlantAndEquipment" xlink:label="ifrs-full_RetirementsPropertyPlantAndEquipment" xlink:title="ifrs-full_RetirementsPropertyPlantAndEquipment" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" xlink:to="ifrs-full_RetirementsPropertyPlantAndEquipment" xlink:title="Definition : ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems to ifrs-full_RetirementsPropertyPlantAndEquipment" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AcquisitionsThroughBusinessCombinationsPropertyPlantAndEquipment" xlink:label="ifrs-full_AcquisitionsThroughBusinessCombinationsPropertyPlantAndEquipment" xlink:title="ifrs-full_AcquisitionsThroughBusinessCombinationsPropertyPlantAndEquipment" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" xlink:to="ifrs-full_AcquisitionsThroughBusinessCombinationsPropertyPlantAndEquipment" xlink:title="Definition : ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems to ifrs-full_AcquisitionsThroughBusinessCombinationsPropertyPlantAndEquipment" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable" xlink:label="ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable" xlink:title="ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" xlink:to="ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable" xlink:title="Definition : ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems to ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable" xlink:type="arc" order="11" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xlink:label="ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xlink:title="ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable" xlink:to="ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xlink:title="Definition : ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable to ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:label="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:title="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xlink:to="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:title="Definition : ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis to ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LandMember" xlink:label="ifrs-full_LandMember" xlink:title="ifrs-full_LandMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:to="ifrs-full_LandMember" xlink:title="Definition : ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain to ifrs-full_LandMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BuildingsMember" xlink:label="ifrs-full_BuildingsMember" xlink:title="ifrs-full_BuildingsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:to="ifrs-full_BuildingsMember" xlink:title="Definition : ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain to ifrs-full_BuildingsMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LeaseholdImprovementsMember" xlink:label="ifrs-full_LeaseholdImprovementsMember" xlink:title="ifrs-full_LeaseholdImprovementsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:to="ifrs-full_LeaseholdImprovementsMember" xlink:title="Definition : ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain to ifrs-full_LeaseholdImprovementsMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MachineryMember" xlink:label="ifrs-full_MachineryMember" xlink:title="ifrs-full_MachineryMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:to="ifrs-full_MachineryMember" xlink:title="Definition : ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain to ifrs-full_MachineryMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AutomotiveFuelLubricantDistributionEquipmentAndFacilitiesMember" xlink:label="ugp_AutomotiveFuelLubricantDistributionEquipmentAndFacilitiesMember" xlink:title="ugp_AutomotiveFuelLubricantDistributionEquipmentAndFacilitiesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:to="ugp_AutomotiveFuelLubricantDistributionEquipmentAndFacilitiesMember" xlink:title="Definition : ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain to ugp_AutomotiveFuelLubricantDistributionEquipmentAndFacilitiesMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LPGTanksAndBottlesMember" xlink:label="ugp_LPGTanksAndBottlesMember" xlink:title="ugp_LPGTanksAndBottlesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:to="ugp_LPGTanksAndBottlesMember" xlink:title="Definition : ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain to ugp_LPGTanksAndBottlesMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_VehiclesMember" xlink:label="ifrs-full_VehiclesMember" xlink:title="ifrs-full_VehiclesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:to="ifrs-full_VehiclesMember" xlink:title="Definition : ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain to ifrs-full_VehiclesMember" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_FixturesAndFittingsMember" xlink:label="ifrs-full_FixturesAndFittingsMember" xlink:title="ifrs-full_FixturesAndFittingsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:to="ifrs-full_FixturesAndFittingsMember" xlink:title="Definition : ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain to ifrs-full_FixturesAndFittingsMember" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ITEquipmentMember" xlink:label="ugp_ITEquipmentMember" xlink:title="ugp_ITEquipmentMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:to="ugp_ITEquipmentMember" xlink:title="Definition : ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain to ugp_ITEquipmentMember" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ConstructionInProgressMember" xlink:label="ifrs-full_ConstructionInProgressMember" xlink:title="ifrs-full_ConstructionInProgressMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:to="ifrs-full_ConstructionInProgressMember" xlink:title="Definition : ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain to ifrs-full_ConstructionInProgressMember" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AdvancesToSuppliersMember" xlink:label="ugp_AdvancesToSuppliersMember" xlink:title="ugp_AdvancesToSuppliersMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:to="ugp_AdvancesToSuppliersMember" xlink:title="Definition : ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain to ugp_AdvancesToSuppliersMember" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ImportsInProgressMember" xlink:label="ugp_ImportsInProgressMember" xlink:title="ugp_ImportsInProgressMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:to="ugp_ImportsInProgressMember" xlink:title="Definition : ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain to ugp_ImportsInProgressMember" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PropertyPlantAndEquipmentGroupOneMember" xlink:label="ugp_PropertyPlantAndEquipmentGroupOneMember" xlink:title="ugp_PropertyPlantAndEquipmentGroupOneMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:to="ugp_PropertyPlantAndEquipmentGroupOneMember" xlink:title="Definition : ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain to ugp_PropertyPlantAndEquipmentGroupOneMember" xlink:type="arc" use="optional" order="12" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:label="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_1" xlink:title="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xlink:to="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_1" xlink:title="Definition : ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis to ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis" xlink:label="ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis" xlink:title="ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable" xlink:to="ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis" xlink:title="Definition : ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable to ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RestatedMember" xlink:label="ifrs-full_RestatedMember" xlink:title="ifrs-full_RestatedMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis" xlink:to="ifrs-full_RestatedMember" xlink:title="Definition : ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis to ifrs-full_RestatedMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PreviouslyStatedMember" xlink:label="ifrs-full_PreviouslyStatedMember" xlink:title="ifrs-full_PreviouslyStatedMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RestatedMember" xlink:to="ifrs-full_PreviouslyStatedMember" xlink:title="Definition : ifrs-full_RestatedMember to ifrs-full_PreviouslyStatedMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RestatedMember" xlink:label="ifrs-full_RestatedMember_1" xlink:title="ifrs-full_RestatedMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis" xlink:to="ifrs-full_RestatedMember_1" xlink:title="Definition : ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis to ifrs-full_RestatedMember" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xlink:label="ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xlink:title="ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable" xlink:to="ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xlink:title="Definition : ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable to ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CarryingAmountMember" xlink:label="ifrs-full_CarryingAmountMember" xlink:title="ifrs-full_CarryingAmountMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xlink:to="ifrs-full_CarryingAmountMember" xlink:title="Definition : ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis to ifrs-full_CarryingAmountMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_GrossCarryingAmountMember" xlink:label="ifrs-full_GrossCarryingAmountMember" xlink:title="ifrs-full_GrossCarryingAmountMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CarryingAmountMember" xlink:to="ifrs-full_GrossCarryingAmountMember" xlink:title="Definition : ifrs-full_CarryingAmountMember to ifrs-full_GrossCarryingAmountMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AccumulatedDepreciationAndAmortisationMember" xlink:label="ifrs-full_AccumulatedDepreciationAndAmortisationMember" xlink:title="ifrs-full_AccumulatedDepreciationAndAmortisationMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CarryingAmountMember" xlink:to="ifrs-full_AccumulatedDepreciationAndAmortisationMember" xlink:title="Definition : ifrs-full_CarryingAmountMember to ifrs-full_AccumulatedDepreciationAndAmortisationMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AccumulatedImpairmentMember" xlink:label="ifrs-full_AccumulatedImpairmentMember" xlink:title="ifrs-full_AccumulatedImpairmentMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CarryingAmountMember" xlink:to="ifrs-full_AccumulatedImpairmentMember" xlink:title="Definition : ifrs-full_CarryingAmountMember to ifrs-full_AccumulatedImpairmentMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CarryingAmountMember" xlink:label="ifrs-full_CarryingAmountMember_1" xlink:title="ifrs-full_CarryingAmountMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xlink:to="ifrs-full_CarryingAmountMember_1" xlink:title="Definition : ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis to ifrs-full_CarryingAmountMember" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis" xlink:label="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis" xlink:title="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable" xlink:to="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis" xlink:title="Definition : ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable to ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" xlink:label="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" xlink:title="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis" xlink:to="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" xlink:title="Definition : ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis to ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IntangibleAssetsOtherThanGoodwillMember" xlink:label="ifrs-full_IntangibleAssetsOtherThanGoodwillMember" xlink:title="ifrs-full_IntangibleAssetsOtherThanGoodwillMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" xlink:to="ifrs-full_IntangibleAssetsOtherThanGoodwillMember" xlink:title="Definition : ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain to ifrs-full_IntangibleAssetsOtherThanGoodwillMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" xlink:label="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain_1" xlink:title="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis" xlink:to="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain_1" xlink:title="Definition : ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis to ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfAssetsAxis" xlink:label="ifrs-full_ClassesOfAssetsAxis" xlink:title="ifrs-full_ClassesOfAssetsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable" xlink:to="ifrs-full_ClassesOfAssetsAxis" xlink:title="Definition : ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable to ifrs-full_ClassesOfAssetsAxis" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="ifrs-full_ClassesOfAssetsDomain" xlink:title="ifrs-full_ClassesOfAssetsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ClassesOfAssetsAxis" xlink:to="ifrs-full_ClassesOfAssetsDomain" xlink:title="Definition : ifrs-full_ClassesOfAssetsAxis to ifrs-full_ClassesOfAssetsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RightofuseAssetsMember" xlink:label="ifrs-full_RightofuseAssetsMember" xlink:title="ifrs-full_RightofuseAssetsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfAssetsDomain" xlink:to="ifrs-full_RightofuseAssetsMember" xlink:title="Definition : ifrs-full_ClassesOfAssetsDomain to ifrs-full_RightofuseAssetsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="ifrs-full_ClassesOfAssetsDomain_1" xlink:title="ifrs-full_ClassesOfAssetsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ClassesOfAssetsAxis" xlink:to="ifrs-full_ClassesOfAssetsDomain_1" xlink:title="Definition : ifrs-full_ClassesOfAssetsAxis to ifrs-full_ClassesOfAssetsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/InvestmentsinsubsidiariesjointventuresandassociatesSummaryofbalancesandchangesininvestmentsinjointventuresandassociatesDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:label="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:title="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_InvestmentsAccountedForUsingEquityMethodNetOfProvisionForEquityDeficit" xlink:label="ugp_InvestmentsAccountedForUsingEquityMethodNetOfProvisionForEquityDeficit" xlink:title="ugp_InvestmentsAccountedForUsingEquityMethodNetOfProvisionForEquityDeficit" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:to="ugp_InvestmentsAccountedForUsingEquityMethodNetOfProvisionForEquityDeficit" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems to ugp_InvestmentsAccountedForUsingEquityMethodNetOfProvisionForEquityDeficit" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ShareOfProfitLossOfSubsidiariesAssociatesAndJointVentures" xlink:label="ugp_ShareOfProfitLossOfSubsidiariesAssociatesAndJointVentures" xlink:title="ugp_ShareOfProfitLossOfSubsidiariesAssociatesAndJointVentures" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:to="ugp_ShareOfProfitLossOfSubsidiariesAssociatesAndJointVentures" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems to ugp_ShareOfProfitLossOfSubsidiariesAssociatesAndJointVentures" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AmortizationOfFairValueAdjustmentOnInvestmentAccountedForUsingEquityMethod" xlink:label="ugp_AmortizationOfFairValueAdjustmentOnInvestmentAccountedForUsingEquityMethod" xlink:title="ugp_AmortizationOfFairValueAdjustmentOnInvestmentAccountedForUsingEquityMethod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:to="ugp_AmortizationOfFairValueAdjustmentOnInvestmentAccountedForUsingEquityMethod" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems to ugp_AmortizationOfFairValueAdjustmentOnInvestmentAccountedForUsingEquityMethod" xlink:type="arc" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ShareOfProfitLossOfContinuingOperationsOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" xlink:label="ifrs-full_ShareOfProfitLossOfContinuingOperationsOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" xlink:title="ifrs-full_ShareOfProfitLossOfContinuingOperationsOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:to="ifrs-full_ShareOfProfitLossOfContinuingOperationsOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems to ifrs-full_ShareOfProfitLossOfContinuingOperationsOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ShareOfProfitLossOfDiscontinuedOperationsOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" xlink:label="ifrs-full_ShareOfProfitLossOfDiscontinuedOperationsOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" xlink:title="ifrs-full_ShareOfProfitLossOfDiscontinuedOperationsOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:to="ifrs-full_ShareOfProfitLossOfDiscontinuedOperationsOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems to ifrs-full_ShareOfProfitLossOfDiscontinuedOperationsOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DividendsReceived" xlink:label="ifrs-full_DividendsReceived" xlink:title="ifrs-full_DividendsReceived" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:to="ifrs-full_DividendsReceived" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems to ifrs-full_DividendsReceived" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreaseDecreaseThroughEquityIntrumentGrantedToSubsidiariesJointVenturesAndAssociates" xlink:label="ugp_IncreaseDecreaseThroughEquityIntrumentGrantedToSubsidiariesJointVenturesAndAssociates" xlink:title="ugp_IncreaseDecreaseThroughEquityIntrumentGrantedToSubsidiariesJointVenturesAndAssociates" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:to="ugp_IncreaseDecreaseThroughEquityIntrumentGrantedToSubsidiariesJointVenturesAndAssociates" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems to ugp_IncreaseDecreaseThroughEquityIntrumentGrantedToSubsidiariesJointVenturesAndAssociates" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreaseDecreaseThroughAccumulatedOtherComprehensiveIncome" xlink:label="ugp_IncreaseDecreaseThroughAccumulatedOtherComprehensiveIncome" xlink:title="ugp_IncreaseDecreaseThroughAccumulatedOtherComprehensiveIncome" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:to="ugp_IncreaseDecreaseThroughAccumulatedOtherComprehensiveIncome" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems to ugp_IncreaseDecreaseThroughAccumulatedOtherComprehensiveIncome" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreaseDecreaseThroughActuarialGainLossOfPostEmploymentBenefitsOfSubsidiariesNetOfIncomeAndSocialContributionTaxesInvestmentsAccountedForUsingEquityMethod" xlink:label="ugp_IncreaseDecreaseThroughActuarialGainLossOfPostEmploymentBenefitsOfSubsidiariesNetOfIncomeAndSocialContributionTaxesInvestmentsAccountedForUsingEquityMethod" xlink:title="ugp_IncreaseDecreaseThroughActuarialGainLossOfPostEmploymentBenefitsOfSubsidiariesNetOfIncomeAndSocialContributionTaxesInvestmentsAccountedForUsingEquityMethod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:to="ugp_IncreaseDecreaseThroughActuarialGainLossOfPostEmploymentBenefitsOfSubsidiariesNetOfIncomeAndSocialContributionTaxesInvestmentsAccountedForUsingEquityMethod" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems to ugp_IncreaseDecreaseThroughActuarialGainLossOfPostEmploymentBenefitsOfSubsidiariesNetOfIncomeAndSocialContributionTaxesInvestmentsAccountedForUsingEquityMethod" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreaseDecreaseThroughTaxIncentiveReserveInvestmentsAccountedForUsingEquityMethod" xlink:label="ugp_IncreaseDecreaseThroughTaxIncentiveReserveInvestmentsAccountedForUsingEquityMethod" xlink:title="ugp_IncreaseDecreaseThroughTaxIncentiveReserveInvestmentsAccountedForUsingEquityMethod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:to="ugp_IncreaseDecreaseThroughTaxIncentiveReserveInvestmentsAccountedForUsingEquityMethod" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems to ugp_IncreaseDecreaseThroughTaxIncentiveReserveInvestmentsAccountedForUsingEquityMethod" xlink:type="arc" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreaseThroughCapitalContributionInvestmentsAccountedForUsingEquityMethod" xlink:label="ugp_IncreaseThroughCapitalContributionInvestmentsAccountedForUsingEquityMethod" xlink:title="ugp_IncreaseThroughCapitalContributionInvestmentsAccountedForUsingEquityMethod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:to="ugp_IncreaseThroughCapitalContributionInvestmentsAccountedForUsingEquityMethod" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems to ugp_IncreaseThroughCapitalContributionInvestmentsAccountedForUsingEquityMethod" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreaseThroughCapitalContributionInSharesInvestmentsAccountedForUsingEquityMethod" xlink:label="ugp_IncreaseThroughCapitalContributionInSharesInvestmentsAccountedForUsingEquityMethod" xlink:title="ugp_IncreaseThroughCapitalContributionInSharesInvestmentsAccountedForUsingEquityMethod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:to="ugp_IncreaseThroughCapitalContributionInSharesInvestmentsAccountedForUsingEquityMethod" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems to ugp_IncreaseThroughCapitalContributionInSharesInvestmentsAccountedForUsingEquityMethod" xlink:type="arc" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreaseDecreaseThroughChangesOfInvestmentsInterestFromShareholderTransactionInvestmentsAccountedForUsingEquityMethod" xlink:label="ugp_IncreaseDecreaseThroughChangesOfInvestmentsInterestFromShareholderTransactionInvestmentsAccountedForUsingEquityMethod" xlink:title="ugp_IncreaseDecreaseThroughChangesOfInvestmentsInterestFromShareholderTransactionInvestmentsAccountedForUsingEquityMethod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:to="ugp_IncreaseDecreaseThroughChangesOfInvestmentsInterestFromShareholderTransactionInvestmentsAccountedForUsingEquityMethod" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems to ugp_IncreaseDecreaseThroughChangesOfInvestmentsInterestFromShareholderTransactionInvestmentsAccountedForUsingEquityMethod" xlink:type="arc" use="optional" order="12" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DecreaseThroughCapitalDistributionInvestmentsAccountedForUsingEquityMethod" xlink:label="ugp_DecreaseThroughCapitalDistributionInvestmentsAccountedForUsingEquityMethod" xlink:title="ugp_DecreaseThroughCapitalDistributionInvestmentsAccountedForUsingEquityMethod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:to="ugp_DecreaseThroughCapitalDistributionInvestmentsAccountedForUsingEquityMethod" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems to ugp_DecreaseThroughCapitalDistributionInvestmentsAccountedForUsingEquityMethod" xlink:type="arc" use="optional" order="13" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AdvancesForAcquisitionInvestmentAccountedForUsingEquityMethod" xlink:label="ugp_AdvancesForAcquisitionInvestmentAccountedForUsingEquityMethod" xlink:title="ugp_AdvancesForAcquisitionInvestmentAccountedForUsingEquityMethod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:to="ugp_AdvancesForAcquisitionInvestmentAccountedForUsingEquityMethod" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems to ugp_AdvancesForAcquisitionInvestmentAccountedForUsingEquityMethod" xlink:type="arc" order="14" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreaseDecreaseThroughAcquisition" xlink:label="ugp_IncreaseDecreaseThroughAcquisition" xlink:title="ugp_IncreaseDecreaseThroughAcquisition" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:to="ugp_IncreaseDecreaseThroughAcquisition" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems to ugp_IncreaseDecreaseThroughAcquisition" xlink:type="arc" use="optional" order="15" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreaseDecreaseThroughTransfersOfFinancialAssetsToInvestmentsAccountedForUsingEquityMethod" xlink:label="ugp_IncreaseDecreaseThroughTransfersOfFinancialAssetsToInvestmentsAccountedForUsingEquityMethod" xlink:title="ugp_IncreaseDecreaseThroughTransfersOfFinancialAssetsToInvestmentsAccountedForUsingEquityMethod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:to="ugp_IncreaseDecreaseThroughTransfersOfFinancialAssetsToInvestmentsAccountedForUsingEquityMethod" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems to ugp_IncreaseDecreaseThroughTransfersOfFinancialAssetsToInvestmentsAccountedForUsingEquityMethod" xlink:type="arc" order="16" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AdvancesForFutureCapitalIncreaseInvestmentAccountedForUsingEquityMethod" xlink:label="ugp_AdvancesForFutureCapitalIncreaseInvestmentAccountedForUsingEquityMethod" xlink:title="ugp_AdvancesForFutureCapitalIncreaseInvestmentAccountedForUsingEquityMethod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:to="ugp_AdvancesForFutureCapitalIncreaseInvestmentAccountedForUsingEquityMethod" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems to ugp_AdvancesForFutureCapitalIncreaseInvestmentAccountedForUsingEquityMethod" xlink:type="arc" order="17" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreaseDecreaseThroughMovements" xlink:label="ugp_IncreaseDecreaseThroughMovements" xlink:title="ugp_IncreaseDecreaseThroughMovements" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:to="ugp_IncreaseDecreaseThroughMovements" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems to ugp_IncreaseDecreaseThroughMovements" xlink:type="arc" use="optional" order="18" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreaseDecreaseThroughRedemptionOfShares" xlink:label="ugp_IncreaseDecreaseThroughRedemptionOfShares" xlink:title="ugp_IncreaseDecreaseThroughRedemptionOfShares" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:to="ugp_IncreaseDecreaseThroughRedemptionOfShares" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems to ugp_IncreaseDecreaseThroughRedemptionOfShares" xlink:type="arc" use="optional" order="20" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreaseDecreaseThroughMovementsInDiscontinuedOperations" xlink:label="ugp_IncreaseDecreaseThroughMovementsInDiscontinuedOperations" xlink:title="ugp_IncreaseDecreaseThroughMovementsInDiscontinuedOperations" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:to="ugp_IncreaseDecreaseThroughMovementsInDiscontinuedOperations" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems to ugp_IncreaseDecreaseThroughMovementsInDiscontinuedOperations" xlink:type="arc" use="optional" order="21" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DecreaseThroughWriteOffInvestmentsAccountedForUsingEquityMethod" xlink:label="ugp_DecreaseThroughWriteOffInvestmentsAccountedForUsingEquityMethod" xlink:title="ugp_DecreaseThroughWriteOffInvestmentsAccountedForUsingEquityMethod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:to="ugp_DecreaseThroughWriteOffInvestmentsAccountedForUsingEquityMethod" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems to ugp_DecreaseThroughWriteOffInvestmentsAccountedForUsingEquityMethod" xlink:type="arc" use="optional" order="22" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DecreaseThroughReclassificationToAssetsHeldForSaleInvestmentsAccountedForUsingEquityMethod" xlink:label="ugp_DecreaseThroughReclassificationToAssetsHeldForSaleInvestmentsAccountedForUsingEquityMethod" xlink:title="ugp_DecreaseThroughReclassificationToAssetsHeldForSaleInvestmentsAccountedForUsingEquityMethod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:to="ugp_DecreaseThroughReclassificationToAssetsHeldForSaleInvestmentsAccountedForUsingEquityMethod" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems to ugp_DecreaseThroughReclassificationToAssetsHeldForSaleInvestmentsAccountedForUsingEquityMethod" xlink:type="arc" use="optional" order="23" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreaseDecreaseThroughOtherReservesInvestmentsAccountedForUsingEquityMethod" xlink:label="ugp_IncreaseDecreaseThroughOtherReservesInvestmentsAccountedForUsingEquityMethod" xlink:title="ugp_IncreaseDecreaseThroughOtherReservesInvestmentsAccountedForUsingEquityMethod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:to="ugp_IncreaseDecreaseThroughOtherReservesInvestmentsAccountedForUsingEquityMethod" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems to ugp_IncreaseDecreaseThroughOtherReservesInvestmentsAccountedForUsingEquityMethod" xlink:type="arc" use="optional" order="24" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DecreaseThroughProposedDividendsInvestmentsAccountedForUsingEquityMethod" xlink:label="ugp_DecreaseThroughProposedDividendsInvestmentsAccountedForUsingEquityMethod" xlink:title="ugp_DecreaseThroughProposedDividendsInvestmentsAccountedForUsingEquityMethod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:to="ugp_DecreaseThroughProposedDividendsInvestmentsAccountedForUsingEquityMethod" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems to ugp_DecreaseThroughProposedDividendsInvestmentsAccountedForUsingEquityMethod" xlink:type="arc" use="optional" order="25" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreaseDecreaseThroughValuationAdjustmentsInvestmentsAccountedForUsingEquityMethod" xlink:label="ugp_IncreaseDecreaseThroughValuationAdjustmentsInvestmentsAccountedForUsingEquityMethod" xlink:title="ugp_IncreaseDecreaseThroughValuationAdjustmentsInvestmentsAccountedForUsingEquityMethod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:to="ugp_IncreaseDecreaseThroughValuationAdjustmentsInvestmentsAccountedForUsingEquityMethod" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems to ugp_IncreaseDecreaseThroughValuationAdjustmentsInvestmentsAccountedForUsingEquityMethod" xlink:type="arc" use="optional" order="26" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodTable" xlink:label="ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodTable" xlink:title="ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems" xlink:to="ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodTable" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems to ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodTable" xlink:type="arc" order="27" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_InvestmentsAccountedForUsingEquityMethodAxis" xlink:label="ugp_InvestmentsAccountedForUsingEquityMethodAxis" xlink:title="ugp_InvestmentsAccountedForUsingEquityMethodAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodTable" xlink:to="ugp_InvestmentsAccountedForUsingEquityMethodAxis" xlink:title="Definition : ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodTable to ugp_InvestmentsAccountedForUsingEquityMethodAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_InvestmentsAccountedForUsingEquityMethodDomain" xlink:label="ugp_InvestmentsAccountedForUsingEquityMethodDomain" xlink:title="ugp_InvestmentsAccountedForUsingEquityMethodDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_InvestmentsAccountedForUsingEquityMethodAxis" xlink:to="ugp_InvestmentsAccountedForUsingEquityMethodDomain" xlink:title="Definition : ugp_InvestmentsAccountedForUsingEquityMethodAxis to ugp_InvestmentsAccountedForUsingEquityMethodDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_JointVenturesMember" xlink:label="ifrs-full_JointVenturesMember" xlink:title="ifrs-full_JointVenturesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_InvestmentsAccountedForUsingEquityMethodDomain" xlink:to="ifrs-full_JointVenturesMember" xlink:title="Definition : ugp_InvestmentsAccountedForUsingEquityMethodDomain to ifrs-full_JointVenturesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AssociatesMember" xlink:label="ifrs-full_AssociatesMember" xlink:title="ifrs-full_AssociatesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_InvestmentsAccountedForUsingEquityMethodDomain" xlink:to="ifrs-full_AssociatesMember" xlink:title="Definition : ugp_InvestmentsAccountedForUsingEquityMethodDomain to ifrs-full_AssociatesMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AdvancesMember" xlink:label="ugp_AdvancesMember" xlink:title="ugp_AdvancesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_InvestmentsAccountedForUsingEquityMethodDomain" xlink:to="ugp_AdvancesMember" xlink:title="Definition : ugp_InvestmentsAccountedForUsingEquityMethodDomain to ugp_AdvancesMember" xlink:type="arc" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AdvancesForFutureCapitalIncreaseMember" xlink:label="ugp_AdvancesForFutureCapitalIncreaseMember" xlink:title="ugp_AdvancesForFutureCapitalIncreaseMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_InvestmentsAccountedForUsingEquityMethodDomain" xlink:to="ugp_AdvancesForFutureCapitalIncreaseMember" xlink:title="Definition : ugp_InvestmentsAccountedForUsingEquityMethodDomain to ugp_AdvancesForFutureCapitalIncreaseMember" xlink:type="arc" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_InvestmentsAccountedForUsingEquityMethodDomain" xlink:label="ugp_InvestmentsAccountedForUsingEquityMethodDomain_1" xlink:title="ugp_InvestmentsAccountedForUsingEquityMethodDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_InvestmentsAccountedForUsingEquityMethodAxis" xlink:to="ugp_InvestmentsAccountedForUsingEquityMethodDomain_1" xlink:title="Definition : ugp_InvestmentsAccountedForUsingEquityMethodAxis to ugp_InvestmentsAccountedForUsingEquityMethodDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodTable" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="Definition : ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodTable to ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltragazMember" xlink:label="ugp_UltragazMember" xlink:title="ugp_UltragazMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltragazMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltragazMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CiaUltragazMember" xlink:label="ugp_CiaUltragazMember" xlink:title="ugp_CiaUltragazMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_CiaUltragazMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_CiaUltragazMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UVCInvestimentosLtdaMember" xlink:label="ugp_UVCInvestimentosLtdaMember" xlink:title="ugp_UVCInvestimentosLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UVCInvestimentosLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UVCInvestimentosLtdaMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ImavenImoveisLtdaMember" xlink:label="ugp_ImavenImoveisLtdaMember" xlink:title="ugp_ImavenImoveisLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_ImavenImoveisLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_ImavenImoveisLtdaMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TerminalDeCombustiveisPauliniaSAOplaMember" xlink:label="ugp_TerminalDeCombustiveisPauliniaSAOplaMember" xlink:title="ugp_TerminalDeCombustiveisPauliniaSAOplaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_TerminalDeCombustiveisPauliniaSAOplaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_TerminalDeCombustiveisPauliniaSAOplaMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_HidroviasDoBrasilMember" xlink:label="ugp_HidroviasDoBrasilMember" xlink:title="ugp_HidroviasDoBrasilMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_HidroviasDoBrasilMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_HidroviasDoBrasilMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/InvestmentsinsubsidiariesjointventuresandassociatesSummaryofthepositionsofequityandincomelossfortheyearDetails">
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodLineItems" xlink:label="ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodLineItems" xlink:title="ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_Equity" xlink:label="ifrs-full_Equity" xlink:title="ifrs-full_Equity" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodLineItems" xlink:to="ifrs-full_Equity" xlink:title="Definition : ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodLineItems to ifrs-full_Equity" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProfitLoss" xlink:label="ifrs-full_ProfitLoss" xlink:title="ifrs-full_ProfitLoss" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodLineItems" xlink:to="ifrs-full_ProfitLoss" xlink:title="Definition : ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodLineItems to ifrs-full_ProfitLoss" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProportionOfOwnershipInterestInJointVenture" xlink:label="ifrs-full_ProportionOfOwnershipInterestInJointVenture" xlink:title="ifrs-full_ProportionOfOwnershipInterestInJointVenture" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodLineItems" xlink:to="ifrs-full_ProportionOfOwnershipInterestInJointVenture" xlink:title="Definition : ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodLineItems to ifrs-full_ProportionOfOwnershipInterestInJointVenture" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProportionOfOwnershipInterestInAssociate" xlink:label="ifrs-full_ProportionOfOwnershipInterestInAssociate" xlink:title="ifrs-full_ProportionOfOwnershipInterestInAssociate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodLineItems" xlink:to="ifrs-full_ProportionOfOwnershipInterestInAssociate" xlink:title="Definition : ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodLineItems to ifrs-full_ProportionOfOwnershipInterestInAssociate" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_InvestmentsWithEquityDeficitAccountedForUsingEquityMethod" xlink:label="ugp_InvestmentsWithEquityDeficitAccountedForUsingEquityMethod" xlink:title="ugp_InvestmentsWithEquityDeficitAccountedForUsingEquityMethod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodLineItems" xlink:to="ugp_InvestmentsWithEquityDeficitAccountedForUsingEquityMethod" xlink:title="Definition : ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodLineItems to ugp_InvestmentsWithEquityDeficitAccountedForUsingEquityMethod" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_GoodwillRecognisedAsOfAcquisitionDate" xlink:label="ifrs-full_GoodwillRecognisedAsOfAcquisitionDate" xlink:title="ifrs-full_GoodwillRecognisedAsOfAcquisitionDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodLineItems" xlink:to="ifrs-full_GoodwillRecognisedAsOfAcquisitionDate" xlink:title="Definition : ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodLineItems to ifrs-full_GoodwillRecognisedAsOfAcquisitionDate" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_FairValueAdjustmentOnInvestmentAccountedForUsingEquityMethod" xlink:label="ugp_FairValueAdjustmentOnInvestmentAccountedForUsingEquityMethod" xlink:title="ugp_FairValueAdjustmentOnInvestmentAccountedForUsingEquityMethod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodLineItems" xlink:to="ugp_FairValueAdjustmentOnInvestmentAccountedForUsingEquityMethod" xlink:title="Definition : ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodLineItems to ugp_FairValueAdjustmentOnInvestmentAccountedForUsingEquityMethod" xlink:type="arc" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AdvancesForAcquisitionInvestmentAccountedForUsingEquityMethod" xlink:label="ugp_AdvancesForAcquisitionInvestmentAccountedForUsingEquityMethod" xlink:title="ugp_AdvancesForAcquisitionInvestmentAccountedForUsingEquityMethod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodLineItems" xlink:to="ugp_AdvancesForAcquisitionInvestmentAccountedForUsingEquityMethod" xlink:title="Definition : ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodLineItems to ugp_AdvancesForAcquisitionInvestmentAccountedForUsingEquityMethod" xlink:type="arc" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AdvancesForFutureCapitalIncreaseInvestmentAccountedForUsingEquityMethod" xlink:label="ugp_AdvancesForFutureCapitalIncreaseInvestmentAccountedForUsingEquityMethod" xlink:title="ugp_AdvancesForFutureCapitalIncreaseInvestmentAccountedForUsingEquityMethod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodLineItems" xlink:to="ugp_AdvancesForFutureCapitalIncreaseInvestmentAccountedForUsingEquityMethod" xlink:title="Definition : ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodLineItems to ugp_AdvancesForFutureCapitalIncreaseInvestmentAccountedForUsingEquityMethod" xlink:type="arc" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_InvestmentsAccountedForUsingEquityMethodNetOfProvisionForEquityDeficit" xlink:label="ugp_InvestmentsAccountedForUsingEquityMethodNetOfProvisionForEquityDeficit" xlink:title="ugp_InvestmentsAccountedForUsingEquityMethodNetOfProvisionForEquityDeficit" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodLineItems" xlink:to="ugp_InvestmentsAccountedForUsingEquityMethodNetOfProvisionForEquityDeficit" xlink:title="Definition : ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodLineItems to ugp_InvestmentsAccountedForUsingEquityMethodNetOfProvisionForEquityDeficit" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_InvestmentsAccountedForUsingEquityMethodProvisionForEquityDeficit" xlink:label="ugp_InvestmentsAccountedForUsingEquityMethodProvisionForEquityDeficit" xlink:title="ugp_InvestmentsAccountedForUsingEquityMethodProvisionForEquityDeficit" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodLineItems" xlink:to="ugp_InvestmentsAccountedForUsingEquityMethodProvisionForEquityDeficit" xlink:title="Definition : ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodLineItems to ugp_InvestmentsAccountedForUsingEquityMethodProvisionForEquityDeficit" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_InvestmentAccountedForUsingEquityMethod" xlink:label="ifrs-full_InvestmentAccountedForUsingEquityMethod" xlink:title="ifrs-full_InvestmentAccountedForUsingEquityMethod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodLineItems" xlink:to="ifrs-full_InvestmentAccountedForUsingEquityMethod" xlink:title="Definition : ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodLineItems to ifrs-full_InvestmentAccountedForUsingEquityMethod" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" xlink:label="ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" xlink:title="ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodLineItems" xlink:to="ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" xlink:title="Definition : ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodLineItems to ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" xlink:type="arc" use="optional" order="12" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodTable" xlink:label="ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodTable" xlink:title="ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodLineItems" xlink:to="ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodTable" xlink:title="Definition : ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodLineItems to ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodTable" xlink:type="arc" order="13" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_InvestmentsAccountedForUsingEquityMethodAxis" xlink:label="ugp_InvestmentsAccountedForUsingEquityMethodAxis" xlink:title="ugp_InvestmentsAccountedForUsingEquityMethodAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodTable" xlink:to="ugp_InvestmentsAccountedForUsingEquityMethodAxis" xlink:title="Definition : ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodTable to ugp_InvestmentsAccountedForUsingEquityMethodAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_InvestmentsAccountedForUsingEquityMethodDomain" xlink:label="ugp_InvestmentsAccountedForUsingEquityMethodDomain" xlink:title="ugp_InvestmentsAccountedForUsingEquityMethodDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_InvestmentsAccountedForUsingEquityMethodAxis" xlink:to="ugp_InvestmentsAccountedForUsingEquityMethodDomain" xlink:title="Definition : ugp_InvestmentsAccountedForUsingEquityMethodAxis to ugp_InvestmentsAccountedForUsingEquityMethodDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_InvestmentsWithPositiveEquityMember" xlink:label="ugp_InvestmentsWithPositiveEquityMember" xlink:title="ugp_InvestmentsWithPositiveEquityMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_InvestmentsAccountedForUsingEquityMethodDomain" xlink:to="ugp_InvestmentsWithPositiveEquityMember" xlink:title="Definition : ugp_InvestmentsAccountedForUsingEquityMethodDomain to ugp_InvestmentsWithPositiveEquityMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_InvestmentsWithNegativeEquityMember" xlink:label="ugp_InvestmentsWithNegativeEquityMember" xlink:title="ugp_InvestmentsWithNegativeEquityMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_InvestmentsAccountedForUsingEquityMethodDomain" xlink:to="ugp_InvestmentsWithNegativeEquityMember" xlink:title="Definition : ugp_InvestmentsAccountedForUsingEquityMethodDomain to ugp_InvestmentsWithNegativeEquityMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_InvestmentsAccountedForUsingEquityMethodDomain" xlink:label="ugp_InvestmentsAccountedForUsingEquityMethodDomain_1" xlink:title="ugp_InvestmentsAccountedForUsingEquityMethodDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_InvestmentsAccountedForUsingEquityMethodAxis" xlink:to="ugp_InvestmentsAccountedForUsingEquityMethodDomain_1" xlink:title="Definition : ugp_InvestmentsAccountedForUsingEquityMethodAxis to ugp_InvestmentsAccountedForUsingEquityMethodDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_JointVenturesAxis" xlink:label="ifrs-full_JointVenturesAxis" xlink:title="ifrs-full_JointVenturesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodTable" xlink:to="ifrs-full_JointVenturesAxis" xlink:title="Definition : ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodTable to ifrs-full_JointVenturesAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_JointVenturesDomain" xlink:label="ifrs-full_JointVenturesDomain" xlink:title="ifrs-full_JointVenturesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_JointVenturesAxis" xlink:to="ifrs-full_JointVenturesDomain" xlink:title="Definition : ifrs-full_JointVenturesAxis to ifrs-full_JointVenturesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_JointVenturesMember" xlink:label="ifrs-full_JointVenturesMember" xlink:title="ifrs-full_JointVenturesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_JointVenturesDomain" xlink:to="ifrs-full_JointVenturesMember" xlink:title="Definition : ifrs-full_JointVenturesDomain to ifrs-full_JointVenturesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UniaoVopakMember" xlink:label="ugp_UniaoVopakMember" xlink:title="ugp_UniaoVopakMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_JointVenturesMember" xlink:to="ugp_UniaoVopakMember" xlink:title="Definition : ifrs-full_JointVenturesMember to ugp_UniaoVopakMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_RPRMember" xlink:label="ugp_RPRMember" xlink:title="ugp_RPRMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_JointVenturesMember" xlink:to="ugp_RPRMember" xlink:title="Definition : ifrs-full_JointVenturesMember to ugp_RPRMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LatitudeLogsticaMember" xlink:label="ugp_LatitudeLogsticaMember" xlink:title="ugp_LatitudeLogsticaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_JointVenturesMember" xlink:to="ugp_LatitudeLogsticaMember" xlink:title="Definition : ifrs-full_JointVenturesMember to ugp_LatitudeLogsticaMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NavegantesLogsticaMember" xlink:label="ugp_NavegantesLogsticaMember" xlink:title="ugp_NavegantesLogsticaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_JointVenturesMember" xlink:to="ugp_NavegantesLogsticaMember" xlink:title="Definition : ifrs-full_JointVenturesMember to ugp_NavegantesLogsticaMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NordesteLogsticaIMember" xlink:label="ugp_NordesteLogsticaIMember" xlink:title="ugp_NordesteLogsticaIMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_JointVenturesMember" xlink:to="ugp_NordesteLogsticaIMember" xlink:title="Definition : ifrs-full_JointVenturesMember to ugp_NordesteLogsticaIMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NordesteLogsticaIIMember" xlink:label="ugp_NordesteLogsticaIIMember" xlink:title="ugp_NordesteLogsticaIIMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_JointVenturesMember" xlink:to="ugp_NordesteLogsticaIIMember" xlink:title="Definition : ifrs-full_JointVenturesMember to ugp_NordesteLogsticaIIMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NordesteLogsticaIIIMember" xlink:label="ugp_NordesteLogsticaIIIMember" xlink:title="ugp_NordesteLogsticaIIIMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_JointVenturesMember" xlink:to="ugp_NordesteLogsticaIIIMember" xlink:title="Definition : ifrs-full_JointVenturesMember to ugp_NordesteLogsticaIIIMember" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_QuimicaDaBahiaIndustriaEcomercioMember" xlink:label="ugp_QuimicaDaBahiaIndustriaEcomercioMember" xlink:title="ugp_QuimicaDaBahiaIndustriaEcomercioMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_JointVenturesMember" xlink:to="ugp_QuimicaDaBahiaIndustriaEcomercioMember" xlink:title="Definition : ifrs-full_JointVenturesMember to ugp_QuimicaDaBahiaIndustriaEcomercioMember" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TerminalDeCombustiveisPauliniaSAOplaMember" xlink:label="ugp_TerminalDeCombustiveisPauliniaSAOplaMember" xlink:title="ugp_TerminalDeCombustiveisPauliniaSAOplaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_JointVenturesMember" xlink:to="ugp_TerminalDeCombustiveisPauliniaSAOplaMember" xlink:title="Definition : ifrs-full_JointVenturesMember to ugp_TerminalDeCombustiveisPauliniaSAOplaMember" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OtherInvestmentMember" xlink:label="ugp_OtherInvestmentMember" xlink:title="ugp_OtherInvestmentMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_JointVenturesMember" xlink:to="ugp_OtherInvestmentMember" xlink:title="Definition : ifrs-full_JointVenturesMember to ugp_OtherInvestmentMember" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ConnectCarMember" xlink:label="ugp_ConnectCarMember" xlink:title="ugp_ConnectCarMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_JointVenturesMember" xlink:to="ugp_ConnectCarMember" xlink:title="Definition : ifrs-full_JointVenturesMember to ugp_ConnectCarMember" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_JointVenturesDomain" xlink:label="ifrs-full_JointVenturesDomain_1" xlink:title="ifrs-full_JointVenturesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_JointVenturesAxis" xlink:to="ifrs-full_JointVenturesDomain_1" xlink:title="Definition : ifrs-full_JointVenturesAxis to ifrs-full_JointVenturesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BusinessCombinationsAxis" xlink:label="ifrs-full_BusinessCombinationsAxis" xlink:title="ifrs-full_BusinessCombinationsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodTable" xlink:to="ifrs-full_BusinessCombinationsAxis" xlink:title="Definition : ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodTable to ifrs-full_BusinessCombinationsAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BusinessCombinationsDomain" xlink:label="ifrs-full_BusinessCombinationsDomain" xlink:title="ifrs-full_BusinessCombinationsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_BusinessCombinationsAxis" xlink:to="ifrs-full_BusinessCombinationsDomain" xlink:title="Definition : ifrs-full_BusinessCombinationsAxis to ifrs-full_BusinessCombinationsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OplaGroupMember" xlink:label="ugp_OplaGroupMember" xlink:title="ugp_OplaGroupMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_OplaGroupMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_OplaGroupMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PaoDeAcucarGroupStationsMember" xlink:label="ugp_PaoDeAcucarGroupStationsMember" xlink:title="ugp_PaoDeAcucarGroupStationsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_PaoDeAcucarGroupStationsMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_PaoDeAcucarGroupStationsMember" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BusinessCombinationsDomain" xlink:label="ifrs-full_BusinessCombinationsDomain_1" xlink:title="ifrs-full_BusinessCombinationsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_BusinessCombinationsAxis" xlink:to="ifrs-full_BusinessCombinationsDomain_1" xlink:title="Definition : ifrs-full_BusinessCombinationsAxis to ifrs-full_BusinessCombinationsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:label="ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:title="ifrs-full_SignificantInvestmentsInAssociatesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodTable" xlink:to="ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:title="Definition : ugp_DisclosureOfInvestmentsAccountedForUsingEquityMethodTable to ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:label="ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:title="ifrs-full_SignificantInvestmentsInAssociatesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:to="ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInAssociatesAxis to ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AssociatesMember" xlink:label="ifrs-full_AssociatesMember" xlink:title="ifrs-full_AssociatesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:to="ifrs-full_AssociatesMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInAssociatesDomain to ifrs-full_AssociatesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_HidroviasDoBrasilMember" xlink:label="ugp_HidroviasDoBrasilMember" xlink:title="ugp_HidroviasDoBrasilMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:to="ugp_HidroviasDoBrasilMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInAssociatesDomain to ugp_HidroviasDoBrasilMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_MetalurgicaPlusMember" xlink:label="ugp_MetalurgicaPlusMember" xlink:title="ugp_MetalurgicaPlusMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:to="ugp_MetalurgicaPlusMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInAssociatesDomain to ugp_MetalurgicaPlusMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PlenogasDistribuidoraDeGasMember" xlink:label="ugp_PlenogasDistribuidoraDeGasMember" xlink:title="ugp_PlenogasDistribuidoraDeGasMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:to="ugp_PlenogasDistribuidoraDeGasMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInAssociatesDomain to ugp_PlenogasDistribuidoraDeGasMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:to="ugp_OtherInvestmentMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInAssociatesDomain to ugp_OtherInvestmentMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TransportadoraSulbrasileiraDeGasMember" xlink:label="ugp_TransportadoraSulbrasileiraDeGasMember" xlink:title="ugp_TransportadoraSulbrasileiraDeGasMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:to="ugp_TransportadoraSulbrasileiraDeGasMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInAssociatesDomain to ugp_TransportadoraSulbrasileiraDeGasMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:label="ifrs-full_SignificantInvestmentsInAssociatesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInAssociatesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:to="ifrs-full_SignificantInvestmentsInAssociatesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInAssociatesAxis to ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/EquityBalanceoftreasurysharesDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:label="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:title="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SharesInEntityHeldByEntityOrByItsSubsidiariesOrAssociates" xlink:label="ifrs-full_SharesInEntityHeldByEntityOrByItsSubsidiariesOrAssociates" xlink:title="ifrs-full_SharesInEntityHeldByEntityOrByItsSubsidiariesOrAssociates" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ifrs-full_SharesInEntityHeldByEntityOrByItsSubsidiariesOrAssociates" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ifrs-full_SharesInEntityHeldByEntityOrByItsSubsidiariesOrAssociates" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfTreasurySharesGrantedWithRightOfUse" xlink:label="ugp_NumberOfTreasurySharesGrantedWithRightOfUse" xlink:title="ugp_NumberOfTreasurySharesGrantedWithRightOfUse" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ugp_NumberOfTreasurySharesGrantedWithRightOfUse" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ugp_NumberOfTreasurySharesGrantedWithRightOfUse" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfTreasurySharesOutstanding" xlink:label="ugp_NumberOfTreasurySharesOutstanding" xlink:title="ugp_NumberOfTreasurySharesOutstanding" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ugp_NumberOfTreasurySharesOutstanding" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ugp_NumberOfTreasurySharesOutstanding" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfClassesOfShareCapitalTable" xlink:label="ifrs-full_DisclosureOfClassesOfShareCapitalTable" xlink:title="ifrs-full_DisclosureOfClassesOfShareCapitalTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalLineItems" xlink:to="ifrs-full_DisclosureOfClassesOfShareCapitalTable" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalLineItems to ifrs-full_DisclosureOfClassesOfShareCapitalTable" xlink:type="arc" order="3" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfShareCapitalAxis" xlink:label="ifrs-full_ClassesOfShareCapitalAxis" xlink:title="ifrs-full_ClassesOfShareCapitalAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalTable" xlink:to="ifrs-full_ClassesOfShareCapitalAxis" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalTable to ifrs-full_ClassesOfShareCapitalAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfShareCapitalDomain" xlink:label="ifrs-full_ClassesOfShareCapitalDomain" xlink:title="ifrs-full_ClassesOfShareCapitalDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ClassesOfShareCapitalAxis" xlink:to="ifrs-full_ClassesOfShareCapitalDomain" xlink:title="Definition : ifrs-full_ClassesOfShareCapitalAxis to ifrs-full_ClassesOfShareCapitalDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OrdinarySharesMember" xlink:label="ifrs-full_OrdinarySharesMember" xlink:title="ifrs-full_OrdinarySharesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfShareCapitalDomain" xlink:to="ifrs-full_OrdinarySharesMember" xlink:title="Definition : ifrs-full_ClassesOfShareCapitalDomain to ifrs-full_OrdinarySharesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfShareCapitalDomain" xlink:label="ifrs-full_ClassesOfShareCapitalDomain_1" xlink:title="ifrs-full_ClassesOfShareCapitalDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ClassesOfShareCapitalAxis" xlink:to="ifrs-full_ClassesOfShareCapitalDomain_1" xlink:title="Definition : ifrs-full_ClassesOfShareCapitalAxis to ifrs-full_ClassesOfShareCapitalDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ComponentsOfEquityAxis" xlink:label="ifrs-full_ComponentsOfEquityAxis" xlink:title="ifrs-full_ComponentsOfEquityAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfClassesOfShareCapitalTable" xlink:to="ifrs-full_ComponentsOfEquityAxis" xlink:title="Definition : ifrs-full_DisclosureOfClassesOfShareCapitalTable to ifrs-full_ComponentsOfEquityAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ComponentsOfEquityDomain" xlink:label="ifrs-full_ComponentsOfEquityDomain" xlink:title="ifrs-full_ComponentsOfEquityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ComponentsOfEquityAxis" xlink:to="ifrs-full_ComponentsOfEquityDomain" xlink:title="Definition : ifrs-full_ComponentsOfEquityAxis to ifrs-full_ComponentsOfEquityDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TreasurySharesMember" xlink:label="ifrs-full_TreasurySharesMember" xlink:title="ifrs-full_TreasurySharesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ComponentsOfEquityDomain" xlink:to="ifrs-full_TreasurySharesMember" xlink:title="Definition : ifrs-full_ComponentsOfEquityDomain to ifrs-full_TreasurySharesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ComponentsOfEquityDomain" xlink:label="ifrs-full_ComponentsOfEquityDomain_1" xlink:title="ifrs-full_ComponentsOfEquityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ComponentsOfEquityAxis" xlink:to="ifrs-full_ComponentsOfEquityDomain_1" xlink:title="Definition : ifrs-full_ComponentsOfEquityAxis to ifrs-full_ComponentsOfEquityDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/SubscriptionWarrantsIndemnificationAdditionalInformationDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" xlink:label="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" xlink:title="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SubscriptionWarrantsSharesIssued" xlink:label="ugp_SubscriptionWarrantsSharesIssued" xlink:title="ugp_SubscriptionWarrantsSharesIssued" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" xlink:to="ugp_SubscriptionWarrantsSharesIssued" xlink:title="Definition : ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems to ugp_SubscriptionWarrantsSharesIssued" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_MaximumNumberOfSharesToBeIssuedSubscriptionWarrants" xlink:label="ugp_MaximumNumberOfSharesToBeIssuedSubscriptionWarrants" xlink:title="ugp_MaximumNumberOfSharesToBeIssuedSubscriptionWarrants" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" xlink:to="ugp_MaximumNumberOfSharesToBeIssuedSubscriptionWarrants" xlink:title="Definition : ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems to ugp_MaximumNumberOfSharesToBeIssuedSubscriptionWarrants" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ExerciseOfWarrantsRightsOutstanding" xlink:label="ugp_ExerciseOfWarrantsRightsOutstanding" xlink:title="ugp_ExerciseOfWarrantsRightsOutstanding" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" xlink:to="ugp_ExerciseOfWarrantsRightsOutstanding" xlink:title="Definition : ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems to ugp_ExerciseOfWarrantsRightsOutstanding" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfSharesCanceledAndNotIssuedWhichLinkedToSubscriptionWarrantsIndemnification" xlink:label="ugp_NumberOfSharesCanceledAndNotIssuedWhichLinkedToSubscriptionWarrantsIndemnification" xlink:title="ugp_NumberOfSharesCanceledAndNotIssuedWhichLinkedToSubscriptionWarrantsIndemnification" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" xlink:to="ugp_NumberOfSharesCanceledAndNotIssuedWhichLinkedToSubscriptionWarrantsIndemnification" xlink:title="Definition : ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems to ugp_NumberOfSharesCanceledAndNotIssuedWhichLinkedToSubscriptionWarrantsIndemnification" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SubscriptionWarrantsShares" xlink:label="ugp_SubscriptionWarrantsShares" xlink:title="ugp_SubscriptionWarrantsShares" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" xlink:to="ugp_SubscriptionWarrantsShares" xlink:title="Definition : ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems to ugp_SubscriptionWarrantsShares" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SubscriptionWarrants" xlink:label="ugp_SubscriptionWarrants" xlink:title="ugp_SubscriptionWarrants" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" xlink:to="ugp_SubscriptionWarrants" xlink:title="Definition : ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems to ugp_SubscriptionWarrants" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_MaximumNumberOfSharesAvailableForIssueSubscriptionWarrants" xlink:label="ugp_MaximumNumberOfSharesAvailableForIssueSubscriptionWarrants" xlink:title="ugp_MaximumNumberOfSharesAvailableForIssueSubscriptionWarrants" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" xlink:to="ugp_MaximumNumberOfSharesAvailableForIssueSubscriptionWarrants" xlink:title="Definition : ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems to ugp_MaximumNumberOfSharesAvailableForIssueSubscriptionWarrants" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_FinanceCosts" xlink:label="ifrs-full_FinanceCosts" xlink:title="ifrs-full_FinanceCosts" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" xlink:to="ifrs-full_FinanceCosts" xlink:title="Definition : ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems to ifrs-full_FinanceCosts" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_FinanceIncome" xlink:label="ifrs-full_FinanceIncome" xlink:title="ifrs-full_FinanceIncome" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" xlink:to="ifrs-full_FinanceIncome" xlink:title="Definition : ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems to ifrs-full_FinanceIncome" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DisclosureOfSubscriptionWarrantsTable" xlink:label="ugp_DisclosureOfSubscriptionWarrantsTable" xlink:title="ugp_DisclosureOfSubscriptionWarrantsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" xlink:to="ugp_DisclosureOfSubscriptionWarrantsTable" xlink:title="Definition : ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems to ugp_DisclosureOfSubscriptionWarrantsTable" xlink:type="arc" use="optional" order="9" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_DisclosureOfSubscriptionWarrantsTable" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="Definition : ugp_DisclosureOfSubscriptionWarrantsTable to ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ExtrafarmaMember" xlink:label="ugp_ExtrafarmaMember" xlink:title="ugp_ExtrafarmaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_ExtrafarmaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_ExtrafarmaMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/DeferredRevenueDeferredRevenueInSubsidiariesDetail">
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SummaryOfDeferredRevenueLineItems" xlink:label="ugp_SummaryOfDeferredRevenueLineItems" xlink:title="ugp_SummaryOfDeferredRevenueLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DeferredIncomeIncludingContractLiabilities" xlink:label="ifrs-full_DeferredIncomeIncludingContractLiabilities" xlink:title="ifrs-full_DeferredIncomeIncludingContractLiabilities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfDeferredRevenueLineItems" xlink:to="ifrs-full_DeferredIncomeIncludingContractLiabilities" xlink:title="Definition : ugp_SummaryOfDeferredRevenueLineItems to ifrs-full_DeferredIncomeIncludingContractLiabilities" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CurrentDeferredIncomeIncludingCurrentContractLiabilities" xlink:label="ifrs-full_CurrentDeferredIncomeIncludingCurrentContractLiabilities" xlink:title="ifrs-full_CurrentDeferredIncomeIncludingCurrentContractLiabilities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfDeferredRevenueLineItems" xlink:to="ifrs-full_CurrentDeferredIncomeIncludingCurrentContractLiabilities" xlink:title="Definition : ugp_SummaryOfDeferredRevenueLineItems to ifrs-full_CurrentDeferredIncomeIncludingCurrentContractLiabilities" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NoncurrentDeferredIncomeIncludingNoncurrentContractLiabilities" xlink:label="ifrs-full_NoncurrentDeferredIncomeIncludingNoncurrentContractLiabilities" xlink:title="ifrs-full_NoncurrentDeferredIncomeIncludingNoncurrentContractLiabilities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfDeferredRevenueLineItems" xlink:to="ifrs-full_NoncurrentDeferredIncomeIncludingNoncurrentContractLiabilities" xlink:title="Definition : ugp_SummaryOfDeferredRevenueLineItems to ifrs-full_NoncurrentDeferredIncomeIncludingNoncurrentContractLiabilities" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DisclosureOfDeferredRevenueTable" xlink:label="ugp_DisclosureOfDeferredRevenueTable" xlink:title="ugp_DisclosureOfDeferredRevenueTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ugp_SummaryOfDeferredRevenueLineItems" xlink:to="ugp_DisclosureOfDeferredRevenueTable" xlink:title="Definition : ugp_SummaryOfDeferredRevenueLineItems to ugp_DisclosureOfDeferredRevenueTable" xlink:type="arc" use="optional" order="3" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DeferredRevenueAxis" xlink:label="ugp_DeferredRevenueAxis" xlink:title="ugp_DeferredRevenueAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_DisclosureOfDeferredRevenueTable" xlink:to="ugp_DeferredRevenueAxis" xlink:title="Definition : ugp_DisclosureOfDeferredRevenueTable to ugp_DeferredRevenueAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DeferredRevenueDomain" xlink:label="ugp_DeferredRevenueDomain" xlink:title="ugp_DeferredRevenueDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_DeferredRevenueAxis" xlink:to="ugp_DeferredRevenueDomain" xlink:title="Definition : ugp_DeferredRevenueAxis to ugp_DeferredRevenueDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_FranchisingUpfrontFeeMember" xlink:label="ugp_FranchisingUpfrontFeeMember" xlink:title="ugp_FranchisingUpfrontFeeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DeferredRevenueDomain" xlink:to="ugp_FranchisingUpfrontFeeMember" xlink:title="Definition : ugp_DeferredRevenueDomain to ugp_FranchisingUpfrontFeeMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LoyaltyProgramOneMember" xlink:label="ugp_LoyaltyProgramOneMember" xlink:title="ugp_LoyaltyProgramOneMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DeferredRevenueDomain" xlink:to="ugp_LoyaltyProgramOneMember" xlink:title="Definition : ugp_DeferredRevenueDomain to ugp_LoyaltyProgramOneMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LoyaltyProgramTwoMember" xlink:label="ugp_LoyaltyProgramTwoMember" xlink:title="ugp_LoyaltyProgramTwoMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DeferredRevenueDomain" xlink:to="ugp_LoyaltyProgramTwoMember" xlink:title="Definition : ugp_DeferredRevenueDomain to ugp_LoyaltyProgramTwoMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DeferredRevenueDomain" xlink:label="ugp_DeferredRevenueDomain_1" xlink:title="ugp_DeferredRevenueDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_DeferredRevenueAxis" xlink:to="ugp_DeferredRevenueDomain_1" xlink:title="Definition : ugp_DeferredRevenueAxis to ugp_DeferredRevenueDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/RelatedPartiesSummaryOfSubsidiariesAndOtherRelatedPartiesDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:label="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:title="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TradeReceivablesOtherReceivablesAndRelatedPartiesAssetsFromRelatedPartyTransactions" xlink:label="ugp_TradeReceivablesOtherReceivablesAndRelatedPartiesAssetsFromRelatedPartyTransactions" xlink:title="ugp_TradeReceivablesOtherReceivablesAndRelatedPartiesAssetsFromRelatedPartyTransactions" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ugp_TradeReceivablesOtherReceivablesAndRelatedPartiesAssetsFromRelatedPartyTransactions" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ugp_TradeReceivablesOtherReceivablesAndRelatedPartiesAssetsFromRelatedPartyTransactions" xlink:type="arc" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TradePayablesAndRelatedPartiesLiabilitiesToRelatedPartyTransactions" xlink:label="ugp_TradePayablesAndRelatedPartiesLiabilitiesToRelatedPartyTransactions" xlink:title="ugp_TradePayablesAndRelatedPartiesLiabilitiesToRelatedPartyTransactions" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ugp_TradePayablesAndRelatedPartiesLiabilitiesToRelatedPartyTransactions" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ugp_TradePayablesAndRelatedPartiesLiabilitiesToRelatedPartyTransactions" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AmountsReceivableRelatedPartyTransactions" xlink:label="ifrs-full_AmountsReceivableRelatedPartyTransactions" xlink:title="ifrs-full_AmountsReceivableRelatedPartyTransactions" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ifrs-full_AmountsReceivableRelatedPartyTransactions" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ifrs-full_AmountsReceivableRelatedPartyTransactions" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AmountsOtherReceivablesRelatedPartyTransactions" xlink:label="ugp_AmountsOtherReceivablesRelatedPartyTransactions" xlink:title="ugp_AmountsOtherReceivablesRelatedPartyTransactions" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ugp_AmountsOtherReceivablesRelatedPartyTransactions" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ugp_AmountsOtherReceivablesRelatedPartyTransactions" xlink:type="arc" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AmountsPayableRelatedPartyTransactions" xlink:label="ifrs-full_AmountsPayableRelatedPartyTransactions" xlink:title="ifrs-full_AmountsPayableRelatedPartyTransactions" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ifrs-full_AmountsPayableRelatedPartyTransactions" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ifrs-full_AmountsPayableRelatedPartyTransactions" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_RelatedPartiesAssetsRelatedPartyTransactions" xlink:label="ugp_RelatedPartiesAssetsRelatedPartyTransactions" xlink:title="ugp_RelatedPartiesAssetsRelatedPartyTransactions" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ugp_RelatedPartiesAssetsRelatedPartyTransactions" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ugp_RelatedPartiesAssetsRelatedPartyTransactions" xlink:type="arc" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_RelatedPartiesLiabilitiesRelatedPartyTransactions" xlink:label="ugp_RelatedPartiesLiabilitiesRelatedPartyTransactions" xlink:title="ugp_RelatedPartiesLiabilitiesRelatedPartyTransactions" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ugp_RelatedPartiesLiabilitiesRelatedPartyTransactions" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ugp_RelatedPartiesLiabilitiesRelatedPartyTransactions" xlink:type="arc" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_RevenueFromSaleOfGoodsAndRenderingOfServicesRelatedPartyTransactions" xlink:label="ugp_RevenueFromSaleOfGoodsAndRenderingOfServicesRelatedPartyTransactions" xlink:title="ugp_RevenueFromSaleOfGoodsAndRenderingOfServicesRelatedPartyTransactions" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ugp_RevenueFromSaleOfGoodsAndRenderingOfServicesRelatedPartyTransactions" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ugp_RevenueFromSaleOfGoodsAndRenderingOfServicesRelatedPartyTransactions" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PurchasesOfGoodsRelatedPartyTransactions" xlink:label="ifrs-full_PurchasesOfGoodsRelatedPartyTransactions" xlink:title="ifrs-full_PurchasesOfGoodsRelatedPartyTransactions" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ifrs-full_PurchasesOfGoodsRelatedPartyTransactions" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ifrs-full_PurchasesOfGoodsRelatedPartyTransactions" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SalesPurchasesOfGoodsRelatedPartyTransactions" xlink:label="ugp_SalesPurchasesOfGoodsRelatedPartyTransactions" xlink:title="ugp_SalesPurchasesOfGoodsRelatedPartyTransactions" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ugp_SalesPurchasesOfGoodsRelatedPartyTransactions" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ugp_SalesPurchasesOfGoodsRelatedPartyTransactions" xlink:type="arc" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:label="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:title="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:type="arc" order="10" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CounterpartiesAxis" xlink:label="ifrs-full_CounterpartiesAxis" xlink:title="ifrs-full_CounterpartiesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:to="ifrs-full_CounterpartiesAxis" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable to ifrs-full_CounterpartiesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CounterpartiesDomain" xlink:label="ifrs-full_CounterpartiesDomain" xlink:title="ifrs-full_CounterpartiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_CounterpartiesAxis" xlink:to="ifrs-full_CounterpartiesDomain" xlink:title="Definition : ifrs-full_CounterpartiesAxis to ifrs-full_CounterpartiesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TransactionsWithJointVenturesMember" xlink:label="ugp_TransactionsWithJointVenturesMember" xlink:title="ugp_TransactionsWithJointVenturesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CounterpartiesDomain" xlink:to="ugp_TransactionsWithJointVenturesMember" xlink:title="Definition : ifrs-full_CounterpartiesDomain to ugp_TransactionsWithJointVenturesMember" xlink:type="arc" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TransactionsWithAssociatesMember" xlink:label="ugp_TransactionsWithAssociatesMember" xlink:title="ugp_TransactionsWithAssociatesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CounterpartiesDomain" xlink:to="ugp_TransactionsWithAssociatesMember" xlink:title="Definition : ifrs-full_CounterpartiesDomain to ugp_TransactionsWithAssociatesMember" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TransactionsWithOtherRelatedPartiesMember" xlink:label="ugp_TransactionsWithOtherRelatedPartiesMember" xlink:title="ugp_TransactionsWithOtherRelatedPartiesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CounterpartiesDomain" xlink:to="ugp_TransactionsWithOtherRelatedPartiesMember" xlink:title="Definition : ifrs-full_CounterpartiesDomain to ugp_TransactionsWithOtherRelatedPartiesMember" xlink:type="arc" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CounterpartiesDomain" xlink:label="ifrs-full_CounterpartiesDomain_1" xlink:title="ifrs-full_CounterpartiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_CounterpartiesAxis" xlink:to="ifrs-full_CounterpartiesDomain_1" xlink:title="Definition : ifrs-full_CounterpartiesAxis to ifrs-full_CounterpartiesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:title="ifrs-full_CategoriesOfRelatedPartiesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:to="ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable to ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:title="ifrs-full_CategoriesOfRelatedPartiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:to="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesAxis to ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_RefinariaDePetroleoRigrandenseSAMember" xlink:label="ugp_RefinariaDePetroleoRigrandenseSAMember" xlink:title="ugp_RefinariaDePetroleoRigrandenseSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:to="ugp_RefinariaDePetroleoRigrandenseSAMember" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesDomain to ugp_RefinariaDePetroleoRigrandenseSAMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LatitudeLogsticaMember" xlink:label="ugp_LatitudeLogsticaMember" xlink:title="ugp_LatitudeLogsticaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:to="ugp_LatitudeLogsticaMember" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesDomain to ugp_LatitudeLogsticaMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NavegantesLogisticaPortuariaSAMember" xlink:label="ugp_NavegantesLogisticaPortuariaSAMember" xlink:title="ugp_NavegantesLogisticaPortuariaSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:to="ugp_NavegantesLogisticaPortuariaSAMember" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesDomain to ugp_NavegantesLogisticaPortuariaSAMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OthersJointVenturesMember" xlink:label="ugp_OthersJointVenturesMember" xlink:title="ugp_OthersJointVenturesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:to="ugp_OthersJointVenturesMember" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesDomain to ugp_OthersJointVenturesMember" xlink:type="arc" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_HidroviasDoBrasilMember" xlink:label="ugp_HidroviasDoBrasilMember" xlink:title="ugp_HidroviasDoBrasilMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:to="ugp_HidroviasDoBrasilMember" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesDomain to ugp_HidroviasDoBrasilMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ChevronOroniteBrasilLtdaMember" xlink:label="ugp_ChevronOroniteBrasilLtdaMember" xlink:title="ugp_ChevronOroniteBrasilLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:to="ugp_ChevronOroniteBrasilLtdaMember" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesDomain to ugp_ChevronOroniteBrasilLtdaMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ChevronProductsCompanyMember" xlink:label="ugp_ChevronProductsCompanyMember" xlink:title="ugp_ChevronProductsCompanyMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:to="ugp_ChevronProductsCompanyMember" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesDomain to ugp_ChevronProductsCompanyMember" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OtherRelatedPartiesMember" xlink:label="ifrs-full_OtherRelatedPartiesMember" xlink:title="ifrs-full_OtherRelatedPartiesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:to="ifrs-full_OtherRelatedPartiesMember" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesDomain to ifrs-full_OtherRelatedPartiesMember" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_QuimicaDaBahiaIndustriaEcomercioMember" xlink:label="ugp_QuimicaDaBahiaIndustriaEcomercioMember" xlink:title="ugp_QuimicaDaBahiaIndustriaEcomercioMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:to="ugp_QuimicaDaBahiaIndustriaEcomercioMember" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesDomain to ugp_QuimicaDaBahiaIndustriaEcomercioMember" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UniaoVopakArmazensGeraisLtdaMember" xlink:label="ugp_UniaoVopakArmazensGeraisLtdaMember" xlink:title="ugp_UniaoVopakArmazensGeraisLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:to="ugp_UniaoVopakArmazensGeraisLtdaMember" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesDomain to ugp_UniaoVopakArmazensGeraisLtdaMember" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NordesteLogsticaIMember" xlink:label="ugp_NordesteLogsticaIMember" xlink:title="ugp_NordesteLogsticaIMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:to="ugp_NordesteLogsticaIMember" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesDomain to ugp_NordesteLogsticaIMember" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NordesteLogsticaIIIMember" xlink:label="ugp_NordesteLogsticaIIIMember" xlink:title="ugp_NordesteLogsticaIIIMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:to="ugp_NordesteLogsticaIIIMember" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesDomain to ugp_NordesteLogsticaIIIMember" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OxicapIndustriaDeGasesMember" xlink:label="ugp_OxicapIndustriaDeGasesMember" xlink:title="ugp_OxicapIndustriaDeGasesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:to="ugp_OxicapIndustriaDeGasesMember" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesDomain to ugp_OxicapIndustriaDeGasesMember" xlink:type="arc" use="optional" order="12" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ConectCarSolucoesDeMobilidadeEletronicaMember" xlink:label="ugp_ConectCarSolucoesDeMobilidadeEletronicaMember" xlink:title="ugp_ConectCarSolucoesDeMobilidadeEletronicaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:to="ugp_ConectCarSolucoesDeMobilidadeEletronicaMember" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesDomain to ugp_ConectCarSolucoesDeMobilidadeEletronicaMember" xlink:type="arc" use="optional" order="13" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LA7ParticipaesEEmpreendImobLtdaMember" xlink:label="ugp_LA7ParticipaesEEmpreendImobLtdaMember" xlink:title="ugp_LA7ParticipaesEEmpreendImobLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:to="ugp_LA7ParticipaesEEmpreendImobLtdaMember" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesDomain to ugp_LA7ParticipaesEEmpreendImobLtdaMember" xlink:type="arc" use="optional" order="14" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ChevronThailandLimitedMember" xlink:label="ugp_ChevronThailandLimitedMember" xlink:title="ugp_ChevronThailandLimitedMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:to="ugp_ChevronThailandLimitedMember" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesDomain to ugp_ChevronThailandLimitedMember" xlink:type="arc" use="optional" order="15" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ChevronLatinAmericaMarketingLlcMember" xlink:label="ugp_ChevronLatinAmericaMarketingLlcMember" xlink:title="ugp_ChevronLatinAmericaMarketingLlcMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:to="ugp_ChevronLatinAmericaMarketingLlcMember" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesDomain to ugp_ChevronLatinAmericaMarketingLlcMember" xlink:type="arc" use="optional" order="16" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ChevronLubricantsOilsSAMember" xlink:label="ugp_ChevronLubricantsOilsSAMember" xlink:title="ugp_ChevronLubricantsOilsSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:to="ugp_ChevronLubricantsOilsSAMember" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesDomain to ugp_ChevronLubricantsOilsSAMember" xlink:type="arc" use="optional" order="17" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ChevronMarineProductsMember" xlink:label="ugp_ChevronMarineProductsMember" xlink:title="ugp_ChevronMarineProductsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:to="ugp_ChevronMarineProductsMember" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesDomain to ugp_ChevronMarineProductsMember" xlink:type="arc" use="optional" order="18" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ChevronBelgiumNvMember" xlink:label="ugp_ChevronBelgiumNvMember" xlink:title="ugp_ChevronBelgiumNvMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:to="ugp_ChevronBelgiumNvMember" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesDomain to ugp_ChevronBelgiumNvMember" xlink:type="arc" use="optional" order="19" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ChevronPetroleumCoColombiaMember" xlink:label="ugp_ChevronPetroleumCoColombiaMember" xlink:title="ugp_ChevronPetroleumCoColombiaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:to="ugp_ChevronPetroleumCoColombiaMember" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesDomain to ugp_ChevronPetroleumCoColombiaMember" xlink:type="arc" use="optional" order="20" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ChevronLubricantsLankaPlcMember" xlink:label="ugp_ChevronLubricantsLankaPlcMember" xlink:title="ugp_ChevronLubricantsLankaPlcMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:to="ugp_ChevronLubricantsLankaPlcMember" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesDomain to ugp_ChevronLubricantsLankaPlcMember" xlink:type="arc" use="optional" order="21" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ChevronBrasilOleosBasicosLtdaMember" xlink:label="ugp_ChevronBrasilOleosBasicosLtdaMember" xlink:title="ugp_ChevronBrasilOleosBasicosLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:to="ugp_ChevronBrasilOleosBasicosLtdaMember" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesDomain to ugp_ChevronBrasilOleosBasicosLtdaMember" xlink:type="arc" use="optional" order="22" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_RouteasyServicosDeAssessoriaLogisticaLtdaMember" xlink:label="ugp_RouteasyServicosDeAssessoriaLogisticaLtdaMember" xlink:title="ugp_RouteasyServicosDeAssessoriaLogisticaLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:to="ugp_RouteasyServicosDeAssessoriaLogisticaLtdaMember" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesDomain to ugp_RouteasyServicosDeAssessoriaLogisticaLtdaMember" xlink:type="arc" use="optional" order="23" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ChevronBrasilOleoeGasLtdaMember" xlink:label="ugp_ChevronBrasilOleoeGasLtdaMember" xlink:title="ugp_ChevronBrasilOleoeGasLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:to="ugp_ChevronBrasilOleoeGasLtdaMember" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesDomain to ugp_ChevronBrasilOleoeGasLtdaMember" xlink:type="arc" use="optional" order="24" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_MLFHoldingLtdaMember" xlink:label="ugp_MLFHoldingLtdaMember" xlink:title="ugp_MLFHoldingLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:to="ugp_MLFHoldingLtdaMember" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesDomain to ugp_MLFHoldingLtdaMember" xlink:type="arc" use="optional" order="25" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="ifrs-full_CategoriesOfRelatedPartiesDomain_1" xlink:title="ifrs-full_CategoriesOfRelatedPartiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:to="ifrs-full_CategoriesOfRelatedPartiesDomain_1" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesAxis to ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/ProvisionsandcontingentliabilitiesBalancesofescrowdepositsDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfOtherProvisionsLineItems" xlink:label="ifrs-full_DisclosureOfOtherProvisionsLineItems" xlink:title="ifrs-full_DisclosureOfOtherProvisionsLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LongtermDeposits" xlink:label="ifrs-full_LongtermDeposits" xlink:title="ifrs-full_LongtermDeposits" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOtherProvisionsLineItems" xlink:to="ifrs-full_LongtermDeposits" xlink:title="Definition : ifrs-full_DisclosureOfOtherProvisionsLineItems to ifrs-full_LongtermDeposits" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfOtherProvisionsTable" xlink:label="ifrs-full_DisclosureOfOtherProvisionsTable" xlink:title="ifrs-full_DisclosureOfOtherProvisionsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfOtherProvisionsLineItems" xlink:to="ifrs-full_DisclosureOfOtherProvisionsTable" xlink:title="Definition : ifrs-full_DisclosureOfOtherProvisionsLineItems to ifrs-full_DisclosureOfOtherProvisionsTable" xlink:type="arc" use="optional" order="1" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfProvisionsAxis" xlink:label="ifrs-full_ClassesOfProvisionsAxis" xlink:title="ifrs-full_ClassesOfProvisionsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfOtherProvisionsTable" xlink:to="ifrs-full_ClassesOfProvisionsAxis" xlink:title="Definition : ifrs-full_DisclosureOfOtherProvisionsTable to ifrs-full_ClassesOfProvisionsAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfOtherProvisionsDomain" xlink:label="ifrs-full_ClassesOfOtherProvisionsDomain" xlink:title="ifrs-full_ClassesOfOtherProvisionsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ClassesOfProvisionsAxis" xlink:to="ifrs-full_ClassesOfOtherProvisionsDomain" xlink:title="Definition : ifrs-full_ClassesOfProvisionsAxis to ifrs-full_ClassesOfOtherProvisionsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxMattersMember" xlink:label="ugp_TaxMattersMember" xlink:title="ugp_TaxMattersMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfOtherProvisionsDomain" xlink:to="ugp_TaxMattersMember" xlink:title="Definition : ifrs-full_ClassesOfOtherProvisionsDomain to ugp_TaxMattersMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LaborLitigationMember" xlink:label="ugp_LaborLitigationMember" xlink:title="ugp_LaborLitigationMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfOtherProvisionsDomain" xlink:to="ugp_LaborLitigationMember" xlink:title="Definition : ifrs-full_ClassesOfOtherProvisionsDomain to ugp_LaborLitigationMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CivilEnvironmentalAndRegulatoryClaimsMember" xlink:label="ugp_CivilEnvironmentalAndRegulatoryClaimsMember" xlink:title="ugp_CivilEnvironmentalAndRegulatoryClaimsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfOtherProvisionsDomain" xlink:to="ugp_CivilEnvironmentalAndRegulatoryClaimsMember" xlink:title="Definition : ifrs-full_ClassesOfOtherProvisionsDomain to ugp_CivilEnvironmentalAndRegulatoryClaimsMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfOtherProvisionsDomain" xlink:label="ifrs-full_ClassesOfOtherProvisionsDomain_1" xlink:title="ifrs-full_ClassesOfOtherProvisionsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ClassesOfProvisionsAxis" xlink:to="ifrs-full_ClassesOfOtherProvisionsDomain_1" xlink:title="Definition : ifrs-full_ClassesOfProvisionsAxis to ifrs-full_ClassesOfOtherProvisionsDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/EmployeebenefitsandprivatepensionplanSensitivityanalysisDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xlink:label="ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xlink:title="ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PercentageOfReasonablyPossibleDecreaseInActuarialAssumption" xlink:label="ifrs-full_PercentageOfReasonablyPossibleDecreaseInActuarialAssumption" xlink:title="ifrs-full_PercentageOfReasonablyPossibleDecreaseInActuarialAssumption" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xlink:to="ifrs-full_PercentageOfReasonablyPossibleDecreaseInActuarialAssumption" xlink:title="Definition : ifrs-full_DisclosureOfDefinedBenefitPlansLineItems to ifrs-full_PercentageOfReasonablyPossibleDecreaseInActuarialAssumption" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IncreaseDecreaseInDefinedBenefitObligationDueToReasonablyPossibleDecreaseInActuarialAssumption" xlink:label="ifrs-full_IncreaseDecreaseInDefinedBenefitObligationDueToReasonablyPossibleDecreaseInActuarialAssumption" xlink:title="ifrs-full_IncreaseDecreaseInDefinedBenefitObligationDueToReasonablyPossibleDecreaseInActuarialAssumption" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xlink:to="ifrs-full_IncreaseDecreaseInDefinedBenefitObligationDueToReasonablyPossibleDecreaseInActuarialAssumption" xlink:title="Definition : ifrs-full_DisclosureOfDefinedBenefitPlansLineItems to ifrs-full_IncreaseDecreaseInDefinedBenefitObligationDueToReasonablyPossibleDecreaseInActuarialAssumption" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PercentageOfReasonablyPossibleIncreaseInActuarialAssumption" xlink:label="ifrs-full_PercentageOfReasonablyPossibleIncreaseInActuarialAssumption" xlink:title="ifrs-full_PercentageOfReasonablyPossibleIncreaseInActuarialAssumption" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xlink:to="ifrs-full_PercentageOfReasonablyPossibleIncreaseInActuarialAssumption" xlink:title="Definition : ifrs-full_DisclosureOfDefinedBenefitPlansLineItems to ifrs-full_PercentageOfReasonablyPossibleIncreaseInActuarialAssumption" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IncreaseDecreaseInDefinedBenefitObligationDueToReasonablyPossibleIncreaseInActuarialAssumption" xlink:label="ifrs-full_IncreaseDecreaseInDefinedBenefitObligationDueToReasonablyPossibleIncreaseInActuarialAssumption" xlink:title="ifrs-full_IncreaseDecreaseInDefinedBenefitObligationDueToReasonablyPossibleIncreaseInActuarialAssumption" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xlink:to="ifrs-full_IncreaseDecreaseInDefinedBenefitObligationDueToReasonablyPossibleIncreaseInActuarialAssumption" xlink:title="Definition : ifrs-full_DisclosureOfDefinedBenefitPlansLineItems to ifrs-full_IncreaseDecreaseInDefinedBenefitObligationDueToReasonablyPossibleIncreaseInActuarialAssumption" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfDefinedBenefitPlansTable" xlink:label="ifrs-full_DisclosureOfDefinedBenefitPlansTable" xlink:title="ifrs-full_DisclosureOfDefinedBenefitPlansTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xlink:to="ifrs-full_DisclosureOfDefinedBenefitPlansTable" xlink:title="Definition : ifrs-full_DisclosureOfDefinedBenefitPlansLineItems to ifrs-full_DisclosureOfDefinedBenefitPlansTable" xlink:type="arc" use="optional" order="4" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ActuarialAssumptionsAxis" xlink:label="ifrs-full_ActuarialAssumptionsAxis" xlink:title="ifrs-full_ActuarialAssumptionsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfDefinedBenefitPlansTable" xlink:to="ifrs-full_ActuarialAssumptionsAxis" xlink:title="Definition : ifrs-full_DisclosureOfDefinedBenefitPlansTable to ifrs-full_ActuarialAssumptionsAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ActuarialAssumptionsDomain" xlink:label="ifrs-full_ActuarialAssumptionsDomain" xlink:title="ifrs-full_ActuarialAssumptionsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ActuarialAssumptionsAxis" xlink:to="ifrs-full_ActuarialAssumptionsDomain" xlink:title="Definition : ifrs-full_ActuarialAssumptionsAxis to ifrs-full_ActuarialAssumptionsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ActuarialAssumptionOfDiscountRatesMember" xlink:label="ifrs-full_ActuarialAssumptionOfDiscountRatesMember" xlink:title="ifrs-full_ActuarialAssumptionOfDiscountRatesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ActuarialAssumptionsDomain" xlink:to="ifrs-full_ActuarialAssumptionOfDiscountRatesMember" xlink:title="Definition : ifrs-full_ActuarialAssumptionsDomain to ifrs-full_ActuarialAssumptionOfDiscountRatesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ActuarialAssumptionOfExpectedRatesOfSalaryIncreasesMember" xlink:label="ifrs-full_ActuarialAssumptionOfExpectedRatesOfSalaryIncreasesMember" xlink:title="ifrs-full_ActuarialAssumptionOfExpectedRatesOfSalaryIncreasesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ActuarialAssumptionsDomain" xlink:to="ifrs-full_ActuarialAssumptionOfExpectedRatesOfSalaryIncreasesMember" xlink:title="Definition : ifrs-full_ActuarialAssumptionsDomain to ifrs-full_ActuarialAssumptionOfExpectedRatesOfSalaryIncreasesMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ActuarialAssumptionOfMedicalCostTrendRatesMember" xlink:label="ifrs-full_ActuarialAssumptionOfMedicalCostTrendRatesMember" xlink:title="ifrs-full_ActuarialAssumptionOfMedicalCostTrendRatesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ActuarialAssumptionsDomain" xlink:to="ifrs-full_ActuarialAssumptionOfMedicalCostTrendRatesMember" xlink:title="Definition : ifrs-full_ActuarialAssumptionsDomain to ifrs-full_ActuarialAssumptionOfMedicalCostTrendRatesMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ActuarialAssumptionsDomain" xlink:label="ifrs-full_ActuarialAssumptionsDomain_1" xlink:title="ifrs-full_ActuarialAssumptionsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ActuarialAssumptionsAxis" xlink:to="ifrs-full_ActuarialAssumptionsDomain_1" xlink:title="Definition : ifrs-full_ActuarialAssumptionsAxis to ifrs-full_ActuarialAssumptionsDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/EmployeebenefitsandprivatepensionplanPostemploymentbenefitexpenseDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xlink:label="ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xlink:title="ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PostemploymentBenefitExpenseDefinedBenefitPlans" xlink:label="ifrs-full_PostemploymentBenefitExpenseDefinedBenefitPlans" xlink:title="ifrs-full_PostemploymentBenefitExpenseDefinedBenefitPlans" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xlink:to="ifrs-full_PostemploymentBenefitExpenseDefinedBenefitPlans" xlink:title="Definition : ifrs-full_DisclosureOfDefinedBenefitPlansLineItems to ifrs-full_PostemploymentBenefitExpenseDefinedBenefitPlans" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfDefinedBenefitPlansTable" xlink:label="ifrs-full_DisclosureOfDefinedBenefitPlansTable" xlink:title="ifrs-full_DisclosureOfDefinedBenefitPlansTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xlink:to="ifrs-full_DisclosureOfDefinedBenefitPlansTable" xlink:title="Definition : ifrs-full_DisclosureOfDefinedBenefitPlansLineItems to ifrs-full_DisclosureOfDefinedBenefitPlansTable" xlink:type="arc" use="optional" order="1" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DefinedBenefitPlansAxis" xlink:label="ifrs-full_DefinedBenefitPlansAxis" xlink:title="ifrs-full_DefinedBenefitPlansAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfDefinedBenefitPlansTable" xlink:to="ifrs-full_DefinedBenefitPlansAxis" xlink:title="Definition : ifrs-full_DisclosureOfDefinedBenefitPlansTable to ifrs-full_DefinedBenefitPlansAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DefinedBenefitPlansDomain" xlink:label="ifrs-full_DefinedBenefitPlansDomain" xlink:title="ifrs-full_DefinedBenefitPlansDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_DefinedBenefitPlansAxis" xlink:to="ifrs-full_DefinedBenefitPlansDomain" xlink:title="Definition : ifrs-full_DefinedBenefitPlansAxis to ifrs-full_DefinedBenefitPlansDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_HealthAndDentalCareMember" xlink:label="ugp_HealthAndDentalCareMember" xlink:title="ugp_HealthAndDentalCareMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DefinedBenefitPlansDomain" xlink:to="ugp_HealthAndDentalCareMember" xlink:title="Definition : ifrs-full_DefinedBenefitPlansDomain to ugp_HealthAndDentalCareMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IndemnificationOfFGTSMember" xlink:label="ugp_IndemnificationOfFGTSMember" xlink:title="ugp_IndemnificationOfFGTSMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DefinedBenefitPlansDomain" xlink:to="ugp_IndemnificationOfFGTSMember" xlink:title="Definition : ifrs-full_DefinedBenefitPlansDomain to ugp_IndemnificationOfFGTSMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SeniorityBonusMember" xlink:label="ugp_SeniorityBonusMember" xlink:title="ugp_SeniorityBonusMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DefinedBenefitPlansDomain" xlink:to="ugp_SeniorityBonusMember" xlink:title="Definition : ifrs-full_DefinedBenefitPlansDomain to ugp_SeniorityBonusMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LifeInsuranceMember" xlink:label="ugp_LifeInsuranceMember" xlink:title="ugp_LifeInsuranceMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DefinedBenefitPlansDomain" xlink:to="ugp_LifeInsuranceMember" xlink:title="Definition : ifrs-full_DefinedBenefitPlansDomain to ugp_LifeInsuranceMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DefinedBenefitPlansDomain" xlink:label="ifrs-full_DefinedBenefitPlansDomain_1" xlink:title="ifrs-full_DefinedBenefitPlansDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_DefinedBenefitPlansAxis" xlink:to="ifrs-full_DefinedBenefitPlansDomain_1" xlink:title="Definition : ifrs-full_DefinedBenefitPlansAxis to ifrs-full_DefinedBenefitPlansDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/EmployeebenefitsandprivatepensionplanPostemploymentBenefitsDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xlink:label="ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xlink:title="ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProvisionsForEmployeeBenefits" xlink:label="ifrs-full_ProvisionsForEmployeeBenefits" xlink:title="ifrs-full_ProvisionsForEmployeeBenefits" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xlink:to="ifrs-full_ProvisionsForEmployeeBenefits" xlink:title="Definition : ifrs-full_DisclosureOfDefinedBenefitPlansLineItems to ifrs-full_ProvisionsForEmployeeBenefits" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CurrentProvisionsForEmployeeBenefits" xlink:label="ifrs-full_CurrentProvisionsForEmployeeBenefits" xlink:title="ifrs-full_CurrentProvisionsForEmployeeBenefits" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xlink:to="ifrs-full_CurrentProvisionsForEmployeeBenefits" xlink:title="Definition : ifrs-full_DisclosureOfDefinedBenefitPlansLineItems to ifrs-full_CurrentProvisionsForEmployeeBenefits" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NoncurrentProvisionsForEmployeeBenefits" xlink:label="ifrs-full_NoncurrentProvisionsForEmployeeBenefits" xlink:title="ifrs-full_NoncurrentProvisionsForEmployeeBenefits" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xlink:to="ifrs-full_NoncurrentProvisionsForEmployeeBenefits" xlink:title="Definition : ifrs-full_DisclosureOfDefinedBenefitPlansLineItems to ifrs-full_NoncurrentProvisionsForEmployeeBenefits" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfDefinedBenefitPlansTable" xlink:label="ifrs-full_DisclosureOfDefinedBenefitPlansTable" xlink:title="ifrs-full_DisclosureOfDefinedBenefitPlansTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xlink:to="ifrs-full_DisclosureOfDefinedBenefitPlansTable" xlink:title="Definition : ifrs-full_DisclosureOfDefinedBenefitPlansLineItems to ifrs-full_DisclosureOfDefinedBenefitPlansTable" xlink:type="arc" use="optional" order="3" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DefinedBenefitPlansAxis" xlink:label="ifrs-full_DefinedBenefitPlansAxis" xlink:title="ifrs-full_DefinedBenefitPlansAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfDefinedBenefitPlansTable" xlink:to="ifrs-full_DefinedBenefitPlansAxis" xlink:title="Definition : ifrs-full_DisclosureOfDefinedBenefitPlansTable to ifrs-full_DefinedBenefitPlansAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DefinedBenefitPlansDomain" xlink:label="ifrs-full_DefinedBenefitPlansDomain" xlink:title="ifrs-full_DefinedBenefitPlansDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_DefinedBenefitPlansAxis" xlink:to="ifrs-full_DefinedBenefitPlansDomain" xlink:title="Definition : ifrs-full_DefinedBenefitPlansAxis to ifrs-full_DefinedBenefitPlansDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_HealthAndDentalCareMember" xlink:label="ugp_HealthAndDentalCareMember" xlink:title="ugp_HealthAndDentalCareMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DefinedBenefitPlansDomain" xlink:to="ugp_HealthAndDentalCareMember" xlink:title="Definition : ifrs-full_DefinedBenefitPlansDomain to ugp_HealthAndDentalCareMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IndemnificationOfFGTSMember" xlink:label="ugp_IndemnificationOfFGTSMember" xlink:title="ugp_IndemnificationOfFGTSMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DefinedBenefitPlansDomain" xlink:to="ugp_IndemnificationOfFGTSMember" xlink:title="Definition : ifrs-full_DefinedBenefitPlansDomain to ugp_IndemnificationOfFGTSMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SeniorityBonusMember" xlink:label="ugp_SeniorityBonusMember" xlink:title="ugp_SeniorityBonusMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DefinedBenefitPlansDomain" xlink:to="ugp_SeniorityBonusMember" xlink:title="Definition : ifrs-full_DefinedBenefitPlansDomain to ugp_SeniorityBonusMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LifeInsuranceMember" xlink:label="ugp_LifeInsuranceMember" xlink:title="ugp_LifeInsuranceMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DefinedBenefitPlansDomain" xlink:to="ugp_LifeInsuranceMember" xlink:title="Definition : ifrs-full_DefinedBenefitPlansDomain to ugp_LifeInsuranceMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DefinedBenefitPlansDomain" xlink:label="ifrs-full_DefinedBenefitPlansDomain_1" xlink:title="ifrs-full_DefinedBenefitPlansDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_DefinedBenefitPlansAxis" xlink:to="ifrs-full_DefinedBenefitPlansDomain_1" xlink:title="Definition : ifrs-full_DefinedBenefitPlansAxis to ifrs-full_DefinedBenefitPlansDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/TaxesPayableSummaryOfTaxesPayableDetail">
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DisclosureOfTaxesPayableLineItems" xlink:label="ugp_DisclosureOfTaxesPayableLineItems" xlink:title="ugp_DisclosureOfTaxesPayableLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DisclosureOfTaxesPayableTable" xlink:label="ugp_DisclosureOfTaxesPayableTable" xlink:title="ugp_DisclosureOfTaxesPayableTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ugp_DisclosureOfTaxesPayableLineItems" xlink:to="ugp_DisclosureOfTaxesPayableTable" xlink:title="Definition : ugp_DisclosureOfTaxesPayableLineItems to ugp_DisclosureOfTaxesPayableTable" xlink:type="arc" use="optional" order="0" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxesAxis" xlink:label="ugp_TaxesAxis" xlink:title="ugp_TaxesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_DisclosureOfTaxesPayableTable" xlink:to="ugp_TaxesAxis" xlink:title="Definition : ugp_DisclosureOfTaxesPayableTable to ugp_TaxesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxesDomain" xlink:label="ugp_TaxesDomain" xlink:title="ugp_TaxesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_TaxesAxis" xlink:to="ugp_TaxesDomain" xlink:title="Definition : ugp_TaxesAxis to ugp_TaxesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ICMSStatevatMember" xlink:label="ugp_ICMSStatevatMember" xlink:title="ugp_ICMSStatevatMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_TaxesDomain" xlink:to="ugp_ICMSStatevatMember" xlink:title="Definition : ugp_TaxesDomain to ugp_ICMSStatevatMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxOnIndustrializedProductsFederalVATMember" xlink:label="ugp_TaxOnIndustrializedProductsFederalVATMember" xlink:title="ugp_TaxOnIndustrializedProductsFederalVATMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_TaxesDomain" xlink:to="ugp_TaxOnIndustrializedProductsFederalVATMember" xlink:title="Definition : ugp_TaxesDomain to ugp_TaxOnIndustrializedProductsFederalVATMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ISSMunicipalVATMember" xlink:label="ugp_ISSMunicipalVATMember" xlink:title="ugp_ISSMunicipalVATMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_TaxesDomain" xlink:to="ugp_ISSMunicipalVATMember" xlink:title="Definition : ugp_TaxesDomain to ugp_ISSMunicipalVATMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OtherTaxesPayableMember" xlink:label="ugp_OtherTaxesPayableMember" xlink:title="ugp_OtherTaxesPayableMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_TaxesDomain" xlink:to="ugp_OtherTaxesPayableMember" xlink:title="Definition : ugp_TaxesDomain to ugp_OtherTaxesPayableMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PisAndCofinsStateVATMember" xlink:label="ugp_PisAndCofinsStateVATMember" xlink:title="ugp_PisAndCofinsStateVATMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_TaxesDomain" xlink:to="ugp_PisAndCofinsStateVATMember" xlink:title="Definition : ugp_TaxesDomain to ugp_PisAndCofinsStateVATMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ValueAddedTaxIvaOfForeignSubsidiariesMember" xlink:label="ugp_ValueAddedTaxIvaOfForeignSubsidiariesMember" xlink:title="ugp_ValueAddedTaxIvaOfForeignSubsidiariesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_TaxesDomain" xlink:to="ugp_ValueAddedTaxIvaOfForeignSubsidiariesMember" xlink:title="Definition : ugp_TaxesDomain to ugp_ValueAddedTaxIvaOfForeignSubsidiariesMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxesDomain" xlink:label="ugp_TaxesDomain_1" xlink:title="ugp_TaxesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_TaxesAxis" xlink:to="ugp_TaxesDomain_1" xlink:title="Definition : ugp_TaxesAxis to ugp_TaxesDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/BasisofpreparationandpresentationoftheconsolidatedfinancialstatementsandsignificantaccountingpoliciesAdditionalInformationDetail">
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesLineItems" xlink:label="ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesLineItems" xlink:title="ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TermsOfResellerFinancing" xlink:label="ugp_TermsOfResellerFinancing" xlink:title="ugp_TermsOfResellerFinancing" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesLineItems" xlink:to="ugp_TermsOfResellerFinancing" xlink:title="Definition : ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesLineItems to ugp_TermsOfResellerFinancing" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ResellerFinancingRatePerMonth" xlink:label="ugp_ResellerFinancingRatePerMonth" xlink:title="ugp_ResellerFinancingRatePerMonth" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesLineItems" xlink:to="ugp_ResellerFinancingRatePerMonth" xlink:title="Definition : ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesLineItems to ugp_ResellerFinancingRatePerMonth" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ResearchAndDevelopmentExpense" xlink:label="ifrs-full_ResearchAndDevelopmentExpense" xlink:title="ifrs-full_ResearchAndDevelopmentExpense" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesLineItems" xlink:to="ifrs-full_ResearchAndDevelopmentExpense" xlink:title="Definition : ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesLineItems to ifrs-full_ResearchAndDevelopmentExpense" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ReserveOfExchangeDifferencesOnTranslation" xlink:label="ifrs-full_ReserveOfExchangeDifferencesOnTranslation" xlink:title="ifrs-full_ReserveOfExchangeDifferencesOnTranslation" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesLineItems" xlink:to="ifrs-full_ReserveOfExchangeDifferencesOnTranslation" xlink:title="Definition : ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesLineItems to ifrs-full_ReserveOfExchangeDifferencesOnTranslation" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_GainsLossesOnHedgesOfNetInvestmentsInForeignOperationsBeforeTax" xlink:label="ifrs-full_GainsLossesOnHedgesOfNetInvestmentsInForeignOperationsBeforeTax" xlink:title="ifrs-full_GainsLossesOnHedgesOfNetInvestmentsInForeignOperationsBeforeTax" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesLineItems" xlink:to="ifrs-full_GainsLossesOnHedgesOfNetInvestmentsInForeignOperationsBeforeTax" xlink:title="Definition : ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesLineItems to ifrs-full_GainsLossesOnHedgesOfNetInvestmentsInForeignOperationsBeforeTax" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_WeightedAverageLesseesIncrementalBorrowingRateAppliedToLeaseLiabilitiesRecognisedAtDateOfInitialApplicationOfIFRS16" xlink:label="ifrs-full_WeightedAverageLesseesIncrementalBorrowingRateAppliedToLeaseLiabilitiesRecognisedAtDateOfInitialApplicationOfIFRS16" xlink:title="ifrs-full_WeightedAverageLesseesIncrementalBorrowingRateAppliedToLeaseLiabilitiesRecognisedAtDateOfInitialApplicationOfIFRS16" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesLineItems" xlink:to="ifrs-full_WeightedAverageLesseesIncrementalBorrowingRateAppliedToLeaseLiabilitiesRecognisedAtDateOfInitialApplicationOfIFRS16" xlink:title="Definition : ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesLineItems to ifrs-full_WeightedAverageLesseesIncrementalBorrowingRateAppliedToLeaseLiabilitiesRecognisedAtDateOfInitialApplicationOfIFRS16" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ImpairmentLossRecognisedInProfitOrLoss" xlink:label="ifrs-full_ImpairmentLossRecognisedInProfitOrLoss" xlink:title="ifrs-full_ImpairmentLossRecognisedInProfitOrLoss" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesLineItems" xlink:to="ifrs-full_ImpairmentLossRecognisedInProfitOrLoss" xlink:title="Definition : ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesLineItems to ifrs-full_ImpairmentLossRecognisedInProfitOrLoss" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DeferredIncomeAndSocialContributionTaxExpenseBenefitOnImpairmentLoss" xlink:label="ugp_DeferredIncomeAndSocialContributionTaxExpenseBenefitOnImpairmentLoss" xlink:title="ugp_DeferredIncomeAndSocialContributionTaxExpenseBenefitOnImpairmentLoss" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesLineItems" xlink:to="ugp_DeferredIncomeAndSocialContributionTaxExpenseBenefitOnImpairmentLoss" xlink:title="Definition : ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesLineItems to ugp_DeferredIncomeAndSocialContributionTaxExpenseBenefitOnImpairmentLoss" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ImpairmentLoss" xlink:label="ifrs-full_ImpairmentLoss" xlink:title="ifrs-full_ImpairmentLoss" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesLineItems" xlink:to="ifrs-full_ImpairmentLoss" xlink:title="Definition : ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesLineItems to ifrs-full_ImpairmentLoss" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsMaturity" xlink:label="ifrs-full_BorrowingsMaturity" xlink:title="ifrs-full_BorrowingsMaturity" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesLineItems" xlink:to="ifrs-full_BorrowingsMaturity" xlink:title="Definition : ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesLineItems to ifrs-full_BorrowingsMaturity" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfMonthlyInstallmentsForFinancialLiabilitiesOfCustomers" xlink:label="ugp_NumberOfMonthlyInstallmentsForFinancialLiabilitiesOfCustomers" xlink:title="ugp_NumberOfMonthlyInstallmentsForFinancialLiabilitiesOfCustomers" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesLineItems" xlink:to="ugp_NumberOfMonthlyInstallmentsForFinancialLiabilitiesOfCustomers" xlink:title="Definition : ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesLineItems to ugp_NumberOfMonthlyInstallmentsForFinancialLiabilitiesOfCustomers" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_WeightedAveragePercentageOfFinancialLiabilitiesOfCustomers" xlink:label="ugp_WeightedAveragePercentageOfFinancialLiabilitiesOfCustomers" xlink:title="ugp_WeightedAveragePercentageOfFinancialLiabilitiesOfCustomers" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesLineItems" xlink:to="ugp_WeightedAveragePercentageOfFinancialLiabilitiesOfCustomers" xlink:title="Definition : ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesLineItems to ugp_WeightedAveragePercentageOfFinancialLiabilitiesOfCustomers" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesTable" xlink:label="ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesTable" xlink:title="ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesLineItems" xlink:to="ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesTable" xlink:title="Definition : ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesLineItems to ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesTable" xlink:type="arc" order="12" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeAxis" xlink:label="ifrs-full_RangeAxis" xlink:title="ifrs-full_RangeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesTable" xlink:to="ifrs-full_RangeAxis" xlink:title="Definition : ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesTable to ifrs-full_RangeAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeDomain" xlink:label="ifrs-full_RangeDomain" xlink:title="ifrs-full_RangeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_RangeAxis" xlink:to="ifrs-full_RangeDomain" xlink:title="Definition : ifrs-full_RangeAxis to ifrs-full_RangeDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BottomOfRangeMember" xlink:label="ifrs-full_BottomOfRangeMember" xlink:title="ifrs-full_BottomOfRangeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RangeDomain" xlink:to="ifrs-full_BottomOfRangeMember" xlink:title="Definition : ifrs-full_RangeDomain to ifrs-full_BottomOfRangeMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TopOfRangeMember" xlink:label="ifrs-full_TopOfRangeMember" xlink:title="ifrs-full_TopOfRangeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RangeDomain" xlink:to="ifrs-full_TopOfRangeMember" xlink:title="Definition : ifrs-full_RangeDomain to ifrs-full_TopOfRangeMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_WeightedAverageMember" xlink:label="ifrs-full_WeightedAverageMember" xlink:title="ifrs-full_WeightedAverageMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RangeDomain" xlink:to="ifrs-full_WeightedAverageMember" xlink:title="Definition : ifrs-full_RangeDomain to ifrs-full_WeightedAverageMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeDomain" xlink:label="ifrs-full_RangeDomain_1" xlink:title="ifrs-full_RangeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_RangeAxis" xlink:to="ifrs-full_RangeDomain_1" xlink:title="Definition : ifrs-full_RangeAxis to ifrs-full_RangeDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsByNameAxis" xlink:label="ifrs-full_BorrowingsByNameAxis" xlink:title="ifrs-full_BorrowingsByNameAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesTable" xlink:to="ifrs-full_BorrowingsByNameAxis" xlink:title="Definition : ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesTable to ifrs-full_BorrowingsByNameAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsByNameDomain" xlink:label="ifrs-full_BorrowingsByNameDomain" xlink:title="ifrs-full_BorrowingsByNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_BorrowingsByNameAxis" xlink:to="ifrs-full_BorrowingsByNameDomain" xlink:title="Definition : ifrs-full_BorrowingsByNameAxis to ifrs-full_BorrowingsByNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ForeignLoansMember" xlink:label="ugp_ForeignLoansMember" xlink:title="ugp_ForeignLoansMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BorrowingsByNameDomain" xlink:to="ugp_ForeignLoansMember" xlink:title="Definition : ifrs-full_BorrowingsByNameDomain to ugp_ForeignLoansMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsByNameDomain" xlink:label="ifrs-full_BorrowingsByNameDomain_1" xlink:title="ifrs-full_BorrowingsByNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_BorrowingsByNameAxis" xlink:to="ifrs-full_BorrowingsByNameDomain_1" xlink:title="Definition : ifrs-full_BorrowingsByNameAxis to ifrs-full_BorrowingsByNameDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxesAxis" xlink:label="ugp_TaxesAxis" xlink:title="ugp_TaxesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesTable" xlink:to="ugp_TaxesAxis" xlink:title="Definition : ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesTable to ugp_TaxesAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxesDomain" xlink:label="ugp_TaxesDomain" xlink:title="ugp_TaxesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_TaxesAxis" xlink:to="ugp_TaxesDomain" xlink:title="Definition : ugp_TaxesAxis to ugp_TaxesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IRPJMember" xlink:label="ugp_IRPJMember" xlink:title="ugp_IRPJMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_TaxesDomain" xlink:to="ugp_IRPJMember" xlink:title="Definition : ugp_TaxesDomain to ugp_IRPJMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CSLLMember" xlink:label="ugp_CSLLMember" xlink:title="ugp_CSLLMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_TaxesDomain" xlink:to="ugp_CSLLMember" xlink:title="Definition : ugp_TaxesDomain to ugp_CSLLMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxesDomain" xlink:label="ugp_TaxesDomain_1" xlink:title="ugp_TaxesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_TaxesAxis" xlink:to="ugp_TaxesDomain_1" xlink:title="Definition : ugp_TaxesAxis to ugp_TaxesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfRisksAxis" xlink:label="ifrs-full_TypesOfRisksAxis" xlink:title="ifrs-full_TypesOfRisksAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesTable" xlink:to="ifrs-full_TypesOfRisksAxis" xlink:title="Definition : ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesTable to ifrs-full_TypesOfRisksAxis" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfRisksDomain" xlink:label="ifrs-full_TypesOfRisksDomain" xlink:title="ifrs-full_TypesOfRisksDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_TypesOfRisksAxis" xlink:to="ifrs-full_TypesOfRisksDomain" xlink:title="Definition : ifrs-full_TypesOfRisksAxis to ifrs-full_TypesOfRisksDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LIBORMember" xlink:label="ugp_LIBORMember" xlink:title="ugp_LIBORMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfRisksDomain" xlink:to="ugp_LIBORMember" xlink:title="Definition : ifrs-full_TypesOfRisksDomain to ugp_LIBORMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfRisksDomain" xlink:label="ifrs-full_TypesOfRisksDomain_1" xlink:title="ifrs-full_TypesOfRisksDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_TypesOfRisksAxis" xlink:to="ifrs-full_TypesOfRisksDomain_1" xlink:title="Definition : ifrs-full_TypesOfRisksAxis to ifrs-full_TypesOfRisksDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesTable" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="Definition : ugp_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesTable to ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ExtrafarmaMember" xlink:label="ugp_ExtrafarmaMember" xlink:title="ugp_ExtrafarmaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_ExtrafarmaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_ExtrafarmaMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IpirangaProdutosdePetroleoSAMember" xlink:label="ugp_IpirangaProdutosdePetroleoSAMember" xlink:title="ugp_IpirangaProdutosdePetroleoSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_IpirangaProdutosdePetroleoSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_IpirangaProdutosdePetroleoSAMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/TradePayablesSummaryOfTradePayablesDetail">
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SummaryOfTradePayablesLineItems" xlink:label="ugp_SummaryOfTradePayablesLineItems" xlink:title="ugp_SummaryOfTradePayablesLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TradeAndOtherCurrentPayablesToTradeSuppliers" xlink:label="ifrs-full_TradeAndOtherCurrentPayablesToTradeSuppliers" xlink:title="ifrs-full_TradeAndOtherCurrentPayablesToTradeSuppliers" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfTradePayablesLineItems" xlink:to="ifrs-full_TradeAndOtherCurrentPayablesToTradeSuppliers" xlink:title="Definition : ugp_SummaryOfTradePayablesLineItems to ifrs-full_TradeAndOtherCurrentPayablesToTradeSuppliers" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TradeAndOtherCurrentPayablesToRelatedParties" xlink:label="ifrs-full_TradeAndOtherCurrentPayablesToRelatedParties" xlink:title="ifrs-full_TradeAndOtherCurrentPayablesToRelatedParties" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfTradePayablesLineItems" xlink:to="ifrs-full_TradeAndOtherCurrentPayablesToRelatedParties" xlink:title="Definition : ugp_SummaryOfTradePayablesLineItems to ifrs-full_TradeAndOtherCurrentPayablesToRelatedParties" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TradeAndOtherCurrentPayables" xlink:label="ifrs-full_TradeAndOtherCurrentPayables" xlink:title="ifrs-full_TradeAndOtherCurrentPayables" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfTradePayablesLineItems" xlink:to="ifrs-full_TradeAndOtherCurrentPayables" xlink:title="Definition : ugp_SummaryOfTradePayablesLineItems to ifrs-full_TradeAndOtherCurrentPayables" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TradeCurrentPayablesReverseFactoring" xlink:label="ugp_TradeCurrentPayablesReverseFactoring" xlink:title="ugp_TradeCurrentPayablesReverseFactoring" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfTradePayablesLineItems" xlink:to="ugp_TradeCurrentPayablesReverseFactoring" xlink:title="Definition : ugp_SummaryOfTradePayablesLineItems to ugp_TradeCurrentPayablesReverseFactoring" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TradePayablesAveragePaymentTerm" xlink:label="ugp_TradePayablesAveragePaymentTerm" xlink:title="ugp_TradePayablesAveragePaymentTerm" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfTradePayablesLineItems" xlink:to="ugp_TradePayablesAveragePaymentTerm" xlink:title="Definition : ugp_SummaryOfTradePayablesLineItems to ugp_TradePayablesAveragePaymentTerm" xlink:type="arc" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DisclosureOfPayablesTable" xlink:label="ugp_DisclosureOfPayablesTable" xlink:title="ugp_DisclosureOfPayablesTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ugp_SummaryOfTradePayablesLineItems" xlink:to="ugp_DisclosureOfPayablesTable" xlink:title="Definition : ugp_SummaryOfTradePayablesLineItems to ugp_DisclosureOfPayablesTable" xlink:type="arc" order="5" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TradePayablesAxis" xlink:label="ugp_TradePayablesAxis" xlink:title="ugp_TradePayablesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_DisclosureOfPayablesTable" xlink:to="ugp_TradePayablesAxis" xlink:title="Definition : ugp_DisclosureOfPayablesTable to ugp_TradePayablesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TradePayablesDomain" xlink:label="ugp_TradePayablesDomain" xlink:title="ugp_TradePayablesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_TradePayablesAxis" xlink:to="ugp_TradePayablesDomain" xlink:title="Definition : ugp_TradePayablesAxis to ugp_TradePayablesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DomesticSuppliersMember" xlink:label="ugp_DomesticSuppliersMember" xlink:title="ugp_DomesticSuppliersMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_TradePayablesDomain" xlink:to="ugp_DomesticSuppliersMember" xlink:title="Definition : ugp_TradePayablesDomain to ugp_DomesticSuppliersMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ForeignSuppliersMember" xlink:label="ugp_ForeignSuppliersMember" xlink:title="ugp_ForeignSuppliersMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_TradePayablesDomain" xlink:to="ugp_ForeignSuppliersMember" xlink:title="Definition : ugp_TradePayablesDomain to ugp_ForeignSuppliersMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TradePayablesRreverseFactoringMember" xlink:label="ugp_TradePayablesRreverseFactoringMember" xlink:title="ugp_TradePayablesRreverseFactoringMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_TradePayablesDomain" xlink:to="ugp_TradePayablesRreverseFactoringMember" xlink:title="Definition : ugp_TradePayablesDomain to ugp_TradePayablesRreverseFactoringMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TradePayablesComparableSuppliersMember" xlink:label="ugp_TradePayablesComparableSuppliersMember" xlink:title="ugp_TradePayablesComparableSuppliersMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_TradePayablesDomain" xlink:to="ugp_TradePayablesComparableSuppliersMember" xlink:title="Definition : ugp_TradePayablesDomain to ugp_TradePayablesComparableSuppliersMember" xlink:type="arc" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TradePayablesDomain" xlink:label="ugp_TradePayablesDomain_1" xlink:title="ugp_TradePayablesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_TradePayablesAxis" xlink:to="ugp_TradePayablesDomain_1" xlink:title="Definition : ugp_TradePayablesAxis to ugp_TradePayablesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/LoansfinancingdebenturesandderivativefinancialinstrumentsSummaryofPrincipalMaturityScheduleDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:label="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:title="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:label="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:title="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:type="arc" order="0" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeAxis" xlink:label="ifrs-full_RangeAxis" xlink:title="ifrs-full_RangeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:to="ifrs-full_RangeAxis" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable to ifrs-full_RangeAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeDomain" xlink:label="ifrs-full_RangeDomain" xlink:title="ifrs-full_RangeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_RangeAxis" xlink:to="ifrs-full_RangeDomain" xlink:title="Definition : ifrs-full_RangeAxis to ifrs-full_RangeDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:label="ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:title="ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RangeDomain" xlink:to="ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:title="Definition : ifrs-full_RangeDomain to ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:label="ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:title="ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RangeDomain" xlink:to="ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:title="Definition : ifrs-full_RangeDomain to ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember" xlink:label="ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember" xlink:title="ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RangeDomain" xlink:to="ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember" xlink:title="Definition : ifrs-full_RangeDomain to ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember" xlink:label="ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember" xlink:title="ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RangeDomain" xlink:to="ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember" xlink:title="Definition : ifrs-full_RangeDomain to ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanFiveYearsMember" xlink:label="ifrs-full_LaterThanFiveYearsMember" xlink:title="ifrs-full_LaterThanFiveYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RangeDomain" xlink:to="ifrs-full_LaterThanFiveYearsMember" xlink:title="Definition : ifrs-full_RangeDomain to ifrs-full_LaterThanFiveYearsMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeDomain" xlink:label="ifrs-full_RangeDomain_1" xlink:title="ifrs-full_RangeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_RangeAxis" xlink:to="ifrs-full_RangeDomain_1" xlink:title="Definition : ifrs-full_RangeAxis to ifrs-full_RangeDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/OperationsOperationalimpactsDetailsTextuals">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:label="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:title="ifrs-full_DisclosureOfOperatingSegmentsLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PercentageOfVotingEquityInterestsAcquired" xlink:label="ifrs-full_PercentageOfVotingEquityInterestsAcquired" xlink:title="ifrs-full_PercentageOfVotingEquityInterestsAcquired" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ifrs-full_PercentageOfVotingEquityInterestsAcquired" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ifrs-full_PercentageOfVotingEquityInterestsAcquired" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_BusinessCombinationPriceOfAcquisitionExpectedUponPurchaseAndSaleAgreement" xlink:label="ugp_BusinessCombinationPriceOfAcquisitionExpectedUponPurchaseAndSaleAgreement" xlink:title="ugp_BusinessCombinationPriceOfAcquisitionExpectedUponPurchaseAndSaleAgreement" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ugp_BusinessCombinationPriceOfAcquisitionExpectedUponPurchaseAndSaleAgreement" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ugp_BusinessCombinationPriceOfAcquisitionExpectedUponPurchaseAndSaleAgreement" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PrimaryContributionPaid" xlink:label="ugp_PrimaryContributionPaid" xlink:title="ugp_PrimaryContributionPaid" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ugp_PrimaryContributionPaid" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ugp_PrimaryContributionPaid" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_BusinessCombinationPaymentsForPurchasePriceAdjustments" xlink:label="ugp_BusinessCombinationPaymentsForPurchasePriceAdjustments" xlink:title="ugp_BusinessCombinationPaymentsForPurchasePriceAdjustments" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ugp_BusinessCombinationPaymentsForPurchasePriceAdjustments" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ugp_BusinessCombinationPaymentsForPurchasePriceAdjustments" xlink:type="arc" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ContingentConsiderationRecognisedAsOfAcquisitionDate" xlink:label="ifrs-full_ContingentConsiderationRecognisedAsOfAcquisitionDate" xlink:title="ifrs-full_ContingentConsiderationRecognisedAsOfAcquisitionDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ifrs-full_ContingentConsiderationRecognisedAsOfAcquisitionDate" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ifrs-full_ContingentConsiderationRecognisedAsOfAcquisitionDate" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfServiceStations" xlink:label="ugp_NumberOfServiceStations" xlink:title="ugp_NumberOfServiceStations" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ugp_NumberOfServiceStations" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ugp_NumberOfServiceStations" xlink:type="arc" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_StockRepurchaseProgramNumberOfSharesAuthorizedToBeRepurchased" xlink:label="srt_StockRepurchaseProgramNumberOfSharesAuthorizedToBeRepurchased" xlink:title="srt_StockRepurchaseProgramNumberOfSharesAuthorizedToBeRepurchased" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="srt_StockRepurchaseProgramNumberOfSharesAuthorizedToBeRepurchased" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to srt_StockRepurchaseProgramNumberOfSharesAuthorizedToBeRepurchased" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfBasicBaskets" xlink:label="ugp_NumberOfBasicBaskets" xlink:title="ugp_NumberOfBasicBaskets" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ugp_NumberOfBasicBaskets" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ugp_NumberOfBasicBaskets" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfPortTerminals" xlink:label="ugp_NumberOfPortTerminals" xlink:title="ugp_NumberOfPortTerminals" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ugp_NumberOfPortTerminals" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ugp_NumberOfPortTerminals" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DecreasePercentageOfSalesVolume" xlink:label="ugp_DecreasePercentageOfSalesVolume" xlink:title="ugp_DecreasePercentageOfSalesVolume" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ugp_DecreasePercentageOfSalesVolume" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ugp_DecreasePercentageOfSalesVolume" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DecreasePercentageOfGeneralAdministrativeAndSalesExpenses" xlink:label="ugp_DecreasePercentageOfGeneralAdministrativeAndSalesExpenses" xlink:title="ugp_DecreasePercentageOfGeneralAdministrativeAndSalesExpenses" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ugp_DecreasePercentageOfGeneralAdministrativeAndSalesExpenses" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ugp_DecreasePercentageOfGeneralAdministrativeAndSalesExpenses" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreasePercentageOfSalesVolume" xlink:label="ugp_IncreasePercentageOfSalesVolume" xlink:title="ugp_IncreasePercentageOfSalesVolume" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ugp_IncreasePercentageOfSalesVolume" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ugp_IncreasePercentageOfSalesVolume" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DecreasePercentageOfSales" xlink:label="ugp_DecreasePercentageOfSales" xlink:title="ugp_DecreasePercentageOfSales" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ugp_DecreasePercentageOfSales" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ugp_DecreasePercentageOfSales" xlink:type="arc" use="optional" order="12" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PeriodOfEconomicActivityAffectedDueToCovid19PandemicInDomesticCountry" xlink:label="ugp_PeriodOfEconomicActivityAffectedDueToCovid19PandemicInDomesticCountry" xlink:title="ugp_PeriodOfEconomicActivityAffectedDueToCovid19PandemicInDomesticCountry" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ugp_PeriodOfEconomicActivityAffectedDueToCovid19PandemicInDomesticCountry" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ugp_PeriodOfEconomicActivityAffectedDueToCovid19PandemicInDomesticCountry" xlink:type="arc" use="optional" order="13" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AggregateSalePriceOfSubsidiary" xlink:label="ugp_AggregateSalePriceOfSubsidiary" xlink:title="ugp_AggregateSalePriceOfSubsidiary" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ugp_AggregateSalePriceOfSubsidiary" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ugp_AggregateSalePriceOfSubsidiary" xlink:type="arc" use="optional" order="14" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AmountToBePaidAtClosingDateInDisposalGroupTransaction" xlink:label="ugp_AmountToBePaidAtClosingDateInDisposalGroupTransaction" xlink:title="ugp_AmountToBePaidAtClosingDateInDisposalGroupTransaction" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ugp_AmountToBePaidAtClosingDateInDisposalGroupTransaction" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ugp_AmountToBePaidAtClosingDateInDisposalGroupTransaction" xlink:type="arc" use="optional" order="15" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ChangesInWorkingCapitalAndNetDebtPositionInDisposalGroupTransaction" xlink:label="ugp_ChangesInWorkingCapitalAndNetDebtPositionInDisposalGroupTransaction" xlink:title="ugp_ChangesInWorkingCapitalAndNetDebtPositionInDisposalGroupTransaction" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ugp_ChangesInWorkingCapitalAndNetDebtPositionInDisposalGroupTransaction" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ugp_ChangesInWorkingCapitalAndNetDebtPositionInDisposalGroupTransaction" xlink:type="arc" use="optional" order="16" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_InitialPaymentMadeInDisposalGroupTransaction" xlink:label="ugp_InitialPaymentMadeInDisposalGroupTransaction" xlink:title="ugp_InitialPaymentMadeInDisposalGroupTransaction" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ugp_InitialPaymentMadeInDisposalGroupTransaction" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ugp_InitialPaymentMadeInDisposalGroupTransaction" xlink:type="arc" use="optional" order="17" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfRemainingInstallments" xlink:label="ugp_NumberOfRemainingInstallments" xlink:title="ugp_NumberOfRemainingInstallments" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ugp_NumberOfRemainingInstallments" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ugp_NumberOfRemainingInstallments" xlink:type="arc" use="optional" order="18" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_FinalPaymentToBeReceivedInDisposalGroupTransaction" xlink:label="ugp_FinalPaymentToBeReceivedInDisposalGroupTransaction" xlink:title="ugp_FinalPaymentToBeReceivedInDisposalGroupTransaction" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ugp_FinalPaymentToBeReceivedInDisposalGroupTransaction" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ugp_FinalPaymentToBeReceivedInDisposalGroupTransaction" xlink:type="arc" use="optional" order="19" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DescriptionOfFinalPaymentDueDate" xlink:label="ugp_DescriptionOfFinalPaymentDueDate" xlink:title="ugp_DescriptionOfFinalPaymentDueDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ugp_DescriptionOfFinalPaymentDueDate" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ugp_DescriptionOfFinalPaymentDueDate" xlink:type="arc" use="optional" order="20" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProportionOfOwnershipInterestInSubsidiary" xlink:label="ifrs-full_ProportionOfOwnershipInterestInSubsidiary" xlink:title="ifrs-full_ProportionOfOwnershipInterestInSubsidiary" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ifrs-full_ProportionOfOwnershipInterestInSubsidiary" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ifrs-full_ProportionOfOwnershipInterestInSubsidiary" xlink:type="arc" use="optional" order="21" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ConsiderationPaidReceived" xlink:label="ifrs-full_ConsiderationPaidReceived" xlink:title="ifrs-full_ConsiderationPaidReceived" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ifrs-full_ConsiderationPaidReceived" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ifrs-full_ConsiderationPaidReceived" xlink:type="arc" use="optional" order="22" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PortionOfConsiderationPaidReceivedConsistingOfCashAndCashEquivalents" xlink:label="ifrs-full_PortionOfConsiderationPaidReceivedConsistingOfCashAndCashEquivalents" xlink:title="ifrs-full_PortionOfConsiderationPaidReceivedConsistingOfCashAndCashEquivalents" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ifrs-full_PortionOfConsiderationPaidReceivedConsistingOfCashAndCashEquivalents" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ifrs-full_PortionOfConsiderationPaidReceivedConsistingOfCashAndCashEquivalents" xlink:type="arc" use="optional" order="23" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:label="ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:title="ifrs-full_DisclosureOfOperatingSegmentsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsLineItems to ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:type="arc" order="24" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsTable to ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CompanhiaUltragazMember" xlink:label="ugp_CompanhiaUltragazMember" xlink:title="ugp_CompanhiaUltragazMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_CompanhiaUltragazMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_CompanhiaUltragazMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CentroDeConveninciasMillenniumLtdaMember" xlink:label="ugp_CentroDeConveninciasMillenniumLtdaMember" xlink:title="ugp_CentroDeConveninciasMillenniumLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_CentroDeConveninciasMillenniumLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_CentroDeConveninciasMillenniumLtdaMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OxitenoIndustriaComercioMember" xlink:label="ugp_OxitenoIndustriaComercioMember" xlink:title="ugp_OxitenoIndustriaComercioMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_OxitenoIndustriaComercioMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_OxitenoIndustriaComercioMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ExtrafarmaMember" xlink:label="ugp_ExtrafarmaMember" xlink:title="ugp_ExtrafarmaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_ExtrafarmaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_ExtrafarmaMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltragazComercialLtdaMember" xlink:label="ugp_UltragazComercialLtdaMember" xlink:title="ugp_UltragazComercialLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltragazComercialLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltragazComercialLtdaMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltraparEmpreendimentosLtdaMember" xlink:label="ugp_UltraparEmpreendimentosLtdaMember" xlink:title="ugp_UltraparEmpreendimentosLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltraparEmpreendimentosLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltraparEmpreendimentosLtdaMember" xlink:type="arc" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:label="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:title="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:to="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsTable to ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ContinuingOperationsMember" xlink:label="ifrs-full_ContinuingOperationsMember" xlink:title="ifrs-full_ContinuingOperationsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:to="ifrs-full_ContinuingOperationsMember" xlink:title="Definition : ifrs-full_ContinuingAndDiscontinuedOperationsAxis to ifrs-full_ContinuingOperationsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DiscontinuedOperationsMember" xlink:label="ifrs-full_DiscontinuedOperationsMember" xlink:title="ifrs-full_DiscontinuedOperationsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ContinuingOperationsMember" xlink:to="ifrs-full_DiscontinuedOperationsMember" xlink:title="Definition : ifrs-full_ContinuingOperationsMember to ifrs-full_DiscontinuedOperationsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ContinuingOperationsMember" xlink:label="ifrs-full_ContinuingOperationsMember_1" xlink:title="ifrs-full_ContinuingOperationsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:to="ifrs-full_ContinuingOperationsMember_1" xlink:title="Definition : ifrs-full_ContinuingAndDiscontinuedOperationsAxis to ifrs-full_ContinuingOperationsMember" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_CounterpartyNameAxis" xlink:label="srt_CounterpartyNameAxis" xlink:title="srt_CounterpartyNameAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:to="srt_CounterpartyNameAxis" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsTable to srt_CounterpartyNameAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="srt_RepurchaseAgreementCounterpartyNameDomain" xlink:title="srt_RepurchaseAgreementCounterpartyNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_CounterpartyNameAxis" xlink:to="srt_RepurchaseAgreementCounterpartyNameDomain" xlink:title="Definition : srt_CounterpartyNameAxis to srt_RepurchaseAgreementCounterpartyNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IndoramaVenturesPlcMember" xlink:label="ugp_IndoramaVenturesPlcMember" xlink:title="ugp_IndoramaVenturesPlcMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_RepurchaseAgreementCounterpartyNameDomain" xlink:to="ugp_IndoramaVenturesPlcMember" xlink:title="Definition : srt_RepurchaseAgreementCounterpartyNameDomain to ugp_IndoramaVenturesPlcMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_EmpreendimentosPagueMenosSAMember" xlink:label="ugp_EmpreendimentosPagueMenosSAMember" xlink:title="ugp_EmpreendimentosPagueMenosSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_RepurchaseAgreementCounterpartyNameDomain" xlink:to="ugp_EmpreendimentosPagueMenosSAMember" xlink:title="Definition : srt_RepurchaseAgreementCounterpartyNameDomain to ugp_EmpreendimentosPagueMenosSAMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ShareholdersMember" xlink:label="ugp_ShareholdersMember" xlink:title="ugp_ShareholdersMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_RepurchaseAgreementCounterpartyNameDomain" xlink:to="ugp_ShareholdersMember" xlink:title="Definition : srt_RepurchaseAgreementCounterpartyNameDomain to ugp_ShareholdersMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="srt_RepurchaseAgreementCounterpartyNameDomain_1" xlink:title="srt_RepurchaseAgreementCounterpartyNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_CounterpartyNameAxis" xlink:to="srt_RepurchaseAgreementCounterpartyNameDomain_1" xlink:title="Definition : srt_CounterpartyNameAxis to srt_RepurchaseAgreementCounterpartyNameDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_HedgingInstrumentsAxis" xlink:label="ifrs-full_HedgingInstrumentsAxis" xlink:title="ifrs-full_HedgingInstrumentsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:to="ifrs-full_HedgingInstrumentsAxis" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsTable to ifrs-full_HedgingInstrumentsAxis" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_HedgingInstrumentsDomain" xlink:label="ifrs-full_HedgingInstrumentsDomain" xlink:title="ifrs-full_HedgingInstrumentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_HedgingInstrumentsAxis" xlink:to="ifrs-full_HedgingInstrumentsDomain" xlink:title="Definition : ifrs-full_HedgingInstrumentsAxis to ifrs-full_HedgingInstrumentsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_BrazilianRealPerUSDollarMember" xlink:label="ugp_BrazilianRealPerUSDollarMember" xlink:title="ugp_BrazilianRealPerUSDollarMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_HedgingInstrumentsDomain" xlink:to="ugp_BrazilianRealPerUSDollarMember" xlink:title="Definition : ifrs-full_HedgingInstrumentsDomain to ugp_BrazilianRealPerUSDollarMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_HedgingInstrumentsDomain" xlink:label="ifrs-full_HedgingInstrumentsDomain_1" xlink:title="ifrs-full_HedgingInstrumentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_HedgingInstrumentsAxis" xlink:to="ifrs-full_HedgingInstrumentsDomain_1" xlink:title="Definition : ifrs-full_HedgingInstrumentsAxis to ifrs-full_HedgingInstrumentsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BusinessCombinationsAxis" xlink:label="ifrs-full_BusinessCombinationsAxis" xlink:title="ifrs-full_BusinessCombinationsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:to="ifrs-full_BusinessCombinationsAxis" xlink:title="Definition : ifrs-full_DisclosureOfOperatingSegmentsTable to ifrs-full_BusinessCombinationsAxis" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BusinessCombinationsDomain" xlink:label="ifrs-full_BusinessCombinationsDomain" xlink:title="ifrs-full_BusinessCombinationsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_BusinessCombinationsAxis" xlink:to="ifrs-full_BusinessCombinationsDomain" xlink:title="Definition : ifrs-full_BusinessCombinationsAxis to ifrs-full_BusinessCombinationsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_WtzParticipacoesSAMember" xlink:label="ugp_WtzParticipacoesSAMember" xlink:title="ugp_WtzParticipacoesSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_WtzParticipacoesSAMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_WtzParticipacoesSAMember" xlink:type="arc" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PaoDeAcucarGroupStationsMember" xlink:label="ugp_PaoDeAcucarGroupStationsMember" xlink:title="ugp_PaoDeAcucarGroupStationsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_PaoDeAcucarGroupStationsMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_PaoDeAcucarGroupStationsMember" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_StellaGroupMember" xlink:label="ugp_StellaGroupMember" xlink:title="ugp_StellaGroupMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_StellaGroupMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_StellaGroupMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SerraDieselGroupMember" xlink:label="ugp_SerraDieselGroupMember" xlink:title="ugp_SerraDieselGroupMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_SerraDieselGroupMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_SerraDieselGroupMember" xlink:type="arc" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BusinessCombinationsDomain" xlink:label="ifrs-full_BusinessCombinationsDomain_1" xlink:title="ifrs-full_BusinessCombinationsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_BusinessCombinationsAxis" xlink:to="ifrs-full_BusinessCombinationsDomain_1" xlink:title="Definition : ifrs-full_BusinessCombinationsAxis to ifrs-full_BusinessCombinationsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/IntangibleassetsTransfertopropertyplantandequipmentDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfIntangibleAssetsLineItems" xlink:label="ifrs-full_DisclosureOfIntangibleAssetsLineItems" xlink:title="ifrs-full_DisclosureOfIntangibleAssetsLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_InventoriesAndCostOfProductsAndServicesSoldAmortisation" xlink:label="ugp_InventoriesAndCostOfProductsAndServicesSoldAmortisation" xlink:title="ugp_InventoriesAndCostOfProductsAndServicesSoldAmortisation" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfIntangibleAssetsLineItems" xlink:to="ugp_InventoriesAndCostOfProductsAndServicesSoldAmortisation" xlink:title="Definition : ifrs-full_DisclosureOfIntangibleAssetsLineItems to ugp_InventoriesAndCostOfProductsAndServicesSoldAmortisation" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SellingAndMarketingAmortisation" xlink:label="ugp_SellingAndMarketingAmortisation" xlink:title="ugp_SellingAndMarketingAmortisation" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfIntangibleAssetsLineItems" xlink:to="ugp_SellingAndMarketingAmortisation" xlink:title="Definition : ifrs-full_DisclosureOfIntangibleAssetsLineItems to ugp_SellingAndMarketingAmortisation" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_GeneralAndAdministrativeAmortisation" xlink:label="ugp_GeneralAndAdministrativeAmortisation" xlink:title="ugp_GeneralAndAdministrativeAmortisation" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfIntangibleAssetsLineItems" xlink:to="ugp_GeneralAndAdministrativeAmortisation" xlink:title="Definition : ifrs-full_DisclosureOfIntangibleAssetsLineItems to ugp_GeneralAndAdministrativeAmortisation" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IncreaseDecreaseThroughTransfersIntangibleAssetsAndGoodwill" xlink:label="ifrs-full_IncreaseDecreaseThroughTransfersIntangibleAssetsAndGoodwill" xlink:title="ifrs-full_IncreaseDecreaseThroughTransfersIntangibleAssetsAndGoodwill" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfIntangibleAssetsLineItems" xlink:to="ifrs-full_IncreaseDecreaseThroughTransfersIntangibleAssetsAndGoodwill" xlink:title="Definition : ifrs-full_DisclosureOfIntangibleAssetsLineItems to ifrs-full_IncreaseDecreaseThroughTransfersIntangibleAssetsAndGoodwill" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfIntangibleAssetsTable" xlink:label="ifrs-full_DisclosureOfIntangibleAssetsTable" xlink:title="ifrs-full_DisclosureOfIntangibleAssetsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfIntangibleAssetsLineItems" xlink:to="ifrs-full_DisclosureOfIntangibleAssetsTable" xlink:title="Definition : ifrs-full_DisclosureOfIntangibleAssetsLineItems to ifrs-full_DisclosureOfIntangibleAssetsTable" xlink:type="arc" use="optional" order="4" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncomeStatementLocationOneAxis" xlink:label="ugp_IncomeStatementLocationOneAxis" xlink:title="ugp_IncomeStatementLocationOneAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfIntangibleAssetsTable" xlink:to="ugp_IncomeStatementLocationOneAxis" xlink:title="Definition : ifrs-full_DisclosureOfIntangibleAssetsTable to ugp_IncomeStatementLocationOneAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncomeStatementLocationOneDomain" xlink:label="ugp_IncomeStatementLocationOneDomain" xlink:title="ugp_IncomeStatementLocationOneDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_IncomeStatementLocationOneAxis" xlink:to="ugp_IncomeStatementLocationOneDomain" xlink:title="Definition : ugp_IncomeStatementLocationOneAxis to ugp_IncomeStatementLocationOneDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CostOfProductsAndServicesSoldMember" xlink:label="ugp_CostOfProductsAndServicesSoldMember" xlink:title="ugp_CostOfProductsAndServicesSoldMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_IncomeStatementLocationOneDomain" xlink:to="ugp_CostOfProductsAndServicesSoldMember" xlink:title="Definition : ugp_IncomeStatementLocationOneDomain to ugp_CostOfProductsAndServicesSoldMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SellingAndMarketingExpensesMember" xlink:label="ugp_SellingAndMarketingExpensesMember" xlink:title="ugp_SellingAndMarketingExpensesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_IncomeStatementLocationOneDomain" xlink:to="ugp_SellingAndMarketingExpensesMember" xlink:title="Definition : ugp_IncomeStatementLocationOneDomain to ugp_SellingAndMarketingExpensesMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_GeneralAndAdministrativeExpensesMember" xlink:label="ugp_GeneralAndAdministrativeExpensesMember" xlink:title="ugp_GeneralAndAdministrativeExpensesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_IncomeStatementLocationOneDomain" xlink:to="ugp_GeneralAndAdministrativeExpensesMember" xlink:title="Definition : ugp_IncomeStatementLocationOneDomain to ugp_GeneralAndAdministrativeExpensesMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncomeStatementLocationOneDomain" xlink:label="ugp_IncomeStatementLocationOneDomain_1" xlink:title="ugp_IncomeStatementLocationOneDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_IncomeStatementLocationOneAxis" xlink:to="ugp_IncomeStatementLocationOneDomain_1" xlink:title="Definition : ugp_IncomeStatementLocationOneAxis to ugp_IncomeStatementLocationOneDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/RightofuseassetsandleasespayableDetailsaboutleasecontractsoflowamountassetsDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsLineItems" xlink:label="ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsLineItems" xlink:title="ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UndiscountedOperatingLeasePaymentsToBePaidForContractsOfLowAmountAssets" xlink:label="ugp_UndiscountedOperatingLeasePaymentsToBePaidForContractsOfLowAmountAssets" xlink:title="ugp_UndiscountedOperatingLeasePaymentsToBePaidForContractsOfLowAmountAssets" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsLineItems" xlink:to="ugp_UndiscountedOperatingLeasePaymentsToBePaidForContractsOfLowAmountAssets" xlink:title="Definition : ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsLineItems to ugp_UndiscountedOperatingLeasePaymentsToBePaidForContractsOfLowAmountAssets" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsTable" xlink:label="ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsTable" xlink:title="ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsLineItems" xlink:to="ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsTable" xlink:title="Definition : ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsLineItems to ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsTable" xlink:type="arc" use="optional" order="1" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MaturityAxis" xlink:label="ifrs-full_MaturityAxis" xlink:title="ifrs-full_MaturityAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsTable" xlink:to="ifrs-full_MaturityAxis" xlink:title="Definition : ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsTable to ifrs-full_MaturityAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="ifrs-full_MaturityDomain" xlink:title="ifrs-full_MaturityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_MaturityAxis" xlink:to="ifrs-full_MaturityDomain" xlink:title="Definition : ifrs-full_MaturityAxis to ifrs-full_MaturityDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NotLaterThanOneYearMember" xlink:label="ifrs-full_NotLaterThanOneYearMember" xlink:title="ifrs-full_NotLaterThanOneYearMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ifrs-full_NotLaterThanOneYearMember" xlink:title="Definition : ifrs-full_MaturityDomain to ifrs-full_NotLaterThanOneYearMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanOneYearAndNotLaterThanFiveYearsMember" xlink:label="ifrs-full_LaterThanOneYearAndNotLaterThanFiveYearsMember" xlink:title="ifrs-full_LaterThanOneYearAndNotLaterThanFiveYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ifrs-full_LaterThanOneYearAndNotLaterThanFiveYearsMember" xlink:title="Definition : ifrs-full_MaturityDomain to ifrs-full_LaterThanOneYearAndNotLaterThanFiveYearsMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanFiveYearsMember" xlink:label="ifrs-full_LaterThanFiveYearsMember" xlink:title="ifrs-full_LaterThanFiveYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ifrs-full_LaterThanFiveYearsMember" xlink:title="Definition : ifrs-full_MaturityDomain to ifrs-full_LaterThanFiveYearsMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="ifrs-full_MaturityDomain_1" xlink:title="ifrs-full_MaturityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_MaturityAxis" xlink:to="ifrs-full_MaturityDomain_1" xlink:title="Definition : ifrs-full_MaturityAxis to ifrs-full_MaturityDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/RightofuseassetsandleasespayableSummaryofweightedaveragediscountratesfortheleasepayableDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsLineItems" xlink:label="ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsLineItems" xlink:title="ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_WeightedAverageLesseesIncrementalBorrowingRateAppliedToLeaseLiabilitiesRecognisedAtDateOfInitialApplicationOfIFRS16" xlink:label="ifrs-full_WeightedAverageLesseesIncrementalBorrowingRateAppliedToLeaseLiabilitiesRecognisedAtDateOfInitialApplicationOfIFRS16" xlink:title="ifrs-full_WeightedAverageLesseesIncrementalBorrowingRateAppliedToLeaseLiabilitiesRecognisedAtDateOfInitialApplicationOfIFRS16" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsLineItems" xlink:to="ifrs-full_WeightedAverageLesseesIncrementalBorrowingRateAppliedToLeaseLiabilitiesRecognisedAtDateOfInitialApplicationOfIFRS16" xlink:title="Definition : ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsLineItems to ifrs-full_WeightedAverageLesseesIncrementalBorrowingRateAppliedToLeaseLiabilitiesRecognisedAtDateOfInitialApplicationOfIFRS16" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsTable" xlink:label="ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsTable" xlink:title="ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsLineItems" xlink:to="ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsTable" xlink:title="Definition : ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsLineItems to ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsTable" xlink:type="arc" use="optional" order="1" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MaturityAxis" xlink:label="ifrs-full_MaturityAxis" xlink:title="ifrs-full_MaturityAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsTable" xlink:to="ifrs-full_MaturityAxis" xlink:title="Definition : ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsTable to ifrs-full_MaturityAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="ifrs-full_MaturityDomain" xlink:title="ifrs-full_MaturityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_MaturityAxis" xlink:to="ifrs-full_MaturityDomain" xlink:title="Definition : ifrs-full_MaturityAxis to ifrs-full_MaturityDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NotLaterThanFiveYearsMember" xlink:label="ugp_NotLaterThanFiveYearsMember" xlink:title="ugp_NotLaterThanFiveYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ugp_NotLaterThanFiveYearsMember" xlink:title="Definition : ifrs-full_MaturityDomain to ugp_NotLaterThanFiveYearsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanFiveYearsAndNotLaterThanTenYearsMember" xlink:label="ifrs-full_LaterThanFiveYearsAndNotLaterThanTenYearsMember" xlink:title="ifrs-full_LaterThanFiveYearsAndNotLaterThanTenYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ifrs-full_LaterThanFiveYearsAndNotLaterThanTenYearsMember" xlink:title="Definition : ifrs-full_MaturityDomain to ifrs-full_LaterThanFiveYearsAndNotLaterThanTenYearsMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanTenYearsAndNotLaterThanFifteenYearsMember" xlink:label="ifrs-full_LaterThanTenYearsAndNotLaterThanFifteenYearsMember" xlink:title="ifrs-full_LaterThanTenYearsAndNotLaterThanFifteenYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ifrs-full_LaterThanTenYearsAndNotLaterThanFifteenYearsMember" xlink:title="Definition : ifrs-full_MaturityDomain to ifrs-full_LaterThanTenYearsAndNotLaterThanFifteenYearsMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LaterThanFifteenYearsMember" xlink:label="ugp_LaterThanFifteenYearsMember" xlink:title="ugp_LaterThanFifteenYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ugp_LaterThanFifteenYearsMember" xlink:title="Definition : ifrs-full_MaturityDomain to ugp_LaterThanFifteenYearsMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="ifrs-full_MaturityDomain_1" xlink:title="ifrs-full_MaturityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_MaturityAxis" xlink:to="ifrs-full_MaturityDomain_1" xlink:title="Definition : ifrs-full_MaturityAxis to ifrs-full_MaturityDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/RightofuseassetsandleasespayableSummaryofMaturitiesofLeasePaymentsofOperatingLeaseDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsLineItems" xlink:label="ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsLineItems" xlink:title="ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UndiscountedOperatingLeasePaymentsToBePaid" xlink:label="ugp_UndiscountedOperatingLeasePaymentsToBePaid" xlink:title="ugp_UndiscountedOperatingLeasePaymentsToBePaid" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsLineItems" xlink:to="ugp_UndiscountedOperatingLeasePaymentsToBePaid" xlink:title="Definition : ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsLineItems to ugp_UndiscountedOperatingLeasePaymentsToBePaid" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsTable" xlink:label="ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsTable" xlink:title="ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsLineItems" xlink:to="ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsTable" xlink:title="Definition : ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsLineItems to ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsTable" xlink:type="arc" use="optional" order="1" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MaturityAxis" xlink:label="ifrs-full_MaturityAxis" xlink:title="ifrs-full_MaturityAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsTable" xlink:to="ifrs-full_MaturityAxis" xlink:title="Definition : ifrs-full_DisclosureOfMaturityAnalysisOfOperatingLeasePaymentsTable to ifrs-full_MaturityAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="ifrs-full_MaturityDomain" xlink:title="ifrs-full_MaturityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_MaturityAxis" xlink:to="ifrs-full_MaturityDomain" xlink:title="Definition : ifrs-full_MaturityAxis to ifrs-full_MaturityDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NotLaterThanOneYearMember" xlink:label="ifrs-full_NotLaterThanOneYearMember" xlink:title="ifrs-full_NotLaterThanOneYearMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ifrs-full_NotLaterThanOneYearMember" xlink:title="Definition : ifrs-full_MaturityDomain to ifrs-full_NotLaterThanOneYearMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:label="ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:title="ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:title="Definition : ifrs-full_MaturityDomain to ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:label="ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:title="ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:title="Definition : ifrs-full_MaturityDomain to ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember" xlink:label="ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember" xlink:title="ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember" xlink:title="Definition : ifrs-full_MaturityDomain to ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember" xlink:label="ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember" xlink:title="ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember" xlink:title="Definition : ifrs-full_MaturityDomain to ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanFiveYearsMember" xlink:label="ifrs-full_LaterThanFiveYearsMember" xlink:title="ifrs-full_LaterThanFiveYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ifrs-full_LaterThanFiveYearsMember" xlink:title="Definition : ifrs-full_MaturityDomain to ifrs-full_LaterThanFiveYearsMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="ifrs-full_MaturityDomain_1" xlink:title="ifrs-full_MaturityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_MaturityAxis" xlink:to="ifrs-full_MaturityDomain_1" xlink:title="Definition : ifrs-full_MaturityAxis to ifrs-full_MaturityDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/RightofuseassetsandleasespayableSummaryofInformationAboutRightofUseAssetsDetailParenthetical">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems" xlink:label="ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems" xlink:title="ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreaseDecreaseThroughInitialDirectCostsRightOfUseAssets" xlink:label="ugp_IncreaseDecreaseThroughInitialDirectCostsRightOfUseAssets" xlink:title="ugp_IncreaseDecreaseThroughInitialDirectCostsRightOfUseAssets" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems" xlink:to="ugp_IncreaseDecreaseThroughInitialDirectCostsRightOfUseAssets" xlink:title="Definition : ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems to ugp_IncreaseDecreaseThroughInitialDirectCostsRightOfUseAssets" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable" xlink:label="ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable" xlink:title="ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems" xlink:to="ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable" xlink:title="Definition : ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems to ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfAssetsAxis" xlink:label="ifrs-full_ClassesOfAssetsAxis" xlink:title="ifrs-full_ClassesOfAssetsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable" xlink:to="ifrs-full_ClassesOfAssetsAxis" xlink:title="Definition : ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable to ifrs-full_ClassesOfAssetsAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="ifrs-full_ClassesOfAssetsDomain" xlink:title="ifrs-full_ClassesOfAssetsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ClassesOfAssetsAxis" xlink:to="ifrs-full_ClassesOfAssetsDomain" xlink:title="Definition : ifrs-full_ClassesOfAssetsAxis to ifrs-full_ClassesOfAssetsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RightofuseAssetsMember" xlink:label="ifrs-full_RightofuseAssetsMember" xlink:title="ifrs-full_RightofuseAssetsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfAssetsDomain" xlink:to="ifrs-full_RightofuseAssetsMember" xlink:title="Definition : ifrs-full_ClassesOfAssetsDomain to ifrs-full_RightofuseAssetsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="ifrs-full_ClassesOfAssetsDomain_1" xlink:title="ifrs-full_ClassesOfAssetsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ClassesOfAssetsAxis" xlink:to="ifrs-full_ClassesOfAssetsDomain_1" xlink:title="Definition : ifrs-full_ClassesOfAssetsAxis to ifrs-full_ClassesOfAssetsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xlink:label="ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xlink:title="ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable" xlink:to="ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xlink:title="Definition : ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable to ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:label="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:title="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xlink:to="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:title="Definition : ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis to ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PortAreasMember" xlink:label="ugp_PortAreasMember" xlink:title="ugp_PortAreasMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:to="ugp_PortAreasMember" xlink:title="Definition : ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain to ugp_PortAreasMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:label="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_1" xlink:title="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xlink:to="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_1" xlink:title="Definition : ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis to ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="Definition : ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable to ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SubsidiariesMember" xlink:label="ifrs-full_SubsidiariesMember" xlink:title="ifrs-full_SubsidiariesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ifrs-full_SubsidiariesMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ifrs-full_SubsidiariesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/InvestmentsinsubsidiariesjointventuresandassociatesSummaryoffinancialpositionandincomeofsubsidiarieswhichhaverelevantnoncontrollinginterestsDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesLineItems" xlink:label="ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesLineItems" xlink:title="ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProportionOfOwnershipInterestInJointVenture" xlink:label="ifrs-full_ProportionOfOwnershipInterestInJointVenture" xlink:title="ifrs-full_ProportionOfOwnershipInterestInJointVenture" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesLineItems" xlink:to="ifrs-full_ProportionOfOwnershipInterestInJointVenture" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesLineItems to ifrs-full_ProportionOfOwnershipInterestInJointVenture" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NoncontrollingInterests" xlink:label="ifrs-full_NoncontrollingInterests" xlink:title="ifrs-full_NoncontrollingInterests" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesLineItems" xlink:to="ifrs-full_NoncontrollingInterests" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesLineItems to ifrs-full_NoncontrollingInterests" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProfitLossAttributableToNoncontrollingInterests" xlink:label="ifrs-full_ProfitLossAttributableToNoncontrollingInterests" xlink:title="ifrs-full_ProfitLossAttributableToNoncontrollingInterests" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesLineItems" xlink:to="ifrs-full_ProfitLossAttributableToNoncontrollingInterests" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesLineItems to ifrs-full_ProfitLossAttributableToNoncontrollingInterests" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesTable" xlink:label="ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesTable" xlink:title="ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesLineItems" xlink:to="ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesTable" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesLineItems to ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesTable" xlink:type="arc" order="3" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesTable" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesTable to ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SubsidiariesGroupTwoMember" xlink:label="ugp_SubsidiariesGroupTwoMember" xlink:title="ugp_SubsidiariesGroupTwoMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_SubsidiariesGroupTwoMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_SubsidiariesGroupTwoMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_WtzParticipacoesSAMember" xlink:label="ugp_WtzParticipacoesSAMember" xlink:title="ugp_WtzParticipacoesSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_WtzParticipacoesSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_WtzParticipacoesSAMember" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OtherInvestmentMember" xlink:label="ugp_OtherInvestmentMember" xlink:title="ugp_OtherInvestmentMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_OtherInvestmentMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_OtherInvestmentMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/RelatedPartiesChangesOfNumberOfSharesGrantedDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems" xlink:label="ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems" xlink:title="ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NumberOfOtherEquityInstrumentsOutstandingInSharebasedPaymentArrangement" xlink:label="ifrs-full_NumberOfOtherEquityInstrumentsOutstandingInSharebasedPaymentArrangement" xlink:title="ifrs-full_NumberOfOtherEquityInstrumentsOutstandingInSharebasedPaymentArrangement" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems" xlink:to="ifrs-full_NumberOfOtherEquityInstrumentsOutstandingInSharebasedPaymentArrangement" xlink:title="Definition : ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems to ifrs-full_NumberOfOtherEquityInstrumentsOutstandingInSharebasedPaymentArrangement" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NumberOfOtherEquityInstrumentsExpiredInSharebasedPaymentArrangement" xlink:label="ifrs-full_NumberOfOtherEquityInstrumentsExpiredInSharebasedPaymentArrangement" xlink:title="ifrs-full_NumberOfOtherEquityInstrumentsExpiredInSharebasedPaymentArrangement" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems" xlink:to="ifrs-full_NumberOfOtherEquityInstrumentsExpiredInSharebasedPaymentArrangement" xlink:title="Definition : ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems to ifrs-full_NumberOfOtherEquityInstrumentsExpiredInSharebasedPaymentArrangement" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NumberOfOtherEquityInstrumentsExercisedOrVestedInSharebasedPaymentArrangement" xlink:label="ifrs-full_NumberOfOtherEquityInstrumentsExercisedOrVestedInSharebasedPaymentArrangement" xlink:title="ifrs-full_NumberOfOtherEquityInstrumentsExercisedOrVestedInSharebasedPaymentArrangement" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems" xlink:to="ifrs-full_NumberOfOtherEquityInstrumentsExercisedOrVestedInSharebasedPaymentArrangement" xlink:title="Definition : ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems to ifrs-full_NumberOfOtherEquityInstrumentsExercisedOrVestedInSharebasedPaymentArrangement" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfOtherEquityInstrumentsReclassifiedToHeldForSaleInShareBasedPaymentArrangement" xlink:label="ugp_NumberOfOtherEquityInstrumentsReclassifiedToHeldForSaleInShareBasedPaymentArrangement" xlink:title="ugp_NumberOfOtherEquityInstrumentsReclassifiedToHeldForSaleInShareBasedPaymentArrangement" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems" xlink:to="ugp_NumberOfOtherEquityInstrumentsReclassifiedToHeldForSaleInShareBasedPaymentArrangement" xlink:title="Definition : ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems to ugp_NumberOfOtherEquityInstrumentsReclassifiedToHeldForSaleInShareBasedPaymentArrangement" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable" xlink:label="ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable" xlink:title="ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems" xlink:to="ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable" xlink:title="Definition : ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems to ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable" xlink:type="arc" use="optional" order="4" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SharebasedPaymentPlanNameAxis" xlink:label="ugp_SharebasedPaymentPlanNameAxis" xlink:title="ugp_SharebasedPaymentPlanNameAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable" xlink:to="ugp_SharebasedPaymentPlanNameAxis" xlink:title="Definition : ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable to ugp_SharebasedPaymentPlanNameAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SharebasedPaymentPlanNameDomain" xlink:label="ugp_SharebasedPaymentPlanNameDomain" xlink:title="ugp_SharebasedPaymentPlanNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_SharebasedPaymentPlanNameAxis" xlink:to="ugp_SharebasedPaymentPlanNameDomain" xlink:title="Definition : ugp_SharebasedPaymentPlanNameAxis to ugp_SharebasedPaymentPlanNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DeferredStockUnitPlanMember" xlink:label="ugp_DeferredStockUnitPlanMember" xlink:title="ugp_DeferredStockUnitPlanMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SharebasedPaymentPlanNameDomain" xlink:to="ugp_DeferredStockUnitPlanMember" xlink:title="Definition : ugp_SharebasedPaymentPlanNameDomain to ugp_DeferredStockUnitPlanMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SharebasedPaymentPlanNameDomain" xlink:label="ugp_SharebasedPaymentPlanNameDomain_1" xlink:title="ugp_SharebasedPaymentPlanNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_SharebasedPaymentPlanNameAxis" xlink:to="ugp_SharebasedPaymentPlanNameDomain_1" xlink:title="Definition : ugp_SharebasedPaymentPlanNameAxis to ugp_SharebasedPaymentPlanNameDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:title="ifrs-full_CategoriesOfRelatedPartiesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable" xlink:to="ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:title="Definition : ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable to ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:title="ifrs-full_CategoriesOfRelatedPartiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:to="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesAxis to ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_KeyManagementPersonnelOfEntityOrParentMember" xlink:label="ifrs-full_KeyManagementPersonnelOfEntityOrParentMember" xlink:title="ifrs-full_KeyManagementPersonnelOfEntityOrParentMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:to="ifrs-full_KeyManagementPersonnelOfEntityOrParentMember" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesDomain to ifrs-full_KeyManagementPersonnelOfEntityOrParentMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="ifrs-full_CategoriesOfRelatedPartiesDomain_1" xlink:title="ifrs-full_CategoriesOfRelatedPartiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:to="ifrs-full_CategoriesOfRelatedPartiesDomain_1" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesAxis to ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/Consolidatedstatementsofchangesinequity">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_StatementOfChangesInEquityLineItems" xlink:label="ifrs-full_StatementOfChangesInEquityLineItems" xlink:title="ifrs-full_StatementOfChangesInEquityLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_Equity" xlink:label="ifrs-full_Equity" xlink:title="ifrs-full_Equity" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_StatementOfChangesInEquityLineItems" xlink:to="ifrs-full_Equity" xlink:title="Definition : ifrs-full_StatementOfChangesInEquityLineItems to ifrs-full_Equity" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProfitLoss" xlink:label="ifrs-full_ProfitLoss" xlink:title="ifrs-full_ProfitLoss" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_StatementOfChangesInEquityLineItems" xlink:to="ifrs-full_ProfitLoss" xlink:title="Definition : ifrs-full_StatementOfChangesInEquityLineItems to ifrs-full_ProfitLoss" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OtherComprehensiveIncomeAbstract" xlink:label="ifrs-full_OtherComprehensiveIncomeAbstract" xlink:title="ifrs-full_OtherComprehensiveIncomeAbstract" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_StatementOfChangesInEquityLineItems" xlink:to="ifrs-full_OtherComprehensiveIncomeAbstract" xlink:title="Definition : ifrs-full_StatementOfChangesInEquityLineItems to ifrs-full_OtherComprehensiveIncomeAbstract" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OtherComprehensiveIncome" xlink:label="ifrs-full_OtherComprehensiveIncome" xlink:title="ifrs-full_OtherComprehensiveIncome" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_OtherComprehensiveIncomeAbstract" xlink:to="ifrs-full_OtherComprehensiveIncome" xlink:title="Definition : ifrs-full_OtherComprehensiveIncomeAbstract to ifrs-full_OtherComprehensiveIncome" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ComprehensiveIncome" xlink:label="ifrs-full_ComprehensiveIncome" xlink:title="ifrs-full_ComprehensiveIncome" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_StatementOfChangesInEquityLineItems" xlink:to="ifrs-full_ComprehensiveIncome" xlink:title="Definition : ifrs-full_StatementOfChangesInEquityLineItems to ifrs-full_ComprehensiveIncome" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreaseDecreaseThroughIssuanceOfSharesRelatedToSubscriptionWarrantsIndemnificationEquity" xlink:label="ugp_IncreaseDecreaseThroughIssuanceOfSharesRelatedToSubscriptionWarrantsIndemnificationEquity" xlink:title="ugp_IncreaseDecreaseThroughIssuanceOfSharesRelatedToSubscriptionWarrantsIndemnificationEquity" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_StatementOfChangesInEquityLineItems" xlink:to="ugp_IncreaseDecreaseThroughIssuanceOfSharesRelatedToSubscriptionWarrantsIndemnificationEquity" xlink:title="Definition : ifrs-full_StatementOfChangesInEquityLineItems to ugp_IncreaseDecreaseThroughIssuanceOfSharesRelatedToSubscriptionWarrantsIndemnificationEquity" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreaseDecreaseThroughEquityInstrumentGranted" xlink:label="ugp_IncreaseDecreaseThroughEquityInstrumentGranted" xlink:title="ugp_IncreaseDecreaseThroughEquityInstrumentGranted" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_StatementOfChangesInEquityLineItems" xlink:to="ugp_IncreaseDecreaseThroughEquityInstrumentGranted" xlink:title="Definition : ifrs-full_StatementOfChangesInEquityLineItems to ugp_IncreaseDecreaseThroughEquityInstrumentGranted" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PurchaseOfTreasuryShares" xlink:label="ifrs-full_PurchaseOfTreasuryShares" xlink:title="ifrs-full_PurchaseOfTreasuryShares" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_StatementOfChangesInEquityLineItems" xlink:to="ifrs-full_PurchaseOfTreasuryShares" xlink:title="Definition : ifrs-full_StatementOfChangesInEquityLineItems to ifrs-full_PurchaseOfTreasuryShares" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreaseDecreaseThroughRealizationOfRevaluationReserveOfSubsidiariesEquity" xlink:label="ugp_IncreaseDecreaseThroughRealizationOfRevaluationReserveOfSubsidiariesEquity" xlink:title="ugp_IncreaseDecreaseThroughRealizationOfRevaluationReserveOfSubsidiariesEquity" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_StatementOfChangesInEquityLineItems" xlink:to="ugp_IncreaseDecreaseThroughRealizationOfRevaluationReserveOfSubsidiariesEquity" xlink:title="Definition : ifrs-full_StatementOfChangesInEquityLineItems to ugp_IncreaseDecreaseThroughRealizationOfRevaluationReserveOfSubsidiariesEquity" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreaseDecreaseThroughReserveConstitution" xlink:label="ugp_IncreaseDecreaseThroughReserveConstitution" xlink:title="ugp_IncreaseDecreaseThroughReserveConstitution" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_StatementOfChangesInEquityLineItems" xlink:to="ugp_IncreaseDecreaseThroughReserveConstitution" xlink:title="Definition : ifrs-full_StatementOfChangesInEquityLineItems to ugp_IncreaseDecreaseThroughReserveConstitution" xlink:type="arc" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreaseDecreaseThroughCapitalIncreaseWithReserves" xlink:label="ugp_IncreaseDecreaseThroughCapitalIncreaseWithReserves" xlink:title="ugp_IncreaseDecreaseThroughCapitalIncreaseWithReserves" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_StatementOfChangesInEquityLineItems" xlink:to="ugp_IncreaseDecreaseThroughCapitalIncreaseWithReserves" xlink:title="Definition : ifrs-full_StatementOfChangesInEquityLineItems to ugp_IncreaseDecreaseThroughCapitalIncreaseWithReserves" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_GainsLossesRecognisedWhenControlInSubsidiaryIsLost" xlink:label="ifrs-full_GainsLossesRecognisedWhenControlInSubsidiaryIsLost" xlink:title="ifrs-full_GainsLossesRecognisedWhenControlInSubsidiaryIsLost" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_StatementOfChangesInEquityLineItems" xlink:to="ifrs-full_GainsLossesRecognisedWhenControlInSubsidiaryIsLost" xlink:title="Definition : ifrs-full_StatementOfChangesInEquityLineItems to ifrs-full_GainsLossesRecognisedWhenControlInSubsidiaryIsLost" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UnclaimedDividendsForfeited" xlink:label="ugp_UnclaimedDividendsForfeited" xlink:title="ugp_UnclaimedDividendsForfeited" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_StatementOfChangesInEquityLineItems" xlink:to="ugp_UnclaimedDividendsForfeited" xlink:title="Definition : ifrs-full_StatementOfChangesInEquityLineItems to ugp_UnclaimedDividendsForfeited" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SpecialReserveForMandatoryDividendNotDistributedToNoncontrollingShareholders" xlink:label="ugp_SpecialReserveForMandatoryDividendNotDistributedToNoncontrollingShareholders" xlink:title="ugp_SpecialReserveForMandatoryDividendNotDistributedToNoncontrollingShareholders" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_StatementOfChangesInEquityLineItems" xlink:to="ugp_SpecialReserveForMandatoryDividendNotDistributedToNoncontrollingShareholders" xlink:title="Definition : ifrs-full_StatementOfChangesInEquityLineItems to ugp_SpecialReserveForMandatoryDividendNotDistributedToNoncontrollingShareholders" xlink:type="arc" use="optional" order="12" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreaseDecreaseThroughShareholderTransactionChangesOfInvestments" xlink:label="ugp_IncreaseDecreaseThroughShareholderTransactionChangesOfInvestments" xlink:title="ugp_IncreaseDecreaseThroughShareholderTransactionChangesOfInvestments" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_StatementOfChangesInEquityLineItems" xlink:to="ugp_IncreaseDecreaseThroughShareholderTransactionChangesOfInvestments" xlink:title="Definition : ifrs-full_StatementOfChangesInEquityLineItems to ugp_IncreaseDecreaseThroughShareholderTransactionChangesOfInvestments" xlink:type="arc" use="optional" order="13" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IncreaseDecreaseThroughChangesInOwnershipInterestsInSubsidiariesThatDoNotResultInLossOfControl" xlink:label="ifrs-full_IncreaseDecreaseThroughChangesInOwnershipInterestsInSubsidiariesThatDoNotResultInLossOfControl" xlink:title="ifrs-full_IncreaseDecreaseThroughChangesInOwnershipInterestsInSubsidiariesThatDoNotResultInLossOfControl" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_StatementOfChangesInEquityLineItems" xlink:to="ifrs-full_IncreaseDecreaseThroughChangesInOwnershipInterestsInSubsidiariesThatDoNotResultInLossOfControl" xlink:title="Definition : ifrs-full_StatementOfChangesInEquityLineItems to ifrs-full_IncreaseDecreaseThroughChangesInOwnershipInterestsInSubsidiariesThatDoNotResultInLossOfControl" xlink:type="arc" use="optional" order="14" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IncreaseDecreaseThroughAcquisitionOfSubsidiary" xlink:label="ifrs-full_IncreaseDecreaseThroughAcquisitionOfSubsidiary" xlink:title="ifrs-full_IncreaseDecreaseThroughAcquisitionOfSubsidiary" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_StatementOfChangesInEquityLineItems" xlink:to="ifrs-full_IncreaseDecreaseThroughAcquisitionOfSubsidiary" xlink:title="Definition : ifrs-full_StatementOfChangesInEquityLineItems to ifrs-full_IncreaseDecreaseThroughAcquisitionOfSubsidiary" xlink:type="arc" use="optional" order="15" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreaseDecreaseThroughChangeInEquityAttributableToNonControllingInterests" xlink:label="ugp_IncreaseDecreaseThroughChangeInEquityAttributableToNonControllingInterests" xlink:title="ugp_IncreaseDecreaseThroughChangeInEquityAttributableToNonControllingInterests" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_StatementOfChangesInEquityLineItems" xlink:to="ugp_IncreaseDecreaseThroughChangeInEquityAttributableToNonControllingInterests" xlink:title="Definition : ifrs-full_StatementOfChangesInEquityLineItems to ugp_IncreaseDecreaseThroughChangeInEquityAttributableToNonControllingInterests" xlink:type="arc" use="optional" order="16" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DividendsRecognisedAsDistributionsToNoncontrollingInterests" xlink:label="ifrs-full_DividendsRecognisedAsDistributionsToNoncontrollingInterests" xlink:title="ifrs-full_DividendsRecognisedAsDistributionsToNoncontrollingInterests" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_StatementOfChangesInEquityLineItems" xlink:to="ifrs-full_DividendsRecognisedAsDistributionsToNoncontrollingInterests" xlink:title="Definition : ifrs-full_StatementOfChangesInEquityLineItems to ifrs-full_DividendsRecognisedAsDistributionsToNoncontrollingInterests" xlink:type="arc" use="optional" order="17" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DividendsRecognisedAsDistributionsToOwnersOfParent" xlink:label="ifrs-full_DividendsRecognisedAsDistributionsToOwnersOfParent" xlink:title="ifrs-full_DividendsRecognisedAsDistributionsToOwnersOfParent" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_StatementOfChangesInEquityLineItems" xlink:to="ifrs-full_DividendsRecognisedAsDistributionsToOwnersOfParent" xlink:title="Definition : ifrs-full_StatementOfChangesInEquityLineItems to ifrs-full_DividendsRecognisedAsDistributionsToOwnersOfParent" xlink:type="arc" use="optional" order="18" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AllocationOfNetIncomeAbstract" xlink:label="ugp_AllocationOfNetIncomeAbstract" xlink:title="ugp_AllocationOfNetIncomeAbstract" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_StatementOfChangesInEquityLineItems" xlink:to="ugp_AllocationOfNetIncomeAbstract" xlink:title="Definition : ifrs-full_StatementOfChangesInEquityLineItems to ugp_AllocationOfNetIncomeAbstract" xlink:type="arc" use="optional" order="19" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesEquity" xlink:label="ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesEquity" xlink:title="ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesEquity" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AllocationOfNetIncomeAbstract" xlink:to="ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesEquity" xlink:title="Definition : ugp_AllocationOfNetIncomeAbstract to ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesEquity" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreaseDecreaseThroughAllocationOfNetIncomeInvestmentsStatutoryReserve" xlink:label="ugp_IncreaseDecreaseThroughAllocationOfNetIncomeInvestmentsStatutoryReserve" xlink:title="ugp_IncreaseDecreaseThroughAllocationOfNetIncomeInvestmentsStatutoryReserve" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AllocationOfNetIncomeAbstract" xlink:to="ugp_IncreaseDecreaseThroughAllocationOfNetIncomeInvestmentsStatutoryReserve" xlink:title="Definition : ugp_AllocationOfNetIncomeAbstract to ugp_IncreaseDecreaseThroughAllocationOfNetIncomeInvestmentsStatutoryReserve" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AdditionalMinimumMandatoryDividendsRecognised" xlink:label="ugp_AdditionalMinimumMandatoryDividendsRecognised" xlink:title="ugp_AdditionalMinimumMandatoryDividendsRecognised" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AllocationOfNetIncomeAbstract" xlink:to="ugp_AdditionalMinimumMandatoryDividendsRecognised" xlink:title="Definition : ugp_AllocationOfNetIncomeAbstract to ugp_AdditionalMinimumMandatoryDividendsRecognised" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AdditionalDividendsToMinimumMandatoryDividendsRecognised" xlink:label="ugp_AdditionalDividendsToMinimumMandatoryDividendsRecognised" xlink:title="ugp_AdditionalDividendsToMinimumMandatoryDividendsRecognised" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AllocationOfNetIncomeAbstract" xlink:to="ugp_AdditionalDividendsToMinimumMandatoryDividendsRecognised" xlink:title="Definition : ugp_AllocationOfNetIncomeAbstract to ugp_AdditionalDividendsToMinimumMandatoryDividendsRecognised" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_InterestOnCapitalPaid" xlink:label="ugp_InterestOnCapitalPaid" xlink:title="ugp_InterestOnCapitalPaid" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AllocationOfNetIncomeAbstract" xlink:to="ugp_InterestOnCapitalPaid" xlink:title="Definition : ugp_AllocationOfNetIncomeAbstract to ugp_InterestOnCapitalPaid" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_InterimDividends" xlink:label="ugp_InterimDividends" xlink:title="ugp_InterimDividends" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_AllocationOfNetIncomeAbstract" xlink:to="ugp_InterimDividends" xlink:title="Definition : ugp_AllocationOfNetIncomeAbstract to ugp_InterimDividends" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_StatementOfChangesInEquityTable" xlink:label="ifrs-full_StatementOfChangesInEquityTable" xlink:title="ifrs-full_StatementOfChangesInEquityTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_StatementOfChangesInEquityLineItems" xlink:to="ifrs-full_StatementOfChangesInEquityTable" xlink:title="Definition : ifrs-full_StatementOfChangesInEquityLineItems to ifrs-full_StatementOfChangesInEquityTable" xlink:type="arc" order="20" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ComponentsOfEquityAxis" xlink:label="ifrs-full_ComponentsOfEquityAxis" xlink:title="ifrs-full_ComponentsOfEquityAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_StatementOfChangesInEquityTable" xlink:to="ifrs-full_ComponentsOfEquityAxis" xlink:title="Definition : ifrs-full_StatementOfChangesInEquityTable to ifrs-full_ComponentsOfEquityAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ComponentsOfEquityDomain" xlink:label="ifrs-full_ComponentsOfEquityDomain" xlink:title="ifrs-full_ComponentsOfEquityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ComponentsOfEquityAxis" xlink:to="ifrs-full_ComponentsOfEquityDomain" xlink:title="Definition : ifrs-full_ComponentsOfEquityAxis to ifrs-full_ComponentsOfEquityDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IssuedCapitalMember" xlink:label="ifrs-full_IssuedCapitalMember" xlink:title="ifrs-full_IssuedCapitalMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ComponentsOfEquityDomain" xlink:to="ifrs-full_IssuedCapitalMember" xlink:title="Definition : ifrs-full_ComponentsOfEquityDomain to ifrs-full_IssuedCapitalMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_EquityInstrumentGrantedMember" xlink:label="ugp_EquityInstrumentGrantedMember" xlink:title="ugp_EquityInstrumentGrantedMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ComponentsOfEquityDomain" xlink:to="ugp_EquityInstrumentGrantedMember" xlink:title="Definition : ifrs-full_ComponentsOfEquityDomain to ugp_EquityInstrumentGrantedMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CapitalReserveMember" xlink:label="ifrs-full_CapitalReserveMember" xlink:title="ifrs-full_CapitalReserveMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ComponentsOfEquityDomain" xlink:to="ifrs-full_CapitalReserveMember" xlink:title="Definition : ifrs-full_ComponentsOfEquityDomain to ifrs-full_CapitalReserveMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TreasurySharesMember" xlink:label="ifrs-full_TreasurySharesMember" xlink:title="ifrs-full_TreasurySharesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ComponentsOfEquityDomain" xlink:to="ifrs-full_TreasurySharesMember" xlink:title="Definition : ifrs-full_ComponentsOfEquityDomain to ifrs-full_TreasurySharesMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RevaluationSurplusMember" xlink:label="ifrs-full_RevaluationSurplusMember" xlink:title="ifrs-full_RevaluationSurplusMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ComponentsOfEquityDomain" xlink:to="ifrs-full_RevaluationSurplusMember" xlink:title="Definition : ifrs-full_ComponentsOfEquityDomain to ifrs-full_RevaluationSurplusMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_StatutoryReserveMember" xlink:label="ifrs-full_StatutoryReserveMember" xlink:title="ifrs-full_StatutoryReserveMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ComponentsOfEquityDomain" xlink:to="ifrs-full_StatutoryReserveMember" xlink:title="Definition : ifrs-full_ComponentsOfEquityDomain to ifrs-full_StatutoryReserveMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_InvestmentsStatutoryReserveMember" xlink:label="ugp_InvestmentsStatutoryReserveMember" xlink:title="ugp_InvestmentsStatutoryReserveMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ComponentsOfEquityDomain" xlink:to="ugp_InvestmentsStatutoryReserveMember" xlink:title="Definition : ifrs-full_ComponentsOfEquityDomain to ugp_InvestmentsStatutoryReserveMember" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AccumulatedOtherComprehensiveIncomeMember" xlink:label="ifrs-full_AccumulatedOtherComprehensiveIncomeMember" xlink:title="ifrs-full_AccumulatedOtherComprehensiveIncomeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ComponentsOfEquityDomain" xlink:to="ifrs-full_AccumulatedOtherComprehensiveIncomeMember" xlink:title="Definition : ifrs-full_ComponentsOfEquityDomain to ifrs-full_AccumulatedOtherComprehensiveIncomeMember" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AccumulatedOtherComprehensiveIncomeExcludingReserveOfExchangeDifferencesOnTranslationMember" xlink:label="ugp_AccumulatedOtherComprehensiveIncomeExcludingReserveOfExchangeDifferencesOnTranslationMember" xlink:title="ugp_AccumulatedOtherComprehensiveIncomeExcludingReserveOfExchangeDifferencesOnTranslationMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ComponentsOfEquityDomain" xlink:to="ugp_AccumulatedOtherComprehensiveIncomeExcludingReserveOfExchangeDifferencesOnTranslationMember" xlink:title="Definition : ifrs-full_ComponentsOfEquityDomain to ugp_AccumulatedOtherComprehensiveIncomeExcludingReserveOfExchangeDifferencesOnTranslationMember" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RetainedEarningsMember" xlink:label="ifrs-full_RetainedEarningsMember" xlink:title="ifrs-full_RetainedEarningsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ComponentsOfEquityDomain" xlink:to="ifrs-full_RetainedEarningsMember" xlink:title="Definition : ifrs-full_ComponentsOfEquityDomain to ifrs-full_RetainedEarningsMember" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AdditionalDividendsMember" xlink:label="ugp_AdditionalDividendsMember" xlink:title="ugp_AdditionalDividendsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ComponentsOfEquityDomain" xlink:to="ugp_AdditionalDividendsMember" xlink:title="Definition : ifrs-full_ComponentsOfEquityDomain to ugp_AdditionalDividendsMember" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_EquityAttributableToOwnersOfParentMember" xlink:label="ifrs-full_EquityAttributableToOwnersOfParentMember" xlink:title="ifrs-full_EquityAttributableToOwnersOfParentMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ComponentsOfEquityDomain" xlink:to="ifrs-full_EquityAttributableToOwnersOfParentMember" xlink:title="Definition : ifrs-full_ComponentsOfEquityDomain to ifrs-full_EquityAttributableToOwnersOfParentMember" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NoncontrollingInterestsMember" xlink:label="ifrs-full_NoncontrollingInterestsMember" xlink:title="ifrs-full_NoncontrollingInterestsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ComponentsOfEquityDomain" xlink:to="ifrs-full_NoncontrollingInterestsMember" xlink:title="Definition : ifrs-full_ComponentsOfEquityDomain to ifrs-full_NoncontrollingInterestsMember" xlink:type="arc" use="optional" order="12" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ComponentsOfEquityDomain" xlink:label="ifrs-full_ComponentsOfEquityDomain_1" xlink:title="ifrs-full_ComponentsOfEquityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ComponentsOfEquityAxis" xlink:to="ifrs-full_ComponentsOfEquityDomain_1" xlink:title="Definition : ifrs-full_ComponentsOfEquityAxis to ifrs-full_ComponentsOfEquityDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/RecoverabletaxesConsolidatedSummaryofRecoverableIncomeTaxandSocialContributionTaxesDetail">
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems" xlink:label="ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems" xlink:title="ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CurrentTaxAssets" xlink:label="ifrs-full_CurrentTaxAssets" xlink:title="ifrs-full_CurrentTaxAssets" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems" xlink:to="ifrs-full_CurrentTaxAssets" xlink:title="Definition : ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems to ifrs-full_CurrentTaxAssets" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CurrentTaxAssetsCurrent" xlink:label="ifrs-full_CurrentTaxAssetsCurrent" xlink:title="ifrs-full_CurrentTaxAssetsCurrent" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems" xlink:to="ifrs-full_CurrentTaxAssetsCurrent" xlink:title="Definition : ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems to ifrs-full_CurrentTaxAssetsCurrent" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CurrentTaxAssetsNoncurrent" xlink:label="ifrs-full_CurrentTaxAssetsNoncurrent" xlink:title="ifrs-full_CurrentTaxAssetsNoncurrent" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems" xlink:to="ifrs-full_CurrentTaxAssetsNoncurrent" xlink:title="Definition : ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems to ifrs-full_CurrentTaxAssetsNoncurrent" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesTable" xlink:label="ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesTable" xlink:title="ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems" xlink:to="ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesTable" xlink:title="Definition : ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesLineItems to ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesTable" xlink:type="arc" use="optional" order="3" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxesAxis" xlink:label="ugp_TaxesAxis" xlink:title="ugp_TaxesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesTable" xlink:to="ugp_TaxesAxis" xlink:title="Definition : ugp_DisclosureOfRecoverableIncomeTaxAndSocialContributionTaxesTable to ugp_TaxesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxesDomain" xlink:label="ugp_TaxesDomain" xlink:title="ugp_TaxesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_TaxesAxis" xlink:to="ugp_TaxesDomain" xlink:title="Definition : ugp_TaxesAxis to ugp_TaxesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IrpjandcsllMember" xlink:label="ugp_IrpjandcsllMember" xlink:title="ugp_IrpjandcsllMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_TaxesDomain" xlink:to="ugp_IrpjandcsllMember" xlink:title="Definition : ugp_TaxesDomain to ugp_IrpjandcsllMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxesDomain" xlink:label="ugp_TaxesDomain_1" xlink:title="ugp_TaxesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_TaxesAxis" xlink:to="ugp_TaxesDomain_1" xlink:title="Definition : ugp_TaxesAxis to ugp_TaxesDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/RecoverabletaxesScheduleofestimatedrecoveryofICMScreditsDetail">
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DisclosureOfEstimatedRecoveryOfVATOnSalesAndCertainServicesCreditsLineItems" xlink:label="ugp_DisclosureOfEstimatedRecoveryOfVATOnSalesAndCertainServicesCreditsLineItems" xlink:title="ugp_DisclosureOfEstimatedRecoveryOfVATOnSalesAndCertainServicesCreditsLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ReceivablesFromTaxesOtherThanIncomeTax" xlink:label="ifrs-full_ReceivablesFromTaxesOtherThanIncomeTax" xlink:title="ifrs-full_ReceivablesFromTaxesOtherThanIncomeTax" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfEstimatedRecoveryOfVATOnSalesAndCertainServicesCreditsLineItems" xlink:to="ifrs-full_ReceivablesFromTaxesOtherThanIncomeTax" xlink:title="Definition : ugp_DisclosureOfEstimatedRecoveryOfVATOnSalesAndCertainServicesCreditsLineItems to ifrs-full_ReceivablesFromTaxesOtherThanIncomeTax" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DisclosureOfEstimatedRecoveryOfVATOnSalesAndCertainServicesCreditsTable" xlink:label="ugp_DisclosureOfEstimatedRecoveryOfVATOnSalesAndCertainServicesCreditsTable" xlink:title="ugp_DisclosureOfEstimatedRecoveryOfVATOnSalesAndCertainServicesCreditsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ugp_DisclosureOfEstimatedRecoveryOfVATOnSalesAndCertainServicesCreditsLineItems" xlink:to="ugp_DisclosureOfEstimatedRecoveryOfVATOnSalesAndCertainServicesCreditsTable" xlink:title="Definition : ugp_DisclosureOfEstimatedRecoveryOfVATOnSalesAndCertainServicesCreditsLineItems to ugp_DisclosureOfEstimatedRecoveryOfVATOnSalesAndCertainServicesCreditsTable" xlink:type="arc" use="optional" order="1" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxesAxis" xlink:label="ugp_TaxesAxis" xlink:title="ugp_TaxesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_DisclosureOfEstimatedRecoveryOfVATOnSalesAndCertainServicesCreditsTable" xlink:to="ugp_TaxesAxis" xlink:title="Definition : ugp_DisclosureOfEstimatedRecoveryOfVATOnSalesAndCertainServicesCreditsTable to ugp_TaxesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxesDomain" xlink:label="ugp_TaxesDomain" xlink:title="ugp_TaxesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_TaxesAxis" xlink:to="ugp_TaxesDomain" xlink:title="Definition : ugp_TaxesAxis to ugp_TaxesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ICMSStatevatMember" xlink:label="ugp_ICMSStatevatMember" xlink:title="ugp_ICMSStatevatMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_TaxesDomain" xlink:to="ugp_ICMSStatevatMember" xlink:title="Definition : ugp_TaxesDomain to ugp_ICMSStatevatMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxesDomain" xlink:label="ugp_TaxesDomain_1" xlink:title="ugp_TaxesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_TaxesAxis" xlink:to="ugp_TaxesDomain_1" xlink:title="Definition : ugp_TaxesAxis to ugp_TaxesDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MaturityAxis" xlink:label="ifrs-full_MaturityAxis" xlink:title="ifrs-full_MaturityAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_DisclosureOfEstimatedRecoveryOfVATOnSalesAndCertainServicesCreditsTable" xlink:to="ifrs-full_MaturityAxis" xlink:title="Definition : ugp_DisclosureOfEstimatedRecoveryOfVATOnSalesAndCertainServicesCreditsTable to ifrs-full_MaturityAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="ifrs-full_MaturityDomain" xlink:title="ifrs-full_MaturityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_MaturityAxis" xlink:to="ifrs-full_MaturityDomain" xlink:title="Definition : ifrs-full_MaturityAxis to ifrs-full_MaturityDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NotLaterThanOneYearMember" xlink:label="ifrs-full_NotLaterThanOneYearMember" xlink:title="ifrs-full_NotLaterThanOneYearMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ifrs-full_NotLaterThanOneYearMember" xlink:title="Definition : ifrs-full_MaturityDomain to ifrs-full_NotLaterThanOneYearMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:label="ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:title="ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:title="Definition : ifrs-full_MaturityDomain to ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:label="ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:title="ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:title="Definition : ifrs-full_MaturityDomain to ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanThreeYearsAndNotLaterThanFiveYearsMember" xlink:label="ifrs-full_LaterThanThreeYearsAndNotLaterThanFiveYearsMember" xlink:title="ifrs-full_LaterThanThreeYearsAndNotLaterThanFiveYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ifrs-full_LaterThanThreeYearsAndNotLaterThanFiveYearsMember" xlink:title="Definition : ifrs-full_MaturityDomain to ifrs-full_LaterThanThreeYearsAndNotLaterThanFiveYearsMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="ifrs-full_MaturityDomain_1" xlink:title="ifrs-full_MaturityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_MaturityAxis" xlink:to="ifrs-full_MaturityDomain_1" xlink:title="Definition : ifrs-full_MaturityAxis to ifrs-full_MaturityDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/CoverPage">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_DocumentInformationLineItems" xlink:label="dei_DocumentInformationLineItems" xlink:title="dei_DocumentInformationLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_DocumentType" xlink:label="dei_DocumentType" xlink:title="dei_DocumentType" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_DocumentType" xlink:title="Definition : dei_DocumentInformationLineItems to dei_DocumentType" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_AmendmentFlag" xlink:label="dei_AmendmentFlag" xlink:title="dei_AmendmentFlag" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_AmendmentFlag" xlink:title="Definition : dei_DocumentInformationLineItems to dei_AmendmentFlag" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_DocumentPeriodEndDate" xlink:label="dei_DocumentPeriodEndDate" xlink:title="dei_DocumentPeriodEndDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_DocumentPeriodEndDate" xlink:title="Definition : dei_DocumentInformationLineItems to dei_DocumentPeriodEndDate" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_CurrentFiscalYearEndDate" xlink:label="dei_CurrentFiscalYearEndDate" xlink:title="dei_CurrentFiscalYearEndDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_CurrentFiscalYearEndDate" xlink:title="Definition : dei_DocumentInformationLineItems to dei_CurrentFiscalYearEndDate" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_DocumentFiscalYearFocus" xlink:label="dei_DocumentFiscalYearFocus" xlink:title="dei_DocumentFiscalYearFocus" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_DocumentFiscalYearFocus" xlink:title="Definition : dei_DocumentInformationLineItems to dei_DocumentFiscalYearFocus" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_DocumentFiscalPeriodFocus" xlink:label="dei_DocumentFiscalPeriodFocus" xlink:title="dei_DocumentFiscalPeriodFocus" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_DocumentFiscalPeriodFocus" xlink:title="Definition : dei_DocumentInformationLineItems to dei_DocumentFiscalPeriodFocus" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_DocumentRegistrationStatement" xlink:label="dei_DocumentRegistrationStatement" xlink:title="dei_DocumentRegistrationStatement" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_DocumentRegistrationStatement" xlink:title="Definition : dei_DocumentInformationLineItems to dei_DocumentRegistrationStatement" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_DocumentAnnualReport" xlink:label="dei_DocumentAnnualReport" xlink:title="dei_DocumentAnnualReport" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_DocumentAnnualReport" xlink:title="Definition : dei_DocumentInformationLineItems to dei_DocumentAnnualReport" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_DocumentTransitionReport" xlink:label="dei_DocumentTransitionReport" xlink:title="dei_DocumentTransitionReport" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_DocumentTransitionReport" xlink:title="Definition : dei_DocumentInformationLineItems to dei_DocumentTransitionReport" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_DocumentShellCompanyReport" xlink:label="dei_DocumentShellCompanyReport" xlink:title="dei_DocumentShellCompanyReport" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_DocumentShellCompanyReport" xlink:title="Definition : dei_DocumentInformationLineItems to dei_DocumentShellCompanyReport" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityRegistrantName" xlink:label="dei_EntityRegistrantName" xlink:title="dei_EntityRegistrantName" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_EntityRegistrantName" xlink:title="Definition : dei_DocumentInformationLineItems to dei_EntityRegistrantName" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityFileNumber" xlink:label="dei_EntityFileNumber" xlink:title="dei_EntityFileNumber" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_EntityFileNumber" xlink:title="Definition : dei_DocumentInformationLineItems to dei_EntityFileNumber" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityCentralIndexKey" xlink:label="dei_EntityCentralIndexKey" xlink:title="dei_EntityCentralIndexKey" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_EntityCentralIndexKey" xlink:title="Definition : dei_DocumentInformationLineItems to dei_EntityCentralIndexKey" xlink:type="arc" use="optional" order="12" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityIncorporationStateCountryCode" xlink:label="dei_EntityIncorporationStateCountryCode" xlink:title="dei_EntityIncorporationStateCountryCode" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_EntityIncorporationStateCountryCode" xlink:title="Definition : dei_DocumentInformationLineItems to dei_EntityIncorporationStateCountryCode" xlink:type="arc" use="optional" order="13" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_ContactPersonnelName" xlink:label="dei_ContactPersonnelName" xlink:title="dei_ContactPersonnelName" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_ContactPersonnelName" xlink:title="Definition : dei_DocumentInformationLineItems to dei_ContactPersonnelName" xlink:type="arc" use="optional" order="14" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityAddressAddressLine1" xlink:label="dei_EntityAddressAddressLine1" xlink:title="dei_EntityAddressAddressLine1" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_EntityAddressAddressLine1" xlink:title="Definition : dei_DocumentInformationLineItems to dei_EntityAddressAddressLine1" xlink:type="arc" use="optional" order="15" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityAddressCityOrTown" xlink:label="dei_EntityAddressCityOrTown" xlink:title="dei_EntityAddressCityOrTown" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_EntityAddressCityOrTown" xlink:title="Definition : dei_DocumentInformationLineItems to dei_EntityAddressCityOrTown" xlink:type="arc" use="optional" order="16" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityAddressCountry" xlink:label="dei_EntityAddressCountry" xlink:title="dei_EntityAddressCountry" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_EntityAddressCountry" xlink:title="Definition : dei_DocumentInformationLineItems to dei_EntityAddressCountry" xlink:type="arc" use="optional" order="17" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityAddressPostalZipCode" xlink:label="dei_EntityAddressPostalZipCode" xlink:title="dei_EntityAddressPostalZipCode" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_EntityAddressPostalZipCode" xlink:title="Definition : dei_DocumentInformationLineItems to dei_EntityAddressPostalZipCode" xlink:type="arc" use="optional" order="18" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_CityAreaCode" xlink:label="dei_CityAreaCode" xlink:title="dei_CityAreaCode" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_CityAreaCode" xlink:title="Definition : dei_DocumentInformationLineItems to dei_CityAreaCode" xlink:type="arc" use="optional" order="19" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LocalPhoneNumber" xlink:label="dei_LocalPhoneNumber" xlink:title="dei_LocalPhoneNumber" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_LocalPhoneNumber" xlink:title="Definition : dei_DocumentInformationLineItems to dei_LocalPhoneNumber" xlink:type="arc" use="optional" order="20" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_Security12bTitle" xlink:label="dei_Security12bTitle" xlink:title="dei_Security12bTitle" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_Security12bTitle" xlink:title="Definition : dei_DocumentInformationLineItems to dei_Security12bTitle" xlink:type="arc" use="optional" order="21" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_TradingSymbol" xlink:label="dei_TradingSymbol" xlink:title="dei_TradingSymbol" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_TradingSymbol" xlink:title="Definition : dei_DocumentInformationLineItems to dei_TradingSymbol" xlink:type="arc" use="optional" order="22" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_SecurityExchangeName" xlink:label="dei_SecurityExchangeName" xlink:title="dei_SecurityExchangeName" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_SecurityExchangeName" xlink:title="Definition : dei_DocumentInformationLineItems to dei_SecurityExchangeName" xlink:type="arc" use="optional" order="23" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityCommonStockSharesOutstanding" xlink:label="dei_EntityCommonStockSharesOutstanding" xlink:title="dei_EntityCommonStockSharesOutstanding" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_EntityCommonStockSharesOutstanding" xlink:title="Definition : dei_DocumentInformationLineItems to dei_EntityCommonStockSharesOutstanding" xlink:type="arc" use="optional" order="24" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityWellKnownSeasonedIssuer" xlink:label="dei_EntityWellKnownSeasonedIssuer" xlink:title="dei_EntityWellKnownSeasonedIssuer" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_EntityWellKnownSeasonedIssuer" xlink:title="Definition : dei_DocumentInformationLineItems to dei_EntityWellKnownSeasonedIssuer" xlink:type="arc" use="optional" order="25" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityVoluntaryFilers" xlink:label="dei_EntityVoluntaryFilers" xlink:title="dei_EntityVoluntaryFilers" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_EntityVoluntaryFilers" xlink:title="Definition : dei_DocumentInformationLineItems to dei_EntityVoluntaryFilers" xlink:type="arc" use="optional" order="26" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityCurrentReportingStatus" xlink:label="dei_EntityCurrentReportingStatus" xlink:title="dei_EntityCurrentReportingStatus" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_EntityCurrentReportingStatus" xlink:title="Definition : dei_DocumentInformationLineItems to dei_EntityCurrentReportingStatus" xlink:type="arc" use="optional" order="27" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityInteractiveDataCurrent" xlink:label="dei_EntityInteractiveDataCurrent" xlink:title="dei_EntityInteractiveDataCurrent" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_EntityInteractiveDataCurrent" xlink:title="Definition : dei_DocumentInformationLineItems to dei_EntityInteractiveDataCurrent" xlink:type="arc" use="optional" order="28" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityFilerCategory" xlink:label="dei_EntityFilerCategory" xlink:title="dei_EntityFilerCategory" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_EntityFilerCategory" xlink:title="Definition : dei_DocumentInformationLineItems to dei_EntityFilerCategory" xlink:type="arc" use="optional" order="29" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityEmergingGrowthCompany" xlink:label="dei_EntityEmergingGrowthCompany" xlink:title="dei_EntityEmergingGrowthCompany" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_EntityEmergingGrowthCompany" xlink:title="Definition : dei_DocumentInformationLineItems to dei_EntityEmergingGrowthCompany" xlink:type="arc" use="optional" order="30" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_DocumentAccountingStandard" xlink:label="dei_DocumentAccountingStandard" xlink:title="dei_DocumentAccountingStandard" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_DocumentAccountingStandard" xlink:title="Definition : dei_DocumentInformationLineItems to dei_DocumentAccountingStandard" xlink:type="arc" use="optional" order="31" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityShellCompany" xlink:label="dei_EntityShellCompany" xlink:title="dei_EntityShellCompany" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_EntityShellCompany" xlink:title="Definition : dei_DocumentInformationLineItems to dei_EntityShellCompany" xlink:type="arc" use="optional" order="32" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_IcfrAuditorAttestationFlag" xlink:label="dei_IcfrAuditorAttestationFlag" xlink:title="dei_IcfrAuditorAttestationFlag" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_IcfrAuditorAttestationFlag" xlink:title="Definition : dei_DocumentInformationLineItems to dei_IcfrAuditorAttestationFlag" xlink:type="arc" use="optional" order="33" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_AuditorName" xlink:label="dei_AuditorName" xlink:title="dei_AuditorName" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_AuditorName" xlink:title="Definition : dei_DocumentInformationLineItems to dei_AuditorName" xlink:type="arc" use="optional" order="34" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_AuditorFirmId" xlink:label="dei_AuditorFirmId" xlink:title="dei_AuditorFirmId" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_AuditorFirmId" xlink:title="Definition : dei_DocumentInformationLineItems to dei_AuditorFirmId" xlink:type="arc" use="optional" order="35" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_AuditorLocation" xlink:label="dei_AuditorLocation" xlink:title="dei_AuditorLocation" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_AuditorLocation" xlink:title="Definition : dei_DocumentInformationLineItems to dei_AuditorLocation" xlink:type="arc" use="optional" order="36" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_DocumentFinStmtRestatementRecoveryAnalysisFlag" xlink:label="dei_DocumentFinStmtRestatementRecoveryAnalysisFlag" xlink:title="dei_DocumentFinStmtRestatementRecoveryAnalysisFlag" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_DocumentFinStmtRestatementRecoveryAnalysisFlag" xlink:title="Definition : dei_DocumentInformationLineItems to dei_DocumentFinStmtRestatementRecoveryAnalysisFlag" xlink:type="arc" use="optional" order="37" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_DocumentFinStmtErrorCorrectionFlag" xlink:label="dei_DocumentFinStmtErrorCorrectionFlag" xlink:title="dei_DocumentFinStmtErrorCorrectionFlag" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_DocumentFinStmtErrorCorrectionFlag" xlink:title="Definition : dei_DocumentInformationLineItems to dei_DocumentFinStmtErrorCorrectionFlag" xlink:type="arc" use="optional" order="38" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_DocumentInformationTable" xlink:label="dei_DocumentInformationTable" xlink:title="dei_DocumentInformationTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_DocumentInformationTable" xlink:title="Definition : dei_DocumentInformationLineItems to dei_DocumentInformationTable" xlink:type="arc" use="optional" order="39" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityAddressesAddressTypeAxis" xlink:label="dei_EntityAddressesAddressTypeAxis" xlink:title="dei_EntityAddressesAddressTypeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="dei_DocumentInformationTable" xlink:to="dei_EntityAddressesAddressTypeAxis" xlink:title="Definition : dei_DocumentInformationTable to dei_EntityAddressesAddressTypeAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_AddressTypeDomain" xlink:label="dei_AddressTypeDomain" xlink:title="dei_AddressTypeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="dei_EntityAddressesAddressTypeAxis" xlink:to="dei_AddressTypeDomain" xlink:title="Definition : dei_EntityAddressesAddressTypeAxis to dei_AddressTypeDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_BusinessContactMember" xlink:label="dei_BusinessContactMember" xlink:title="dei_BusinessContactMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_AddressTypeDomain" xlink:to="dei_BusinessContactMember" xlink:title="Definition : dei_AddressTypeDomain to dei_BusinessContactMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_AddressTypeDomain" xlink:label="dei_AddressTypeDomain_1" xlink:title="dei_AddressTypeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="dei_EntityAddressesAddressTypeAxis" xlink:to="dei_AddressTypeDomain_1" xlink:title="Definition : dei_EntityAddressesAddressTypeAxis to dei_AddressTypeDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/RecoverabletaxesSummaryofRecoverableTaxesDetail">
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SummaryOfRecoverableTaxesLineItems" xlink:label="ugp_SummaryOfRecoverableTaxesLineItems" xlink:title="ugp_SummaryOfRecoverableTaxesLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ReceivablesFromTaxesOtherThanIncomeTax" xlink:label="ifrs-full_ReceivablesFromTaxesOtherThanIncomeTax" xlink:title="ifrs-full_ReceivablesFromTaxesOtherThanIncomeTax" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfRecoverableTaxesLineItems" xlink:to="ifrs-full_ReceivablesFromTaxesOtherThanIncomeTax" xlink:title="Definition : ugp_SummaryOfRecoverableTaxesLineItems to ifrs-full_ReceivablesFromTaxesOtherThanIncomeTax" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CurrentReceivablesFromTaxesOtherThanIncomeTax" xlink:label="ifrs-full_CurrentReceivablesFromTaxesOtherThanIncomeTax" xlink:title="ifrs-full_CurrentReceivablesFromTaxesOtherThanIncomeTax" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfRecoverableTaxesLineItems" xlink:to="ifrs-full_CurrentReceivablesFromTaxesOtherThanIncomeTax" xlink:title="Definition : ugp_SummaryOfRecoverableTaxesLineItems to ifrs-full_CurrentReceivablesFromTaxesOtherThanIncomeTax" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NoncurrentReceivablesFromTaxesOtherThanIncomeTax" xlink:label="ifrs-full_NoncurrentReceivablesFromTaxesOtherThanIncomeTax" xlink:title="ifrs-full_NoncurrentReceivablesFromTaxesOtherThanIncomeTax" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfRecoverableTaxesLineItems" xlink:to="ifrs-full_NoncurrentReceivablesFromTaxesOtherThanIncomeTax" xlink:title="Definition : ugp_SummaryOfRecoverableTaxesLineItems to ifrs-full_NoncurrentReceivablesFromTaxesOtherThanIncomeTax" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SummaryOfRecoverableTaxesTable" xlink:label="ugp_SummaryOfRecoverableTaxesTable" xlink:title="ugp_SummaryOfRecoverableTaxesTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ugp_SummaryOfRecoverableTaxesLineItems" xlink:to="ugp_SummaryOfRecoverableTaxesTable" xlink:title="Definition : ugp_SummaryOfRecoverableTaxesLineItems to ugp_SummaryOfRecoverableTaxesTable" xlink:type="arc" use="optional" order="3" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxesAxis" xlink:label="ugp_TaxesAxis" xlink:title="ugp_TaxesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_SummaryOfRecoverableTaxesTable" xlink:to="ugp_TaxesAxis" xlink:title="Definition : ugp_SummaryOfRecoverableTaxesTable to ugp_TaxesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxesDomain" xlink:label="ugp_TaxesDomain" xlink:title="ugp_TaxesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_TaxesAxis" xlink:to="ugp_TaxesDomain" xlink:title="Definition : ugp_TaxesAxis to ugp_TaxesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ICMSStatevatMember" xlink:label="ugp_ICMSStatevatMember" xlink:title="ugp_ICMSStatevatMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_TaxesDomain" xlink:to="ugp_ICMSStatevatMember" xlink:title="Definition : ugp_TaxesDomain to ugp_ICMSStatevatMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PisAndCofinsStateVATMember" xlink:label="ugp_PisAndCofinsStateVATMember" xlink:title="ugp_PisAndCofinsStateVATMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_TaxesDomain" xlink:to="ugp_PisAndCofinsStateVATMember" xlink:title="Definition : ugp_TaxesDomain to ugp_PisAndCofinsStateVATMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ValueAddedTaxIvaOfForeignSubsidiariesMember" xlink:label="ugp_ValueAddedTaxIvaOfForeignSubsidiariesMember" xlink:title="ugp_ValueAddedTaxIvaOfForeignSubsidiariesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_TaxesDomain" xlink:to="ugp_ValueAddedTaxIvaOfForeignSubsidiariesMember" xlink:title="Definition : ugp_TaxesDomain to ugp_ValueAddedTaxIvaOfForeignSubsidiariesMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OtherTaxesReceivableMember" xlink:label="ugp_OtherTaxesReceivableMember" xlink:title="ugp_OtherTaxesReceivableMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_TaxesDomain" xlink:to="ugp_OtherTaxesReceivableMember" xlink:title="Definition : ugp_TaxesDomain to ugp_OtherTaxesReceivableMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxesDomain" xlink:label="ugp_TaxesDomain_1" xlink:title="ugp_TaxesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_TaxesAxis" xlink:to="ugp_TaxesDomain_1" xlink:title="Definition : ugp_TaxesAxis to ugp_TaxesDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/InventoriesBreakdownofInventoriesDetail">
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SummaryOfInventoriesLineItems" xlink:label="ugp_SummaryOfInventoriesLineItems" xlink:title="ugp_SummaryOfInventoriesLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_Inventories" xlink:label="ifrs-full_Inventories" xlink:title="ifrs-full_Inventories" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfInventoriesLineItems" xlink:to="ifrs-full_Inventories" xlink:title="Definition : ugp_SummaryOfInventoriesLineItems to ifrs-full_Inventories" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ClassesOfInventoriesTable" xlink:label="ugp_ClassesOfInventoriesTable" xlink:title="ugp_ClassesOfInventoriesTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ugp_SummaryOfInventoriesLineItems" xlink:to="ugp_ClassesOfInventoriesTable" xlink:title="Definition : ugp_SummaryOfInventoriesLineItems to ugp_ClassesOfInventoriesTable" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_InventoriesAxis" xlink:label="ugp_InventoriesAxis" xlink:title="ugp_InventoriesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_ClassesOfInventoriesTable" xlink:to="ugp_InventoriesAxis" xlink:title="Definition : ugp_ClassesOfInventoriesTable to ugp_InventoriesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_InventoriesDomain" xlink:label="ugp_InventoriesDomain" xlink:title="ugp_InventoriesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_InventoriesAxis" xlink:to="ugp_InventoriesDomain" xlink:title="Definition : ugp_InventoriesAxis to ugp_InventoriesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_FuelsLubricantsAndGreasesMember" xlink:label="ugp_FuelsLubricantsAndGreasesMember" xlink:title="ugp_FuelsLubricantsAndGreasesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_InventoriesDomain" xlink:to="ugp_FuelsLubricantsAndGreasesMember" xlink:title="Definition : ugp_InventoriesDomain to ugp_FuelsLubricantsAndGreasesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_RawMaterialsMember" xlink:label="ugp_RawMaterialsMember" xlink:title="ugp_RawMaterialsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_InventoriesDomain" xlink:to="ugp_RawMaterialsMember" xlink:title="Definition : ugp_InventoriesDomain to ugp_RawMaterialsMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PurchaseForFutureDeliveryMember" xlink:label="ugp_PurchaseForFutureDeliveryMember" xlink:title="ugp_PurchaseForFutureDeliveryMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_InventoriesDomain" xlink:to="ugp_PurchaseForFutureDeliveryMember" xlink:title="Definition : ugp_InventoriesDomain to ugp_PurchaseForFutureDeliveryMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ConsumableMaterialsAndOtherItemsForResaleMember" xlink:label="ugp_ConsumableMaterialsAndOtherItemsForResaleMember" xlink:title="ugp_ConsumableMaterialsAndOtherItemsForResaleMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_InventoriesDomain" xlink:to="ugp_ConsumableMaterialsAndOtherItemsForResaleMember" xlink:title="Definition : ugp_InventoriesDomain to ugp_ConsumableMaterialsAndOtherItemsForResaleMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LiquifiedPetroleumGasMember" xlink:label="ugp_LiquifiedPetroleumGasMember" xlink:title="ugp_LiquifiedPetroleumGasMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_InventoriesDomain" xlink:to="ugp_LiquifiedPetroleumGasMember" xlink:title="Definition : ugp_InventoriesDomain to ugp_LiquifiedPetroleumGasMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PropertiesForResaleMember" xlink:label="ugp_PropertiesForResaleMember" xlink:title="ugp_PropertiesForResaleMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_InventoriesDomain" xlink:to="ugp_PropertiesForResaleMember" xlink:title="Definition : ugp_InventoriesDomain to ugp_PropertiesForResaleMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_FinishedGoodsMember" xlink:label="ugp_FinishedGoodsMember" xlink:title="ugp_FinishedGoodsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_InventoriesDomain" xlink:to="ugp_FinishedGoodsMember" xlink:title="Definition : ugp_InventoriesDomain to ugp_FinishedGoodsMember" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_WorkInProcessMember" xlink:label="ugp_WorkInProcessMember" xlink:title="ugp_WorkInProcessMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_InventoriesDomain" xlink:to="ugp_WorkInProcessMember" xlink:title="Definition : ugp_InventoriesDomain to ugp_WorkInProcessMember" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PharmaceuticalHygieneBeautyProductsMember" xlink:label="ugp_PharmaceuticalHygieneBeautyProductsMember" xlink:title="ugp_PharmaceuticalHygieneBeautyProductsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_InventoriesDomain" xlink:to="ugp_PharmaceuticalHygieneBeautyProductsMember" xlink:title="Definition : ugp_InventoriesDomain to ugp_PharmaceuticalHygieneBeautyProductsMember" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_InventoriesDomain" xlink:label="ugp_InventoriesDomain_1" xlink:title="ugp_InventoriesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_InventoriesAxis" xlink:to="ugp_InventoriesDomain_1" xlink:title="Definition : ugp_InventoriesAxis to ugp_InventoriesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/TradereceivablesresellerfinancingandotherreceivablesBreakdownofResellerFinancingGrossofLossAllowanceforExpectedCreditLossesDetail">
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SummaryOfTradeReceivablesLineItems" xlink:label="ugp_SummaryOfTradeReceivablesLineItems" xlink:title="ugp_SummaryOfTradeReceivablesLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialAssetsTable" xlink:label="ifrs-full_DisclosureOfFinancialAssetsTable" xlink:title="ifrs-full_DisclosureOfFinancialAssetsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ugp_SummaryOfTradeReceivablesLineItems" xlink:to="ifrs-full_DisclosureOfFinancialAssetsTable" xlink:title="Definition : ugp_SummaryOfTradeReceivablesLineItems to ifrs-full_DisclosureOfFinancialAssetsTable" xlink:type="arc" use="optional" order="0" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PastDueStatusAxis" xlink:label="ifrs-full_PastDueStatusAxis" xlink:title="ifrs-full_PastDueStatusAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialAssetsTable" xlink:to="ifrs-full_PastDueStatusAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialAssetsTable to ifrs-full_PastDueStatusAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PastDueStatusDomain" xlink:label="ifrs-full_PastDueStatusDomain" xlink:title="ifrs-full_PastDueStatusDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_PastDueStatusAxis" xlink:to="ifrs-full_PastDueStatusDomain" xlink:title="Definition : ifrs-full_PastDueStatusAxis to ifrs-full_PastDueStatusDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CurrentMember" xlink:label="ifrs-full_CurrentMember" xlink:title="ifrs-full_CurrentMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_PastDueStatusDomain" xlink:to="ifrs-full_CurrentMember" xlink:title="Definition : ifrs-full_PastDueStatusDomain to ifrs-full_CurrentMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NotLaterThanOneMonthMember" xlink:label="ifrs-full_NotLaterThanOneMonthMember" xlink:title="ifrs-full_NotLaterThanOneMonthMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_PastDueStatusDomain" xlink:to="ifrs-full_NotLaterThanOneMonthMember" xlink:title="Definition : ifrs-full_PastDueStatusDomain to ifrs-full_NotLaterThanOneMonthMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanOneMonthAndNotLaterThanTwoMonthsMember" xlink:label="ifrs-full_LaterThanOneMonthAndNotLaterThanTwoMonthsMember" xlink:title="ifrs-full_LaterThanOneMonthAndNotLaterThanTwoMonthsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_PastDueStatusDomain" xlink:to="ifrs-full_LaterThanOneMonthAndNotLaterThanTwoMonthsMember" xlink:title="Definition : ifrs-full_PastDueStatusDomain to ifrs-full_LaterThanOneMonthAndNotLaterThanTwoMonthsMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanTwoMonthsAndNotLaterThanThreeMonthsMember" xlink:label="ifrs-full_LaterThanTwoMonthsAndNotLaterThanThreeMonthsMember" xlink:title="ifrs-full_LaterThanTwoMonthsAndNotLaterThanThreeMonthsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_PastDueStatusDomain" xlink:to="ifrs-full_LaterThanTwoMonthsAndNotLaterThanThreeMonthsMember" xlink:title="Definition : ifrs-full_PastDueStatusDomain to ifrs-full_LaterThanTwoMonthsAndNotLaterThanThreeMonthsMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanThreeMonthsAndNotLaterThanSixMonthsMember" xlink:label="ifrs-full_LaterThanThreeMonthsAndNotLaterThanSixMonthsMember" xlink:title="ifrs-full_LaterThanThreeMonthsAndNotLaterThanSixMonthsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_PastDueStatusDomain" xlink:to="ifrs-full_LaterThanThreeMonthsAndNotLaterThanSixMonthsMember" xlink:title="Definition : ifrs-full_PastDueStatusDomain to ifrs-full_LaterThanThreeMonthsAndNotLaterThanSixMonthsMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanSixMonthsMember" xlink:label="ifrs-full_LaterThanSixMonthsMember" xlink:title="ifrs-full_LaterThanSixMonthsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_PastDueStatusDomain" xlink:to="ifrs-full_LaterThanSixMonthsMember" xlink:title="Definition : ifrs-full_PastDueStatusDomain to ifrs-full_LaterThanSixMonthsMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PastDueStatusDomain" xlink:label="ifrs-full_PastDueStatusDomain_1" xlink:title="ifrs-full_PastDueStatusDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_PastDueStatusAxis" xlink:to="ifrs-full_PastDueStatusDomain_1" xlink:title="Definition : ifrs-full_PastDueStatusAxis to ifrs-full_PastDueStatusDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsAxis" xlink:label="ifrs-full_ClassesOfFinancialAssetsAxis" xlink:title="ifrs-full_ClassesOfFinancialAssetsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialAssetsTable" xlink:to="ifrs-full_ClassesOfFinancialAssetsAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialAssetsTable to ifrs-full_ClassesOfFinancialAssetsAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsDomain" xlink:label="ifrs-full_ClassesOfFinancialAssetsDomain" xlink:title="ifrs-full_ClassesOfFinancialAssetsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ClassesOfFinancialAssetsAxis" xlink:to="ifrs-full_ClassesOfFinancialAssetsDomain" xlink:title="Definition : ifrs-full_ClassesOfFinancialAssetsAxis to ifrs-full_ClassesOfFinancialAssetsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ResellerFinancingIpirangaMember" xlink:label="ugp_ResellerFinancingIpirangaMember" xlink:title="ugp_ResellerFinancingIpirangaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialAssetsDomain" xlink:to="ugp_ResellerFinancingIpirangaMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialAssetsDomain to ugp_ResellerFinancingIpirangaMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsDomain" xlink:label="ifrs-full_ClassesOfFinancialAssetsDomain_1" xlink:title="ifrs-full_ClassesOfFinancialAssetsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ClassesOfFinancialAssetsAxis" xlink:to="ifrs-full_ClassesOfFinancialAssetsDomain_1" xlink:title="Definition : ifrs-full_ClassesOfFinancialAssetsAxis to ifrs-full_ClassesOfFinancialAssetsDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/TradereceivablesresellerfinancingandotherreceivablesCompositionofResellerFinancingDetail">
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SummaryOfTradeReceivablesLineItems" xlink:label="ugp_SummaryOfTradeReceivablesLineItems" xlink:title="ugp_SummaryOfTradeReceivablesLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ResellerFinancingGross" xlink:label="ugp_ResellerFinancingGross" xlink:title="ugp_ResellerFinancingGross" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfTradeReceivablesLineItems" xlink:to="ugp_ResellerFinancingGross" xlink:title="Definition : ugp_SummaryOfTradeReceivablesLineItems to ugp_ResellerFinancingGross" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TradeReceivablesAndResellerFinancingAllowanceForCreditLoss" xlink:label="ugp_TradeReceivablesAndResellerFinancingAllowanceForCreditLoss" xlink:title="ugp_TradeReceivablesAndResellerFinancingAllowanceForCreditLoss" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfTradeReceivablesLineItems" xlink:to="ugp_TradeReceivablesAndResellerFinancingAllowanceForCreditLoss" xlink:title="Definition : ugp_SummaryOfTradeReceivablesLineItems to ugp_TradeReceivablesAndResellerFinancingAllowanceForCreditLoss" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ResellerFinancing" xlink:label="ugp_ResellerFinancing" xlink:title="ugp_ResellerFinancing" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfTradeReceivablesLineItems" xlink:to="ugp_ResellerFinancing" xlink:title="Definition : ugp_SummaryOfTradeReceivablesLineItems to ugp_ResellerFinancing" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CurrentResellerFinancing" xlink:label="ugp_CurrentResellerFinancing" xlink:title="ugp_CurrentResellerFinancing" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfTradeReceivablesLineItems" xlink:to="ugp_CurrentResellerFinancing" xlink:title="Definition : ugp_SummaryOfTradeReceivablesLineItems to ugp_CurrentResellerFinancing" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NonCurrentResellerFinancing" xlink:label="ugp_NonCurrentResellerFinancing" xlink:title="ugp_NonCurrentResellerFinancing" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfTradeReceivablesLineItems" xlink:to="ugp_NonCurrentResellerFinancing" xlink:title="Definition : ugp_SummaryOfTradeReceivablesLineItems to ugp_NonCurrentResellerFinancing" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialAssetsTable" xlink:label="ifrs-full_DisclosureOfFinancialAssetsTable" xlink:title="ifrs-full_DisclosureOfFinancialAssetsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ugp_SummaryOfTradeReceivablesLineItems" xlink:to="ifrs-full_DisclosureOfFinancialAssetsTable" xlink:title="Definition : ugp_SummaryOfTradeReceivablesLineItems to ifrs-full_DisclosureOfFinancialAssetsTable" xlink:type="arc" order="5" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TradeReceivablesAxis" xlink:label="ugp_TradeReceivablesAxis" xlink:title="ugp_TradeReceivablesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialAssetsTable" xlink:to="ugp_TradeReceivablesAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialAssetsTable to ugp_TradeReceivablesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TradeReceivablesDomain" xlink:label="ugp_TradeReceivablesDomain" xlink:title="ugp_TradeReceivablesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_TradeReceivablesAxis" xlink:to="ugp_TradeReceivablesDomain" xlink:title="Definition : ugp_TradeReceivablesAxis to ugp_TradeReceivablesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ResellerFinancingIpirangaMember" xlink:label="ugp_ResellerFinancingIpirangaMember" xlink:title="ugp_ResellerFinancingIpirangaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_TradeReceivablesDomain" xlink:to="ugp_ResellerFinancingIpirangaMember" xlink:title="Definition : ugp_TradeReceivablesDomain to ugp_ResellerFinancingIpirangaMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TradeReceivablesDomain" xlink:label="ugp_TradeReceivablesDomain_1" xlink:title="ugp_TradeReceivablesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_TradeReceivablesAxis" xlink:to="ugp_TradeReceivablesDomain_1" xlink:title="Definition : ugp_TradeReceivablesAxis to ugp_TradeReceivablesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/TradereceivablesresellerfinancingandotherreceivablesSummaryofMovementsintheAllowanceforLossAllowanceforExpectedCreditLossesDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialAssetsLineItems" xlink:label="ifrs-full_DisclosureOfFinancialAssetsLineItems" xlink:title="ifrs-full_DisclosureOfFinancialAssetsLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TradeReceivablesAndResellerFinancingAllowanceForCreditLoss" xlink:label="ugp_TradeReceivablesAndResellerFinancingAllowanceForCreditLoss" xlink:title="ugp_TradeReceivablesAndResellerFinancingAllowanceForCreditLoss" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialAssetsLineItems" xlink:to="ugp_TradeReceivablesAndResellerFinancingAllowanceForCreditLoss" xlink:title="Definition : ifrs-full_DisclosureOfFinancialAssetsLineItems to ugp_TradeReceivablesAndResellerFinancingAllowanceForCreditLoss" xlink:type="arc" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreaseThroughProvisionOfAllowanceForCreditLossOnTradeReceivablesAndResellerFinancing" xlink:label="ugp_IncreaseThroughProvisionOfAllowanceForCreditLossOnTradeReceivablesAndResellerFinancing" xlink:title="ugp_IncreaseThroughProvisionOfAllowanceForCreditLossOnTradeReceivablesAndResellerFinancing" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialAssetsLineItems" xlink:to="ugp_IncreaseThroughProvisionOfAllowanceForCreditLossOnTradeReceivablesAndResellerFinancing" xlink:title="Definition : ifrs-full_DisclosureOfFinancialAssetsLineItems to ugp_IncreaseThroughProvisionOfAllowanceForCreditLossOnTradeReceivablesAndResellerFinancing" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DecreaseThroughReversalOfAllowanceForCreditLossOnTradeReceivablesAndResellerFinancing" xlink:label="ugp_DecreaseThroughReversalOfAllowanceForCreditLossOnTradeReceivablesAndResellerFinancing" xlink:title="ugp_DecreaseThroughReversalOfAllowanceForCreditLossOnTradeReceivablesAndResellerFinancing" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialAssetsLineItems" xlink:to="ugp_DecreaseThroughReversalOfAllowanceForCreditLossOnTradeReceivablesAndResellerFinancing" xlink:title="Definition : ifrs-full_DisclosureOfFinancialAssetsLineItems to ugp_DecreaseThroughReversalOfAllowanceForCreditLossOnTradeReceivablesAndResellerFinancing" xlink:type="arc" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DecreaseThroughWriteOffsOfAllowanceForCreditLossOnTradeReceivablesAndResellerFinancing" xlink:label="ugp_DecreaseThroughWriteOffsOfAllowanceForCreditLossOnTradeReceivablesAndResellerFinancing" xlink:title="ugp_DecreaseThroughWriteOffsOfAllowanceForCreditLossOnTradeReceivablesAndResellerFinancing" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialAssetsLineItems" xlink:to="ugp_DecreaseThroughWriteOffsOfAllowanceForCreditLossOnTradeReceivablesAndResellerFinancing" xlink:title="Definition : ifrs-full_DisclosureOfFinancialAssetsLineItems to ugp_DecreaseThroughWriteOffsOfAllowanceForCreditLossOnTradeReceivablesAndResellerFinancing" xlink:type="arc" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DecreaseThroughClassifiedAsHeldForSaleAllowanceAccountForCreditLossesOfFinancialAssets" xlink:label="ugp_DecreaseThroughClassifiedAsHeldForSaleAllowanceAccountForCreditLossesOfFinancialAssets" xlink:title="ugp_DecreaseThroughClassifiedAsHeldForSaleAllowanceAccountForCreditLossesOfFinancialAssets" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialAssetsLineItems" xlink:to="ugp_DecreaseThroughClassifiedAsHeldForSaleAllowanceAccountForCreditLossesOfFinancialAssets" xlink:title="Definition : ifrs-full_DisclosureOfFinancialAssetsLineItems to ugp_DecreaseThroughClassifiedAsHeldForSaleAllowanceAccountForCreditLossesOfFinancialAssets" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialAssetsTable" xlink:label="ifrs-full_DisclosureOfFinancialAssetsTable" xlink:title="ifrs-full_DisclosureOfFinancialAssetsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfFinancialAssetsLineItems" xlink:to="ifrs-full_DisclosureOfFinancialAssetsTable" xlink:title="Definition : ifrs-full_DisclosureOfFinancialAssetsLineItems to ifrs-full_DisclosureOfFinancialAssetsTable" xlink:type="arc" order="6" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsAxis" xlink:label="ifrs-full_ClassesOfFinancialAssetsAxis" xlink:title="ifrs-full_ClassesOfFinancialAssetsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialAssetsTable" xlink:to="ifrs-full_ClassesOfFinancialAssetsAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialAssetsTable to ifrs-full_ClassesOfFinancialAssetsAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsDomain" xlink:label="ifrs-full_ClassesOfFinancialAssetsDomain" xlink:title="ifrs-full_ClassesOfFinancialAssetsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ClassesOfFinancialAssetsAxis" xlink:to="ifrs-full_ClassesOfFinancialAssetsDomain" xlink:title="Definition : ifrs-full_ClassesOfFinancialAssetsAxis to ifrs-full_ClassesOfFinancialAssetsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TradeReceivablesMember" xlink:label="ifrs-full_TradeReceivablesMember" xlink:title="ifrs-full_TradeReceivablesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialAssetsDomain" xlink:to="ifrs-full_TradeReceivablesMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialAssetsDomain to ifrs-full_TradeReceivablesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ResellerFinancingIpirangaMember" xlink:label="ugp_ResellerFinancingIpirangaMember" xlink:title="ugp_ResellerFinancingIpirangaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialAssetsDomain" xlink:to="ugp_ResellerFinancingIpirangaMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialAssetsDomain to ugp_ResellerFinancingIpirangaMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsDomain" xlink:label="ifrs-full_ClassesOfFinancialAssetsDomain_1" xlink:title="ifrs-full_ClassesOfFinancialAssetsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ClassesOfFinancialAssetsAxis" xlink:to="ifrs-full_ClassesOfFinancialAssetsDomain_1" xlink:title="Definition : ifrs-full_ClassesOfFinancialAssetsAxis to ifrs-full_ClassesOfFinancialAssetsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/TradereceivablesresellerfinancingandotherreceivablesBreakdownofLossAllowanceforExpectedCreditLossesDetail">
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SummaryOfTradeReceivablesLineItems" xlink:label="ugp_SummaryOfTradeReceivablesLineItems" xlink:title="ugp_SummaryOfTradeReceivablesLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialAssetsTable" xlink:label="ifrs-full_DisclosureOfFinancialAssetsTable" xlink:title="ifrs-full_DisclosureOfFinancialAssetsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ugp_SummaryOfTradeReceivablesLineItems" xlink:to="ifrs-full_DisclosureOfFinancialAssetsTable" xlink:title="Definition : ugp_SummaryOfTradeReceivablesLineItems to ifrs-full_DisclosureOfFinancialAssetsTable" xlink:type="arc" use="optional" order="0" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsAxis" xlink:label="ifrs-full_ClassesOfFinancialAssetsAxis" xlink:title="ifrs-full_ClassesOfFinancialAssetsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialAssetsTable" xlink:to="ifrs-full_ClassesOfFinancialAssetsAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialAssetsTable to ifrs-full_ClassesOfFinancialAssetsAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsDomain" xlink:label="ifrs-full_ClassesOfFinancialAssetsDomain" xlink:title="ifrs-full_ClassesOfFinancialAssetsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ClassesOfFinancialAssetsAxis" xlink:to="ifrs-full_ClassesOfFinancialAssetsDomain" xlink:title="Definition : ifrs-full_ClassesOfFinancialAssetsAxis to ifrs-full_ClassesOfFinancialAssetsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TradeReceivablesMember" xlink:label="ifrs-full_TradeReceivablesMember" xlink:title="ifrs-full_TradeReceivablesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialAssetsDomain" xlink:to="ifrs-full_TradeReceivablesMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialAssetsDomain to ifrs-full_TradeReceivablesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsDomain" xlink:label="ifrs-full_ClassesOfFinancialAssetsDomain_1" xlink:title="ifrs-full_ClassesOfFinancialAssetsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ClassesOfFinancialAssetsAxis" xlink:to="ifrs-full_ClassesOfFinancialAssetsDomain_1" xlink:title="Definition : ifrs-full_ClassesOfFinancialAssetsAxis to ifrs-full_ClassesOfFinancialAssetsDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PastDueStatusAxis" xlink:label="ifrs-full_PastDueStatusAxis" xlink:title="ifrs-full_PastDueStatusAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialAssetsTable" xlink:to="ifrs-full_PastDueStatusAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialAssetsTable to ifrs-full_PastDueStatusAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PastDueStatusDomain" xlink:label="ifrs-full_PastDueStatusDomain" xlink:title="ifrs-full_PastDueStatusDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_PastDueStatusAxis" xlink:to="ifrs-full_PastDueStatusDomain" xlink:title="Definition : ifrs-full_PastDueStatusAxis to ifrs-full_PastDueStatusDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CurrentMember" xlink:label="ifrs-full_CurrentMember" xlink:title="ifrs-full_CurrentMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_PastDueStatusDomain" xlink:to="ifrs-full_CurrentMember" xlink:title="Definition : ifrs-full_PastDueStatusDomain to ifrs-full_CurrentMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NotLaterThanOneMonthMember" xlink:label="ifrs-full_NotLaterThanOneMonthMember" xlink:title="ifrs-full_NotLaterThanOneMonthMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_PastDueStatusDomain" xlink:to="ifrs-full_NotLaterThanOneMonthMember" xlink:title="Definition : ifrs-full_PastDueStatusDomain to ifrs-full_NotLaterThanOneMonthMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanOneMonthAndNotLaterThanTwoMonthsMember" xlink:label="ifrs-full_LaterThanOneMonthAndNotLaterThanTwoMonthsMember" xlink:title="ifrs-full_LaterThanOneMonthAndNotLaterThanTwoMonthsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_PastDueStatusDomain" xlink:to="ifrs-full_LaterThanOneMonthAndNotLaterThanTwoMonthsMember" xlink:title="Definition : ifrs-full_PastDueStatusDomain to ifrs-full_LaterThanOneMonthAndNotLaterThanTwoMonthsMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanTwoMonthsAndNotLaterThanThreeMonthsMember" xlink:label="ifrs-full_LaterThanTwoMonthsAndNotLaterThanThreeMonthsMember" xlink:title="ifrs-full_LaterThanTwoMonthsAndNotLaterThanThreeMonthsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_PastDueStatusDomain" xlink:to="ifrs-full_LaterThanTwoMonthsAndNotLaterThanThreeMonthsMember" xlink:title="Definition : ifrs-full_PastDueStatusDomain to ifrs-full_LaterThanTwoMonthsAndNotLaterThanThreeMonthsMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanThreeMonthsAndNotLaterThanSixMonthsMember" xlink:label="ifrs-full_LaterThanThreeMonthsAndNotLaterThanSixMonthsMember" xlink:title="ifrs-full_LaterThanThreeMonthsAndNotLaterThanSixMonthsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_PastDueStatusDomain" xlink:to="ifrs-full_LaterThanThreeMonthsAndNotLaterThanSixMonthsMember" xlink:title="Definition : ifrs-full_PastDueStatusDomain to ifrs-full_LaterThanThreeMonthsAndNotLaterThanSixMonthsMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanSixMonthsMember" xlink:label="ifrs-full_LaterThanSixMonthsMember" xlink:title="ifrs-full_LaterThanSixMonthsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_PastDueStatusDomain" xlink:to="ifrs-full_LaterThanSixMonthsMember" xlink:title="Definition : ifrs-full_PastDueStatusDomain to ifrs-full_LaterThanSixMonthsMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PastDueStatusDomain" xlink:label="ifrs-full_PastDueStatusDomain_1" xlink:title="ifrs-full_PastDueStatusDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_PastDueStatusAxis" xlink:to="ifrs-full_PastDueStatusDomain_1" xlink:title="Definition : ifrs-full_PastDueStatusAxis to ifrs-full_PastDueStatusDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/TradereceivablesresellerfinancingandotherreceivablesTradereceivablesDetail">
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SummaryOfTradeReceivablesLineItems" xlink:label="ugp_SummaryOfTradeReceivablesLineItems" xlink:title="ugp_SummaryOfTradeReceivablesLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TradeReceivablesGross" xlink:label="ugp_TradeReceivablesGross" xlink:title="ugp_TradeReceivablesGross" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfTradeReceivablesLineItems" xlink:to="ugp_TradeReceivablesGross" xlink:title="Definition : ugp_SummaryOfTradeReceivablesLineItems to ugp_TradeReceivablesGross" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TradeReceivablesDueFromRelatedPartiesGross" xlink:label="ugp_TradeReceivablesDueFromRelatedPartiesGross" xlink:title="ugp_TradeReceivablesDueFromRelatedPartiesGross" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfTradeReceivablesLineItems" xlink:to="ugp_TradeReceivablesDueFromRelatedPartiesGross" xlink:title="Definition : ugp_SummaryOfTradeReceivablesLineItems to ugp_TradeReceivablesDueFromRelatedPartiesGross" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TradeReceivablesAndResellerFinancingAllowanceForCreditLoss" xlink:label="ugp_TradeReceivablesAndResellerFinancingAllowanceForCreditLoss" xlink:title="ugp_TradeReceivablesAndResellerFinancingAllowanceForCreditLoss" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfTradeReceivablesLineItems" xlink:to="ugp_TradeReceivablesAndResellerFinancingAllowanceForCreditLoss" xlink:title="Definition : ugp_SummaryOfTradeReceivablesLineItems to ugp_TradeReceivablesAndResellerFinancingAllowanceForCreditLoss" xlink:type="arc" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TradeReceivables" xlink:label="ifrs-full_TradeReceivables" xlink:title="ifrs-full_TradeReceivables" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfTradeReceivablesLineItems" xlink:to="ifrs-full_TradeReceivables" xlink:title="Definition : ugp_SummaryOfTradeReceivablesLineItems to ifrs-full_TradeReceivables" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CurrentTradeReceivables" xlink:label="ifrs-full_CurrentTradeReceivables" xlink:title="ifrs-full_CurrentTradeReceivables" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfTradeReceivablesLineItems" xlink:to="ifrs-full_CurrentTradeReceivables" xlink:title="Definition : ugp_SummaryOfTradeReceivablesLineItems to ifrs-full_CurrentTradeReceivables" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NoncurrentTradeReceivables" xlink:label="ifrs-full_NoncurrentTradeReceivables" xlink:title="ifrs-full_NoncurrentTradeReceivables" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfTradeReceivablesLineItems" xlink:to="ifrs-full_NoncurrentTradeReceivables" xlink:title="Definition : ugp_SummaryOfTradeReceivablesLineItems to ifrs-full_NoncurrentTradeReceivables" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialAssetsTable" xlink:label="ifrs-full_DisclosureOfFinancialAssetsTable" xlink:title="ifrs-full_DisclosureOfFinancialAssetsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ugp_SummaryOfTradeReceivablesLineItems" xlink:to="ifrs-full_DisclosureOfFinancialAssetsTable" xlink:title="Definition : ugp_SummaryOfTradeReceivablesLineItems to ifrs-full_DisclosureOfFinancialAssetsTable" xlink:type="arc" order="6" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TradeReceivablesAxis" xlink:label="ugp_TradeReceivablesAxis" xlink:title="ugp_TradeReceivablesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialAssetsTable" xlink:to="ugp_TradeReceivablesAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialAssetsTable to ugp_TradeReceivablesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TradeReceivablesDomain" xlink:label="ugp_TradeReceivablesDomain" xlink:title="ugp_TradeReceivablesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_TradeReceivablesAxis" xlink:to="ugp_TradeReceivablesDomain" xlink:title="Definition : ugp_TradeReceivablesAxis to ugp_TradeReceivablesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TradeReceivablesMember" xlink:label="ifrs-full_TradeReceivablesMember" xlink:title="ifrs-full_TradeReceivablesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_TradeReceivablesDomain" xlink:to="ifrs-full_TradeReceivablesMember" xlink:title="Definition : ugp_TradeReceivablesDomain to ifrs-full_TradeReceivablesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TradeReceivablesDomain" xlink:label="ugp_TradeReceivablesDomain_1" xlink:title="ugp_TradeReceivablesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_TradeReceivablesAxis" xlink:to="ugp_TradeReceivablesDomain_1" xlink:title="Definition : ugp_TradeReceivablesAxis to ugp_TradeReceivablesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MajorCustomersAxis" xlink:label="srt_MajorCustomersAxis" xlink:title="srt_MajorCustomersAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialAssetsTable" xlink:to="srt_MajorCustomersAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialAssetsTable to srt_MajorCustomersAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_NameOfMajorCustomerDomain" xlink:label="srt_NameOfMajorCustomerDomain" xlink:title="srt_NameOfMajorCustomerDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_MajorCustomersAxis" xlink:to="srt_NameOfMajorCustomerDomain" xlink:title="Definition : srt_MajorCustomersAxis to srt_NameOfMajorCustomerDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DomesticCustomersMember" xlink:label="ugp_DomesticCustomersMember" xlink:title="ugp_DomesticCustomersMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_NameOfMajorCustomerDomain" xlink:to="ugp_DomesticCustomersMember" xlink:title="Definition : srt_NameOfMajorCustomerDomain to ugp_DomesticCustomersMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ForeignCustomersMember" xlink:label="ugp_ForeignCustomersMember" xlink:title="ugp_ForeignCustomersMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_NameOfMajorCustomerDomain" xlink:to="ugp_ForeignCustomersMember" xlink:title="Definition : srt_NameOfMajorCustomerDomain to ugp_ForeignCustomersMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_NameOfMajorCustomerDomain" xlink:label="srt_NameOfMajorCustomerDomain_1" xlink:title="srt_NameOfMajorCustomerDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_MajorCustomersAxis" xlink:to="srt_NameOfMajorCustomerDomain_1" xlink:title="Definition : srt_MajorCustomersAxis to srt_NameOfMajorCustomerDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/AcquisitionofInterestandControlTables">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:label="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:title="ifrs-full_DisclosureOfBusinessCombinationsLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ScheduleOfTransactionAmountsForAcquiringInterestTableTextBlock" xlink:label="ugp_ScheduleOfTransactionAmountsForAcquiringInterestTableTextBlock" xlink:title="ugp_ScheduleOfTransactionAmountsForAcquiringInterestTableTextBlock" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ugp_ScheduleOfTransactionAmountsForAcquiringInterestTableTextBlock" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ugp_ScheduleOfTransactionAmountsForAcquiringInterestTableTextBlock" xlink:type="arc" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutBusinessCombinationsExplanatory" xlink:label="ifrs-full_DisclosureOfDetailedInformationAboutBusinessCombinationsExplanatory" xlink:title="ifrs-full_DisclosureOfDetailedInformationAboutBusinessCombinationsExplanatory" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ifrs-full_DisclosureOfDetailedInformationAboutBusinessCombinationsExplanatory" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ifrs-full_DisclosureOfDetailedInformationAboutBusinessCombinationsExplanatory" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ScheduleOfAcquiredIntangibleAssetsThatWereNotRecognizedInBooksOfAcquiredEntityTableTextBlock" xlink:label="ugp_ScheduleOfAcquiredIntangibleAssetsThatWereNotRecognizedInBooksOfAcquiredEntityTableTextBlock" xlink:title="ugp_ScheduleOfAcquiredIntangibleAssetsThatWereNotRecognizedInBooksOfAcquiredEntityTableTextBlock" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ugp_ScheduleOfAcquiredIntangibleAssetsThatWereNotRecognizedInBooksOfAcquiredEntityTableTextBlock" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ugp_ScheduleOfAcquiredIntangibleAssetsThatWereNotRecognizedInBooksOfAcquiredEntityTableTextBlock" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:label="ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:title="ifrs-full_DisclosureOfBusinessCombinationsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:type="arc" order="3" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BusinessCombinationsAxis" xlink:label="ifrs-full_BusinessCombinationsAxis" xlink:title="ifrs-full_BusinessCombinationsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:to="ifrs-full_BusinessCombinationsAxis" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsTable to ifrs-full_BusinessCombinationsAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BusinessCombinationsDomain" xlink:label="ifrs-full_BusinessCombinationsDomain" xlink:title="ifrs-full_BusinessCombinationsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_BusinessCombinationsAxis" xlink:to="ifrs-full_BusinessCombinationsDomain" xlink:title="Definition : ifrs-full_BusinessCombinationsAxis to ifrs-full_BusinessCombinationsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_HidroviasDoBrasilMember" xlink:label="ugp_HidroviasDoBrasilMember" xlink:title="ugp_HidroviasDoBrasilMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_HidroviasDoBrasilMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_HidroviasDoBrasilMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_WtzParticipacoesSAMember" xlink:label="ugp_WtzParticipacoesSAMember" xlink:title="ugp_WtzParticipacoesSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_WtzParticipacoesSAMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_WtzParticipacoesSAMember" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SerraDieselGroupMember" xlink:label="ugp_SerraDieselGroupMember" xlink:title="ugp_SerraDieselGroupMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_SerraDieselGroupMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_SerraDieselGroupMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OplaGroupMember" xlink:label="ugp_OplaGroupMember" xlink:title="ugp_OplaGroupMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_OplaGroupMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_OplaGroupMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BusinessCombinationsDomain" xlink:label="ifrs-full_BusinessCombinationsDomain_1" xlink:title="ifrs-full_BusinessCombinationsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_BusinessCombinationsAxis" xlink:to="ifrs-full_BusinessCombinationsDomain_1" xlink:title="Definition : ifrs-full_BusinessCombinationsAxis to ifrs-full_BusinessCombinationsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/TradereceivablesresellerfinancingandotherreceivablesAdditionalInformationDetail">
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SummaryOfTradeReceivablesLineItems" xlink:label="ugp_SummaryOfTradeReceivablesLineItems" xlink:title="ugp_SummaryOfTradeReceivablesLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ResellerFinancingAveragePaymentTerm" xlink:label="ugp_ResellerFinancingAveragePaymentTerm" xlink:title="ugp_ResellerFinancingAveragePaymentTerm" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfTradeReceivablesLineItems" xlink:to="ugp_ResellerFinancingAveragePaymentTerm" xlink:title="Definition : ugp_SummaryOfTradeReceivablesLineItems to ugp_ResellerFinancingAveragePaymentTerm" xlink:type="arc" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialAssetsTable" xlink:label="ifrs-full_DisclosureOfFinancialAssetsTable" xlink:title="ifrs-full_DisclosureOfFinancialAssetsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ugp_SummaryOfTradeReceivablesLineItems" xlink:to="ifrs-full_DisclosureOfFinancialAssetsTable" xlink:title="Definition : ugp_SummaryOfTradeReceivablesLineItems to ifrs-full_DisclosureOfFinancialAssetsTable" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeAxis" xlink:label="ifrs-full_RangeAxis" xlink:title="ifrs-full_RangeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialAssetsTable" xlink:to="ifrs-full_RangeAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialAssetsTable to ifrs-full_RangeAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeDomain" xlink:label="ifrs-full_RangeDomain" xlink:title="ifrs-full_RangeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_RangeAxis" xlink:to="ifrs-full_RangeDomain" xlink:title="Definition : ifrs-full_RangeAxis to ifrs-full_RangeDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BottomOfRangeMember" xlink:label="ifrs-full_BottomOfRangeMember" xlink:title="ifrs-full_BottomOfRangeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RangeDomain" xlink:to="ifrs-full_BottomOfRangeMember" xlink:title="Definition : ifrs-full_RangeDomain to ifrs-full_BottomOfRangeMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TopOfRangeMember" xlink:label="ifrs-full_TopOfRangeMember" xlink:title="ifrs-full_TopOfRangeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RangeDomain" xlink:to="ifrs-full_TopOfRangeMember" xlink:title="Definition : ifrs-full_RangeDomain to ifrs-full_TopOfRangeMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeDomain" xlink:label="ifrs-full_RangeDomain_1" xlink:title="ifrs-full_RangeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_RangeAxis" xlink:to="ifrs-full_RangeDomain_1" xlink:title="Definition : ifrs-full_RangeAxis to ifrs-full_RangeDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/RecoverabletaxesScheduleofestimatedrecoveryofPISandCOFINScreditsDetail">
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DisclosureOfEstimatedRecoveryOfVATOnSalesAndCertainServicesCreditsLineItems" xlink:label="ugp_DisclosureOfEstimatedRecoveryOfVATOnSalesAndCertainServicesCreditsLineItems" xlink:title="ugp_DisclosureOfEstimatedRecoveryOfVATOnSalesAndCertainServicesCreditsLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ReceivablesFromTaxesOtherThanIncomeTax" xlink:label="ifrs-full_ReceivablesFromTaxesOtherThanIncomeTax" xlink:title="ifrs-full_ReceivablesFromTaxesOtherThanIncomeTax" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfEstimatedRecoveryOfVATOnSalesAndCertainServicesCreditsLineItems" xlink:to="ifrs-full_ReceivablesFromTaxesOtherThanIncomeTax" xlink:title="Definition : ugp_DisclosureOfEstimatedRecoveryOfVATOnSalesAndCertainServicesCreditsLineItems to ifrs-full_ReceivablesFromTaxesOtherThanIncomeTax" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DisclosureOfEstimatedRecoveryOfVATOnSalesAndCertainServicesCreditsTable" xlink:label="ugp_DisclosureOfEstimatedRecoveryOfVATOnSalesAndCertainServicesCreditsTable" xlink:title="ugp_DisclosureOfEstimatedRecoveryOfVATOnSalesAndCertainServicesCreditsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ugp_DisclosureOfEstimatedRecoveryOfVATOnSalesAndCertainServicesCreditsLineItems" xlink:to="ugp_DisclosureOfEstimatedRecoveryOfVATOnSalesAndCertainServicesCreditsTable" xlink:title="Definition : ugp_DisclosureOfEstimatedRecoveryOfVATOnSalesAndCertainServicesCreditsLineItems to ugp_DisclosureOfEstimatedRecoveryOfVATOnSalesAndCertainServicesCreditsTable" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxesAxis" xlink:label="ugp_TaxesAxis" xlink:title="ugp_TaxesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_DisclosureOfEstimatedRecoveryOfVATOnSalesAndCertainServicesCreditsTable" xlink:to="ugp_TaxesAxis" xlink:title="Definition : ugp_DisclosureOfEstimatedRecoveryOfVATOnSalesAndCertainServicesCreditsTable to ugp_TaxesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxesDomain" xlink:label="ugp_TaxesDomain" xlink:title="ugp_TaxesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_TaxesAxis" xlink:to="ugp_TaxesDomain" xlink:title="Definition : ugp_TaxesAxis to ugp_TaxesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PisAndCofinsStateVATMember" xlink:label="ugp_PisAndCofinsStateVATMember" xlink:title="ugp_PisAndCofinsStateVATMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_TaxesDomain" xlink:to="ugp_PisAndCofinsStateVATMember" xlink:title="Definition : ugp_TaxesDomain to ugp_PisAndCofinsStateVATMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxesDomain" xlink:label="ugp_TaxesDomain_1" xlink:title="ugp_TaxesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_TaxesAxis" xlink:to="ugp_TaxesDomain_1" xlink:title="Definition : ugp_TaxesAxis to ugp_TaxesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MaturityAxis" xlink:label="ifrs-full_MaturityAxis" xlink:title="ifrs-full_MaturityAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_DisclosureOfEstimatedRecoveryOfVATOnSalesAndCertainServicesCreditsTable" xlink:to="ifrs-full_MaturityAxis" xlink:title="Definition : ugp_DisclosureOfEstimatedRecoveryOfVATOnSalesAndCertainServicesCreditsTable to ifrs-full_MaturityAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="ifrs-full_MaturityDomain" xlink:title="ifrs-full_MaturityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_MaturityAxis" xlink:to="ifrs-full_MaturityDomain" xlink:title="Definition : ifrs-full_MaturityAxis to ifrs-full_MaturityDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NotLaterThanOneYearMember" xlink:label="ifrs-full_NotLaterThanOneYearMember" xlink:title="ifrs-full_NotLaterThanOneYearMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ifrs-full_NotLaterThanOneYearMember" xlink:title="Definition : ifrs-full_MaturityDomain to ifrs-full_NotLaterThanOneYearMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:label="ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:title="ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:title="Definition : ifrs-full_MaturityDomain to ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:label="ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:title="ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:title="Definition : ifrs-full_MaturityDomain to ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanThreeYearsAndNotLaterThanFiveYearsMember" xlink:label="ifrs-full_LaterThanThreeYearsAndNotLaterThanFiveYearsMember" xlink:title="ifrs-full_LaterThanThreeYearsAndNotLaterThanFiveYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ifrs-full_LaterThanThreeYearsAndNotLaterThanFiveYearsMember" xlink:title="Definition : ifrs-full_MaturityDomain to ifrs-full_LaterThanThreeYearsAndNotLaterThanFiveYearsMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember" xlink:label="ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember" xlink:title="ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember" xlink:title="Definition : ifrs-full_MaturityDomain to ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember" xlink:label="ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember" xlink:title="ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember" xlink:title="Definition : ifrs-full_MaturityDomain to ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanSevenYearsAndNotLaterThanTenYearsMember" xlink:label="ifrs-full_LaterThanSevenYearsAndNotLaterThanTenYearsMember" xlink:title="ifrs-full_LaterThanSevenYearsAndNotLaterThanTenYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ifrs-full_LaterThanSevenYearsAndNotLaterThanTenYearsMember" xlink:title="Definition : ifrs-full_MaturityDomain to ifrs-full_LaterThanSevenYearsAndNotLaterThanTenYearsMember" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="ifrs-full_MaturityDomain_1" xlink:title="ifrs-full_MaturityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_MaturityAxis" xlink:to="ifrs-full_MaturityDomain_1" xlink:title="Definition : ifrs-full_MaturityAxis to ifrs-full_MaturityDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/RisksAndFinancialInstrumentsChangesInExchangeRateDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:label="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:title="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:label="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:title="ifrs-full_DisclosureOfFinancialInstrumentsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:type="arc" use="optional" order="0" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ScenarioAxis" xlink:label="ugp_ScenarioAxis" xlink:title="ugp_ScenarioAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="ugp_ScenarioAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsTable to ugp_ScenarioAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ScenarioDomain" xlink:label="ugp_ScenarioDomain" xlink:title="ugp_ScenarioDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_ScenarioAxis" xlink:to="ugp_ScenarioDomain" xlink:title="Definition : ugp_ScenarioAxis to ugp_ScenarioDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ScenarioMember" xlink:label="ugp_ScenarioMember" xlink:title="ugp_ScenarioMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_ScenarioDomain" xlink:to="ugp_ScenarioMember" xlink:title="Definition : ugp_ScenarioDomain to ugp_ScenarioMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ScenarioDomain" xlink:label="ugp_ScenarioDomain_1" xlink:title="ugp_ScenarioDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_ScenarioAxis" xlink:to="ugp_ScenarioDomain_1" xlink:title="Definition : ugp_ScenarioAxis to ugp_ScenarioDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CurrencySwapsReceivableInUSDollarsAbstract" xlink:label="ugp_CurrencySwapsReceivableInUSDollarsAbstract" xlink:title="ugp_CurrencySwapsReceivableInUSDollarsAbstract" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_CurrencySwapsReceivableInUSDollarsAbstract" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_CurrencySwapsReceivableInUSDollarsAbstract" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_USDollarToRealSwaps" xlink:label="ugp_USDollarToRealSwaps" xlink:title="ugp_USDollarToRealSwaps" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_CurrencySwapsReceivableInUSDollarsAbstract" xlink:to="ugp_USDollarToRealSwaps" xlink:title="Definition : ugp_CurrencySwapsReceivableInUSDollarsAbstract to ugp_USDollarToRealSwaps" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebtsFirmCommitmentsInDollars" xlink:label="ugp_DebtsFirmCommitmentsInDollars" xlink:title="ugp_DebtsFirmCommitmentsInDollars" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_CurrencySwapsReceivableInUSDollarsAbstract" xlink:to="ugp_DebtsFirmCommitmentsInDollars" xlink:title="Definition : ugp_CurrencySwapsReceivableInUSDollarsAbstract to ugp_DebtsFirmCommitmentsInDollars" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_USDollarToRealSwapsNetEffect" xlink:label="ugp_USDollarToRealSwapsNetEffect" xlink:title="ugp_USDollarToRealSwapsNetEffect" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_CurrencySwapsReceivableInUSDollarsAbstract" xlink:to="ugp_USDollarToRealSwapsNetEffect" xlink:title="Definition : ugp_CurrencySwapsReceivableInUSDollarsAbstract to ugp_USDollarToRealSwapsNetEffect" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CurrencySwapsPayableInUSDollarsAbstract" xlink:label="ugp_CurrencySwapsPayableInUSDollarsAbstract" xlink:title="ugp_CurrencySwapsPayableInUSDollarsAbstract" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_CurrencySwapsPayableInUSDollarsAbstract" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_CurrencySwapsPayableInUSDollarsAbstract" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_RealToUsDollarSwaps" xlink:label="ugp_RealToUsDollarSwaps" xlink:title="ugp_RealToUsDollarSwaps" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_CurrencySwapsPayableInUSDollarsAbstract" xlink:to="ugp_RealToUsDollarSwaps" xlink:title="Definition : ugp_CurrencySwapsPayableInUSDollarsAbstract to ugp_RealToUsDollarSwaps" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_GrossMarginOfOxitenoIpirangaSwapPayable" xlink:label="ugp_GrossMarginOfOxitenoIpirangaSwapPayable" xlink:title="ugp_GrossMarginOfOxitenoIpirangaSwapPayable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_CurrencySwapsPayableInUSDollarsAbstract" xlink:to="ugp_GrossMarginOfOxitenoIpirangaSwapPayable" xlink:title="Definition : ugp_CurrencySwapsPayableInUSDollarsAbstract to ugp_GrossMarginOfOxitenoIpirangaSwapPayable" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_RealToUsDollarSwapsNetEffect" xlink:label="ugp_RealToUsDollarSwapsNetEffect" xlink:title="ugp_RealToUsDollarSwapsNetEffect" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_CurrencySwapsPayableInUSDollarsAbstract" xlink:to="ugp_RealToUsDollarSwapsNetEffect" xlink:title="Definition : ugp_CurrencySwapsPayableInUSDollarsAbstract to ugp_RealToUsDollarSwapsNetEffect" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CashFlowHedgesAbstract" xlink:label="ifrs-full_CashFlowHedgesAbstract" xlink:title="ifrs-full_CashFlowHedgesAbstract" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_CashFlowHedgesAbstract" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_CashFlowHedgesAbstract" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CashFlowHedgedItemAssets" xlink:label="ugp_CashFlowHedgedItemAssets" xlink:title="ugp_CashFlowHedgedItemAssets" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CashFlowHedgesAbstract" xlink:to="ugp_CashFlowHedgedItemAssets" xlink:title="Definition : ifrs-full_CashFlowHedgesAbstract to ugp_CashFlowHedgedItemAssets" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CashFlowHedgedItemLiabilities" xlink:label="ugp_CashFlowHedgedItemLiabilities" xlink:title="ugp_CashFlowHedgedItemLiabilities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CashFlowHedgesAbstract" xlink:to="ugp_CashFlowHedgedItemLiabilities" xlink:title="Definition : ifrs-full_CashFlowHedgesAbstract to ugp_CashFlowHedgedItemLiabilities" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ReserveOfCashFlowHedgesContinuingHedges" xlink:label="ifrs-full_ReserveOfCashFlowHedgesContinuingHedges" xlink:title="ifrs-full_ReserveOfCashFlowHedgesContinuingHedges" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CashFlowHedgesAbstract" xlink:to="ifrs-full_ReserveOfCashFlowHedgesContinuingHedges" xlink:title="Definition : ifrs-full_CashFlowHedgesAbstract to ifrs-full_ReserveOfCashFlowHedgesContinuingHedges" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_HedgesOfNetInvestmentsInForeignOperationsAbstract" xlink:label="ifrs-full_HedgesOfNetInvestmentsInForeignOperationsAbstract" xlink:title="ifrs-full_HedgesOfNetInvestmentsInForeignOperationsAbstract" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_HedgesOfNetInvestmentsInForeignOperationsAbstract" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_HedgesOfNetInvestmentsInForeignOperationsAbstract" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NetInvestmentHedgedItemAssets" xlink:label="ugp_NetInvestmentHedgedItemAssets" xlink:title="ugp_NetInvestmentHedgedItemAssets" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_HedgesOfNetInvestmentsInForeignOperationsAbstract" xlink:to="ugp_NetInvestmentHedgedItemAssets" xlink:title="Definition : ifrs-full_HedgesOfNetInvestmentsInForeignOperationsAbstract to ugp_NetInvestmentHedgedItemAssets" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NetInvestmentHedgedItemLiabilities" xlink:label="ugp_NetInvestmentHedgedItemLiabilities" xlink:title="ugp_NetInvestmentHedgedItemLiabilities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_HedgesOfNetInvestmentsInForeignOperationsAbstract" xlink:to="ugp_NetInvestmentHedgedItemLiabilities" xlink:title="Definition : ifrs-full_HedgesOfNetInvestmentsInForeignOperationsAbstract to ugp_NetInvestmentHedgedItemLiabilities" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_InterestRateSwapInBrazilianReaisDebenturesCRAAbstract" xlink:label="ugp_InterestRateSwapInBrazilianReaisDebenturesCRAAbstract" xlink:title="ugp_InterestRateSwapInBrazilianReaisDebenturesCRAAbstract" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_InterestRateSwapInBrazilianReaisDebenturesCRAAbstract" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_InterestRateSwapInBrazilianReaisDebenturesCRAAbstract" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_FixedRateSwapDI" xlink:label="ugp_FixedRateSwapDI" xlink:title="ugp_FixedRateSwapDI" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_InterestRateSwapInBrazilianReaisDebenturesCRAAbstract" xlink:to="ugp_FixedRateSwapDI" xlink:title="Definition : ugp_InterestRateSwapInBrazilianReaisDebenturesCRAAbstract to ugp_FixedRateSwapDI" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_FixedRateDebt" xlink:label="ugp_FixedRateDebt" xlink:title="ugp_FixedRateDebt" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_InterestRateSwapInBrazilianReaisDebenturesCRAAbstract" xlink:to="ugp_FixedRateDebt" xlink:title="Definition : ugp_InterestRateSwapInBrazilianReaisDebenturesCRAAbstract to ugp_FixedRateDebt" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_FixedRateSwapNetEffect" xlink:label="ugp_FixedRateSwapNetEffect" xlink:title="ugp_FixedRateSwapNetEffect" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_InterestRateSwapInBrazilianReaisDebenturesCRAAbstract" xlink:to="ugp_FixedRateSwapNetEffect" xlink:title="Definition : ugp_InterestRateSwapInBrazilianReaisDebenturesCRAAbstract to ugp_FixedRateSwapNetEffect" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/RisksAndFinancialInstrumentsFairValuesAndTheCarryingValuesOfTheFinancialInstrumentsDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:label="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:title="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CategoryOfFinancialAssetsAndLiabilities" xlink:label="ugp_CategoryOfFinancialAssetsAndLiabilities" xlink:title="ugp_CategoryOfFinancialAssetsAndLiabilities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_CategoryOfFinancialAssetsAndLiabilities" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_CategoryOfFinancialAssetsAndLiabilities" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:label="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:title="ifrs-full_DisclosureOfFinancialInstrumentsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:label="ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:title="ifrs-full_ClassesOfFinancialInstrumentsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsTable to ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:title="ifrs-full_ClassesOfFinancialInstrumentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:to="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsAxis to ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CashAndBankDepositsMember" xlink:label="ugp_CashAndBankDepositsMember" xlink:title="ugp_CashAndBankDepositsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_CashAndBankDepositsMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_CashAndBankDepositsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_FinancialInvestmentsLocalCurrencyMember" xlink:label="ugp_FinancialInvestmentsLocalCurrencyMember" xlink:title="ugp_FinancialInvestmentsLocalCurrencyMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_FinancialInvestmentsLocalCurrencyMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_FinancialInvestmentsLocalCurrencyMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_FinancialInvestmentsForeignCurrencyMember" xlink:label="ugp_FinancialInvestmentsForeignCurrencyMember" xlink:title="ugp_FinancialInvestmentsForeignCurrencyMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_FinancialInvestmentsForeignCurrencyMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_FinancialInvestmentsForeignCurrencyMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_FixedIncomeSecuritiesLocalCurrency1Member" xlink:label="ugp_FixedIncomeSecuritiesLocalCurrency1Member" xlink:title="ugp_FixedIncomeSecuritiesLocalCurrency1Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_FixedIncomeSecuritiesLocalCurrency1Member" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_FixedIncomeSecuritiesLocalCurrency1Member" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_FixedIncomeSecuritiesLocalCurrency2Member" xlink:label="ugp_FixedIncomeSecuritiesLocalCurrency2Member" xlink:title="ugp_FixedIncomeSecuritiesLocalCurrency2Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_FixedIncomeSecuritiesLocalCurrency2Member" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_FixedIncomeSecuritiesLocalCurrency2Member" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_FixedIncomeSecuritiesLocalCurrency3Member" xlink:label="ugp_FixedIncomeSecuritiesLocalCurrency3Member" xlink:title="ugp_FixedIncomeSecuritiesLocalCurrency3Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_FixedIncomeSecuritiesLocalCurrency3Member" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_FixedIncomeSecuritiesLocalCurrency3Member" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_FixedIncomeSecuritiesForeignCurrencyMember" xlink:label="ugp_FixedIncomeSecuritiesForeignCurrencyMember" xlink:title="ugp_FixedIncomeSecuritiesForeignCurrencyMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_FixedIncomeSecuritiesForeignCurrencyMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_FixedIncomeSecuritiesForeignCurrencyMember" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CurrencyInterestRateHedgingInstrumentsMember" xlink:label="ugp_CurrencyInterestRateHedgingInstrumentsMember" xlink:title="ugp_CurrencyInterestRateHedgingInstrumentsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_CurrencyInterestRateHedgingInstrumentsMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_CurrencyInterestRateHedgingInstrumentsMember" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TradeReceivablesMember" xlink:label="ifrs-full_TradeReceivablesMember" xlink:title="ifrs-full_TradeReceivablesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ifrs-full_TradeReceivablesMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ifrs-full_TradeReceivablesMember" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ResellerFinancingMember" xlink:label="ugp_ResellerFinancingMember" xlink:title="ugp_ResellerFinancingMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_ResellerFinancingMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_ResellerFinancingMember" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_Financing1Member" xlink:label="ugp_Financing1Member" xlink:title="ugp_Financing1Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_Financing1Member" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_Financing1Member" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_Financing2Member" xlink:label="ugp_Financing2Member" xlink:title="ugp_Financing2Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_Financing2Member" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_Financing2Member" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebenturesMember" xlink:label="ugp_DebenturesMember" xlink:title="ugp_DebenturesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_DebenturesMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_DebenturesMember" xlink:type="arc" use="optional" order="12" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_Debentures1Member" xlink:label="ugp_Debentures1Member" xlink:title="ugp_Debentures1Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_Debentures1Member" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_Debentures1Member" xlink:type="arc" use="optional" order="13" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LeaseLiabilitiesMember" xlink:label="ifrs-full_LeaseLiabilitiesMember" xlink:title="ifrs-full_LeaseLiabilitiesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ifrs-full_LeaseLiabilitiesMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ifrs-full_LeaseLiabilitiesMember" xlink:type="arc" use="optional" order="14" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CommoditiesCurrencyAndInterestRateHedgingInstrumentsMember" xlink:label="ugp_CommoditiesCurrencyAndInterestRateHedgingInstrumentsMember" xlink:title="ugp_CommoditiesCurrencyAndInterestRateHedgingInstrumentsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_CommoditiesCurrencyAndInterestRateHedgingInstrumentsMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_CommoditiesCurrencyAndInterestRateHedgingInstrumentsMember" xlink:type="arc" use="optional" order="15" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TradePayableMember" xlink:label="ugp_TradePayableMember" xlink:title="ugp_TradePayableMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_TradePayableMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_TradePayableMember" xlink:type="arc" use="optional" order="16" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SubscriptionWarrantsIndemnificationMember" xlink:label="ugp_SubscriptionWarrantsIndemnificationMember" xlink:title="ugp_SubscriptionWarrantsIndemnificationMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_SubscriptionWarrantsIndemnificationMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_SubscriptionWarrantsIndemnificationMember" xlink:type="arc" use="optional" order="17" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="ifrs-full_ClassesOfFinancialInstrumentsDomain_1" xlink:title="ifrs-full_ClassesOfFinancialInstrumentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:to="ifrs-full_ClassesOfFinancialInstrumentsDomain_1" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsAxis to ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/InvestmentSummaryOfBalancesAndChangesInJointVenturesDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfJointVenturesLineItems" xlink:label="ifrs-full_DisclosureOfJointVenturesLineItems" xlink:title="ifrs-full_DisclosureOfJointVenturesLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_InvestmentsInJointVenturesAccountedForUsingEquityMethod" xlink:label="ifrs-full_InvestmentsInJointVenturesAccountedForUsingEquityMethod" xlink:title="ifrs-full_InvestmentsInJointVenturesAccountedForUsingEquityMethod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfJointVenturesLineItems" xlink:to="ifrs-full_InvestmentsInJointVenturesAccountedForUsingEquityMethod" xlink:title="Definition : ifrs-full_DisclosureOfJointVenturesLineItems to ifrs-full_InvestmentsInJointVenturesAccountedForUsingEquityMethod" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CapitalIncreaseJointVentures" xlink:label="ugp_CapitalIncreaseJointVentures" xlink:title="ugp_CapitalIncreaseJointVentures" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfJointVenturesLineItems" xlink:to="ugp_CapitalIncreaseJointVentures" xlink:title="Definition : ifrs-full_DisclosureOfJointVenturesLineItems to ugp_CapitalIncreaseJointVentures" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CapitalReductionJointVentures" xlink:label="ugp_CapitalReductionJointVentures" xlink:title="ugp_CapitalReductionJointVentures" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfJointVenturesLineItems" xlink:to="ugp_CapitalReductionJointVentures" xlink:title="Definition : ifrs-full_DisclosureOfJointVenturesLineItems to ugp_CapitalReductionJointVentures" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreaseDecreaseThroughOtherReservesInvestmentsInJointVentures" xlink:label="ugp_IncreaseDecreaseThroughOtherReservesInvestmentsInJointVentures" xlink:title="ugp_IncreaseDecreaseThroughOtherReservesInvestmentsInJointVentures" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfJointVenturesLineItems" xlink:to="ugp_IncreaseDecreaseThroughOtherReservesInvestmentsInJointVentures" xlink:title="Definition : ifrs-full_DisclosureOfJointVenturesLineItems to ugp_IncreaseDecreaseThroughOtherReservesInvestmentsInJointVentures" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreaseDecreaseThroughActuarialGainLossOfPostEmploymentBenefitsInvestmentsInJointVentures" xlink:label="ugp_IncreaseDecreaseThroughActuarialGainLossOfPostEmploymentBenefitsInvestmentsInJointVentures" xlink:title="ugp_IncreaseDecreaseThroughActuarialGainLossOfPostEmploymentBenefitsInvestmentsInJointVentures" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfJointVenturesLineItems" xlink:to="ugp_IncreaseDecreaseThroughActuarialGainLossOfPostEmploymentBenefitsInvestmentsInJointVentures" xlink:title="Definition : ifrs-full_DisclosureOfJointVenturesLineItems to ugp_IncreaseDecreaseThroughActuarialGainLossOfPostEmploymentBenefitsInvestmentsInJointVentures" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreaseDecreaseThroughChangesOfInvestmentsFromShareholderTransactionInvestmentsInJointVentures" xlink:label="ugp_IncreaseDecreaseThroughChangesOfInvestmentsFromShareholderTransactionInvestmentsInJointVentures" xlink:title="ugp_IncreaseDecreaseThroughChangesOfInvestmentsFromShareholderTransactionInvestmentsInJointVentures" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfJointVenturesLineItems" xlink:to="ugp_IncreaseDecreaseThroughChangesOfInvestmentsFromShareholderTransactionInvestmentsInJointVentures" xlink:title="Definition : ifrs-full_DisclosureOfJointVenturesLineItems to ugp_IncreaseDecreaseThroughChangesOfInvestmentsFromShareholderTransactionInvestmentsInJointVentures" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ShareOfProfitLossOfJointVenturesAccountedForUsingEquityMethod" xlink:label="ifrs-full_ShareOfProfitLossOfJointVenturesAccountedForUsingEquityMethod" xlink:title="ifrs-full_ShareOfProfitLossOfJointVenturesAccountedForUsingEquityMethod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfJointVenturesLineItems" xlink:to="ifrs-full_ShareOfProfitLossOfJointVenturesAccountedForUsingEquityMethod" xlink:title="Definition : ifrs-full_DisclosureOfJointVenturesLineItems to ifrs-full_ShareOfProfitLossOfJointVenturesAccountedForUsingEquityMethod" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DecreaseThroughDispositionOfInvestmentInJointVentures" xlink:label="ugp_DecreaseThroughDispositionOfInvestmentInJointVentures" xlink:title="ugp_DecreaseThroughDispositionOfInvestmentInJointVentures" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfJointVenturesLineItems" xlink:to="ugp_DecreaseThroughDispositionOfInvestmentInJointVentures" xlink:title="Definition : ifrs-full_DisclosureOfJointVenturesLineItems to ugp_DecreaseThroughDispositionOfInvestmentInJointVentures" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreaseDecreaseThroughTransferToFromProvisionForShortTermLiabilitiesInvestmentsInJointVentures" xlink:label="ugp_IncreaseDecreaseThroughTransferToFromProvisionForShortTermLiabilitiesInvestmentsInJointVentures" xlink:title="ugp_IncreaseDecreaseThroughTransferToFromProvisionForShortTermLiabilitiesInvestmentsInJointVentures" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfJointVenturesLineItems" xlink:to="ugp_IncreaseDecreaseThroughTransferToFromProvisionForShortTermLiabilitiesInvestmentsInJointVentures" xlink:title="Definition : ifrs-full_DisclosureOfJointVenturesLineItems to ugp_IncreaseDecreaseThroughTransferToFromProvisionForShortTermLiabilitiesInvestmentsInJointVentures" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfJointVenturesTable" xlink:label="ifrs-full_DisclosureOfJointVenturesTable" xlink:title="ifrs-full_DisclosureOfJointVenturesTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfJointVenturesLineItems" xlink:to="ifrs-full_DisclosureOfJointVenturesTable" xlink:title="Definition : ifrs-full_DisclosureOfJointVenturesLineItems to ifrs-full_DisclosureOfJointVenturesTable" xlink:type="arc" use="optional" order="9" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_JointVenturesAxis" xlink:label="ifrs-full_JointVenturesAxis" xlink:title="ifrs-full_JointVenturesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfJointVenturesTable" xlink:to="ifrs-full_JointVenturesAxis" xlink:title="Definition : ifrs-full_DisclosureOfJointVenturesTable to ifrs-full_JointVenturesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_JointVenturesDomain" xlink:label="ifrs-full_JointVenturesDomain" xlink:title="ifrs-full_JointVenturesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_JointVenturesAxis" xlink:to="ifrs-full_JointVenturesDomain" xlink:title="Definition : ifrs-full_JointVenturesAxis to ifrs-full_JointVenturesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UniaoVopakMember" xlink:label="ugp_UniaoVopakMember" xlink:title="ugp_UniaoVopakMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_JointVenturesDomain" xlink:to="ugp_UniaoVopakMember" xlink:title="Definition : ifrs-full_JointVenturesDomain to ugp_UniaoVopakMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_RPRMember" xlink:label="ugp_RPRMember" xlink:title="ugp_RPRMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_JointVenturesDomain" xlink:to="ugp_RPRMember" xlink:title="Definition : ifrs-full_JointVenturesDomain to ugp_RPRMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ConnectCarMember" xlink:label="ugp_ConnectCarMember" xlink:title="ugp_ConnectCarMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_JointVenturesDomain" xlink:to="ugp_ConnectCarMember" xlink:title="Definition : ifrs-full_JointVenturesDomain to ugp_ConnectCarMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LatitudeLogsticaMember" xlink:label="ugp_LatitudeLogsticaMember" xlink:title="ugp_LatitudeLogsticaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_JointVenturesDomain" xlink:to="ugp_LatitudeLogsticaMember" xlink:title="Definition : ifrs-full_JointVenturesDomain to ugp_LatitudeLogsticaMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NavegantesLogsticaMember" xlink:label="ugp_NavegantesLogsticaMember" xlink:title="ugp_NavegantesLogsticaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_JointVenturesDomain" xlink:to="ugp_NavegantesLogsticaMember" xlink:title="Definition : ifrs-full_JointVenturesDomain to ugp_NavegantesLogsticaMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NordesteLogsticaIMember" xlink:label="ugp_NordesteLogsticaIMember" xlink:title="ugp_NordesteLogsticaIMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_JointVenturesDomain" xlink:to="ugp_NordesteLogsticaIMember" xlink:title="Definition : ifrs-full_JointVenturesDomain to ugp_NordesteLogsticaIMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NordesteLogsticaIIMember" xlink:label="ugp_NordesteLogsticaIIMember" xlink:title="ugp_NordesteLogsticaIIMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_JointVenturesDomain" xlink:to="ugp_NordesteLogsticaIIMember" xlink:title="Definition : ifrs-full_JointVenturesDomain to ugp_NordesteLogsticaIIMember" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NordesteLogsticaIIIMember" xlink:label="ugp_NordesteLogsticaIIIMember" xlink:title="ugp_NordesteLogsticaIIIMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_JointVenturesDomain" xlink:to="ugp_NordesteLogsticaIIIMember" xlink:title="Definition : ifrs-full_JointVenturesDomain to ugp_NordesteLogsticaIIIMember" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_JointVenturesMember" xlink:label="ifrs-full_JointVenturesMember" xlink:title="ifrs-full_JointVenturesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_JointVenturesDomain" xlink:to="ifrs-full_JointVenturesMember" xlink:title="Definition : ifrs-full_JointVenturesDomain to ifrs-full_JointVenturesMember" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_JointVenturesDomain" xlink:label="ifrs-full_JointVenturesDomain_1" xlink:title="ifrs-full_JointVenturesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_JointVenturesAxis" xlink:to="ifrs-full_JointVenturesDomain_1" xlink:title="Definition : ifrs-full_JointVenturesAxis to ifrs-full_JointVenturesDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/AcquisitionofInterestandControlScheduleofacquiredintangibleassetsthatwerenotrecognizedinthebooksoftheacquiredentityDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:label="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:title="ifrs-full_DisclosureOfBusinessCombinationsLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IntangibleAssetsOtherThanGoodwill" xlink:label="ifrs-full_IntangibleAssetsOtherThanGoodwill" xlink:title="ifrs-full_IntangibleAssetsOtherThanGoodwill" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ifrs-full_IntangibleAssetsOtherThanGoodwill" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ifrs-full_IntangibleAssetsOtherThanGoodwill" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_UsefulLifeMeasuredAsPeriodOfTimeIntangibleAssetsOtherThanGoodwill" xlink:label="ifrs-full_UsefulLifeMeasuredAsPeriodOfTimeIntangibleAssetsOtherThanGoodwill" xlink:title="ifrs-full_UsefulLifeMeasuredAsPeriodOfTimeIntangibleAssetsOtherThanGoodwill" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ifrs-full_UsefulLifeMeasuredAsPeriodOfTimeIntangibleAssetsOtherThanGoodwill" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ifrs-full_UsefulLifeMeasuredAsPeriodOfTimeIntangibleAssetsOtherThanGoodwill" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AmortisationMethodIntangibleAssetsOtherThanGoodwill" xlink:label="ifrs-full_AmortisationMethodIntangibleAssetsOtherThanGoodwill" xlink:title="ifrs-full_AmortisationMethodIntangibleAssetsOtherThanGoodwill" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ifrs-full_AmortisationMethodIntangibleAssetsOtherThanGoodwill" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ifrs-full_AmortisationMethodIntangibleAssetsOtherThanGoodwill" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:label="ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:title="ifrs-full_DisclosureOfBusinessCombinationsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:type="arc" order="3" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsTable to ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CompanhiaUltragazMember" xlink:label="ugp_CompanhiaUltragazMember" xlink:title="ugp_CompanhiaUltragazMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_CompanhiaUltragazMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_CompanhiaUltragazMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltracargoLogisticaSAMember" xlink:label="ugp_UltracargoLogisticaSAMember" xlink:title="ugp_UltracargoLogisticaSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltracargoLogisticaSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltracargoLogisticaSAMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BusinessCombinationsAxis" xlink:label="ifrs-full_BusinessCombinationsAxis" xlink:title="ifrs-full_BusinessCombinationsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:to="ifrs-full_BusinessCombinationsAxis" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsTable to ifrs-full_BusinessCombinationsAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BusinessCombinationsDomain" xlink:label="ifrs-full_BusinessCombinationsDomain" xlink:title="ifrs-full_BusinessCombinationsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_BusinessCombinationsAxis" xlink:to="ifrs-full_BusinessCombinationsDomain" xlink:title="Definition : ifrs-full_BusinessCombinationsAxis to ifrs-full_BusinessCombinationsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NeogasGroupMember" xlink:label="ugp_NeogasGroupMember" xlink:title="ugp_NeogasGroupMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_NeogasGroupMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_NeogasGroupMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OplaGroupMember" xlink:label="ugp_OplaGroupMember" xlink:title="ugp_OplaGroupMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_OplaGroupMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_OplaGroupMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BusinessCombinationsDomain" xlink:label="ifrs-full_BusinessCombinationsDomain_1" xlink:title="ifrs-full_BusinessCombinationsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_BusinessCombinationsAxis" xlink:to="ifrs-full_BusinessCombinationsDomain_1" xlink:title="Definition : ifrs-full_BusinessCombinationsAxis to ifrs-full_BusinessCombinationsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfIntangibleAssetsOtherThanGoodwillAxis" xlink:label="ifrs-full_ClassesOfIntangibleAssetsOtherThanGoodwillAxis" xlink:title="ifrs-full_ClassesOfIntangibleAssetsOtherThanGoodwillAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:to="ifrs-full_ClassesOfIntangibleAssetsOtherThanGoodwillAxis" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsTable to ifrs-full_ClassesOfIntangibleAssetsOtherThanGoodwillAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfIntangibleAssetsOtherThanGoodwillDomain" xlink:label="ifrs-full_ClassesOfIntangibleAssetsOtherThanGoodwillDomain" xlink:title="ifrs-full_ClassesOfIntangibleAssetsOtherThanGoodwillDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ClassesOfIntangibleAssetsOtherThanGoodwillAxis" xlink:to="ifrs-full_ClassesOfIntangibleAssetsOtherThanGoodwillDomain" xlink:title="Definition : ifrs-full_ClassesOfIntangibleAssetsOtherThanGoodwillAxis to ifrs-full_ClassesOfIntangibleAssetsOtherThanGoodwillDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TrademarkRightsMember" xlink:label="ugp_TrademarkRightsMember" xlink:title="ugp_TrademarkRightsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfIntangibleAssetsOtherThanGoodwillDomain" xlink:to="ugp_TrademarkRightsMember" xlink:title="Definition : ifrs-full_ClassesOfIntangibleAssetsOtherThanGoodwillDomain to ugp_TrademarkRightsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LicencesMember" xlink:label="ifrs-full_LicencesMember" xlink:title="ifrs-full_LicencesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfIntangibleAssetsOtherThanGoodwillDomain" xlink:to="ifrs-full_LicencesMember" xlink:title="Definition : ifrs-full_ClassesOfIntangibleAssetsOtherThanGoodwillDomain to ifrs-full_LicencesMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ComputerSoftwareMember" xlink:label="ifrs-full_ComputerSoftwareMember" xlink:title="ifrs-full_ComputerSoftwareMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfIntangibleAssetsOtherThanGoodwillDomain" xlink:to="ifrs-full_ComputerSoftwareMember" xlink:title="Definition : ifrs-full_ClassesOfIntangibleAssetsOtherThanGoodwillDomain to ifrs-full_ComputerSoftwareMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CustomerrelatedIntangibleAssetsMember" xlink:label="ifrs-full_CustomerrelatedIntangibleAssetsMember" xlink:title="ifrs-full_CustomerrelatedIntangibleAssetsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfIntangibleAssetsOtherThanGoodwillDomain" xlink:to="ifrs-full_CustomerrelatedIntangibleAssetsMember" xlink:title="Definition : ifrs-full_ClassesOfIntangibleAssetsOtherThanGoodwillDomain to ifrs-full_CustomerrelatedIntangibleAssetsMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfIntangibleAssetsOtherThanGoodwillDomain" xlink:label="ifrs-full_ClassesOfIntangibleAssetsOtherThanGoodwillDomain_1" xlink:title="ifrs-full_ClassesOfIntangibleAssetsOtherThanGoodwillDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ClassesOfIntangibleAssetsOtherThanGoodwillAxis" xlink:to="ifrs-full_ClassesOfIntangibleAssetsOtherThanGoodwillDomain_1" xlink:title="Definition : ifrs-full_ClassesOfIntangibleAssetsOtherThanGoodwillAxis to ifrs-full_ClassesOfIntangibleAssetsOtherThanGoodwillDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/AcquisitionofInterestandControlScheduleofearnoutsensitivityanalysisDetails">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:label="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:title="ifrs-full_DisclosureOfBusinessCombinationsLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DescriptionOfGoalsInBusinessCombination" xlink:label="ugp_DescriptionOfGoalsInBusinessCombination" xlink:title="ugp_DescriptionOfGoalsInBusinessCombination" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ugp_DescriptionOfGoalsInBusinessCombination" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ugp_DescriptionOfGoalsInBusinessCombination" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DescriptionOfChangesInGoalsOfReasonablyPossibleIncreaseInActuarialAssumptionsForEarnoutLiability" xlink:label="ugp_DescriptionOfChangesInGoalsOfReasonablyPossibleIncreaseInActuarialAssumptionsForEarnoutLiability" xlink:title="ugp_DescriptionOfChangesInGoalsOfReasonablyPossibleIncreaseInActuarialAssumptionsForEarnoutLiability" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ugp_DescriptionOfChangesInGoalsOfReasonablyPossibleIncreaseInActuarialAssumptionsForEarnoutLiability" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ugp_DescriptionOfChangesInGoalsOfReasonablyPossibleIncreaseInActuarialAssumptionsForEarnoutLiability" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreaseInEarnoutLiabilityDueToReasonablyPossibleIncreaseInActuarialAssumption" xlink:label="ugp_IncreaseInEarnoutLiabilityDueToReasonablyPossibleIncreaseInActuarialAssumption" xlink:title="ugp_IncreaseInEarnoutLiabilityDueToReasonablyPossibleIncreaseInActuarialAssumption" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ugp_IncreaseInEarnoutLiabilityDueToReasonablyPossibleIncreaseInActuarialAssumption" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ugp_IncreaseInEarnoutLiabilityDueToReasonablyPossibleIncreaseInActuarialAssumption" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DescriptionOfChangesInGoalsOfReasonablyPossibleDecreaseInActuarialAssumptionsForEarnoutLiability" xlink:label="ugp_DescriptionOfChangesInGoalsOfReasonablyPossibleDecreaseInActuarialAssumptionsForEarnoutLiability" xlink:title="ugp_DescriptionOfChangesInGoalsOfReasonablyPossibleDecreaseInActuarialAssumptionsForEarnoutLiability" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ugp_DescriptionOfChangesInGoalsOfReasonablyPossibleDecreaseInActuarialAssumptionsForEarnoutLiability" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ugp_DescriptionOfChangesInGoalsOfReasonablyPossibleDecreaseInActuarialAssumptionsForEarnoutLiability" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DecreaseInEarnoutLiabilityDueToReasonablyPossibleIncreaseInActuarialAssumption" xlink:label="ugp_DecreaseInEarnoutLiabilityDueToReasonablyPossibleIncreaseInActuarialAssumption" xlink:title="ugp_DecreaseInEarnoutLiabilityDueToReasonablyPossibleIncreaseInActuarialAssumption" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ugp_DecreaseInEarnoutLiabilityDueToReasonablyPossibleIncreaseInActuarialAssumption" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ugp_DecreaseInEarnoutLiabilityDueToReasonablyPossibleIncreaseInActuarialAssumption" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PercentageOfReasonablyPossibleIncreaseInAssumptionsForEarnoutLiability" xlink:label="ugp_PercentageOfReasonablyPossibleIncreaseInAssumptionsForEarnoutLiability" xlink:title="ugp_PercentageOfReasonablyPossibleIncreaseInAssumptionsForEarnoutLiability" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ugp_PercentageOfReasonablyPossibleIncreaseInAssumptionsForEarnoutLiability" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ugp_PercentageOfReasonablyPossibleIncreaseInAssumptionsForEarnoutLiability" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PercentageOfReasonablyPossibleDecreaseInAssumptionsForEarnoutLiability" xlink:label="ugp_PercentageOfReasonablyPossibleDecreaseInAssumptionsForEarnoutLiability" xlink:title="ugp_PercentageOfReasonablyPossibleDecreaseInAssumptionsForEarnoutLiability" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ugp_PercentageOfReasonablyPossibleDecreaseInAssumptionsForEarnoutLiability" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ugp_PercentageOfReasonablyPossibleDecreaseInAssumptionsForEarnoutLiability" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:label="ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:title="ifrs-full_DisclosureOfBusinessCombinationsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsLineItems to ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:type="arc" use="optional" order="7" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsTable to ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltragazComercialLtdaMember" xlink:label="ugp_UltragazComercialLtdaMember" xlink:title="ugp_UltragazComercialLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltragazComercialLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltragazComercialLtdaMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BusinessCombinationsAxis" xlink:label="ifrs-full_BusinessCombinationsAxis" xlink:title="ifrs-full_BusinessCombinationsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:to="ifrs-full_BusinessCombinationsAxis" xlink:title="Definition : ifrs-full_DisclosureOfBusinessCombinationsTable to ifrs-full_BusinessCombinationsAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BusinessCombinationsDomain" xlink:label="ifrs-full_BusinessCombinationsDomain" xlink:title="ifrs-full_BusinessCombinationsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_BusinessCombinationsAxis" xlink:to="ifrs-full_BusinessCombinationsDomain" xlink:title="Definition : ifrs-full_BusinessCombinationsAxis to ifrs-full_BusinessCombinationsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_StellaGroupMember" xlink:label="ugp_StellaGroupMember" xlink:title="ugp_StellaGroupMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_StellaGroupMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_StellaGroupMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BusinessCombinationsDomain" xlink:label="ifrs-full_BusinessCombinationsDomain_1" xlink:title="ifrs-full_BusinessCombinationsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_BusinessCombinationsAxis" xlink:to="ifrs-full_BusinessCombinationsDomain_1" xlink:title="Definition : ifrs-full_BusinessCombinationsAxis to ifrs-full_BusinessCombinationsDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/RisksandFinancialInstrumentsSummaryofforeignexchangehedginginstrumentsdesignatedasfairvaluehedgeDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfHedgeAccountingLineItems" xlink:label="ifrs-full_DisclosureOfHedgeAccountingLineItems" xlink:title="ifrs-full_DisclosureOfHedgeAccountingLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NotionalAmount" xlink:label="ifrs-full_NotionalAmount" xlink:title="ifrs-full_NotionalAmount" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfHedgeAccountingLineItems" xlink:to="ifrs-full_NotionalAmount" xlink:title="Definition : ifrs-full_DisclosureOfHedgeAccountingLineItems to ifrs-full_NotionalAmount" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_GainLossRelatedToFairValueAdjustmentOfDebt" xlink:label="ugp_GainLossRelatedToFairValueAdjustmentOfDebt" xlink:title="ugp_GainLossRelatedToFairValueAdjustmentOfDebt" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfHedgeAccountingLineItems" xlink:to="ugp_GainLossRelatedToFairValueAdjustmentOfDebt" xlink:title="Definition : ifrs-full_DisclosureOfHedgeAccountingLineItems to ugp_GainLossRelatedToFairValueAdjustmentOfDebt" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_InterestIncomeExpenseOnFinancialLiabilitiesDesignatedAtFairValueThroughProfitOrLoss" xlink:label="ugp_InterestIncomeExpenseOnFinancialLiabilitiesDesignatedAtFairValueThroughProfitOrLoss" xlink:title="ugp_InterestIncomeExpenseOnFinancialLiabilitiesDesignatedAtFairValueThroughProfitOrLoss" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfHedgeAccountingLineItems" xlink:to="ugp_InterestIncomeExpenseOnFinancialLiabilitiesDesignatedAtFairValueThroughProfitOrLoss" xlink:title="Definition : ifrs-full_DisclosureOfHedgeAccountingLineItems to ugp_InterestIncomeExpenseOnFinancialLiabilitiesDesignatedAtFairValueThroughProfitOrLoss" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PercentageOfAverageEffectiveCost" xlink:label="ugp_PercentageOfAverageEffectiveCost" xlink:title="ugp_PercentageOfAverageEffectiveCost" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfHedgeAccountingLineItems" xlink:to="ugp_PercentageOfAverageEffectiveCost" xlink:title="Definition : ifrs-full_DisclosureOfHedgeAccountingLineItems to ugp_PercentageOfAverageEffectiveCost" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_GainLossRelatedToFairValueAdjustmentOfInventories" xlink:label="ugp_GainLossRelatedToFairValueAdjustmentOfInventories" xlink:title="ugp_GainLossRelatedToFairValueAdjustmentOfInventories" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfHedgeAccountingLineItems" xlink:to="ugp_GainLossRelatedToFairValueAdjustmentOfInventories" xlink:title="Definition : ifrs-full_DisclosureOfHedgeAccountingLineItems to ugp_GainLossRelatedToFairValueAdjustmentOfInventories" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfHedgeAccountingTable" xlink:label="ifrs-full_DisclosureOfHedgeAccountingTable" xlink:title="ifrs-full_DisclosureOfHedgeAccountingTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfHedgeAccountingLineItems" xlink:to="ifrs-full_DisclosureOfHedgeAccountingTable" xlink:title="Definition : ifrs-full_DisclosureOfHedgeAccountingLineItems to ifrs-full_DisclosureOfHedgeAccountingTable" xlink:type="arc" order="5" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_HedgingInstrumentsAxis" xlink:label="ifrs-full_HedgingInstrumentsAxis" xlink:title="ifrs-full_HedgingInstrumentsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfHedgeAccountingTable" xlink:to="ifrs-full_HedgingInstrumentsAxis" xlink:title="Definition : ifrs-full_DisclosureOfHedgeAccountingTable to ifrs-full_HedgingInstrumentsAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_HedgingInstrumentsDomain" xlink:label="ifrs-full_HedgingInstrumentsDomain" xlink:title="ifrs-full_HedgingInstrumentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_HedgingInstrumentsAxis" xlink:to="ifrs-full_HedgingInstrumentsDomain" xlink:title="Definition : ifrs-full_HedgingInstrumentsAxis to ifrs-full_HedgingInstrumentsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ForeignExchangeHedgingInstrumentsMember" xlink:label="ugp_ForeignExchangeHedgingInstrumentsMember" xlink:title="ugp_ForeignExchangeHedgingInstrumentsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_HedgingInstrumentsDomain" xlink:to="ugp_ForeignExchangeHedgingInstrumentsMember" xlink:title="Definition : ifrs-full_HedgingInstrumentsDomain to ugp_ForeignExchangeHedgingInstrumentsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ForeignExchangeSwapTwoMember" xlink:label="ugp_ForeignExchangeSwapTwoMember" xlink:title="ugp_ForeignExchangeSwapTwoMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_HedgingInstrumentsDomain" xlink:to="ugp_ForeignExchangeSwapTwoMember" xlink:title="Definition : ifrs-full_HedgingInstrumentsDomain to ugp_ForeignExchangeSwapTwoMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ForeignExchangeSwapThreeMember" xlink:label="ugp_ForeignExchangeSwapThreeMember" xlink:title="ugp_ForeignExchangeSwapThreeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_HedgingInstrumentsDomain" xlink:to="ugp_ForeignExchangeSwapThreeMember" xlink:title="Definition : ifrs-full_HedgingInstrumentsDomain to ugp_ForeignExchangeSwapThreeMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_InterestRateHedgingInstrumentsMember" xlink:label="ugp_InterestRateHedgingInstrumentsMember" xlink:title="ugp_InterestRateHedgingInstrumentsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_HedgingInstrumentsDomain" xlink:to="ugp_InterestRateHedgingInstrumentsMember" xlink:title="Definition : ifrs-full_HedgingInstrumentsDomain to ugp_InterestRateHedgingInstrumentsMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_InterestRateSwapContractOneMember" xlink:label="ugp_InterestRateSwapContractOneMember" xlink:title="ugp_InterestRateSwapContractOneMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_HedgingInstrumentsDomain" xlink:to="ugp_InterestRateSwapContractOneMember" xlink:title="Definition : ifrs-full_HedgingInstrumentsDomain to ugp_InterestRateSwapContractOneMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_HedgingInstrumentsDomain" xlink:label="ifrs-full_HedgingInstrumentsDomain_1" xlink:title="ifrs-full_HedgingInstrumentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_HedgingInstrumentsAxis" xlink:to="ifrs-full_HedgingInstrumentsDomain_1" xlink:title="Definition : ifrs-full_HedgingInstrumentsAxis to ifrs-full_HedgingInstrumentsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SegmentsAxis" xlink:label="ifrs-full_SegmentsAxis" xlink:title="ifrs-full_SegmentsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfHedgeAccountingTable" xlink:to="ifrs-full_SegmentsAxis" xlink:title="Definition : ifrs-full_DisclosureOfHedgeAccountingTable to ifrs-full_SegmentsAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SegmentsDomain" xlink:label="ifrs-full_SegmentsDomain" xlink:title="ifrs-full_SegmentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SegmentsAxis" xlink:to="ifrs-full_SegmentsDomain" xlink:title="Definition : ifrs-full_SegmentsAxis to ifrs-full_SegmentsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ReportableSegmentsMember" xlink:label="ifrs-full_ReportableSegmentsMember" xlink:title="ifrs-full_ReportableSegmentsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SegmentsDomain" xlink:to="ifrs-full_ReportableSegmentsMember" xlink:title="Definition : ifrs-full_SegmentsDomain to ifrs-full_ReportableSegmentsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IpirangaMember" xlink:label="ugp_IpirangaMember" xlink:title="ugp_IpirangaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ReportableSegmentsMember" xlink:to="ugp_IpirangaMember" xlink:title="Definition : ifrs-full_ReportableSegmentsMember to ugp_IpirangaMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SegmentsDomain" xlink:label="ifrs-full_SegmentsDomain_1" xlink:title="ifrs-full_SegmentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SegmentsAxis" xlink:to="ifrs-full_SegmentsDomain_1" xlink:title="Definition : ifrs-full_SegmentsAxis to ifrs-full_SegmentsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/FinancialInstrumentsSummarythepositionofhedginginstrumentsDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:label="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:title="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AssetsInterestRateBasis" xlink:label="ugp_AssetsInterestRateBasis" xlink:title="ugp_AssetsInterestRateBasis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_AssetsInterestRateBasis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_AssetsInterestRateBasis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LiabilitiesInterestRateBasis" xlink:label="ugp_LiabilitiesInterestRateBasis" xlink:title="ugp_LiabilitiesInterestRateBasis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_LiabilitiesInterestRateBasis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_LiabilitiesInterestRateBasis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsMaturity" xlink:label="ifrs-full_BorrowingsMaturity" xlink:title="ifrs-full_BorrowingsMaturity" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_BorrowingsMaturity" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_BorrowingsMaturity" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NotionalAmount" xlink:label="ifrs-full_NotionalAmount" xlink:title="ifrs-full_NotionalAmount" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_NotionalAmount" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_NotionalAmount" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_HedgingInstrumentAssets" xlink:label="ifrs-full_HedgingInstrumentAssets" xlink:title="ifrs-full_HedgingInstrumentAssets" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_HedgingInstrumentAssets" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_HedgingInstrumentAssets" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_HedgingInstrumentLiabilities" xlink:label="ifrs-full_HedgingInstrumentLiabilities" xlink:title="ifrs-full_HedgingInstrumentLiabilities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_HedgingInstrumentLiabilities" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_HedgingInstrumentLiabilities" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_GainLossOnChangeInFairValueOfHedgingInstrumentUsedAsBasisForRecognisingHedgeIneffectiveness" xlink:label="ifrs-full_GainLossOnChangeInFairValueOfHedgingInstrumentUsedAsBasisForRecognisingHedgeIneffectiveness" xlink:title="ifrs-full_GainLossOnChangeInFairValueOfHedgingInstrumentUsedAsBasisForRecognisingHedgeIneffectiveness" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_GainLossOnChangeInFairValueOfHedgingInstrumentUsedAsBasisForRecognisingHedgeIneffectiveness" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_GainLossOnChangeInFairValueOfHedgingInstrumentUsedAsBasisForRecognisingHedgeIneffectiveness" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ReserveOfGainsAndLossesOnHedgingInstrumentsThatHedgeInvestmentsInEquityInstruments" xlink:label="ifrs-full_ReserveOfGainsAndLossesOnHedgingInstrumentsThatHedgeInvestmentsInEquityInstruments" xlink:title="ifrs-full_ReserveOfGainsAndLossesOnHedgingInstrumentsThatHedgeInvestmentsInEquityInstruments" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_ReserveOfGainsAndLossesOnHedgingInstrumentsThatHedgeInvestmentsInEquityInstruments" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_ReserveOfGainsAndLossesOnHedgingInstrumentsThatHedgeInvestmentsInEquityInstruments" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_GainLossOnChangeInFairValueOfHedgedItemUsedAsBasisForRecognisingHedgeIneffectiveness" xlink:label="ifrs-full_GainLossOnChangeInFairValueOfHedgedItemUsedAsBasisForRecognisingHedgeIneffectiveness" xlink:title="ifrs-full_GainLossOnChangeInFairValueOfHedgedItemUsedAsBasisForRecognisingHedgeIneffectiveness" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_GainLossOnChangeInFairValueOfHedgedItemUsedAsBasisForRecognisingHedgeIneffectiveness" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_GainLossOnChangeInFairValueOfHedgedItemUsedAsBasisForRecognisingHedgeIneffectiveness" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:label="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:title="ifrs-full_DisclosureOfFinancialInstrumentsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:type="arc" order="9" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_HedgingInstrumentsAxis" xlink:label="ifrs-full_HedgingInstrumentsAxis" xlink:title="ifrs-full_HedgingInstrumentsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="ifrs-full_HedgingInstrumentsAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsTable to ifrs-full_HedgingInstrumentsAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_HedgingInstrumentsDomain" xlink:label="ifrs-full_HedgingInstrumentsDomain" xlink:title="ifrs-full_HedgingInstrumentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_HedgingInstrumentsAxis" xlink:to="ifrs-full_HedgingInstrumentsDomain" xlink:title="Definition : ifrs-full_HedgingInstrumentsAxis to ifrs-full_HedgingInstrumentsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DerivativesDesignatedAsHedgeAccountingMember" xlink:label="ugp_DerivativesDesignatedAsHedgeAccountingMember" xlink:title="ugp_DerivativesDesignatedAsHedgeAccountingMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_HedgingInstrumentsDomain" xlink:to="ugp_DerivativesDesignatedAsHedgeAccountingMember" xlink:title="Definition : ifrs-full_HedgingInstrumentsDomain to ugp_DerivativesDesignatedAsHedgeAccountingMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DerivativesNotDesignatedAsHedgeAccountingMember" xlink:label="ugp_DerivativesNotDesignatedAsHedgeAccountingMember" xlink:title="ugp_DerivativesNotDesignatedAsHedgeAccountingMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_HedgingInstrumentsDomain" xlink:to="ugp_DerivativesNotDesignatedAsHedgeAccountingMember" xlink:title="Definition : ifrs-full_HedgingInstrumentsDomain to ugp_DerivativesNotDesignatedAsHedgeAccountingMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_HedgingInstrumentsDomain" xlink:label="ifrs-full_HedgingInstrumentsDomain_1" xlink:title="ifrs-full_HedgingInstrumentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_HedgingInstrumentsAxis" xlink:to="ifrs-full_HedgingInstrumentsDomain_1" xlink:title="Definition : ifrs-full_HedgingInstrumentsAxis to ifrs-full_HedgingInstrumentsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsAxis" xlink:label="ifrs-full_ClassesOfFinancialAssetsAxis" xlink:title="ifrs-full_ClassesOfFinancialAssetsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="ifrs-full_ClassesOfFinancialAssetsAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsTable to ifrs-full_ClassesOfFinancialAssetsAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsDomain" xlink:label="ifrs-full_ClassesOfFinancialAssetsDomain" xlink:title="ifrs-full_ClassesOfFinancialAssetsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ClassesOfFinancialAssetsAxis" xlink:to="ifrs-full_ClassesOfFinancialAssetsDomain" xlink:title="Definition : ifrs-full_ClassesOfFinancialAssetsAxis to ifrs-full_ClassesOfFinancialAssetsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ForeignExchangeSwapMember" xlink:label="ugp_ForeignExchangeSwapMember" xlink:title="ugp_ForeignExchangeSwapMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialAssetsDomain" xlink:to="ugp_ForeignExchangeSwapMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialAssetsDomain to ugp_ForeignExchangeSwapMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ForeignExchangeSwapOneMember" xlink:label="ugp_ForeignExchangeSwapOneMember" xlink:title="ugp_ForeignExchangeSwapOneMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialAssetsDomain" xlink:to="ugp_ForeignExchangeSwapOneMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialAssetsDomain to ugp_ForeignExchangeSwapOneMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ForeignExchangeSwapTwoMember" xlink:label="ugp_ForeignExchangeSwapTwoMember" xlink:title="ugp_ForeignExchangeSwapTwoMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialAssetsDomain" xlink:to="ugp_ForeignExchangeSwapTwoMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialAssetsDomain to ugp_ForeignExchangeSwapTwoMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ForeignExchangeSwapThreeMember" xlink:label="ugp_ForeignExchangeSwapThreeMember" xlink:title="ugp_ForeignExchangeSwapThreeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialAssetsDomain" xlink:to="ugp_ForeignExchangeSwapThreeMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialAssetsDomain to ugp_ForeignExchangeSwapThreeMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_InterestRateSwapContractMember" xlink:label="ifrs-full_InterestRateSwapContractMember" xlink:title="ifrs-full_InterestRateSwapContractMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialAssetsDomain" xlink:to="ifrs-full_InterestRateSwapContractMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialAssetsDomain to ifrs-full_InterestRateSwapContractMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_InterestRateSwapContractOneMember" xlink:label="ugp_InterestRateSwapContractOneMember" xlink:title="ugp_InterestRateSwapContractOneMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialAssetsDomain" xlink:to="ugp_InterestRateSwapContractOneMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialAssetsDomain to ugp_InterestRateSwapContractOneMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_InterestRateSwapContractTwoMember" xlink:label="ugp_InterestRateSwapContractTwoMember" xlink:title="ugp_InterestRateSwapContractTwoMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialAssetsDomain" xlink:to="ugp_InterestRateSwapContractTwoMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialAssetsDomain to ugp_InterestRateSwapContractTwoMember" xlink:type="arc" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ForwardContractMember" xlink:label="ifrs-full_ForwardContractMember" xlink:title="ifrs-full_ForwardContractMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialAssetsDomain" xlink:to="ifrs-full_ForwardContractMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialAssetsDomain to ifrs-full_ForwardContractMember" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NdfMember" xlink:label="ugp_NdfMember" xlink:title="ugp_NdfMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialAssetsDomain" xlink:to="ugp_NdfMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialAssetsDomain to ugp_NdfMember" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ZeroCostCollarMember" xlink:label="ugp_ZeroCostCollarMember" xlink:title="ugp_ZeroCostCollarMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialAssetsDomain" xlink:to="ugp_ZeroCostCollarMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialAssetsDomain to ugp_ZeroCostCollarMember" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TermMember" xlink:label="ugp_TermMember" xlink:title="ugp_TermMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialAssetsDomain" xlink:to="ugp_TermMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialAssetsDomain to ugp_TermMember" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NdfOneMember" xlink:label="ugp_NdfOneMember" xlink:title="ugp_NdfOneMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialAssetsDomain" xlink:to="ugp_NdfOneMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialAssetsDomain to ugp_NdfOneMember" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsDomain" xlink:label="ifrs-full_ClassesOfFinancialAssetsDomain_1" xlink:title="ifrs-full_ClassesOfFinancialAssetsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ClassesOfFinancialAssetsAxis" xlink:to="ifrs-full_ClassesOfFinancialAssetsDomain_1" xlink:title="Definition : ifrs-full_ClassesOfFinancialAssetsAxis to ifrs-full_ClassesOfFinancialAssetsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/FinancialInstrumentsContractualundiscountedcashoutflowsDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:label="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:title="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LoansIncludingFutureContractualInterestUndiscountedCashFlows" xlink:label="ugp_LoansIncludingFutureContractualInterestUndiscountedCashFlows" xlink:title="ugp_LoansIncludingFutureContractualInterestUndiscountedCashFlows" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_LoansIncludingFutureContractualInterestUndiscountedCashFlows" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_LoansIncludingFutureContractualInterestUndiscountedCashFlows" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DerivativeFinancialLiabilitiesUndiscountedCashFlows" xlink:label="ifrs-full_DerivativeFinancialLiabilitiesUndiscountedCashFlows" xlink:title="ifrs-full_DerivativeFinancialLiabilitiesUndiscountedCashFlows" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_DerivativeFinancialLiabilitiesUndiscountedCashFlows" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_DerivativeFinancialLiabilitiesUndiscountedCashFlows" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TradeAndOtherPayablesUndiscountedCashFlows" xlink:label="ifrs-full_TradeAndOtherPayablesUndiscountedCashFlows" xlink:title="ifrs-full_TradeAndOtherPayablesUndiscountedCashFlows" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_TradeAndOtherPayablesUndiscountedCashFlows" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_TradeAndOtherPayablesUndiscountedCashFlows" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TradePayablesReverseFactoringUndiscountedCashFlows" xlink:label="ugp_TradePayablesReverseFactoringUndiscountedCashFlows" xlink:title="ugp_TradePayablesReverseFactoringUndiscountedCashFlows" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_TradePayablesReverseFactoringUndiscountedCashFlows" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_TradePayablesReverseFactoringUndiscountedCashFlows" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_GrossLeaseLiabilities" xlink:label="ifrs-full_GrossLeaseLiabilities" xlink:title="ifrs-full_GrossLeaseLiabilities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_GrossLeaseLiabilities" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_GrossLeaseLiabilities" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_FinancialLiabilitiesOfCustomersUndiscountedCashFlows" xlink:label="ugp_FinancialLiabilitiesOfCustomersUndiscountedCashFlows" xlink:title="ugp_FinancialLiabilitiesOfCustomersUndiscountedCashFlows" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_FinancialLiabilitiesOfCustomersUndiscountedCashFlows" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_FinancialLiabilitiesOfCustomersUndiscountedCashFlows" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ContingentConsiderationRecognisedAsOfAcquisitionDate" xlink:label="ifrs-full_ContingentConsiderationRecognisedAsOfAcquisitionDate" xlink:title="ifrs-full_ContingentConsiderationRecognisedAsOfAcquisitionDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_ContingentConsiderationRecognisedAsOfAcquisitionDate" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_ContingentConsiderationRecognisedAsOfAcquisitionDate" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OtherPayablesUndiscountedCashFlows" xlink:label="ugp_OtherPayablesUndiscountedCashFlows" xlink:title="ugp_OtherPayablesUndiscountedCashFlows" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_OtherPayablesUndiscountedCashFlows" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_OtherPayablesUndiscountedCashFlows" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_FinancialLiabilitiesAndLeasesPayableUndiscountedCashFlows" xlink:label="ugp_FinancialLiabilitiesAndLeasesPayableUndiscountedCashFlows" xlink:title="ugp_FinancialLiabilitiesAndLeasesPayableUndiscountedCashFlows" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_FinancialLiabilitiesAndLeasesPayableUndiscountedCashFlows" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_FinancialLiabilitiesAndLeasesPayableUndiscountedCashFlows" xlink:type="arc" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:label="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:title="ifrs-full_DisclosureOfFinancialInstrumentsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:type="arc" order="9" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MaturityAxis" xlink:label="ifrs-full_MaturityAxis" xlink:title="ifrs-full_MaturityAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="ifrs-full_MaturityAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsTable to ifrs-full_MaturityAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="ifrs-full_MaturityDomain" xlink:title="ifrs-full_MaturityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_MaturityAxis" xlink:to="ifrs-full_MaturityDomain" xlink:title="Definition : ifrs-full_MaturityAxis to ifrs-full_MaturityDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NotLaterThanOneYearMember" xlink:label="ifrs-full_NotLaterThanOneYearMember" xlink:title="ifrs-full_NotLaterThanOneYearMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ifrs-full_NotLaterThanOneYearMember" xlink:title="Definition : ifrs-full_MaturityDomain to ifrs-full_NotLaterThanOneYearMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanOneYearAndNotLaterThanThreeYearsMember" xlink:label="ifrs-full_LaterThanOneYearAndNotLaterThanThreeYearsMember" xlink:title="ifrs-full_LaterThanOneYearAndNotLaterThanThreeYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ifrs-full_LaterThanOneYearAndNotLaterThanThreeYearsMember" xlink:title="Definition : ifrs-full_MaturityDomain to ifrs-full_LaterThanOneYearAndNotLaterThanThreeYearsMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanThreeYearsAndNotLaterThanFiveYearsMember" xlink:label="ifrs-full_LaterThanThreeYearsAndNotLaterThanFiveYearsMember" xlink:title="ifrs-full_LaterThanThreeYearsAndNotLaterThanFiveYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ifrs-full_LaterThanThreeYearsAndNotLaterThanFiveYearsMember" xlink:title="Definition : ifrs-full_MaturityDomain to ifrs-full_LaterThanThreeYearsAndNotLaterThanFiveYearsMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanFiveYearsMember" xlink:label="ifrs-full_LaterThanFiveYearsMember" xlink:title="ifrs-full_LaterThanFiveYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ifrs-full_LaterThanFiveYearsMember" xlink:title="Definition : ifrs-full_MaturityDomain to ifrs-full_LaterThanFiveYearsMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="ifrs-full_MaturityDomain_1" xlink:title="ifrs-full_MaturityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_MaturityAxis" xlink:to="ifrs-full_MaturityDomain_1" xlink:title="Definition : ifrs-full_MaturityAxis to ifrs-full_MaturityDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/FinancialInstrumentsPositionsofderivativefinancialinstrumentstohedgecommoditypriceriskDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:label="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:title="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DerivativeNonmonetaryNotionalAmountVolumeOne" xlink:label="ugp_DerivativeNonmonetaryNotionalAmountVolumeOne" xlink:title="ugp_DerivativeNonmonetaryNotionalAmountVolumeOne" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_DerivativeNonmonetaryNotionalAmountVolumeOne" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_DerivativeNonmonetaryNotionalAmountVolumeOne" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NominalAmountOfHedgingInstrumentsInHedgingRelationshipsToWhichAmendmentsForInterestRateBenchmarkReformAreApplied" xlink:label="ifrs-full_NominalAmountOfHedgingInstrumentsInHedgingRelationshipsToWhichAmendmentsForInterestRateBenchmarkReformAreApplied" xlink:title="ifrs-full_NominalAmountOfHedgingInstrumentsInHedgingRelationshipsToWhichAmendmentsForInterestRateBenchmarkReformAreApplied" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_NominalAmountOfHedgingInstrumentsInHedgingRelationshipsToWhichAmendmentsForInterestRateBenchmarkReformAreApplied" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_NominalAmountOfHedgingInstrumentsInHedgingRelationshipsToWhichAmendmentsForInterestRateBenchmarkReformAreApplied" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_FinancialDerivativeHedgingInstrumentsAtFairValue" xlink:label="ugp_FinancialDerivativeHedgingInstrumentsAtFairValue" xlink:title="ugp_FinancialDerivativeHedgingInstrumentsAtFairValue" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_FinancialDerivativeHedgingInstrumentsAtFairValue" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_FinancialDerivativeHedgingInstrumentsAtFairValue" xlink:type="arc" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:label="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:title="ifrs-full_DisclosureOfFinancialInstrumentsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:type="arc" order="3" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfRisksAxis" xlink:label="ifrs-full_TypesOfRisksAxis" xlink:title="ifrs-full_TypesOfRisksAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="ifrs-full_TypesOfRisksAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsTable to ifrs-full_TypesOfRisksAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfRisksDomain" xlink:label="ifrs-full_TypesOfRisksDomain" xlink:title="ifrs-full_TypesOfRisksDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_TypesOfRisksAxis" xlink:to="ifrs-full_TypesOfRisksDomain" xlink:title="Definition : ifrs-full_TypesOfRisksAxis to ifrs-full_TypesOfRisksDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CommodityPriceRiskMember" xlink:label="ifrs-full_CommodityPriceRiskMember" xlink:title="ifrs-full_CommodityPriceRiskMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfRisksDomain" xlink:to="ifrs-full_CommodityPriceRiskMember" xlink:title="Definition : ifrs-full_TypesOfRisksDomain to ifrs-full_CommodityPriceRiskMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfRisksDomain" xlink:label="ifrs-full_TypesOfRisksDomain_1" xlink:title="ifrs-full_TypesOfRisksDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_TypesOfRisksAxis" xlink:to="ifrs-full_TypesOfRisksDomain_1" xlink:title="Definition : ifrs-full_TypesOfRisksAxis to ifrs-full_TypesOfRisksDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProductsAndServicesAxis" xlink:label="ifrs-full_ProductsAndServicesAxis" xlink:title="ifrs-full_ProductsAndServicesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="ifrs-full_ProductsAndServicesAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsTable to ifrs-full_ProductsAndServicesAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProductsAndServicesDomain" xlink:label="ifrs-full_ProductsAndServicesDomain" xlink:title="ifrs-full_ProductsAndServicesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ProductsAndServicesAxis" xlink:to="ifrs-full_ProductsAndServicesDomain" xlink:title="Definition : ifrs-full_ProductsAndServicesAxis to ifrs-full_ProductsAndServicesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_HeatingOilOneMember" xlink:label="ugp_HeatingOilOneMember" xlink:title="ugp_HeatingOilOneMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ProductsAndServicesDomain" xlink:to="ugp_HeatingOilOneMember" xlink:title="Definition : ifrs-full_ProductsAndServicesDomain to ugp_HeatingOilOneMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_RBOBMember" xlink:label="ugp_RBOBMember" xlink:title="ugp_RBOBMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ProductsAndServicesDomain" xlink:to="ugp_RBOBMember" xlink:title="Definition : ifrs-full_ProductsAndServicesDomain to ugp_RBOBMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SoybeanOilMember" xlink:label="ugp_SoybeanOilMember" xlink:title="ugp_SoybeanOilMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ProductsAndServicesDomain" xlink:to="ugp_SoybeanOilMember" xlink:title="Definition : ifrs-full_ProductsAndServicesDomain to ugp_SoybeanOilMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SeaFreightMember" xlink:label="ugp_SeaFreightMember" xlink:title="ugp_SeaFreightMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ProductsAndServicesDomain" xlink:to="ugp_SeaFreightMember" xlink:title="Definition : ifrs-full_ProductsAndServicesDomain to ugp_SeaFreightMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_MarineFuelMember" xlink:label="ugp_MarineFuelMember" xlink:title="ugp_MarineFuelMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ProductsAndServicesDomain" xlink:to="ugp_MarineFuelMember" xlink:title="Definition : ifrs-full_ProductsAndServicesDomain to ugp_MarineFuelMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProductsAndServicesDomain" xlink:label="ifrs-full_ProductsAndServicesDomain_1" xlink:title="ifrs-full_ProductsAndServicesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ProductsAndServicesAxis" xlink:to="ifrs-full_ProductsAndServicesDomain_1" xlink:title="Definition : ifrs-full_ProductsAndServicesAxis to ifrs-full_ProductsAndServicesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsAxis" xlink:label="ifrs-full_ClassesOfFinancialAssetsAxis" xlink:title="ifrs-full_ClassesOfFinancialAssetsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="ifrs-full_ClassesOfFinancialAssetsAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsTable to ifrs-full_ClassesOfFinancialAssetsAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsDomain" xlink:label="ifrs-full_ClassesOfFinancialAssetsDomain" xlink:title="ifrs-full_ClassesOfFinancialAssetsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ClassesOfFinancialAssetsAxis" xlink:to="ifrs-full_ClassesOfFinancialAssetsDomain" xlink:title="Definition : ifrs-full_ClassesOfFinancialAssetsAxis to ifrs-full_ClassesOfFinancialAssetsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TermMember" xlink:label="ugp_TermMember" xlink:title="ugp_TermMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialAssetsDomain" xlink:to="ugp_TermMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialAssetsDomain to ugp_TermMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ForwardContractMember" xlink:label="ifrs-full_ForwardContractMember" xlink:title="ifrs-full_ForwardContractMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialAssetsDomain" xlink:to="ifrs-full_ForwardContractMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialAssetsDomain to ifrs-full_ForwardContractMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsDomain" xlink:label="ifrs-full_ClassesOfFinancialAssetsDomain_1" xlink:title="ifrs-full_ClassesOfFinancialAssetsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ClassesOfFinancialAssetsAxis" xlink:to="ifrs-full_ClassesOfFinancialAssetsDomain_1" xlink:title="Definition : ifrs-full_ClassesOfFinancialAssetsAxis to ifrs-full_ClassesOfFinancialAssetsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ScenarioAxis" xlink:label="ugp_ScenarioAxis" xlink:title="ugp_ScenarioAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="ugp_ScenarioAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsTable to ugp_ScenarioAxis" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ScenarioDomain" xlink:label="ugp_ScenarioDomain" xlink:title="ugp_ScenarioDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_ScenarioAxis" xlink:to="ugp_ScenarioDomain" xlink:title="Definition : ugp_ScenarioAxis to ugp_ScenarioDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ScenarioMember" xlink:label="ugp_ScenarioMember" xlink:title="ugp_ScenarioMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_ScenarioDomain" xlink:to="ugp_ScenarioMember" xlink:title="Definition : ugp_ScenarioDomain to ugp_ScenarioMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ScenarioDomain" xlink:label="ugp_ScenarioDomain_1" xlink:title="ugp_ScenarioDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_ScenarioAxis" xlink:to="ugp_ScenarioDomain_1" xlink:title="Definition : ugp_ScenarioAxis to ugp_ScenarioDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/RisksandFinancialInstrumentsSensitivityanalysisoffloatinginterestrateriskDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:label="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:title="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ExposureOfInterestRateRiskAbstract" xlink:label="ugp_ExposureOfInterestRateRiskAbstract" xlink:title="ugp_ExposureOfInterestRateRiskAbstract" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_ExposureOfInterestRateRiskAbstract" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_ExposureOfInterestRateRiskAbstract" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_InterestEffectOnCashEquivalentsAndFinancialInvestments" xlink:label="ugp_InterestEffectOnCashEquivalentsAndFinancialInvestments" xlink:title="ugp_InterestEffectOnCashEquivalentsAndFinancialInvestments" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_ExposureOfInterestRateRiskAbstract" xlink:to="ugp_InterestEffectOnCashEquivalentsAndFinancialInvestments" xlink:title="Definition : ugp_ExposureOfInterestRateRiskAbstract to ugp_InterestEffectOnCashEquivalentsAndFinancialInvestments" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ForeignExchangeHedgingInstrumentsAssetsInterestEffect" xlink:label="ugp_ForeignExchangeHedgingInstrumentsAssetsInterestEffect" xlink:title="ugp_ForeignExchangeHedgingInstrumentsAssetsInterestEffect" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_ExposureOfInterestRateRiskAbstract" xlink:to="ugp_ForeignExchangeHedgingInstrumentsAssetsInterestEffect" xlink:title="Definition : ugp_ExposureOfInterestRateRiskAbstract to ugp_ForeignExchangeHedgingInstrumentsAssetsInterestEffect" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_InterestRateHedgingInstrumentsLiabilitiesInterestEffect" xlink:label="ugp_InterestRateHedgingInstrumentsLiabilitiesInterestEffect" xlink:title="ugp_InterestRateHedgingInstrumentsLiabilitiesInterestEffect" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_ExposureOfInterestRateRiskAbstract" xlink:to="ugp_InterestRateHedgingInstrumentsLiabilitiesInterestEffect" xlink:title="Definition : ugp_ExposureOfInterestRateRiskAbstract to ugp_InterestRateHedgingInstrumentsLiabilitiesInterestEffect" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncrementalExpenses" xlink:label="ugp_IncrementalExpenses" xlink:title="ugp_IncrementalExpenses" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_ExposureOfInterestRateRiskAbstract" xlink:to="ugp_IncrementalExpenses" xlink:title="Definition : ugp_ExposureOfInterestRateRiskAbstract to ugp_IncrementalExpenses" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PeriodForSensitivityAnalysis" xlink:label="ugp_PeriodForSensitivityAnalysis" xlink:title="ugp_PeriodForSensitivityAnalysis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_ExposureOfInterestRateRiskAbstract" xlink:to="ugp_PeriodForSensitivityAnalysis" xlink:title="Definition : ugp_ExposureOfInterestRateRiskAbstract to ugp_PeriodForSensitivityAnalysis" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:label="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:title="ifrs-full_DisclosureOfFinancialInstrumentsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ScenarioAxis" xlink:label="ugp_ScenarioAxis" xlink:title="ugp_ScenarioAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="ugp_ScenarioAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsTable to ugp_ScenarioAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ScenarioDomain" xlink:label="ugp_ScenarioDomain" xlink:title="ugp_ScenarioDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_ScenarioAxis" xlink:to="ugp_ScenarioDomain" xlink:title="Definition : ugp_ScenarioAxis to ugp_ScenarioDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ScenarioMember" xlink:label="ugp_ScenarioMember" xlink:title="ugp_ScenarioMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_ScenarioDomain" xlink:to="ugp_ScenarioMember" xlink:title="Definition : ugp_ScenarioDomain to ugp_ScenarioMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ScenarioDomain" xlink:label="ugp_ScenarioDomain_1" xlink:title="ugp_ScenarioDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_ScenarioAxis" xlink:to="ugp_ScenarioDomain_1" xlink:title="Definition : ugp_ScenarioAxis to ugp_ScenarioDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfRisksAxis" xlink:label="ifrs-full_TypesOfRisksAxis" xlink:title="ifrs-full_TypesOfRisksAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="ifrs-full_TypesOfRisksAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsTable to ifrs-full_TypesOfRisksAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfRisksDomain" xlink:label="ifrs-full_TypesOfRisksDomain" xlink:title="ifrs-full_TypesOfRisksDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_TypesOfRisksAxis" xlink:to="ifrs-full_TypesOfRisksDomain" xlink:title="Definition : ifrs-full_TypesOfRisksAxis to ifrs-full_TypesOfRisksDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DiMember" xlink:label="ugp_DiMember" xlink:title="ugp_DiMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfRisksDomain" xlink:to="ugp_DiMember" xlink:title="Definition : ifrs-full_TypesOfRisksDomain to ugp_DiMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TJLPMember" xlink:label="ugp_TJLPMember" xlink:title="ugp_TJLPMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfRisksDomain" xlink:to="ugp_TJLPMember" xlink:title="Definition : ifrs-full_TypesOfRisksDomain to ugp_TJLPMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LIBORMember" xlink:label="ugp_LIBORMember" xlink:title="ugp_LIBORMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfRisksDomain" xlink:to="ugp_LIBORMember" xlink:title="Definition : ifrs-full_TypesOfRisksDomain to ugp_LIBORMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfRisksDomain" xlink:label="ifrs-full_TypesOfRisksDomain_1" xlink:title="ifrs-full_TypesOfRisksDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_TypesOfRisksAxis" xlink:to="ifrs-full_TypesOfRisksDomain_1" xlink:title="Definition : ifrs-full_TypesOfRisksAxis to ifrs-full_TypesOfRisksDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/RisksAndFinancialInstrumentsFinancialAssetsAndLiabilitiesExposedToFloatingInterestRatesDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:label="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:title="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NetAssetsLiabilitiesPositionExposedToFloatingInterestRates" xlink:label="ugp_NetAssetsLiabilitiesPositionExposedToFloatingInterestRates" xlink:title="ugp_NetAssetsLiabilitiesPositionExposedToFloatingInterestRates" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ugp_NetAssetsLiabilitiesPositionExposedToFloatingInterestRates" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ugp_NetAssetsLiabilitiesPositionExposedToFloatingInterestRates" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:label="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:title="ifrs-full_DisclosureOfFinancialInstrumentsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:type="arc" use="optional" order="1" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfRisksAxis" xlink:label="ifrs-full_TypesOfRisksAxis" xlink:title="ifrs-full_TypesOfRisksAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="ifrs-full_TypesOfRisksAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsTable to ifrs-full_TypesOfRisksAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfRisksDomain" xlink:label="ifrs-full_TypesOfRisksDomain" xlink:title="ifrs-full_TypesOfRisksDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_TypesOfRisksAxis" xlink:to="ifrs-full_TypesOfRisksDomain" xlink:title="Definition : ifrs-full_TypesOfRisksAxis to ifrs-full_TypesOfRisksDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DiMember" xlink:label="ugp_DiMember" xlink:title="ugp_DiMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfRisksDomain" xlink:to="ugp_DiMember" xlink:title="Definition : ifrs-full_TypesOfRisksDomain to ugp_DiMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TJLPMember" xlink:label="ugp_TJLPMember" xlink:title="ugp_TJLPMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfRisksDomain" xlink:to="ugp_TJLPMember" xlink:title="Definition : ifrs-full_TypesOfRisksDomain to ugp_TJLPMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LIBORMember" xlink:label="ugp_LIBORMember" xlink:title="ugp_LIBORMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfRisksDomain" xlink:to="ugp_LIBORMember" xlink:title="Definition : ifrs-full_TypesOfRisksDomain to ugp_LIBORMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SelicMember" xlink:label="ugp_SelicMember" xlink:title="ugp_SelicMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfRisksDomain" xlink:to="ugp_SelicMember" xlink:title="Definition : ifrs-full_TypesOfRisksDomain to ugp_SelicMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfRisksDomain" xlink:label="ifrs-full_TypesOfRisksDomain_1" xlink:title="ifrs-full_TypesOfRisksDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_TypesOfRisksAxis" xlink:to="ifrs-full_TypesOfRisksDomain_1" xlink:title="Definition : ifrs-full_TypesOfRisksAxis to ifrs-full_TypesOfRisksDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_BalanceSheetPositionAxis" xlink:label="ugp_BalanceSheetPositionAxis" xlink:title="ugp_BalanceSheetPositionAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="ugp_BalanceSheetPositionAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsTable to ugp_BalanceSheetPositionAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_BalanceSheetPositionDomain" xlink:label="ugp_BalanceSheetPositionDomain" xlink:title="ugp_BalanceSheetPositionDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_BalanceSheetPositionAxis" xlink:to="ugp_BalanceSheetPositionDomain" xlink:title="Definition : ugp_BalanceSheetPositionAxis to ugp_BalanceSheetPositionDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CashEquivalentMember" xlink:label="ugp_CashEquivalentMember" xlink:title="ugp_CashEquivalentMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_BalanceSheetPositionDomain" xlink:to="ugp_CashEquivalentMember" xlink:title="Definition : ugp_BalanceSheetPositionDomain to ugp_CashEquivalentMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_FinancialInvestmentsMember" xlink:label="ugp_FinancialInvestmentsMember" xlink:title="ugp_FinancialInvestmentsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_BalanceSheetPositionDomain" xlink:to="ugp_FinancialInvestmentsMember" xlink:title="Definition : ugp_BalanceSheetPositionDomain to ugp_FinancialInvestmentsMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TradeReceivablesSaleOfSubsidiariesMember" xlink:label="ugp_TradeReceivablesSaleOfSubsidiariesMember" xlink:title="ugp_TradeReceivablesSaleOfSubsidiariesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_BalanceSheetPositionDomain" xlink:to="ugp_TradeReceivablesSaleOfSubsidiariesMember" xlink:title="Definition : ugp_BalanceSheetPositionDomain to ugp_TradeReceivablesSaleOfSubsidiariesMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LoansAndDebenturesMember" xlink:label="ugp_LoansAndDebenturesMember" xlink:title="ugp_LoansAndDebenturesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_BalanceSheetPositionDomain" xlink:to="ugp_LoansAndDebenturesMember" xlink:title="Definition : ugp_BalanceSheetPositionDomain to ugp_LoansAndDebenturesMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LiabilityPositionOfForeignExchangeHedgingInstrumentsMember" xlink:label="ugp_LiabilityPositionOfForeignExchangeHedgingInstrumentsMember" xlink:title="ugp_LiabilityPositionOfForeignExchangeHedgingInstrumentsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_BalanceSheetPositionDomain" xlink:to="ugp_LiabilityPositionOfForeignExchangeHedgingInstrumentsMember" xlink:title="Definition : ugp_BalanceSheetPositionDomain to ugp_LiabilityPositionOfForeignExchangeHedgingInstrumentsMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LiabilityPositionOfHedgingInstrumentsPreFixedMember" xlink:label="ugp_LiabilityPositionOfHedgingInstrumentsPreFixedMember" xlink:title="ugp_LiabilityPositionOfHedgingInstrumentsPreFixedMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_BalanceSheetPositionDomain" xlink:to="ugp_LiabilityPositionOfHedgingInstrumentsPreFixedMember" xlink:title="Definition : ugp_BalanceSheetPositionDomain to ugp_LiabilityPositionOfHedgingInstrumentsPreFixedMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AssetPositionOfForeignExchangeHedgingInstrumentsMember" xlink:label="ugp_AssetPositionOfForeignExchangeHedgingInstrumentsMember" xlink:title="ugp_AssetPositionOfForeignExchangeHedgingInstrumentsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_BalanceSheetPositionDomain" xlink:to="ugp_AssetPositionOfForeignExchangeHedgingInstrumentsMember" xlink:title="Definition : ugp_BalanceSheetPositionDomain to ugp_AssetPositionOfForeignExchangeHedgingInstrumentsMember" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LoanPayablesMember" xlink:label="ugp_LoanPayablesMember" xlink:title="ugp_LoanPayablesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_BalanceSheetPositionDomain" xlink:to="ugp_LoanPayablesMember" xlink:title="Definition : ugp_BalanceSheetPositionDomain to ugp_LoanPayablesMember" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_BalanceSheetPositionDomain" xlink:label="ugp_BalanceSheetPositionDomain_1" xlink:title="ugp_BalanceSheetPositionDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_BalanceSheetPositionAxis" xlink:to="ugp_BalanceSheetPositionDomain_1" xlink:title="Definition : ugp_BalanceSheetPositionAxis to ugp_BalanceSheetPositionDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/ProvisionforassetretirementobligationChangesintheprovisionforassetretirementobligationDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfOtherProvisionsLineItems" xlink:label="ifrs-full_DisclosureOfOtherProvisionsLineItems" xlink:title="ifrs-full_DisclosureOfOtherProvisionsLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OtherShorttermProvisions" xlink:label="ifrs-full_OtherShorttermProvisions" xlink:title="ifrs-full_OtherShorttermProvisions" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOtherProvisionsLineItems" xlink:to="ifrs-full_OtherShorttermProvisions" xlink:title="Definition : ifrs-full_DisclosureOfOtherProvisionsLineItems to ifrs-full_OtherShorttermProvisions" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OtherLongtermProvisions" xlink:label="ifrs-full_OtherLongtermProvisions" xlink:title="ifrs-full_OtherLongtermProvisions" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOtherProvisionsLineItems" xlink:to="ifrs-full_OtherLongtermProvisions" xlink:title="Definition : ifrs-full_DisclosureOfOtherProvisionsLineItems to ifrs-full_OtherLongtermProvisions" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfOtherProvisionsTable" xlink:label="ifrs-full_DisclosureOfOtherProvisionsTable" xlink:title="ifrs-full_DisclosureOfOtherProvisionsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfOtherProvisionsLineItems" xlink:to="ifrs-full_DisclosureOfOtherProvisionsTable" xlink:title="Definition : ifrs-full_DisclosureOfOtherProvisionsLineItems to ifrs-full_DisclosureOfOtherProvisionsTable" xlink:type="arc" use="optional" order="2" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfProvisionsAxis" xlink:label="ifrs-full_ClassesOfProvisionsAxis" xlink:title="ifrs-full_ClassesOfProvisionsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfOtherProvisionsTable" xlink:to="ifrs-full_ClassesOfProvisionsAxis" xlink:title="Definition : ifrs-full_DisclosureOfOtherProvisionsTable to ifrs-full_ClassesOfProvisionsAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfOtherProvisionsDomain" xlink:label="ifrs-full_ClassesOfOtherProvisionsDomain" xlink:title="ifrs-full_ClassesOfOtherProvisionsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ClassesOfProvisionsAxis" xlink:to="ifrs-full_ClassesOfOtherProvisionsDomain" xlink:title="Definition : ifrs-full_ClassesOfProvisionsAxis to ifrs-full_ClassesOfOtherProvisionsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ProvisionForAssetRetirementObligationMember" xlink:label="ugp_ProvisionForAssetRetirementObligationMember" xlink:title="ugp_ProvisionForAssetRetirementObligationMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfOtherProvisionsDomain" xlink:to="ugp_ProvisionForAssetRetirementObligationMember" xlink:title="Definition : ifrs-full_ClassesOfOtherProvisionsDomain to ugp_ProvisionForAssetRetirementObligationMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfOtherProvisionsDomain" xlink:label="ifrs-full_ClassesOfOtherProvisionsDomain_1" xlink:title="ifrs-full_ClassesOfOtherProvisionsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ClassesOfProvisionsAxis" xlink:to="ifrs-full_ClassesOfOtherProvisionsDomain_1" xlink:title="Definition : ifrs-full_ClassesOfProvisionsAxis to ifrs-full_ClassesOfOtherProvisionsDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/RightofuseassetsandleasespayableSummaryofAmortizationExpensesintheFinancialStatementsDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems" xlink:label="ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems" xlink:title="ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable" xlink:label="ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable" xlink:title="ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems" xlink:to="ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable" xlink:title="Definition : ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems to ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable" xlink:type="arc" use="optional" order="0" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncomeStatementLocationOneAxis" xlink:label="ugp_IncomeStatementLocationOneAxis" xlink:title="ugp_IncomeStatementLocationOneAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable" xlink:to="ugp_IncomeStatementLocationOneAxis" xlink:title="Definition : ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable to ugp_IncomeStatementLocationOneAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncomeStatementLocationOneDomain" xlink:label="ugp_IncomeStatementLocationOneDomain" xlink:title="ugp_IncomeStatementLocationOneDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_IncomeStatementLocationOneAxis" xlink:to="ugp_IncomeStatementLocationOneDomain" xlink:title="Definition : ugp_IncomeStatementLocationOneAxis to ugp_IncomeStatementLocationOneDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CostOfProductsAndServicesSoldMember" xlink:label="ugp_CostOfProductsAndServicesSoldMember" xlink:title="ugp_CostOfProductsAndServicesSoldMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_IncomeStatementLocationOneDomain" xlink:to="ugp_CostOfProductsAndServicesSoldMember" xlink:title="Definition : ugp_IncomeStatementLocationOneDomain to ugp_CostOfProductsAndServicesSoldMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SellingAndMarketingExpensesMember" xlink:label="ugp_SellingAndMarketingExpensesMember" xlink:title="ugp_SellingAndMarketingExpensesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_IncomeStatementLocationOneDomain" xlink:to="ugp_SellingAndMarketingExpensesMember" xlink:title="Definition : ugp_IncomeStatementLocationOneDomain to ugp_SellingAndMarketingExpensesMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_GeneralAndAdministrativeExpensesMember" xlink:label="ugp_GeneralAndAdministrativeExpensesMember" xlink:title="ugp_GeneralAndAdministrativeExpensesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_IncomeStatementLocationOneDomain" xlink:to="ugp_GeneralAndAdministrativeExpensesMember" xlink:title="Definition : ugp_IncomeStatementLocationOneDomain to ugp_GeneralAndAdministrativeExpensesMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncomeStatementLocationOneDomain" xlink:label="ugp_IncomeStatementLocationOneDomain_1" xlink:title="ugp_IncomeStatementLocationOneDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_IncomeStatementLocationOneAxis" xlink:to="ugp_IncomeStatementLocationOneDomain_1" xlink:title="Definition : ugp_IncomeStatementLocationOneAxis to ugp_IncomeStatementLocationOneDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/DiscontinuedoperationsDetailsTextuals">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems" xlink:label="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems" xlink:title="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProfitLossFromDiscontinuedOperations" xlink:label="ifrs-full_ProfitLossFromDiscontinuedOperations" xlink:title="ifrs-full_ProfitLossFromDiscontinuedOperations" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems" xlink:to="ifrs-full_ProfitLossFromDiscontinuedOperations" xlink:title="Definition : ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems to ifrs-full_ProfitLossFromDiscontinuedOperations" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsTable" xlink:label="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsTable" xlink:title="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems" xlink:to="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsTable" xlink:title="Definition : ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsLineItems to ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsTable" xlink:type="arc" use="optional" order="1" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:label="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:title="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsTable" xlink:to="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:title="Definition : ifrs-full_DisclosureOfAnalysisOfSingleAmountOfDiscontinuedOperationsTable to ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ContinuingOperationsMember" xlink:label="ifrs-full_ContinuingOperationsMember" xlink:title="ifrs-full_ContinuingOperationsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:to="ifrs-full_ContinuingOperationsMember" xlink:title="Definition : ifrs-full_ContinuingAndDiscontinuedOperationsAxis to ifrs-full_ContinuingOperationsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DiscontinuedOperationsMember" xlink:label="ifrs-full_DiscontinuedOperationsMember" xlink:title="ifrs-full_DiscontinuedOperationsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ContinuingOperationsMember" xlink:to="ifrs-full_DiscontinuedOperationsMember" xlink:title="Definition : ifrs-full_ContinuingOperationsMember to ifrs-full_DiscontinuedOperationsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ContinuingOperationsMember" xlink:label="ifrs-full_ContinuingOperationsMember_1" xlink:title="ifrs-full_ContinuingOperationsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:to="ifrs-full_ContinuingOperationsMember_1" xlink:title="Definition : ifrs-full_ContinuingAndDiscontinuedOperationsAxis to ifrs-full_ContinuingOperationsMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/EarningspershareAdditionalInformationDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" xlink:label="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" xlink:title="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ExerciseOfWarrantsRightsOutstanding" xlink:label="ugp_ExerciseOfWarrantsRightsOutstanding" xlink:title="ugp_ExerciseOfWarrantsRightsOutstanding" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" xlink:to="ugp_ExerciseOfWarrantsRightsOutstanding" xlink:title="Definition : ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems to ugp_ExerciseOfWarrantsRightsOutstanding" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable" xlink:label="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable" xlink:title="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" xlink:to="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable" xlink:title="Definition : ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems to ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable" xlink:type="arc" use="optional" order="1" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodAxis" xlink:label="ifrs-full_NonadjustingEventsAfterReportingPeriodAxis" xlink:title="ifrs-full_NonadjustingEventsAfterReportingPeriodAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable" xlink:to="ifrs-full_NonadjustingEventsAfterReportingPeriodAxis" xlink:title="Definition : ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable to ifrs-full_NonadjustingEventsAfterReportingPeriodAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xlink:label="ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xlink:title="ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_NonadjustingEventsAfterReportingPeriodAxis" xlink:to="ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xlink:title="Definition : ifrs-full_NonadjustingEventsAfterReportingPeriodAxis to ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MajorOrdinaryShareTransactionsMember" xlink:label="ifrs-full_MajorOrdinaryShareTransactionsMember" xlink:title="ifrs-full_MajorOrdinaryShareTransactionsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xlink:to="ifrs-full_MajorOrdinaryShareTransactionsMember" xlink:title="Definition : ifrs-full_NonadjustingEventsAfterReportingPeriodDomain to ifrs-full_MajorOrdinaryShareTransactionsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xlink:label="ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_1" xlink:title="ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_NonadjustingEventsAfterReportingPeriodAxis" xlink:to="ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_1" xlink:title="Definition : ifrs-full_NonadjustingEventsAfterReportingPeriodAxis to ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/IntangibleassetsBalancesofgoodwillParentheticalDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfReconciliationOfChangesInGoodwillLineItems" xlink:label="ifrs-full_DisclosureOfReconciliationOfChangesInGoodwillLineItems" xlink:title="ifrs-full_DisclosureOfReconciliationOfChangesInGoodwillLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfReconciliationOfChangesInGoodwillTable" xlink:label="ifrs-full_DisclosureOfReconciliationOfChangesInGoodwillTable" xlink:title="ifrs-full_DisclosureOfReconciliationOfChangesInGoodwillTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfReconciliationOfChangesInGoodwillLineItems" xlink:to="ifrs-full_DisclosureOfReconciliationOfChangesInGoodwillTable" xlink:title="Definition : ifrs-full_DisclosureOfReconciliationOfChangesInGoodwillLineItems to ifrs-full_DisclosureOfReconciliationOfChangesInGoodwillTable" xlink:type="arc" order="0" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ConsolidatedEntitiesAxis" xlink:label="srt_ConsolidatedEntitiesAxis" xlink:title="srt_ConsolidatedEntitiesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfReconciliationOfChangesInGoodwillTable" xlink:to="srt_ConsolidatedEntitiesAxis" xlink:title="Definition : ifrs-full_DisclosureOfReconciliationOfChangesInGoodwillTable to srt_ConsolidatedEntitiesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="srt_ConsolidatedEntitiesDomain" xlink:title="srt_ConsolidatedEntitiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_ConsolidatedEntitiesAxis" xlink:to="srt_ConsolidatedEntitiesDomain" xlink:title="Definition : srt_ConsolidatedEntitiesAxis to srt_ConsolidatedEntitiesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ParentCompanyMember" xlink:label="srt_ParentCompanyMember" xlink:title="srt_ParentCompanyMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_ConsolidatedEntitiesDomain" xlink:to="srt_ParentCompanyMember" xlink:title="Definition : srt_ConsolidatedEntitiesDomain to srt_ParentCompanyMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="srt_ConsolidatedEntitiesDomain_1" xlink:title="srt_ConsolidatedEntitiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_ConsolidatedEntitiesAxis" xlink:to="srt_ConsolidatedEntitiesDomain_1" xlink:title="Definition : srt_ConsolidatedEntitiesAxis to srt_ConsolidatedEntitiesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/PropertyPlantAndEquipmentSummaryOfDepreciationExpensesInTheFinancialStatementsDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" xlink:label="ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" xlink:title="ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable" xlink:label="ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable" xlink:title="ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" xlink:to="ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable" xlink:title="Definition : ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems to ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable" xlink:type="arc" use="optional" order="0" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncomeStatementLocationOneAxis" xlink:label="ugp_IncomeStatementLocationOneAxis" xlink:title="ugp_IncomeStatementLocationOneAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable" xlink:to="ugp_IncomeStatementLocationOneAxis" xlink:title="Definition : ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable to ugp_IncomeStatementLocationOneAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncomeStatementLocationOneDomain" xlink:label="ugp_IncomeStatementLocationOneDomain" xlink:title="ugp_IncomeStatementLocationOneDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_IncomeStatementLocationOneAxis" xlink:to="ugp_IncomeStatementLocationOneDomain" xlink:title="Definition : ugp_IncomeStatementLocationOneAxis to ugp_IncomeStatementLocationOneDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CostOfProductsAndServicesSoldMember" xlink:label="ugp_CostOfProductsAndServicesSoldMember" xlink:title="ugp_CostOfProductsAndServicesSoldMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_IncomeStatementLocationOneDomain" xlink:to="ugp_CostOfProductsAndServicesSoldMember" xlink:title="Definition : ugp_IncomeStatementLocationOneDomain to ugp_CostOfProductsAndServicesSoldMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SellingAndMarketingExpensesMember" xlink:label="ugp_SellingAndMarketingExpensesMember" xlink:title="ugp_SellingAndMarketingExpensesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_IncomeStatementLocationOneDomain" xlink:to="ugp_SellingAndMarketingExpensesMember" xlink:title="Definition : ugp_IncomeStatementLocationOneDomain to ugp_SellingAndMarketingExpensesMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_GeneralAndAdministrativeExpensesMember" xlink:label="ugp_GeneralAndAdministrativeExpensesMember" xlink:title="ugp_GeneralAndAdministrativeExpensesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_IncomeStatementLocationOneDomain" xlink:to="ugp_GeneralAndAdministrativeExpensesMember" xlink:title="Definition : ugp_IncomeStatementLocationOneDomain to ugp_GeneralAndAdministrativeExpensesMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncomeStatementLocationOneDomain" xlink:label="ugp_IncomeStatementLocationOneDomain_1" xlink:title="ugp_IncomeStatementLocationOneDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_IncomeStatementLocationOneAxis" xlink:to="ugp_IncomeStatementLocationOneDomain_1" xlink:title="Definition : ugp_IncomeStatementLocationOneAxis to ugp_IncomeStatementLocationOneDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/ProvisionsandcontingentliabilitiesBreakdownofprovisionsbynatureDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfOtherProvisionsLineItems" xlink:label="ifrs-full_DisclosureOfOtherProvisionsLineItems" xlink:title="ifrs-full_DisclosureOfOtherProvisionsLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OtherProvisions" xlink:label="ifrs-full_OtherProvisions" xlink:title="ifrs-full_OtherProvisions" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOtherProvisionsLineItems" xlink:to="ifrs-full_OtherProvisions" xlink:title="Definition : ifrs-full_DisclosureOfOtherProvisionsLineItems to ifrs-full_OtherProvisions" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AdditionalProvisionsOtherProvisions" xlink:label="ifrs-full_AdditionalProvisionsOtherProvisions" xlink:title="ifrs-full_AdditionalProvisionsOtherProvisions" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOtherProvisionsLineItems" xlink:to="ifrs-full_AdditionalProvisionsOtherProvisions" xlink:title="Definition : ifrs-full_DisclosureOfOtherProvisionsLineItems to ifrs-full_AdditionalProvisionsOtherProvisions" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_UnusedProvisionReversedOtherProvisions" xlink:label="ifrs-full_UnusedProvisionReversedOtherProvisions" xlink:title="ifrs-full_UnusedProvisionReversedOtherProvisions" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOtherProvisionsLineItems" xlink:to="ifrs-full_UnusedProvisionReversedOtherProvisions" xlink:title="Definition : ifrs-full_DisclosureOfOtherProvisionsLineItems to ifrs-full_UnusedProvisionReversedOtherProvisions" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProvisionUsedOtherProvisions" xlink:label="ifrs-full_ProvisionUsedOtherProvisions" xlink:title="ifrs-full_ProvisionUsedOtherProvisions" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOtherProvisionsLineItems" xlink:to="ifrs-full_ProvisionUsedOtherProvisions" xlink:title="Definition : ifrs-full_DisclosureOfOtherProvisionsLineItems to ifrs-full_ProvisionUsedOtherProvisions" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IncreaseDecreaseThroughTimeValueOfMoneyAdjustmentOtherProvisions" xlink:label="ifrs-full_IncreaseDecreaseThroughTimeValueOfMoneyAdjustmentOtherProvisions" xlink:title="ifrs-full_IncreaseDecreaseThroughTimeValueOfMoneyAdjustmentOtherProvisions" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOtherProvisionsLineItems" xlink:to="ifrs-full_IncreaseDecreaseThroughTimeValueOfMoneyAdjustmentOtherProvisions" xlink:title="Definition : ifrs-full_DisclosureOfOtherProvisionsLineItems to ifrs-full_IncreaseDecreaseThroughTimeValueOfMoneyAdjustmentOtherProvisions" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreaseThroughAcquisitionOfSubsidiaryOtherProvisions" xlink:label="ugp_IncreaseThroughAcquisitionOfSubsidiaryOtherProvisions" xlink:title="ugp_IncreaseThroughAcquisitionOfSubsidiaryOtherProvisions" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOtherProvisionsLineItems" xlink:to="ugp_IncreaseThroughAcquisitionOfSubsidiaryOtherProvisions" xlink:title="Definition : ifrs-full_DisclosureOfOtherProvisionsLineItems to ugp_IncreaseThroughAcquisitionOfSubsidiaryOtherProvisions" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DecreaseThroughTransferToLiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSaleOtherProvisions" xlink:label="ifrs-full_DecreaseThroughTransferToLiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSaleOtherProvisions" xlink:title="ifrs-full_DecreaseThroughTransferToLiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSaleOtherProvisions" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOtherProvisionsLineItems" xlink:to="ifrs-full_DecreaseThroughTransferToLiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSaleOtherProvisions" xlink:title="Definition : ifrs-full_DisclosureOfOtherProvisionsLineItems to ifrs-full_DecreaseThroughTransferToLiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSaleOtherProvisions" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ShorttermLegalProceedingsProvision" xlink:label="ifrs-full_ShorttermLegalProceedingsProvision" xlink:title="ifrs-full_ShorttermLegalProceedingsProvision" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOtherProvisionsLineItems" xlink:to="ifrs-full_ShorttermLegalProceedingsProvision" xlink:title="Definition : ifrs-full_DisclosureOfOtherProvisionsLineItems to ifrs-full_ShorttermLegalProceedingsProvision" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LongtermLegalProceedingsProvision" xlink:label="ifrs-full_LongtermLegalProceedingsProvision" xlink:title="ifrs-full_LongtermLegalProceedingsProvision" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfOtherProvisionsLineItems" xlink:to="ifrs-full_LongtermLegalProceedingsProvision" xlink:title="Definition : ifrs-full_DisclosureOfOtherProvisionsLineItems to ifrs-full_LongtermLegalProceedingsProvision" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfOtherProvisionsTable" xlink:label="ifrs-full_DisclosureOfOtherProvisionsTable" xlink:title="ifrs-full_DisclosureOfOtherProvisionsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfOtherProvisionsLineItems" xlink:to="ifrs-full_DisclosureOfOtherProvisionsTable" xlink:title="Definition : ifrs-full_DisclosureOfOtherProvisionsLineItems to ifrs-full_DisclosureOfOtherProvisionsTable" xlink:type="arc" order="9" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfProvisionsAxis" xlink:label="ifrs-full_ClassesOfProvisionsAxis" xlink:title="ifrs-full_ClassesOfProvisionsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfOtherProvisionsTable" xlink:to="ifrs-full_ClassesOfProvisionsAxis" xlink:title="Definition : ifrs-full_DisclosureOfOtherProvisionsTable to ifrs-full_ClassesOfProvisionsAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfOtherProvisionsDomain" xlink:label="ifrs-full_ClassesOfOtherProvisionsDomain" xlink:title="ifrs-full_ClassesOfOtherProvisionsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ClassesOfProvisionsAxis" xlink:to="ifrs-full_ClassesOfOtherProvisionsDomain" xlink:title="Definition : ifrs-full_ClassesOfProvisionsAxis to ifrs-full_ClassesOfOtherProvisionsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LegalProceedingsProvisionMember" xlink:label="ifrs-full_LegalProceedingsProvisionMember" xlink:title="ifrs-full_LegalProceedingsProvisionMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfOtherProvisionsDomain" xlink:to="ifrs-full_LegalProceedingsProvisionMember" xlink:title="Definition : ifrs-full_ClassesOfOtherProvisionsDomain to ifrs-full_LegalProceedingsProvisionMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IrpjAndCsllMember" xlink:label="ugp_IrpjAndCsllMember" xlink:title="ugp_IrpjAndCsllMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_LegalProceedingsProvisionMember" xlink:to="ugp_IrpjAndCsllMember" xlink:title="Definition : ifrs-full_LegalProceedingsProvisionMember to ugp_IrpjAndCsllMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ICMSStatevatMember" xlink:label="ugp_ICMSStatevatMember" xlink:title="ugp_ICMSStatevatMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_LegalProceedingsProvisionMember" xlink:to="ugp_ICMSStatevatMember" xlink:title="Definition : ifrs-full_LegalProceedingsProvisionMember to ugp_ICMSStatevatMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CivilEnvironmentalAndRegulatoryClaimsMember" xlink:label="ugp_CivilEnvironmentalAndRegulatoryClaimsMember" xlink:title="ugp_CivilEnvironmentalAndRegulatoryClaimsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_LegalProceedingsProvisionMember" xlink:to="ugp_CivilEnvironmentalAndRegulatoryClaimsMember" xlink:title="Definition : ifrs-full_LegalProceedingsProvisionMember to ugp_CivilEnvironmentalAndRegulatoryClaimsMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ProvisionForIndemnitiesMember" xlink:label="ugp_ProvisionForIndemnitiesMember" xlink:title="ugp_ProvisionForIndemnitiesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_LegalProceedingsProvisionMember" xlink:to="ugp_ProvisionForIndemnitiesMember" xlink:title="Definition : ifrs-full_LegalProceedingsProvisionMember to ugp_ProvisionForIndemnitiesMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LaborLitigationMember" xlink:label="ugp_LaborLitigationMember" xlink:title="ugp_LaborLitigationMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_LegalProceedingsProvisionMember" xlink:to="ugp_LaborLitigationMember" xlink:title="Definition : ifrs-full_LegalProceedingsProvisionMember to ugp_LaborLitigationMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MiscellaneousOtherProvisionsMember" xlink:label="ifrs-full_MiscellaneousOtherProvisionsMember" xlink:title="ifrs-full_MiscellaneousOtherProvisionsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_LegalProceedingsProvisionMember" xlink:to="ifrs-full_MiscellaneousOtherProvisionsMember" xlink:title="Definition : ifrs-full_LegalProceedingsProvisionMember to ifrs-full_MiscellaneousOtherProvisionsMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PisAndCofinsStateVATMember" xlink:label="ugp_PisAndCofinsStateVATMember" xlink:title="ugp_PisAndCofinsStateVATMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_LegalProceedingsProvisionMember" xlink:to="ugp_PisAndCofinsStateVATMember" xlink:title="Definition : ifrs-full_LegalProceedingsProvisionMember to ugp_PisAndCofinsStateVATMember" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfOtherProvisionsDomain" xlink:label="ifrs-full_ClassesOfOtherProvisionsDomain_1" xlink:title="ifrs-full_ClassesOfOtherProvisionsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ClassesOfProvisionsAxis" xlink:to="ifrs-full_ClassesOfOtherProvisionsDomain_1" xlink:title="Definition : ifrs-full_ClassesOfProvisionsAxis to ifrs-full_ClassesOfOtherProvisionsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/EmployeebenefitsandprivatepensionplanAdditionalinformationDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xlink:label="ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xlink:title="ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_MaximumMatchingContributionInProportionToEmployeeGrossSalaryPercentage" xlink:label="ugp_MaximumMatchingContributionInProportionToEmployeeGrossSalaryPercentage" xlink:title="ugp_MaximumMatchingContributionInProportionToEmployeeGrossSalaryPercentage" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xlink:to="ugp_MaximumMatchingContributionInProportionToEmployeeGrossSalaryPercentage" xlink:title="Definition : ifrs-full_DisclosureOfDefinedBenefitPlansLineItems to ugp_MaximumMatchingContributionInProportionToEmployeeGrossSalaryPercentage" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AccumulatedFundPercentage" xlink:label="ugp_AccumulatedFundPercentage" xlink:title="ugp_AccumulatedFundPercentage" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xlink:to="ugp_AccumulatedFundPercentage" xlink:title="Definition : ifrs-full_DisclosureOfDefinedBenefitPlansLineItems to ugp_AccumulatedFundPercentage" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_FixedAccumulatedFundPeriod" xlink:label="ugp_FixedAccumulatedFundPeriod" xlink:title="ugp_FixedAccumulatedFundPeriod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xlink:to="ugp_FixedAccumulatedFundPeriod" xlink:title="Definition : ifrs-full_DisclosureOfDefinedBenefitPlansLineItems to ugp_FixedAccumulatedFundPeriod" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DefinedContributionPensionPlanReversionFund" xlink:label="ugp_DefinedContributionPensionPlanReversionFund" xlink:title="ugp_DefinedContributionPensionPlanReversionFund" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xlink:to="ugp_DefinedContributionPensionPlanReversionFund" xlink:title="Definition : ifrs-full_DisclosureOfDefinedBenefitPlansLineItems to ugp_DefinedContributionPensionPlanReversionFund" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ContributionsToPlanByEmployerNetDefinedBenefitLiabilityAsset" xlink:label="ifrs-full_ContributionsToPlanByEmployerNetDefinedBenefitLiabilityAsset" xlink:title="ifrs-full_ContributionsToPlanByEmployerNetDefinedBenefitLiabilityAsset" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xlink:to="ifrs-full_ContributionsToPlanByEmployerNetDefinedBenefitLiabilityAsset" xlink:title="Definition : ifrs-full_DisclosureOfDefinedBenefitPlansLineItems to ifrs-full_ContributionsToPlanByEmployerNetDefinedBenefitLiabilityAsset" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_WeightedAverageDurationOfDefinedBenefitObligation2019" xlink:label="ifrs-full_WeightedAverageDurationOfDefinedBenefitObligation2019" xlink:title="ifrs-full_WeightedAverageDurationOfDefinedBenefitObligation2019" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xlink:to="ifrs-full_WeightedAverageDurationOfDefinedBenefitObligation2019" xlink:title="Definition : ifrs-full_DisclosureOfDefinedBenefitPlansLineItems to ifrs-full_WeightedAverageDurationOfDefinedBenefitObligation2019" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfActiveParticipatingEmployees" xlink:label="ugp_NumberOfActiveParticipatingEmployees" xlink:title="ugp_NumberOfActiveParticipatingEmployees" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xlink:to="ugp_NumberOfActiveParticipatingEmployees" xlink:title="Definition : ifrs-full_DisclosureOfDefinedBenefitPlansLineItems to ugp_NumberOfActiveParticipatingEmployees" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfRetiredParticipatingEmployees" xlink:label="ugp_NumberOfRetiredParticipatingEmployees" xlink:title="ugp_NumberOfRetiredParticipatingEmployees" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xlink:to="ugp_NumberOfRetiredParticipatingEmployees" xlink:title="Definition : ifrs-full_DisclosureOfDefinedBenefitPlansLineItems to ugp_NumberOfRetiredParticipatingEmployees" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfFormerEmployeesReceivingBenefits" xlink:label="ugp_NumberOfFormerEmployeesReceivingBenefits" xlink:title="ugp_NumberOfFormerEmployeesReceivingBenefits" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xlink:to="ugp_NumberOfFormerEmployeesReceivingBenefits" xlink:title="Definition : ifrs-full_DisclosureOfDefinedBenefitPlansLineItems to ugp_NumberOfFormerEmployeesReceivingBenefits" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ContributionsToPlanByPlanParticipantsNetDefinedBenefitLiabilityAsset" xlink:label="ifrs-full_ContributionsToPlanByPlanParticipantsNetDefinedBenefitLiabilityAsset" xlink:title="ifrs-full_ContributionsToPlanByPlanParticipantsNetDefinedBenefitLiabilityAsset" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xlink:to="ifrs-full_ContributionsToPlanByPlanParticipantsNetDefinedBenefitLiabilityAsset" xlink:title="Definition : ifrs-full_DisclosureOfDefinedBenefitPlansLineItems to ifrs-full_ContributionsToPlanByPlanParticipantsNetDefinedBenefitLiabilityAsset" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DefinedContributionPensionPlanReversionFundReclassifiedToAssetsHeldForSale" xlink:label="ugp_DefinedContributionPensionPlanReversionFundReclassifiedToAssetsHeldForSale" xlink:title="ugp_DefinedContributionPensionPlanReversionFundReclassifiedToAssetsHeldForSale" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xlink:to="ugp_DefinedContributionPensionPlanReversionFundReclassifiedToAssetsHeldForSale" xlink:title="Definition : ifrs-full_DisclosureOfDefinedBenefitPlansLineItems to ugp_DefinedContributionPensionPlanReversionFundReclassifiedToAssetsHeldForSale" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ContributionsToPlanByEmployerPortionOfReversionFund" xlink:label="ugp_ContributionsToPlanByEmployerPortionOfReversionFund" xlink:title="ugp_ContributionsToPlanByEmployerPortionOfReversionFund" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xlink:to="ugp_ContributionsToPlanByEmployerPortionOfReversionFund" xlink:title="Definition : ifrs-full_DisclosureOfDefinedBenefitPlansLineItems to ugp_ContributionsToPlanByEmployerPortionOfReversionFund" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DemographicAssumptionPercentageOfReasonablyPossibleDecreaseInMortalityTableForOtherBenefits" xlink:label="ugp_DemographicAssumptionPercentageOfReasonablyPossibleDecreaseInMortalityTableForOtherBenefits" xlink:title="ugp_DemographicAssumptionPercentageOfReasonablyPossibleDecreaseInMortalityTableForOtherBenefits" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xlink:to="ugp_DemographicAssumptionPercentageOfReasonablyPossibleDecreaseInMortalityTableForOtherBenefits" xlink:title="Definition : ifrs-full_DisclosureOfDefinedBenefitPlansLineItems to ugp_DemographicAssumptionPercentageOfReasonablyPossibleDecreaseInMortalityTableForOtherBenefits" xlink:type="arc" use="optional" order="12" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfDefinedBenefitPlansTable" xlink:label="ifrs-full_DisclosureOfDefinedBenefitPlansTable" xlink:title="ifrs-full_DisclosureOfDefinedBenefitPlansTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xlink:to="ifrs-full_DisclosureOfDefinedBenefitPlansTable" xlink:title="Definition : ifrs-full_DisclosureOfDefinedBenefitPlansLineItems to ifrs-full_DisclosureOfDefinedBenefitPlansTable" xlink:type="arc" use="optional" order="13" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeAxis" xlink:label="ifrs-full_RangeAxis" xlink:title="ifrs-full_RangeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfDefinedBenefitPlansTable" xlink:to="ifrs-full_RangeAxis" xlink:title="Definition : ifrs-full_DisclosureOfDefinedBenefitPlansTable to ifrs-full_RangeAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeDomain" xlink:label="ifrs-full_RangeDomain" xlink:title="ifrs-full_RangeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_RangeAxis" xlink:to="ifrs-full_RangeDomain" xlink:title="Definition : ifrs-full_RangeAxis to ifrs-full_RangeDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BottomOfRangeMember" xlink:label="ifrs-full_BottomOfRangeMember" xlink:title="ifrs-full_BottomOfRangeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RangeDomain" xlink:to="ifrs-full_BottomOfRangeMember" xlink:title="Definition : ifrs-full_RangeDomain to ifrs-full_BottomOfRangeMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TopOfRangeMember" xlink:label="ifrs-full_TopOfRangeMember" xlink:title="ifrs-full_TopOfRangeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RangeDomain" xlink:to="ifrs-full_TopOfRangeMember" xlink:title="Definition : ifrs-full_RangeDomain to ifrs-full_TopOfRangeMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeDomain" xlink:label="ifrs-full_RangeDomain_1" xlink:title="ifrs-full_RangeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_RangeAxis" xlink:to="ifrs-full_RangeDomain_1" xlink:title="Definition : ifrs-full_RangeAxis to ifrs-full_RangeDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/LoansfinancingdebenturesandderivativefinancialinstrumentsSummaryofForeignLoanMaturityDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:label="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:title="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsAdjustmentToInterestRateBasis" xlink:label="ifrs-full_BorrowingsAdjustmentToInterestRateBasis" xlink:title="ifrs-full_BorrowingsAdjustmentToInterestRateBasis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_BorrowingsAdjustmentToInterestRateBasis" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_BorrowingsAdjustmentToInterestRateBasis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:label="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:title="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ForeignLoanAxis" xlink:label="ugp_ForeignLoanAxis" xlink:title="ugp_ForeignLoanAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:to="ugp_ForeignLoanAxis" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable to ugp_ForeignLoanAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ForeignLoanDomain" xlink:label="ugp_ForeignLoanDomain" xlink:title="ugp_ForeignLoanDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_ForeignLoanAxis" xlink:to="ugp_ForeignLoanDomain" xlink:title="Definition : ugp_ForeignLoanAxis to ugp_ForeignLoanDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ChargesMember" xlink:label="ugp_ChargesMember" xlink:title="ugp_ChargesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_ForeignLoanDomain" xlink:to="ugp_ChargesMember" xlink:title="Definition : ugp_ForeignLoanDomain to ugp_ChargesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ForeignLoanOneMember" xlink:label="ugp_ForeignLoanOneMember" xlink:title="ugp_ForeignLoanOneMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_ForeignLoanDomain" xlink:to="ugp_ForeignLoanOneMember" xlink:title="Definition : ugp_ForeignLoanDomain to ugp_ForeignLoanOneMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ForeignLoanTwoMember" xlink:label="ugp_ForeignLoanTwoMember" xlink:title="ugp_ForeignLoanTwoMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_ForeignLoanDomain" xlink:to="ugp_ForeignLoanTwoMember" xlink:title="Definition : ugp_ForeignLoanDomain to ugp_ForeignLoanTwoMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ForeignLoanThreeMember" xlink:label="ugp_ForeignLoanThreeMember" xlink:title="ugp_ForeignLoanThreeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_ForeignLoanDomain" xlink:to="ugp_ForeignLoanThreeMember" xlink:title="Definition : ugp_ForeignLoanDomain to ugp_ForeignLoanThreeMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ForeignLoanFourMember" xlink:label="ugp_ForeignLoanFourMember" xlink:title="ugp_ForeignLoanFourMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_ForeignLoanDomain" xlink:to="ugp_ForeignLoanFourMember" xlink:title="Definition : ugp_ForeignLoanDomain to ugp_ForeignLoanFourMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ForeignLoanFiveMember" xlink:label="ugp_ForeignLoanFiveMember" xlink:title="ugp_ForeignLoanFiveMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_ForeignLoanDomain" xlink:to="ugp_ForeignLoanFiveMember" xlink:title="Definition : ugp_ForeignLoanDomain to ugp_ForeignLoanFiveMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ForeignLoanSixMember" xlink:label="ugp_ForeignLoanSixMember" xlink:title="ugp_ForeignLoanSixMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_ForeignLoanDomain" xlink:to="ugp_ForeignLoanSixMember" xlink:title="Definition : ugp_ForeignLoanDomain to ugp_ForeignLoanSixMember" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ForeignLoanSevenMember" xlink:label="ugp_ForeignLoanSevenMember" xlink:title="ugp_ForeignLoanSevenMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_ForeignLoanDomain" xlink:to="ugp_ForeignLoanSevenMember" xlink:title="Definition : ugp_ForeignLoanDomain to ugp_ForeignLoanSevenMember" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ForeignLoanDomain" xlink:label="ugp_ForeignLoanDomain_1" xlink:title="ugp_ForeignLoanDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_ForeignLoanAxis" xlink:to="ugp_ForeignLoanDomain_1" xlink:title="Definition : ugp_ForeignLoanAxis to ugp_ForeignLoanDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable to ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CiaUltragazMember" xlink:label="ugp_CiaUltragazMember" xlink:title="ugp_CiaUltragazMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_CiaUltragazMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_CiaUltragazMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IconicLubrificantesSAMember" xlink:label="ugp_IconicLubrificantesSAMember" xlink:title="ugp_IconicLubrificantesSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_IconicLubrificantesSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_IconicLubrificantesSAMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IpirangaProdutosdePetroleoSAMember" xlink:label="ugp_IpirangaProdutosdePetroleoSAMember" xlink:title="ugp_IpirangaProdutosdePetroleoSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_IpirangaProdutosdePetroleoSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_IpirangaProdutosdePetroleoSAMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsByNameAxis" xlink:label="ifrs-full_BorrowingsByNameAxis" xlink:title="ifrs-full_BorrowingsByNameAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:to="ifrs-full_BorrowingsByNameAxis" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable to ifrs-full_BorrowingsByNameAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsByNameDomain" xlink:label="ifrs-full_BorrowingsByNameDomain" xlink:title="ifrs-full_BorrowingsByNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_BorrowingsByNameAxis" xlink:to="ifrs-full_BorrowingsByNameDomain" xlink:title="Definition : ifrs-full_BorrowingsByNameAxis to ifrs-full_BorrowingsByNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ForeignLoansMember" xlink:label="ugp_ForeignLoansMember" xlink:title="ugp_ForeignLoansMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BorrowingsByNameDomain" xlink:to="ugp_ForeignLoansMember" xlink:title="Definition : ifrs-full_BorrowingsByNameDomain to ugp_ForeignLoansMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsByNameDomain" xlink:label="ifrs-full_BorrowingsByNameDomain_1" xlink:title="ifrs-full_BorrowingsByNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_BorrowingsByNameAxis" xlink:to="ifrs-full_BorrowingsByNameDomain_1" xlink:title="Definition : ifrs-full_BorrowingsByNameAxis to ifrs-full_BorrowingsByNameDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/LoansfinancingdebenturesandderivativefinancialinstrumentsSummaryofLoanMaturityDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:label="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:title="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingCostsRecognisedAsExpense" xlink:label="ifrs-full_BorrowingCostsRecognisedAsExpense" xlink:title="ifrs-full_BorrowingCostsRecognisedAsExpense" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_BorrowingCostsRecognisedAsExpense" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_BorrowingCostsRecognisedAsExpense" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NotesAndDebenturesIssued" xlink:label="ifrs-full_NotesAndDebenturesIssued" xlink:title="ifrs-full_NotesAndDebenturesIssued" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_NotesAndDebenturesIssued" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_NotesAndDebenturesIssued" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:label="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:title="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:type="arc" order="2" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MaturityAxis" xlink:label="ifrs-full_MaturityAxis" xlink:title="ifrs-full_MaturityAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:to="ifrs-full_MaturityAxis" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable to ifrs-full_MaturityAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="ifrs-full_MaturityDomain" xlink:title="ifrs-full_MaturityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_MaturityAxis" xlink:to="ifrs-full_MaturityDomain" xlink:title="Definition : ifrs-full_MaturityAxis to ifrs-full_MaturityDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_MaturityOneMember" xlink:label="ugp_MaturityOneMember" xlink:title="ugp_MaturityOneMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ugp_MaturityOneMember" xlink:title="Definition : ifrs-full_MaturityDomain to ugp_MaturityOneMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_MaturityTwoMember" xlink:label="ugp_MaturityTwoMember" xlink:title="ugp_MaturityTwoMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ugp_MaturityTwoMember" xlink:title="Definition : ifrs-full_MaturityDomain to ugp_MaturityTwoMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_MaturityThreeMember" xlink:label="ugp_MaturityThreeMember" xlink:title="ugp_MaturityThreeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ugp_MaturityThreeMember" xlink:title="Definition : ifrs-full_MaturityDomain to ugp_MaturityThreeMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_MaturityFourMember" xlink:label="ugp_MaturityFourMember" xlink:title="ugp_MaturityFourMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ugp_MaturityFourMember" xlink:title="Definition : ifrs-full_MaturityDomain to ugp_MaturityFourMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_MaturityFiveMember" xlink:label="ugp_MaturityFiveMember" xlink:title="ugp_MaturityFiveMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ugp_MaturityFiveMember" xlink:title="Definition : ifrs-full_MaturityDomain to ugp_MaturityFiveMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_MaturitySixMember" xlink:label="ugp_MaturitySixMember" xlink:title="ugp_MaturitySixMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ugp_MaturitySixMember" xlink:title="Definition : ifrs-full_MaturityDomain to ugp_MaturitySixMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_MaturitySevenMember" xlink:label="ugp_MaturitySevenMember" xlink:title="ugp_MaturitySevenMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ugp_MaturitySevenMember" xlink:title="Definition : ifrs-full_MaturityDomain to ugp_MaturitySevenMember" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_MaturityEightMember" xlink:label="ugp_MaturityEightMember" xlink:title="ugp_MaturityEightMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ugp_MaturityEightMember" xlink:title="Definition : ifrs-full_MaturityDomain to ugp_MaturityEightMember" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_MaturityNineMember" xlink:label="ugp_MaturityNineMember" xlink:title="ugp_MaturityNineMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ugp_MaturityNineMember" xlink:title="Definition : ifrs-full_MaturityDomain to ugp_MaturityNineMember" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_MaturityTenMember" xlink:label="ugp_MaturityTenMember" xlink:title="ugp_MaturityTenMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ugp_MaturityTenMember" xlink:title="Definition : ifrs-full_MaturityDomain to ugp_MaturityTenMember" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_MaturityElevenMember" xlink:label="ugp_MaturityElevenMember" xlink:title="ugp_MaturityElevenMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_MaturityDomain" xlink:to="ugp_MaturityElevenMember" xlink:title="Definition : ifrs-full_MaturityDomain to ugp_MaturityElevenMember" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="ifrs-full_MaturityDomain_1" xlink:title="ifrs-full_MaturityDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_MaturityAxis" xlink:to="ifrs-full_MaturityDomain_1" xlink:title="Definition : ifrs-full_MaturityAxis to ifrs-full_MaturityDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:label="ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:title="ifrs-full_ClassesOfFinancialInstrumentsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:to="ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable to ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:title="ifrs-full_ClassesOfFinancialInstrumentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:to="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsAxis to ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebenturesMember" xlink:label="ugp_DebenturesMember" xlink:title="ugp_DebenturesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_DebenturesMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_DebenturesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="ifrs-full_ClassesOfFinancialInstrumentsDomain_1" xlink:title="ifrs-full_ClassesOfFinancialInstrumentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:to="ifrs-full_ClassesOfFinancialInstrumentsDomain_1" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsAxis to ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/LoansfinancingdebenturesandderivativefinancialinstrumentsSummaryofAppropriatedProfitorLossinTheFutureDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:label="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:title="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:label="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:title="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:type="arc" order="0" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:label="ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:title="ifrs-full_ClassesOfFinancialInstrumentsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:to="ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable to ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:title="ifrs-full_ClassesOfFinancialInstrumentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:to="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsAxis to ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DebenturesMember" xlink:label="ugp_DebenturesMember" xlink:title="ugp_DebenturesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_DebenturesMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_DebenturesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NotesInForeignMarketMember" xlink:label="ugp_NotesInForeignMarketMember" xlink:title="ugp_NotesInForeignMarketMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_NotesInForeignMarketMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_NotesInForeignMarketMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UnsecuredNotesPayableNotConvertibleIntoSharesMember" xlink:label="ugp_UnsecuredNotesPayableNotConvertibleIntoSharesMember" xlink:title="ugp_UnsecuredNotesPayableNotConvertibleIntoSharesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_UnsecuredNotesPayableNotConvertibleIntoSharesMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_UnsecuredNotesPayableNotConvertibleIntoSharesMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_BancoDoBrasilMember" xlink:label="ugp_BancoDoBrasilMember" xlink:title="ugp_BancoDoBrasilMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_BancoDoBrasilMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_BancoDoBrasilMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ForeignLoansMember" xlink:label="ugp_ForeignLoansMember" xlink:title="ugp_ForeignLoansMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_ForeignLoansMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_ForeignLoansMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OtherTransactionCostsMember" xlink:label="ugp_OtherTransactionCostsMember" xlink:title="ugp_OtherTransactionCostsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="ugp_OtherTransactionCostsMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsDomain to ugp_OtherTransactionCostsMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="ifrs-full_ClassesOfFinancialInstrumentsDomain_1" xlink:title="ifrs-full_ClassesOfFinancialInstrumentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:to="ifrs-full_ClassesOfFinancialInstrumentsDomain_1" xlink:title="Definition : ifrs-full_ClassesOfFinancialInstrumentsAxis to ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeAxis" xlink:label="ifrs-full_RangeAxis" xlink:title="ifrs-full_RangeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:to="ifrs-full_RangeAxis" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable to ifrs-full_RangeAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeDomain" xlink:label="ifrs-full_RangeDomain" xlink:title="ifrs-full_RangeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_RangeAxis" xlink:to="ifrs-full_RangeDomain" xlink:title="Definition : ifrs-full_RangeAxis to ifrs-full_RangeDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NotLaterThanOneYearMember" xlink:label="ifrs-full_NotLaterThanOneYearMember" xlink:title="ifrs-full_NotLaterThanOneYearMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RangeDomain" xlink:to="ifrs-full_NotLaterThanOneYearMember" xlink:title="Definition : ifrs-full_RangeDomain to ifrs-full_NotLaterThanOneYearMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:label="ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:title="ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RangeDomain" xlink:to="ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:title="Definition : ifrs-full_RangeDomain to ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:label="ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:title="ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RangeDomain" xlink:to="ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:title="Definition : ifrs-full_RangeDomain to ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember" xlink:label="ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember" xlink:title="ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RangeDomain" xlink:to="ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember" xlink:title="Definition : ifrs-full_RangeDomain to ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember" xlink:label="ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember" xlink:title="ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RangeDomain" xlink:to="ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember" xlink:title="Definition : ifrs-full_RangeDomain to ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanFiveYearsMember" xlink:label="ifrs-full_LaterThanFiveYearsMember" xlink:title="ifrs-full_LaterThanFiveYearsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RangeDomain" xlink:to="ifrs-full_LaterThanFiveYearsMember" xlink:title="Definition : ifrs-full_RangeDomain to ifrs-full_LaterThanFiveYearsMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeDomain" xlink:label="ifrs-full_RangeDomain_1" xlink:title="ifrs-full_RangeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_RangeAxis" xlink:to="ifrs-full_RangeDomain_1" xlink:title="Definition : ifrs-full_RangeAxis to ifrs-full_RangeDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/IntangibleassetsAdditionalInformationDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfIntangibleAssetsLineItems" xlink:label="ifrs-full_DisclosureOfIntangibleAssetsLineItems" xlink:title="ifrs-full_DisclosureOfIntangibleAssetsLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PeriodOfEvaluation" xlink:label="ugp_PeriodOfEvaluation" xlink:title="ugp_PeriodOfEvaluation" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfIntangibleAssetsLineItems" xlink:to="ugp_PeriodOfEvaluation" xlink:title="Definition : ifrs-full_DisclosureOfIntangibleAssetsLineItems to ugp_PeriodOfEvaluation" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PeriodToMaturity" xlink:label="ugp_PeriodToMaturity" xlink:title="ugp_PeriodToMaturity" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfIntangibleAssetsLineItems" xlink:to="ugp_PeriodToMaturity" xlink:title="Definition : ifrs-full_DisclosureOfIntangibleAssetsLineItems to ugp_PeriodToMaturity" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DiscountRate" xlink:label="ugp_DiscountRate" xlink:title="ugp_DiscountRate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfIntangibleAssetsLineItems" xlink:to="ugp_DiscountRate" xlink:title="Definition : ifrs-full_DisclosureOfIntangibleAssetsLineItems to ugp_DiscountRate" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_RealGrowthRate" xlink:label="ugp_RealGrowthRate" xlink:title="ugp_RealGrowthRate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfIntangibleAssetsLineItems" xlink:to="ugp_RealGrowthRate" xlink:title="Definition : ifrs-full_DisclosureOfIntangibleAssetsLineItems to ugp_RealGrowthRate" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ImpairmentLossRecognisedInProfitOrLossGoodwill" xlink:label="ifrs-full_ImpairmentLossRecognisedInProfitOrLossGoodwill" xlink:title="ifrs-full_ImpairmentLossRecognisedInProfitOrLossGoodwill" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfIntangibleAssetsLineItems" xlink:to="ifrs-full_ImpairmentLossRecognisedInProfitOrLossGoodwill" xlink:title="Definition : ifrs-full_DisclosureOfIntangibleAssetsLineItems to ifrs-full_ImpairmentLossRecognisedInProfitOrLossGoodwill" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IntangibleAssetsUnderDevelopment" xlink:label="ifrs-full_IntangibleAssetsUnderDevelopment" xlink:title="ifrs-full_IntangibleAssetsUnderDevelopment" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfIntangibleAssetsLineItems" xlink:to="ifrs-full_IntangibleAssetsUnderDevelopment" xlink:title="Definition : ifrs-full_DisclosureOfIntangibleAssetsLineItems to ifrs-full_IntangibleAssetsUnderDevelopment" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IncreaseDecreaseThroughTransfersPropertyPlantAndEquipment" xlink:label="ifrs-full_IncreaseDecreaseThroughTransfersPropertyPlantAndEquipment" xlink:title="ifrs-full_IncreaseDecreaseThroughTransfersPropertyPlantAndEquipment" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfIntangibleAssetsLineItems" xlink:to="ifrs-full_IncreaseDecreaseThroughTransfersPropertyPlantAndEquipment" xlink:title="Definition : ifrs-full_DisclosureOfIntangibleAssetsLineItems to ifrs-full_IncreaseDecreaseThroughTransfersPropertyPlantAndEquipment" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IncreaseDecreaseThroughTransfersIntangibleAssetsAndGoodwill" xlink:label="ifrs-full_IncreaseDecreaseThroughTransfersIntangibleAssetsAndGoodwill" xlink:title="ifrs-full_IncreaseDecreaseThroughTransfersIntangibleAssetsAndGoodwill" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfIntangibleAssetsLineItems" xlink:to="ifrs-full_IncreaseDecreaseThroughTransfersIntangibleAssetsAndGoodwill" xlink:title="Definition : ifrs-full_DisclosureOfIntangibleAssetsLineItems to ifrs-full_IncreaseDecreaseThroughTransfersIntangibleAssetsAndGoodwill" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfIntangibleAssetsTable" xlink:label="ifrs-full_DisclosureOfIntangibleAssetsTable" xlink:title="ifrs-full_DisclosureOfIntangibleAssetsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfIntangibleAssetsLineItems" xlink:to="ifrs-full_DisclosureOfIntangibleAssetsTable" xlink:title="Definition : ifrs-full_DisclosureOfIntangibleAssetsLineItems to ifrs-full_DisclosureOfIntangibleAssetsTable" xlink:type="arc" order="8" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SegmentsAxis" xlink:label="ifrs-full_SegmentsAxis" xlink:title="ifrs-full_SegmentsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfIntangibleAssetsTable" xlink:to="ifrs-full_SegmentsAxis" xlink:title="Definition : ifrs-full_DisclosureOfIntangibleAssetsTable to ifrs-full_SegmentsAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SegmentsDomain" xlink:label="ifrs-full_SegmentsDomain" xlink:title="ifrs-full_SegmentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SegmentsAxis" xlink:to="ifrs-full_SegmentsDomain" xlink:title="Definition : ifrs-full_SegmentsAxis to ifrs-full_SegmentsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ExtrafarmaMember" xlink:label="ugp_ExtrafarmaMember" xlink:title="ugp_ExtrafarmaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SegmentsDomain" xlink:to="ugp_ExtrafarmaMember" xlink:title="Definition : ifrs-full_SegmentsDomain to ugp_ExtrafarmaMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SegmentsDomain" xlink:label="ifrs-full_SegmentsDomain_1" xlink:title="ifrs-full_SegmentsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SegmentsAxis" xlink:to="ifrs-full_SegmentsDomain_1" xlink:title="Definition : ifrs-full_SegmentsAxis to ifrs-full_SegmentsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeAxis" xlink:label="ifrs-full_RangeAxis" xlink:title="ifrs-full_RangeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfIntangibleAssetsTable" xlink:to="ifrs-full_RangeAxis" xlink:title="Definition : ifrs-full_DisclosureOfIntangibleAssetsTable to ifrs-full_RangeAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeDomain" xlink:label="ifrs-full_RangeDomain" xlink:title="ifrs-full_RangeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_RangeAxis" xlink:to="ifrs-full_RangeDomain" xlink:title="Definition : ifrs-full_RangeAxis to ifrs-full_RangeDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BottomOfRangeMember" xlink:label="ifrs-full_BottomOfRangeMember" xlink:title="ifrs-full_BottomOfRangeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RangeDomain" xlink:to="ifrs-full_BottomOfRangeMember" xlink:title="Definition : ifrs-full_RangeDomain to ifrs-full_BottomOfRangeMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TopOfRangeMember" xlink:label="ifrs-full_TopOfRangeMember" xlink:title="ifrs-full_TopOfRangeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RangeDomain" xlink:to="ifrs-full_TopOfRangeMember" xlink:title="Definition : ifrs-full_RangeDomain to ifrs-full_TopOfRangeMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeDomain" xlink:label="ifrs-full_RangeDomain_1" xlink:title="ifrs-full_RangeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_RangeAxis" xlink:to="ifrs-full_RangeDomain_1" xlink:title="Definition : ifrs-full_RangeAxis to ifrs-full_RangeDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis" xlink:label="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis" xlink:title="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfIntangibleAssetsTable" xlink:to="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis" xlink:title="Definition : ifrs-full_DisclosureOfIntangibleAssetsTable to ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" xlink:label="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" xlink:title="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis" xlink:to="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" xlink:title="Definition : ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis to ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ComputerSoftwareMember" xlink:label="ifrs-full_ComputerSoftwareMember" xlink:title="ifrs-full_ComputerSoftwareMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" xlink:to="ifrs-full_ComputerSoftwareMember" xlink:title="Definition : ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain to ifrs-full_ComputerSoftwareMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IntangibleAssetsOtherThanGoodwillMember" xlink:label="ifrs-full_IntangibleAssetsOtherThanGoodwillMember" xlink:title="ifrs-full_IntangibleAssetsOtherThanGoodwillMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" xlink:to="ifrs-full_IntangibleAssetsOtherThanGoodwillMember" xlink:title="Definition : ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain to ifrs-full_IntangibleAssetsOtherThanGoodwillMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" xlink:label="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain_1" xlink:title="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis" xlink:to="ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain_1" xlink:title="Definition : ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis to ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfAssetsAxis" xlink:label="ifrs-full_ClassesOfAssetsAxis" xlink:title="ifrs-full_ClassesOfAssetsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfIntangibleAssetsTable" xlink:to="ifrs-full_ClassesOfAssetsAxis" xlink:title="Definition : ifrs-full_DisclosureOfIntangibleAssetsTable to ifrs-full_ClassesOfAssetsAxis" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="ifrs-full_ClassesOfAssetsDomain" xlink:title="ifrs-full_ClassesOfAssetsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ClassesOfAssetsAxis" xlink:to="ifrs-full_ClassesOfAssetsDomain" xlink:title="Definition : ifrs-full_ClassesOfAssetsAxis to ifrs-full_ClassesOfAssetsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RightofuseAssetsMember" xlink:label="ifrs-full_RightofuseAssetsMember" xlink:title="ifrs-full_RightofuseAssetsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfAssetsDomain" xlink:to="ifrs-full_RightofuseAssetsMember" xlink:title="Definition : ifrs-full_ClassesOfAssetsDomain to ifrs-full_RightofuseAssetsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="ifrs-full_ClassesOfAssetsDomain_1" xlink:title="ifrs-full_ClassesOfAssetsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ClassesOfAssetsAxis" xlink:to="ifrs-full_ClassesOfAssetsDomain_1" xlink:title="Definition : ifrs-full_ClassesOfAssetsAxis to ifrs-full_ClassesOfAssetsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/IntangibleassetsBalancesofgoodwillDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfReconciliationOfChangesInGoodwillLineItems" xlink:label="ifrs-full_DisclosureOfReconciliationOfChangesInGoodwillLineItems" xlink:title="ifrs-full_DisclosureOfReconciliationOfChangesInGoodwillLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_GoodwillAcquisitionSegment" xlink:label="ugp_GoodwillAcquisitionSegment" xlink:title="ugp_GoodwillAcquisitionSegment" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfReconciliationOfChangesInGoodwillLineItems" xlink:to="ugp_GoodwillAcquisitionSegment" xlink:title="Definition : ifrs-full_DisclosureOfReconciliationOfChangesInGoodwillLineItems to ugp_GoodwillAcquisitionSegment" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AcquisitionsThroughBusinessCombinationsIntangibleAssetsAndGoodwillGross" xlink:label="ugp_AcquisitionsThroughBusinessCombinationsIntangibleAssetsAndGoodwillGross" xlink:title="ugp_AcquisitionsThroughBusinessCombinationsIntangibleAssetsAndGoodwillGross" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfReconciliationOfChangesInGoodwillLineItems" xlink:to="ugp_AcquisitionsThroughBusinessCombinationsIntangibleAssetsAndGoodwillGross" xlink:title="Definition : ifrs-full_DisclosureOfReconciliationOfChangesInGoodwillLineItems to ugp_AcquisitionsThroughBusinessCombinationsIntangibleAssetsAndGoodwillGross" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ImpairmentLossRecognisedInProfitOrLossGoodwill" xlink:label="ifrs-full_ImpairmentLossRecognisedInProfitOrLossGoodwill" xlink:title="ifrs-full_ImpairmentLossRecognisedInProfitOrLossGoodwill" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfReconciliationOfChangesInGoodwillLineItems" xlink:to="ifrs-full_ImpairmentLossRecognisedInProfitOrLossGoodwill" xlink:title="Definition : ifrs-full_DisclosureOfReconciliationOfChangesInGoodwillLineItems to ifrs-full_ImpairmentLossRecognisedInProfitOrLossGoodwill" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AdditionalRecognitionGoodwill" xlink:label="ifrs-full_AdditionalRecognitionGoodwill" xlink:title="ifrs-full_AdditionalRecognitionGoodwill" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfReconciliationOfChangesInGoodwillLineItems" xlink:to="ifrs-full_AdditionalRecognitionGoodwill" xlink:title="Definition : ifrs-full_DisclosureOfReconciliationOfChangesInGoodwillLineItems to ifrs-full_AdditionalRecognitionGoodwill" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfReconciliationOfChangesInGoodwillTable" xlink:label="ifrs-full_DisclosureOfReconciliationOfChangesInGoodwillTable" xlink:title="ifrs-full_DisclosureOfReconciliationOfChangesInGoodwillTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfReconciliationOfChangesInGoodwillLineItems" xlink:to="ifrs-full_DisclosureOfReconciliationOfChangesInGoodwillTable" xlink:title="Definition : ifrs-full_DisclosureOfReconciliationOfChangesInGoodwillLineItems to ifrs-full_DisclosureOfReconciliationOfChangesInGoodwillTable" xlink:type="arc" order="4" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BusinessCombinationsAxis" xlink:label="ifrs-full_BusinessCombinationsAxis" xlink:title="ifrs-full_BusinessCombinationsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfReconciliationOfChangesInGoodwillTable" xlink:to="ifrs-full_BusinessCombinationsAxis" xlink:title="Definition : ifrs-full_DisclosureOfReconciliationOfChangesInGoodwillTable to ifrs-full_BusinessCombinationsAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BusinessCombinationsDomain" xlink:label="ifrs-full_BusinessCombinationsDomain" xlink:title="ifrs-full_BusinessCombinationsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_BusinessCombinationsAxis" xlink:to="ifrs-full_BusinessCombinationsDomain" xlink:title="Definition : ifrs-full_BusinessCombinationsAxis to ifrs-full_BusinessCombinationsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ExtrafarmaMember" xlink:label="ugp_ExtrafarmaMember" xlink:title="ugp_ExtrafarmaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_ExtrafarmaMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_ExtrafarmaMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IpirangaMember" xlink:label="ugp_IpirangaMember" xlink:title="ugp_IpirangaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_IpirangaMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_IpirangaMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UniaoTerminaisMember" xlink:label="ugp_UniaoTerminaisMember" xlink:title="ugp_UniaoTerminaisMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_UniaoTerminaisMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_UniaoTerminaisMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TexacoMember" xlink:label="ugp_TexacoMember" xlink:title="ugp_TexacoMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_TexacoMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_TexacoMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_StellaMember" xlink:label="ugp_StellaMember" xlink:title="ugp_StellaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_StellaMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_StellaMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IconicCblsamemberMember" xlink:label="ugp_IconicCblsamemberMember" xlink:title="ugp_IconicCblsamemberMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_IconicCblsamemberMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_IconicCblsamemberMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_WtzParticipacoesSAMember" xlink:label="ugp_WtzParticipacoesSAMember" xlink:title="ugp_WtzParticipacoesSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_WtzParticipacoesSAMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_WtzParticipacoesSAMember" xlink:type="arc" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OxitenoUruguayMember" xlink:label="ugp_OxitenoUruguayMember" xlink:title="ugp_OxitenoUruguayMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_OxitenoUruguayMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_OxitenoUruguayMember" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TemmarMember" xlink:label="ugp_TemmarMember" xlink:title="ugp_TemmarMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_TemmarMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_TemmarMember" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DNPMember" xlink:label="ugp_DNPMember" xlink:title="ugp_DNPMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_DNPMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_DNPMember" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_RepsolMember" xlink:label="ugp_RepsolMember" xlink:title="ugp_RepsolMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_RepsolMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_RepsolMember" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NeogasGroupMember" xlink:label="ugp_NeogasGroupMember" xlink:title="ugp_NeogasGroupMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_NeogasGroupMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_NeogasGroupMember" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SerraDieselMember" xlink:label="ugp_SerraDieselMember" xlink:title="ugp_SerraDieselMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_SerraDieselMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_SerraDieselMember" xlink:type="arc" use="optional" order="12" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TEASTerminalExportadorDeAlcoolDeSantosLtdaMember" xlink:label="ugp_TEASTerminalExportadorDeAlcoolDeSantosLtdaMember" xlink:title="ugp_TEASTerminalExportadorDeAlcoolDeSantosLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ugp_TEASTerminalExportadorDeAlcoolDeSantosLtdaMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ugp_TEASTerminalExportadorDeAlcoolDeSantosLtdaMember" xlink:type="arc" use="optional" order="13" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BusinessCombinationsMember" xlink:label="ifrs-full_BusinessCombinationsMember" xlink:title="ifrs-full_BusinessCombinationsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BusinessCombinationsDomain" xlink:to="ifrs-full_BusinessCombinationsMember" xlink:title="Definition : ifrs-full_BusinessCombinationsDomain to ifrs-full_BusinessCombinationsMember" xlink:type="arc" use="optional" order="14" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BusinessCombinationsDomain" xlink:label="ifrs-full_BusinessCombinationsDomain_1" xlink:title="ifrs-full_BusinessCombinationsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_BusinessCombinationsAxis" xlink:to="ifrs-full_BusinessCombinationsDomain_1" xlink:title="Definition : ifrs-full_BusinessCombinationsAxis to ifrs-full_BusinessCombinationsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/RightofuseassetsandleasespayableSummaryofChangesinLeasePayablesDetail">
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DisclosureOfLeaseLiabilitiesLineItems" xlink:label="ugp_DisclosureOfLeaseLiabilitiesLineItems" xlink:title="ugp_DisclosureOfLeaseLiabilitiesLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LeaseLiabilities" xlink:label="ifrs-full_LeaseLiabilities" xlink:title="ifrs-full_LeaseLiabilities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfLeaseLiabilitiesLineItems" xlink:to="ifrs-full_LeaseLiabilities" xlink:title="Definition : ugp_DisclosureOfLeaseLiabilitiesLineItems to ifrs-full_LeaseLiabilities" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AmountOfReclassificationsOrChangesInPresentation" xlink:label="ifrs-full_AmountOfReclassificationsOrChangesInPresentation" xlink:title="ifrs-full_AmountOfReclassificationsOrChangesInPresentation" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfLeaseLiabilitiesLineItems" xlink:to="ifrs-full_AmountOfReclassificationsOrChangesInPresentation" xlink:title="Definition : ugp_DisclosureOfLeaseLiabilitiesLineItems to ifrs-full_AmountOfReclassificationsOrChangesInPresentation" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_InterestExpenseOnLeaseLiabilities" xlink:label="ifrs-full_InterestExpenseOnLeaseLiabilities" xlink:title="ifrs-full_InterestExpenseOnLeaseLiabilities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfLeaseLiabilitiesLineItems" xlink:to="ifrs-full_InterestExpenseOnLeaseLiabilities" xlink:title="Definition : ugp_DisclosureOfLeaseLiabilitiesLineItems to ifrs-full_InterestExpenseOnLeaseLiabilities" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CashOutflowForLeases" xlink:label="ifrs-full_CashOutflowForLeases" xlink:title="ifrs-full_CashOutflowForLeases" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfLeaseLiabilitiesLineItems" xlink:to="ifrs-full_CashOutflowForLeases" xlink:title="Definition : ugp_DisclosureOfLeaseLiabilitiesLineItems to ifrs-full_CashOutflowForLeases" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities" xlink:label="ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities" xlink:title="ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfLeaseLiabilitiesLineItems" xlink:to="ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities" xlink:title="Definition : ugp_DisclosureOfLeaseLiabilitiesLineItems to ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PrincipalPaymentAndFinancialLeases" xlink:label="ugp_PrincipalPaymentAndFinancialLeases" xlink:title="ugp_PrincipalPaymentAndFinancialLeases" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfLeaseLiabilitiesLineItems" xlink:to="ugp_PrincipalPaymentAndFinancialLeases" xlink:title="Definition : ugp_DisclosureOfLeaseLiabilitiesLineItems to ugp_PrincipalPaymentAndFinancialLeases" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LoansAndDebenturesInterestPayment" xlink:label="ugp_LoansAndDebenturesInterestPayment" xlink:title="ugp_LoansAndDebenturesInterestPayment" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfLeaseLiabilitiesLineItems" xlink:to="ugp_LoansAndDebenturesInterestPayment" xlink:title="Definition : ugp_DisclosureOfLeaseLiabilitiesLineItems to ugp_LoansAndDebenturesInterestPayment" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_InterestPaidForLeaseLiabilitiesClassifiedAsFinancingActivities" xlink:label="ugp_InterestPaidForLeaseLiabilitiesClassifiedAsFinancingActivities" xlink:title="ugp_InterestPaidForLeaseLiabilitiesClassifiedAsFinancingActivities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfLeaseLiabilitiesLineItems" xlink:to="ugp_InterestPaidForLeaseLiabilitiesClassifiedAsFinancingActivities" xlink:title="Definition : ugp_DisclosureOfLeaseLiabilitiesLineItems to ugp_InterestPaidForLeaseLiabilitiesClassifiedAsFinancingActivities" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AdditionsAndRemeasurementOfLeaseLiability" xlink:label="ugp_AdditionsAndRemeasurementOfLeaseLiability" xlink:title="ugp_AdditionsAndRemeasurementOfLeaseLiability" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfLeaseLiabilitiesLineItems" xlink:to="ugp_AdditionsAndRemeasurementOfLeaseLiability" xlink:title="Definition : ugp_DisclosureOfLeaseLiabilitiesLineItems to ugp_AdditionsAndRemeasurementOfLeaseLiability" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_WriteOffsOfLeaseLiabilities" xlink:label="ugp_WriteOffsOfLeaseLiabilities" xlink:title="ugp_WriteOffsOfLeaseLiabilities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfLeaseLiabilitiesLineItems" xlink:to="ugp_WriteOffsOfLeaseLiabilities" xlink:title="Definition : ugp_DisclosureOfLeaseLiabilitiesLineItems to ugp_WriteOffsOfLeaseLiabilities" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreaseDecreaseInBorrowingsThroughAcquisitionOfSubsidiary" xlink:label="ugp_IncreaseDecreaseInBorrowingsThroughAcquisitionOfSubsidiary" xlink:title="ugp_IncreaseDecreaseInBorrowingsThroughAcquisitionOfSubsidiary" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfLeaseLiabilitiesLineItems" xlink:to="ugp_IncreaseDecreaseInBorrowingsThroughAcquisitionOfSubsidiary" xlink:title="Definition : ugp_DisclosureOfLeaseLiabilitiesLineItems to ugp_IncreaseDecreaseInBorrowingsThroughAcquisitionOfSubsidiary" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreaseDecreaseThroughNetExchangeDifferencesLeaseLiabilities" xlink:label="ugp_IncreaseDecreaseThroughNetExchangeDifferencesLeaseLiabilities" xlink:title="ugp_IncreaseDecreaseThroughNetExchangeDifferencesLeaseLiabilities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfLeaseLiabilitiesLineItems" xlink:to="ugp_IncreaseDecreaseThroughNetExchangeDifferencesLeaseLiabilities" xlink:title="Definition : ugp_DisclosureOfLeaseLiabilitiesLineItems to ugp_IncreaseDecreaseThroughNetExchangeDifferencesLeaseLiabilities" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreaseDecreaseThroughAssignmentOfContractLeaseLiabilities" xlink:label="ugp_IncreaseDecreaseThroughAssignmentOfContractLeaseLiabilities" xlink:title="ugp_IncreaseDecreaseThroughAssignmentOfContractLeaseLiabilities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfLeaseLiabilitiesLineItems" xlink:to="ugp_IncreaseDecreaseThroughAssignmentOfContractLeaseLiabilities" xlink:title="Definition : ugp_DisclosureOfLeaseLiabilitiesLineItems to ugp_IncreaseDecreaseThroughAssignmentOfContractLeaseLiabilities" xlink:type="arc" use="optional" order="12" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DecreaseThroughClassifiedAsHeldForSaleLeaseLiabilities" xlink:label="ugp_DecreaseThroughClassifiedAsHeldForSaleLeaseLiabilities" xlink:title="ugp_DecreaseThroughClassifiedAsHeldForSaleLeaseLiabilities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfLeaseLiabilitiesLineItems" xlink:to="ugp_DecreaseThroughClassifiedAsHeldForSaleLeaseLiabilities" xlink:title="Definition : ugp_DisclosureOfLeaseLiabilitiesLineItems to ugp_DecreaseThroughClassifiedAsHeldForSaleLeaseLiabilities" xlink:type="arc" use="optional" order="13" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CurrentLeaseLiabilities" xlink:label="ifrs-full_CurrentLeaseLiabilities" xlink:title="ifrs-full_CurrentLeaseLiabilities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfLeaseLiabilitiesLineItems" xlink:to="ifrs-full_CurrentLeaseLiabilities" xlink:title="Definition : ugp_DisclosureOfLeaseLiabilitiesLineItems to ifrs-full_CurrentLeaseLiabilities" xlink:type="arc" use="optional" order="14" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NoncurrentLeaseLiabilities" xlink:label="ifrs-full_NoncurrentLeaseLiabilities" xlink:title="ifrs-full_NoncurrentLeaseLiabilities" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_DisclosureOfLeaseLiabilitiesLineItems" xlink:to="ifrs-full_NoncurrentLeaseLiabilities" xlink:title="Definition : ugp_DisclosureOfLeaseLiabilitiesLineItems to ifrs-full_NoncurrentLeaseLiabilities" xlink:type="arc" use="optional" order="15" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DisclosureOfLeaseLiabilitiesTable" xlink:label="ugp_DisclosureOfLeaseLiabilitiesTable" xlink:title="ugp_DisclosureOfLeaseLiabilitiesTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ugp_DisclosureOfLeaseLiabilitiesLineItems" xlink:to="ugp_DisclosureOfLeaseLiabilitiesTable" xlink:title="Definition : ugp_DisclosureOfLeaseLiabilitiesLineItems to ugp_DisclosureOfLeaseLiabilitiesTable" xlink:type="arc" use="optional" order="16" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_DisclosureOfLeaseLiabilitiesTable" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="Definition : ugp_DisclosureOfLeaseLiabilitiesTable to ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TequimarVilaDoCondeMember" xlink:label="ugp_TequimarVilaDoCondeMember" xlink:title="ugp_TequimarVilaDoCondeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_TequimarVilaDoCondeMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_TequimarVilaDoCondeMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LiabilitiesArisingFromFinancingActivitiesAxis" xlink:label="ifrs-full_LiabilitiesArisingFromFinancingActivitiesAxis" xlink:title="ifrs-full_LiabilitiesArisingFromFinancingActivitiesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_DisclosureOfLeaseLiabilitiesTable" xlink:to="ifrs-full_LiabilitiesArisingFromFinancingActivitiesAxis" xlink:title="Definition : ugp_DisclosureOfLeaseLiabilitiesTable to ifrs-full_LiabilitiesArisingFromFinancingActivitiesAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LiabilitiesArisingFromFinancingActivitiesDomain" xlink:label="ifrs-full_LiabilitiesArisingFromFinancingActivitiesDomain" xlink:title="ifrs-full_LiabilitiesArisingFromFinancingActivitiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_LiabilitiesArisingFromFinancingActivitiesAxis" xlink:to="ifrs-full_LiabilitiesArisingFromFinancingActivitiesDomain" xlink:title="Definition : ifrs-full_LiabilitiesArisingFromFinancingActivitiesAxis to ifrs-full_LiabilitiesArisingFromFinancingActivitiesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LeaseLiabilitiesMember" xlink:label="ifrs-full_LeaseLiabilitiesMember" xlink:title="ifrs-full_LeaseLiabilitiesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_LiabilitiesArisingFromFinancingActivitiesDomain" xlink:to="ifrs-full_LeaseLiabilitiesMember" xlink:title="Definition : ifrs-full_LiabilitiesArisingFromFinancingActivitiesDomain to ifrs-full_LeaseLiabilitiesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LiabilitiesArisingFromFinancingActivitiesDomain" xlink:label="ifrs-full_LiabilitiesArisingFromFinancingActivitiesDomain_1" xlink:title="ifrs-full_LiabilitiesArisingFromFinancingActivitiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_LiabilitiesArisingFromFinancingActivitiesAxis" xlink:to="ifrs-full_LiabilitiesArisingFromFinancingActivitiesDomain_1" xlink:title="Definition : ifrs-full_LiabilitiesArisingFromFinancingActivitiesAxis to ifrs-full_LiabilitiesArisingFromFinancingActivitiesDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_InitiallyAppliedIFRSsAxis" xlink:label="ifrs-full_InitiallyAppliedIFRSsAxis" xlink:title="ifrs-full_InitiallyAppliedIFRSsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_DisclosureOfLeaseLiabilitiesTable" xlink:to="ifrs-full_InitiallyAppliedIFRSsAxis" xlink:title="Definition : ugp_DisclosureOfLeaseLiabilitiesTable to ifrs-full_InitiallyAppliedIFRSsAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_InitiallyAppliedIFRSsDomain" xlink:label="ifrs-full_InitiallyAppliedIFRSsDomain" xlink:title="ifrs-full_InitiallyAppliedIFRSsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_InitiallyAppliedIFRSsAxis" xlink:to="ifrs-full_InitiallyAppliedIFRSsDomain" xlink:title="Definition : ifrs-full_InitiallyAppliedIFRSsAxis to ifrs-full_InitiallyAppliedIFRSsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IFRS16Member" xlink:label="ugp_IFRS16Member" xlink:title="ugp_IFRS16Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_InitiallyAppliedIFRSsDomain" xlink:to="ugp_IFRS16Member" xlink:title="Definition : ifrs-full_InitiallyAppliedIFRSsDomain to ugp_IFRS16Member" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_InitiallyAppliedIFRSsDomain" xlink:label="ifrs-full_InitiallyAppliedIFRSsDomain_1" xlink:title="ifrs-full_InitiallyAppliedIFRSsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_InitiallyAppliedIFRSsAxis" xlink:to="ifrs-full_InitiallyAppliedIFRSsDomain_1" xlink:title="Definition : ifrs-full_InitiallyAppliedIFRSsAxis to ifrs-full_InitiallyAppliedIFRSsDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/RightofuseassetsandleasespayableSummaryofInformationAboutRightofUseAssetsDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems" xlink:label="ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems" xlink:title="ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment" xlink:label="ifrs-full_UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment" xlink:title="ifrs-full_UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems" xlink:to="ifrs-full_UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment" xlink:title="Definition : ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems to ifrs-full_UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RightofuseAssets" xlink:label="ifrs-full_RightofuseAssets" xlink:title="ifrs-full_RightofuseAssets" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems" xlink:to="ifrs-full_RightofuseAssets" xlink:title="Definition : ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems to ifrs-full_RightofuseAssets" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AdditionsToRightofuseAssets" xlink:label="ifrs-full_AdditionsToRightofuseAssets" xlink:title="ifrs-full_AdditionsToRightofuseAssets" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems" xlink:to="ifrs-full_AdditionsToRightofuseAssets" xlink:title="Definition : ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems to ifrs-full_AdditionsToRightofuseAssets" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_WriteOffsOfRightOfUseAssets" xlink:label="ugp_WriteOffsOfRightOfUseAssets" xlink:title="ugp_WriteOffsOfRightOfUseAssets" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems" xlink:to="ugp_WriteOffsOfRightOfUseAssets" xlink:title="Definition : ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems to ugp_WriteOffsOfRightOfUseAssets" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreaseDecreaseThroughTransferOfRightOfUseAsset" xlink:label="ugp_IncreaseDecreaseThroughTransferOfRightOfUseAsset" xlink:title="ugp_IncreaseDecreaseThroughTransferOfRightOfUseAsset" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems" xlink:to="ugp_IncreaseDecreaseThroughTransferOfRightOfUseAsset" xlink:title="Definition : ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems to ugp_IncreaseDecreaseThroughTransferOfRightOfUseAsset" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AmortizationOfRightToUseAsset" xlink:label="ugp_AmortizationOfRightToUseAsset" xlink:title="ugp_AmortizationOfRightToUseAsset" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems" xlink:to="ugp_AmortizationOfRightToUseAsset" xlink:title="Definition : ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems to ugp_AmortizationOfRightToUseAsset" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreaseDecreaseInRightOfUseAssetThroughAcquisitionOfSubsidiaries" xlink:label="ugp_IncreaseDecreaseInRightOfUseAssetThroughAcquisitionOfSubsidiaries" xlink:title="ugp_IncreaseDecreaseInRightOfUseAssetThroughAcquisitionOfSubsidiaries" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems" xlink:to="ugp_IncreaseDecreaseInRightOfUseAssetThroughAcquisitionOfSubsidiaries" xlink:title="Definition : ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems to ugp_IncreaseDecreaseInRightOfUseAssetThroughAcquisitionOfSubsidiaries" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DecreaseThroughClassifiedAsHeldForSaleRightOfUseAssets" xlink:label="ugp_DecreaseThroughClassifiedAsHeldForSaleRightOfUseAssets" xlink:title="ugp_DecreaseThroughClassifiedAsHeldForSaleRightOfUseAssets" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems" xlink:to="ugp_DecreaseThroughClassifiedAsHeldForSaleRightOfUseAssets" xlink:title="Definition : ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems to ugp_DecreaseThroughClassifiedAsHeldForSaleRightOfUseAssets" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AmountOfReclassificationsOrChangesInPresentation" xlink:label="ifrs-full_AmountOfReclassificationsOrChangesInPresentation" xlink:title="ifrs-full_AmountOfReclassificationsOrChangesInPresentation" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems" xlink:to="ifrs-full_AmountOfReclassificationsOrChangesInPresentation" xlink:title="Definition : ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems to ifrs-full_AmountOfReclassificationsOrChangesInPresentation" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncreaseDecreaseThroughNetExchangeDifferencesRightOfUseAssets" xlink:label="ugp_IncreaseDecreaseThroughNetExchangeDifferencesRightOfUseAssets" xlink:title="ugp_IncreaseDecreaseThroughNetExchangeDifferencesRightOfUseAssets" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems" xlink:to="ugp_IncreaseDecreaseThroughNetExchangeDifferencesRightOfUseAssets" xlink:title="Definition : ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems to ugp_IncreaseDecreaseThroughNetExchangeDifferencesRightOfUseAssets" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable" xlink:label="ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable" xlink:title="ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems" xlink:to="ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable" xlink:title="Definition : ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems to ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable" xlink:type="arc" order="11" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfAssetsAxis" xlink:label="ifrs-full_ClassesOfAssetsAxis" xlink:title="ifrs-full_ClassesOfAssetsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable" xlink:to="ifrs-full_ClassesOfAssetsAxis" xlink:title="Definition : ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable to ifrs-full_ClassesOfAssetsAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="ifrs-full_ClassesOfAssetsDomain" xlink:title="ifrs-full_ClassesOfAssetsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ClassesOfAssetsAxis" xlink:to="ifrs-full_ClassesOfAssetsDomain" xlink:title="Definition : ifrs-full_ClassesOfAssetsAxis to ifrs-full_ClassesOfAssetsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RightofuseAssetsMember" xlink:label="ifrs-full_RightofuseAssetsMember" xlink:title="ifrs-full_RightofuseAssetsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfAssetsDomain" xlink:to="ifrs-full_RightofuseAssetsMember" xlink:title="Definition : ifrs-full_ClassesOfAssetsDomain to ifrs-full_RightofuseAssetsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="ifrs-full_ClassesOfAssetsDomain_1" xlink:title="ifrs-full_ClassesOfAssetsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ClassesOfAssetsAxis" xlink:to="ifrs-full_ClassesOfAssetsDomain_1" xlink:title="Definition : ifrs-full_ClassesOfAssetsAxis to ifrs-full_ClassesOfAssetsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xlink:label="ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xlink:title="ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable" xlink:to="ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xlink:title="Definition : ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable to ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:label="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:title="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xlink:to="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:title="Definition : ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis to ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_RealEstatePropertyMember" xlink:label="ugp_RealEstatePropertyMember" xlink:title="ugp_RealEstatePropertyMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:to="ugp_RealEstatePropertyMember" xlink:title="Definition : ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain to ugp_RealEstatePropertyMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PortAreasMember" xlink:label="ugp_PortAreasMember" xlink:title="ugp_PortAreasMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:to="ugp_PortAreasMember" xlink:title="Definition : ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain to ugp_PortAreasMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_VehiclesMember" xlink:label="ifrs-full_VehiclesMember" xlink:title="ifrs-full_VehiclesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:to="ifrs-full_VehiclesMember" xlink:title="Definition : ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain to ifrs-full_VehiclesMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_MachineryMember" xlink:label="ifrs-full_MachineryMember" xlink:title="ifrs-full_MachineryMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:to="ifrs-full_MachineryMember" xlink:title="Definition : ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain to ifrs-full_MachineryMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_OtherAssetsMember" xlink:label="ifrs-full_OtherAssetsMember" xlink:title="ifrs-full_OtherAssetsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:to="ifrs-full_OtherAssetsMember" xlink:title="Definition : ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain to ifrs-full_OtherAssetsMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OtherAssetsIncludingVehiclesAndEquipmentMember" xlink:label="ugp_OtherAssetsIncludingVehiclesAndEquipmentMember" xlink:title="ugp_OtherAssetsIncludingVehiclesAndEquipmentMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:to="ugp_OtherAssetsIncludingVehiclesAndEquipmentMember" xlink:title="Definition : ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain to ugp_OtherAssetsIncludingVehiclesAndEquipmentMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_RealEstatePropertyOneMember" xlink:label="ugp_RealEstatePropertyOneMember" xlink:title="ugp_RealEstatePropertyOneMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:to="ugp_RealEstatePropertyOneMember" xlink:title="Definition : ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain to ugp_RealEstatePropertyOneMember" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:label="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_1" xlink:title="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xlink:to="ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_1" xlink:title="Definition : ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis to ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xlink:label="ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xlink:title="ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable" xlink:to="ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xlink:title="Definition : ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable to ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CarryingAmountMember" xlink:label="ifrs-full_CarryingAmountMember" xlink:title="ifrs-full_CarryingAmountMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xlink:to="ifrs-full_CarryingAmountMember" xlink:title="Definition : ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis to ifrs-full_CarryingAmountMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_GrossCarryingAmountMember" xlink:label="ifrs-full_GrossCarryingAmountMember" xlink:title="ifrs-full_GrossCarryingAmountMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CarryingAmountMember" xlink:to="ifrs-full_GrossCarryingAmountMember" xlink:title="Definition : ifrs-full_CarryingAmountMember to ifrs-full_GrossCarryingAmountMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AccumulatedDepreciationAndAmortisationMember" xlink:label="ifrs-full_AccumulatedDepreciationAndAmortisationMember" xlink:title="ifrs-full_AccumulatedDepreciationAndAmortisationMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CarryingAmountMember" xlink:to="ifrs-full_AccumulatedDepreciationAndAmortisationMember" xlink:title="Definition : ifrs-full_CarryingAmountMember to ifrs-full_AccumulatedDepreciationAndAmortisationMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_AccumulatedImpairmentMember" xlink:label="ifrs-full_AccumulatedImpairmentMember" xlink:title="ifrs-full_AccumulatedImpairmentMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CarryingAmountMember" xlink:to="ifrs-full_AccumulatedImpairmentMember" xlink:title="Definition : ifrs-full_CarryingAmountMember to ifrs-full_AccumulatedImpairmentMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CarryingAmountMember" xlink:label="ifrs-full_CarryingAmountMember_1" xlink:title="ifrs-full_CarryingAmountMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xlink:to="ifrs-full_CarryingAmountMember_1" xlink:title="Definition : ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis to ifrs-full_CarryingAmountMember" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/InvestmentsinsubsidiariesjointventuresandassociatesDetailsTextuals">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfJointVenturesLineItems" xlink:label="ifrs-full_DisclosureOfJointVenturesLineItems" xlink:title="ifrs-full_DisclosureOfJointVenturesLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PercentageOfVotingEquityInterestsAcquired" xlink:label="ifrs-full_PercentageOfVotingEquityInterestsAcquired" xlink:title="ifrs-full_PercentageOfVotingEquityInterestsAcquired" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfJointVenturesLineItems" xlink:to="ifrs-full_PercentageOfVotingEquityInterestsAcquired" xlink:title="Definition : ifrs-full_DisclosureOfJointVenturesLineItems to ifrs-full_PercentageOfVotingEquityInterestsAcquired" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProportionOfOwnershipInterestInJointVenture" xlink:label="ifrs-full_ProportionOfOwnershipInterestInJointVenture" xlink:title="ifrs-full_ProportionOfOwnershipInterestInJointVenture" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfJointVenturesLineItems" xlink:to="ifrs-full_ProportionOfOwnershipInterestInJointVenture" xlink:title="Definition : ifrs-full_DisclosureOfJointVenturesLineItems to ifrs-full_ProportionOfOwnershipInterestInJointVenture" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SaleValueOfJointVenture" xlink:label="ugp_SaleValueOfJointVenture" xlink:title="ugp_SaleValueOfJointVenture" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfJointVenturesLineItems" xlink:to="ugp_SaleValueOfJointVenture" xlink:title="Definition : ifrs-full_DisclosureOfJointVenturesLineItems to ugp_SaleValueOfJointVenture" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DecreaseThroughDispositionOfInvestmentInJointVentures" xlink:label="ugp_DecreaseThroughDispositionOfInvestmentInJointVentures" xlink:title="ugp_DecreaseThroughDispositionOfInvestmentInJointVentures" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfJointVenturesLineItems" xlink:to="ugp_DecreaseThroughDispositionOfInvestmentInJointVentures" xlink:title="Definition : ifrs-full_DisclosureOfJointVenturesLineItems to ugp_DecreaseThroughDispositionOfInvestmentInJointVentures" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_GainsLossesOnDisposalsOfInvestments" xlink:label="ifrs-full_GainsLossesOnDisposalsOfInvestments" xlink:title="ifrs-full_GainsLossesOnDisposalsOfInvestments" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfJointVenturesLineItems" xlink:to="ifrs-full_GainsLossesOnDisposalsOfInvestments" xlink:title="Definition : ifrs-full_DisclosureOfJointVenturesLineItems to ifrs-full_GainsLossesOnDisposalsOfInvestments" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfJointVenturesTable" xlink:label="ifrs-full_DisclosureOfJointVenturesTable" xlink:title="ifrs-full_DisclosureOfJointVenturesTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfJointVenturesLineItems" xlink:to="ifrs-full_DisclosureOfJointVenturesTable" xlink:title="Definition : ifrs-full_DisclosureOfJointVenturesLineItems to ifrs-full_DisclosureOfJointVenturesTable" xlink:type="arc" order="5" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_JointVenturesAxis" xlink:label="ifrs-full_JointVenturesAxis" xlink:title="ifrs-full_JointVenturesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfJointVenturesTable" xlink:to="ifrs-full_JointVenturesAxis" xlink:title="Definition : ifrs-full_DisclosureOfJointVenturesTable to ifrs-full_JointVenturesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_JointVenturesDomain" xlink:label="ifrs-full_JointVenturesDomain" xlink:title="ifrs-full_JointVenturesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_JointVenturesAxis" xlink:to="ifrs-full_JointVenturesDomain" xlink:title="Definition : ifrs-full_JointVenturesAxis to ifrs-full_JointVenturesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TerminalDeCombustiveisPauliniaSAOplaMember" xlink:label="ugp_TerminalDeCombustiveisPauliniaSAOplaMember" xlink:title="ugp_TerminalDeCombustiveisPauliniaSAOplaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_JointVenturesDomain" xlink:to="ugp_TerminalDeCombustiveisPauliniaSAOplaMember" xlink:title="Definition : ifrs-full_JointVenturesDomain to ugp_TerminalDeCombustiveisPauliniaSAOplaMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ConnectCarMember" xlink:label="ugp_ConnectCarMember" xlink:title="ugp_ConnectCarMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_JointVenturesDomain" xlink:to="ugp_ConnectCarMember" xlink:title="Definition : ifrs-full_JointVenturesDomain to ugp_ConnectCarMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_JointVenturesDomain" xlink:label="ifrs-full_JointVenturesDomain_1" xlink:title="ifrs-full_JointVenturesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_JointVenturesAxis" xlink:to="ifrs-full_JointVenturesDomain_1" xlink:title="Definition : ifrs-full_JointVenturesAxis to ifrs-full_JointVenturesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfJointVenturesTable" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="Definition : ifrs-full_DisclosureOfJointVenturesTable to ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltracargoLogisticaSAMember" xlink:label="ugp_UltracargoLogisticaSAMember" xlink:title="ugp_UltracargoLogisticaSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltracargoLogisticaSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltracargoLogisticaSAMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IpirangaProdutosdePetroleoSAMember" xlink:label="ugp_IpirangaProdutosdePetroleoSAMember" xlink:title="ugp_IpirangaProdutosdePetroleoSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_IpirangaProdutosdePetroleoSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_IpirangaProdutosdePetroleoSAMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_CounterpartyNameAxis" xlink:label="srt_CounterpartyNameAxis" xlink:title="srt_CounterpartyNameAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfJointVenturesTable" xlink:to="srt_CounterpartyNameAxis" xlink:title="Definition : ifrs-full_DisclosureOfJointVenturesTable to srt_CounterpartyNameAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="srt_RepurchaseAgreementCounterpartyNameDomain" xlink:title="srt_RepurchaseAgreementCounterpartyNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_CounterpartyNameAxis" xlink:to="srt_RepurchaseAgreementCounterpartyNameDomain" xlink:title="Definition : srt_CounterpartyNameAxis to srt_RepurchaseAgreementCounterpartyNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_RedecardSAMember" xlink:label="ugp_RedecardSAMember" xlink:title="ugp_RedecardSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_RepurchaseAgreementCounterpartyNameDomain" xlink:to="ugp_RedecardSAMember" xlink:title="Definition : srt_RepurchaseAgreementCounterpartyNameDomain to ugp_RedecardSAMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="srt_RepurchaseAgreementCounterpartyNameDomain_1" xlink:title="srt_RepurchaseAgreementCounterpartyNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_CounterpartyNameAxis" xlink:to="srt_RepurchaseAgreementCounterpartyNameDomain_1" xlink:title="Definition : srt_CounterpartyNameAxis to srt_RepurchaseAgreementCounterpartyNameDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/IncomeAndSocialContributionTaxesAdditionalInformationDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems" xlink:label="ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems" xlink:title="ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ApplicableTaxRate" xlink:label="ifrs-full_ApplicableTaxRate" xlink:title="ifrs-full_ApplicableTaxRate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems" xlink:to="ifrs-full_ApplicableTaxRate" xlink:title="Definition : ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems to ifrs-full_ApplicableTaxRate" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DeferredIncomeAndSocialContributionTaxAssets" xlink:label="ugp_DeferredIncomeAndSocialContributionTaxAssets" xlink:title="ugp_DeferredIncomeAndSocialContributionTaxAssets" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems" xlink:to="ugp_DeferredIncomeAndSocialContributionTaxAssets" xlink:title="Definition : ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems to ugp_DeferredIncomeAndSocialContributionTaxAssets" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncomeTaxReductionPercentage" xlink:label="ugp_IncomeTaxReductionPercentage" xlink:title="ugp_IncomeTaxReductionPercentage" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems" xlink:to="ugp_IncomeTaxReductionPercentage" xlink:title="Definition : ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems to ugp_IncomeTaxReductionPercentage" xlink:type="arc" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ThresholdAmountOfGrossRevenueForCalculationOfAlternativeMethodOfTaxationForCompanies" xlink:label="ugp_ThresholdAmountOfGrossRevenueForCalculationOfAlternativeMethodOfTaxationForCompanies" xlink:title="ugp_ThresholdAmountOfGrossRevenueForCalculationOfAlternativeMethodOfTaxationForCompanies" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems" xlink:to="ugp_ThresholdAmountOfGrossRevenueForCalculationOfAlternativeMethodOfTaxationForCompanies" xlink:title="Definition : ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems to ugp_ThresholdAmountOfGrossRevenueForCalculationOfAlternativeMethodOfTaxationForCompanies" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PercentageOfOperatingRevenuesForCalculationOfAlternativeMethodOfTaxationForCompanies" xlink:label="ugp_PercentageOfOperatingRevenuesForCalculationOfAlternativeMethodOfTaxationForCompanies" xlink:title="ugp_PercentageOfOperatingRevenuesForCalculationOfAlternativeMethodOfTaxationForCompanies" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems" xlink:to="ugp_PercentageOfOperatingRevenuesForCalculationOfAlternativeMethodOfTaxationForCompanies" xlink:title="Definition : ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems to ugp_PercentageOfOperatingRevenuesForCalculationOfAlternativeMethodOfTaxationForCompanies" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ThresholdPercentageOfTaxableIncomeForIndefiniteExpirationOfTaxLossCarryforwards" xlink:label="ugp_ThresholdPercentageOfTaxableIncomeForIndefiniteExpirationOfTaxLossCarryforwards" xlink:title="ugp_ThresholdPercentageOfTaxableIncomeForIndefiniteExpirationOfTaxLossCarryforwards" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems" xlink:to="ugp_ThresholdPercentageOfTaxableIncomeForIndefiniteExpirationOfTaxLossCarryforwards" xlink:title="Definition : ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems to ugp_ThresholdPercentageOfTaxableIncomeForIndefiniteExpirationOfTaxLossCarryforwards" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DeferredIncomeAndSocialContributionTaxesMonetaryVariationFromSpecialSystemForSettlementAndCustodyOnRepetitionOfTaxUnduePaymentsReclassifiedToAssetsHeldForSale" xlink:label="ugp_DeferredIncomeAndSocialContributionTaxesMonetaryVariationFromSpecialSystemForSettlementAndCustodyOnRepetitionOfTaxUnduePaymentsReclassifiedToAssetsHeldForSale" xlink:title="ugp_DeferredIncomeAndSocialContributionTaxesMonetaryVariationFromSpecialSystemForSettlementAndCustodyOnRepetitionOfTaxUnduePaymentsReclassifiedToAssetsHeldForSale" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems" xlink:to="ugp_DeferredIncomeAndSocialContributionTaxesMonetaryVariationFromSpecialSystemForSettlementAndCustodyOnRepetitionOfTaxUnduePaymentsReclassifiedToAssetsHeldForSale" xlink:title="Definition : ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems to ugp_DeferredIncomeAndSocialContributionTaxesMonetaryVariationFromSpecialSystemForSettlementAndCustodyOnRepetitionOfTaxUnduePaymentsReclassifiedToAssetsHeldForSale" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DeferredIncomeAndSocialContributionTaxesMonetaryVariationFromSpecialSystemForSettlementAndCustodyOnRepetitionOfTaxUnduePayments" xlink:label="ugp_DeferredIncomeAndSocialContributionTaxesMonetaryVariationFromSpecialSystemForSettlementAndCustodyOnRepetitionOfTaxUnduePayments" xlink:title="ugp_DeferredIncomeAndSocialContributionTaxesMonetaryVariationFromSpecialSystemForSettlementAndCustodyOnRepetitionOfTaxUnduePayments" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems" xlink:to="ugp_DeferredIncomeAndSocialContributionTaxesMonetaryVariationFromSpecialSystemForSettlementAndCustodyOnRepetitionOfTaxUnduePayments" xlink:title="Definition : ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems to ugp_DeferredIncomeAndSocialContributionTaxesMonetaryVariationFromSpecialSystemForSettlementAndCustodyOnRepetitionOfTaxUnduePayments" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncomeTaxBenefitRelatedToAssetsHeldForSale" xlink:label="ugp_IncomeTaxBenefitRelatedToAssetsHeldForSale" xlink:title="ugp_IncomeTaxBenefitRelatedToAssetsHeldForSale" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems" xlink:to="ugp_IncomeTaxBenefitRelatedToAssetsHeldForSale" xlink:title="Definition : ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems to ugp_IncomeTaxBenefitRelatedToAssetsHeldForSale" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncomeAndSocialContributionTaxBenefitRelatedToMonetaryVariationSelicOnRepetitionOfTaxUnduePayments" xlink:label="ugp_IncomeAndSocialContributionTaxBenefitRelatedToMonetaryVariationSelicOnRepetitionOfTaxUnduePayments" xlink:title="ugp_IncomeAndSocialContributionTaxBenefitRelatedToMonetaryVariationSelicOnRepetitionOfTaxUnduePayments" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems" xlink:to="ugp_IncomeAndSocialContributionTaxBenefitRelatedToMonetaryVariationSelicOnRepetitionOfTaxUnduePayments" xlink:title="Definition : ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems to ugp_IncomeAndSocialContributionTaxBenefitRelatedToMonetaryVariationSelicOnRepetitionOfTaxUnduePayments" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable" xlink:label="ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable" xlink:title="ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems" xlink:to="ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable" xlink:title="Definition : ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems to ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable" xlink:type="arc" order="10" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxesAxis" xlink:label="ugp_TaxesAxis" xlink:title="ugp_TaxesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable" xlink:to="ugp_TaxesAxis" xlink:title="Definition : ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable to ugp_TaxesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxesDomain" xlink:label="ugp_TaxesDomain" xlink:title="ugp_TaxesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_TaxesAxis" xlink:to="ugp_TaxesDomain" xlink:title="Definition : ugp_TaxesAxis to ugp_TaxesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IRPJMember" xlink:label="ugp_IRPJMember" xlink:title="ugp_IRPJMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_TaxesDomain" xlink:to="ugp_IRPJMember" xlink:title="Definition : ugp_TaxesDomain to ugp_IRPJMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CSLLMember" xlink:label="ugp_CSLLMember" xlink:title="ugp_CSLLMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_TaxesDomain" xlink:to="ugp_CSLLMember" xlink:title="Definition : ugp_TaxesDomain to ugp_CSLLMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TaxesDomain" xlink:label="ugp_TaxesDomain_1" xlink:title="ugp_TaxesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_TaxesAxis" xlink:to="ugp_TaxesDomain_1" xlink:title="Definition : ugp_TaxesAxis to ugp_TaxesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="Definition : ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable to ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltraparInternationalSAMember" xlink:label="ugp_UltraparInternationalSAMember" xlink:title="ugp_UltraparInternationalSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltraparInternationalSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltraparInternationalSAMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OxitenoSaMember" xlink:label="ugp_OxitenoSaMember" xlink:title="ugp_OxitenoSaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_OxitenoSaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_OxitenoSaMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ExtrafarmaMember" xlink:label="ugp_ExtrafarmaMember" xlink:title="ugp_ExtrafarmaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_ExtrafarmaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_ExtrafarmaMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ExtrafarmaOxitenoSAOleoquimicaAndEmcaMember" xlink:label="ugp_ExtrafarmaOxitenoSAOleoquimicaAndEmcaMember" xlink:title="ugp_ExtrafarmaOxitenoSAOleoquimicaAndEmcaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_ExtrafarmaOxitenoSAOleoquimicaAndEmcaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_ExtrafarmaOxitenoSAOleoquimicaAndEmcaMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OxitenoSAOleoquimicaAndEmcaMember" xlink:label="ugp_OxitenoSAOleoquimicaAndEmcaMember" xlink:title="ugp_OxitenoSAOleoquimicaAndEmcaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_OxitenoSAOleoquimicaAndEmcaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_OxitenoSAOleoquimicaAndEmcaMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/IncomeAndSocialContributionTaxesSummaryOfDeferredIncomeAndSocialContributionTaxAssetsDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems" xlink:label="ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems" xlink:title="ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DeferredIncomeAndSocialContributionTaxesTaxLossesAndNegativeBasisForSocialContributionCarryforwards" xlink:label="ugp_DeferredIncomeAndSocialContributionTaxesTaxLossesAndNegativeBasisForSocialContributionCarryforwards" xlink:title="ugp_DeferredIncomeAndSocialContributionTaxesTaxLossesAndNegativeBasisForSocialContributionCarryforwards" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems" xlink:to="ugp_DeferredIncomeAndSocialContributionTaxesTaxLossesAndNegativeBasisForSocialContributionCarryforwards" xlink:title="Definition : ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems to ugp_DeferredIncomeAndSocialContributionTaxesTaxLossesAndNegativeBasisForSocialContributionCarryforwards" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NonConstitutedDeferredTaxesRelatedToIncomeTaxLossCarryforwardsAndNegativeBasisOfSocialContributionBase" xlink:label="ugp_NonConstitutedDeferredTaxesRelatedToIncomeTaxLossCarryforwardsAndNegativeBasisOfSocialContributionBase" xlink:title="ugp_NonConstitutedDeferredTaxesRelatedToIncomeTaxLossCarryforwardsAndNegativeBasisOfSocialContributionBase" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems" xlink:to="ugp_NonConstitutedDeferredTaxesRelatedToIncomeTaxLossCarryforwardsAndNegativeBasisOfSocialContributionBase" xlink:title="Definition : ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems to ugp_NonConstitutedDeferredTaxesRelatedToIncomeTaxLossCarryforwardsAndNegativeBasisOfSocialContributionBase" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable" xlink:label="ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable" xlink:title="ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems" xlink:to="ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable" xlink:title="Definition : ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems to ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable" xlink:type="arc" order="2" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="Definition : ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable to ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OilTradingImportadoraExportadoraLtdaMember" xlink:label="ugp_OilTradingImportadoraExportadoraLtdaMember" xlink:title="ugp_OilTradingImportadoraExportadoraLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_OilTradingImportadoraExportadoraLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_OilTradingImportadoraExportadoraLtdaMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltraparMember" xlink:label="ugp_UltraparMember" xlink:title="ugp_UltraparMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltraparMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltraparMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AbasteceAiClubeMember" xlink:label="ugp_AbasteceAiClubeMember" xlink:title="ugp_AbasteceAiClubeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_AbasteceAiClubeMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_AbasteceAiClubeMember" xlink:type="arc" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TequimarVilaDoCondeMember" xlink:label="ugp_TequimarVilaDoCondeMember" xlink:title="ugp_TequimarVilaDoCondeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_TequimarVilaDoCondeMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_TequimarVilaDoCondeMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IpirangaMember" xlink:label="ugp_IpirangaMember" xlink:title="ugp_IpirangaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_IpirangaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_IpirangaMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltracargoMember" xlink:label="ugp_UltracargoMember" xlink:title="ugp_UltracargoMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltracargoMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltracargoMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NeogasGroupMember" xlink:label="ugp_NeogasGroupMember" xlink:title="ugp_NeogasGroupMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_NeogasGroupMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_NeogasGroupMember" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IntegraFrotasMember" xlink:label="ugp_IntegraFrotasMember" xlink:title="ugp_IntegraFrotasMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_IntegraFrotasMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_IntegraFrotasMember" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_StellaMember" xlink:label="ugp_StellaMember" xlink:title="ugp_StellaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_StellaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_StellaMember" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_MillenniumMember" xlink:label="ugp_MillenniumMember" xlink:title="ugp_MillenniumMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_MillenniumMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_MillenniumMember" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OtherSubsidiariesMember" xlink:label="ugp_OtherSubsidiariesMember" xlink:title="ugp_OtherSubsidiariesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_OtherSubsidiariesMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_OtherSubsidiariesMember" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="ifrs-full_GeographicalAreasAxis" xlink:title="ifrs-full_GeographicalAreasAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable" xlink:to="ifrs-full_GeographicalAreasAxis" xlink:title="Definition : ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable to ifrs-full_GeographicalAreasAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="ifrs-full_GeographicalAreasDomain" xlink:title="ifrs-full_GeographicalAreasDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_GeographicalAreasAxis" xlink:to="ifrs-full_GeographicalAreasDomain" xlink:title="Definition : ifrs-full_GeographicalAreasAxis to ifrs-full_GeographicalAreasDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OffshoreMember" xlink:label="ugp_OffshoreMember" xlink:title="ugp_OffshoreMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_GeographicalAreasDomain" xlink:to="ugp_OffshoreMember" xlink:title="Definition : ifrs-full_GeographicalAreasDomain to ugp_OffshoreMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OnshoreMember" xlink:label="ugp_OnshoreMember" xlink:title="ugp_OnshoreMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_GeographicalAreasDomain" xlink:to="ugp_OnshoreMember" xlink:title="Definition : ifrs-full_GeographicalAreasDomain to ugp_OnshoreMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="ifrs-full_GeographicalAreasDomain_1" xlink:title="ifrs-full_GeographicalAreasDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_GeographicalAreasAxis" xlink:to="ifrs-full_GeographicalAreasDomain_1" xlink:title="Definition : ifrs-full_GeographicalAreasAxis to ifrs-full_GeographicalAreasDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/IncomeAndSocialContributionTaxesSummaryOfTaxIncentivesDetail">
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SummaryOfIncomeAndSocialContributionTaxesLineItems" xlink:label="ugp_SummaryOfIncomeAndSocialContributionTaxesLineItems" xlink:title="ugp_SummaryOfIncomeAndSocialContributionTaxesLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_BusinessUnit" xlink:label="ugp_BusinessUnit" xlink:title="ugp_BusinessUnit" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfIncomeAndSocialContributionTaxesLineItems" xlink:to="ugp_BusinessUnit" xlink:title="Definition : ugp_SummaryOfIncomeAndSocialContributionTaxesLineItems to ugp_BusinessUnit" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IncentivePercentage" xlink:label="ugp_IncentivePercentage" xlink:title="ugp_IncentivePercentage" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfIncomeAndSocialContributionTaxesLineItems" xlink:to="ugp_IncentivePercentage" xlink:title="Definition : ugp_SummaryOfIncomeAndSocialContributionTaxesLineItems to ugp_IncentivePercentage" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ExpirationYear" xlink:label="ugp_ExpirationYear" xlink:title="ugp_ExpirationYear" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfIncomeAndSocialContributionTaxesLineItems" xlink:to="ugp_ExpirationYear" xlink:title="Definition : ugp_SummaryOfIncomeAndSocialContributionTaxesLineItems to ugp_ExpirationYear" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_RenewalOfConcessionTermFiledWithSuperintendenceForDevelopmentOfNortheast" xlink:label="ugp_RenewalOfConcessionTermFiledWithSuperintendenceForDevelopmentOfNortheast" xlink:title="ugp_RenewalOfConcessionTermFiledWithSuperintendenceForDevelopmentOfNortheast" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfIncomeAndSocialContributionTaxesLineItems" xlink:to="ugp_RenewalOfConcessionTermFiledWithSuperintendenceForDevelopmentOfNortheast" xlink:title="Definition : ugp_SummaryOfIncomeAndSocialContributionTaxesLineItems to ugp_RenewalOfConcessionTermFiledWithSuperintendenceForDevelopmentOfNortheast" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DisclosureOfDeferredIncomeAndSocialContributionTaxesTable" xlink:label="ugp_DisclosureOfDeferredIncomeAndSocialContributionTaxesTable" xlink:title="ugp_DisclosureOfDeferredIncomeAndSocialContributionTaxesTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ugp_SummaryOfIncomeAndSocialContributionTaxesLineItems" xlink:to="ugp_DisclosureOfDeferredIncomeAndSocialContributionTaxesTable" xlink:title="Definition : ugp_SummaryOfIncomeAndSocialContributionTaxesLineItems to ugp_DisclosureOfDeferredIncomeAndSocialContributionTaxesTable" xlink:type="arc" use="optional" order="4" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_DisclosureOfDeferredIncomeAndSocialContributionTaxesTable" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="Definition : ugp_DisclosureOfDeferredIncomeAndSocialContributionTaxesTable to ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_BahianaDistribuidoraDeGasLtdaMember" xlink:label="ugp_BahianaDistribuidoraDeGasLtdaMember" xlink:title="ugp_BahianaDistribuidoraDeGasLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_BahianaDistribuidoraDeGasLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_BahianaDistribuidoraDeGasLtdaMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltracargoLogisticaSAMember" xlink:label="ugp_UltracargoLogisticaSAMember" xlink:title="ugp_UltracargoLogisticaSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltracargoLogisticaSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltracargoLogisticaSAMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis" xlink:label="ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis" xlink:title="ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ugp_DisclosureOfDeferredIncomeAndSocialContributionTaxesTable" xlink:to="ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis" xlink:title="Definition : ugp_DisclosureOfDeferredIncomeAndSocialContributionTaxesTable to ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain" xlink:label="ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain" xlink:title="ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis" xlink:to="ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain" xlink:title="Definition : ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis to ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_MataripeBaseMember" xlink:label="ugp_MataripeBaseMember" xlink:title="ugp_MataripeBaseMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain" xlink:to="ugp_MataripeBaseMember" xlink:title="Definition : ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain to ugp_MataripeBaseMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CaucaiaBaseMember" xlink:label="ugp_CaucaiaBaseMember" xlink:title="ugp_CaucaiaBaseMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain" xlink:to="ugp_CaucaiaBaseMember" xlink:title="Definition : ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain to ugp_CaucaiaBaseMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_JuazeiroBaseMember" xlink:label="ugp_JuazeiroBaseMember" xlink:title="ugp_JuazeiroBaseMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain" xlink:to="ugp_JuazeiroBaseMember" xlink:title="Definition : ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain to ugp_JuazeiroBaseMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AracajuBaseMember" xlink:label="ugp_AracajuBaseMember" xlink:title="ugp_AracajuBaseMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain" xlink:to="ugp_AracajuBaseMember" xlink:title="Definition : ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain to ugp_AracajuBaseMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SuapeBaseMember" xlink:label="ugp_SuapeBaseMember" xlink:title="ugp_SuapeBaseMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain" xlink:to="ugp_SuapeBaseMember" xlink:title="Definition : ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain to ugp_SuapeBaseMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AratuTerminalMember" xlink:label="ugp_AratuTerminalMember" xlink:title="ugp_AratuTerminalMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain" xlink:to="ugp_AratuTerminalMember" xlink:title="Definition : ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain to ugp_AratuTerminalMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SuapeTerminalMember" xlink:label="ugp_SuapeTerminalMember" xlink:title="ugp_SuapeTerminalMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain" xlink:to="ugp_SuapeTerminalMember" xlink:title="Definition : ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain to ugp_SuapeTerminalMember" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ItaquiTerminalMember" xlink:label="ugp_ItaquiTerminalMember" xlink:title="ugp_ItaquiTerminalMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain" xlink:to="ugp_ItaquiTerminalMember" xlink:title="Definition : ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain to ugp_ItaquiTerminalMember" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain" xlink:label="ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain_1" xlink:title="ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis" xlink:to="ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain_1" xlink:title="Definition : ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis to ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/RelatedPartiesSummarizedChangesOfNumberOfRestrictedAndPerformanceSharesGrantedDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:label="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:title="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfInstrumentsOtherEquityInstrumentsCancellationOfPerformanceSharesDueToTerminationOfExecutiveEmploymen" xlink:label="ugp_NumberOfInstrumentsOtherEquityInstrumentsCancellationOfPerformanceSharesDueToTerminationOfExecutiveEmploymen" xlink:title="ugp_NumberOfInstrumentsOtherEquityInstrumentsCancellationOfPerformanceSharesDueToTerminationOfExecutiveEmploymen" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ugp_NumberOfInstrumentsOtherEquityInstrumentsCancellationOfPerformanceSharesDueToTerminationOfExecutiveEmploymen" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ugp_NumberOfInstrumentsOtherEquityInstrumentsCancellationOfPerformanceSharesDueToTerminationOfExecutiveEmploymen" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NumberOfOtherEquityInstrumentsOutstandingInSharebasedPaymentArrangement" xlink:label="ifrs-full_NumberOfOtherEquityInstrumentsOutstandingInSharebasedPaymentArrangement" xlink:title="ifrs-full_NumberOfOtherEquityInstrumentsOutstandingInSharebasedPaymentArrangement" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ifrs-full_NumberOfOtherEquityInstrumentsOutstandingInSharebasedPaymentArrangement" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ifrs-full_NumberOfOtherEquityInstrumentsOutstandingInSharebasedPaymentArrangement" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NumberOfInstrumentsOtherEquityInstrumentsGranted" xlink:label="ifrs-full_NumberOfInstrumentsOtherEquityInstrumentsGranted" xlink:title="ifrs-full_NumberOfInstrumentsOtherEquityInstrumentsGranted" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ifrs-full_NumberOfInstrumentsOtherEquityInstrumentsGranted" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ifrs-full_NumberOfInstrumentsOtherEquityInstrumentsGranted" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NumberOfOtherEquityInstrumentsExpiredInSharebasedPaymentArrangement" xlink:label="ifrs-full_NumberOfOtherEquityInstrumentsExpiredInSharebasedPaymentArrangement" xlink:title="ifrs-full_NumberOfOtherEquityInstrumentsExpiredInSharebasedPaymentArrangement" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ifrs-full_NumberOfOtherEquityInstrumentsExpiredInSharebasedPaymentArrangement" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ifrs-full_NumberOfOtherEquityInstrumentsExpiredInSharebasedPaymentArrangement" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfInstrumentsOtherEquityInstrumentsPerformanceSharesDueToTerminationOfExecutiveEmployment" xlink:label="ugp_NumberOfInstrumentsOtherEquityInstrumentsPerformanceSharesDueToTerminationOfExecutiveEmployment" xlink:title="ugp_NumberOfInstrumentsOtherEquityInstrumentsPerformanceSharesDueToTerminationOfExecutiveEmployment" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ugp_NumberOfInstrumentsOtherEquityInstrumentsPerformanceSharesDueToTerminationOfExecutiveEmployment" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ugp_NumberOfInstrumentsOtherEquityInstrumentsPerformanceSharesDueToTerminationOfExecutiveEmployment" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NumberOfOtherEquityInstrumentsExercisedOrVestedInSharebasedPaymentArrangement" xlink:label="ifrs-full_NumberOfOtherEquityInstrumentsExercisedOrVestedInSharebasedPaymentArrangement" xlink:title="ifrs-full_NumberOfOtherEquityInstrumentsExercisedOrVestedInSharebasedPaymentArrangement" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ifrs-full_NumberOfOtherEquityInstrumentsExercisedOrVestedInSharebasedPaymentArrangement" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ifrs-full_NumberOfOtherEquityInstrumentsExercisedOrVestedInSharebasedPaymentArrangement" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfOtherEquityInstrumentsReclassifiedFromHeldForSaleInShareBasedPaymentArrangement" xlink:label="ugp_NumberOfOtherEquityInstrumentsReclassifiedFromHeldForSaleInShareBasedPaymentArrangement" xlink:title="ugp_NumberOfOtherEquityInstrumentsReclassifiedFromHeldForSaleInShareBasedPaymentArrangement" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ugp_NumberOfOtherEquityInstrumentsReclassifiedFromHeldForSaleInShareBasedPaymentArrangement" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ugp_NumberOfOtherEquityInstrumentsReclassifiedFromHeldForSaleInShareBasedPaymentArrangement" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfOtherEquityInstrumentsReclassifiedToHeldForSaleInShareBasedPaymentArrangement" xlink:label="ugp_NumberOfOtherEquityInstrumentsReclassifiedToHeldForSaleInShareBasedPaymentArrangement" xlink:title="ugp_NumberOfOtherEquityInstrumentsReclassifiedToHeldForSaleInShareBasedPaymentArrangement" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ugp_NumberOfOtherEquityInstrumentsReclassifiedToHeldForSaleInShareBasedPaymentArrangement" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ugp_NumberOfOtherEquityInstrumentsReclassifiedToHeldForSaleInShareBasedPaymentArrangement" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:label="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:title="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:type="arc" use="optional" order="8" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SharebasedPaymentPlanNameAxis" xlink:label="ugp_SharebasedPaymentPlanNameAxis" xlink:title="ugp_SharebasedPaymentPlanNameAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:to="ugp_SharebasedPaymentPlanNameAxis" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable to ugp_SharebasedPaymentPlanNameAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SharebasedPaymentPlanNameDomain" xlink:label="ugp_SharebasedPaymentPlanNameDomain" xlink:title="ugp_SharebasedPaymentPlanNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_SharebasedPaymentPlanNameAxis" xlink:to="ugp_SharebasedPaymentPlanNameDomain" xlink:title="Definition : ugp_SharebasedPaymentPlanNameAxis to ugp_SharebasedPaymentPlanNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_RestrictedAndPerformanceStockMember" xlink:label="ugp_RestrictedAndPerformanceStockMember" xlink:title="ugp_RestrictedAndPerformanceStockMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SharebasedPaymentPlanNameDomain" xlink:to="ugp_RestrictedAndPerformanceStockMember" xlink:title="Definition : ugp_SharebasedPaymentPlanNameDomain to ugp_RestrictedAndPerformanceStockMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SharebasedPaymentPlanNameDomain" xlink:label="ugp_SharebasedPaymentPlanNameDomain_1" xlink:title="ugp_SharebasedPaymentPlanNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_SharebasedPaymentPlanNameAxis" xlink:to="ugp_SharebasedPaymentPlanNameDomain_1" xlink:title="Definition : ugp_SharebasedPaymentPlanNameAxis to ugp_SharebasedPaymentPlanNameDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:label="ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:title="ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:to="ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable to ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:label="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:title="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:to="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:title="Definition : ifrs-full_TypesOfSharebasedPaymentArrangementsAxis to ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_GrossSharesGrantDateApril12020Member" xlink:label="ugp_GrossSharesGrantDateApril12020Member" xlink:title="ugp_GrossSharesGrantDateApril12020Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:to="ugp_GrossSharesGrantDateApril12020Member" xlink:title="Definition : ifrs-full_TypesOfSharebasedPaymentArrangementsDomain to ugp_GrossSharesGrantDateApril12020Member" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_GrantDateSeptember162020Member" xlink:label="ugp_GrantDateSeptember162020Member" xlink:title="ugp_GrantDateSeptember162020Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:to="ugp_GrantDateSeptember162020Member" xlink:title="Definition : ifrs-full_TypesOfSharebasedPaymentArrangementsDomain to ugp_GrantDateSeptember162020Member" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_GrantDateApril72021Member" xlink:label="ugp_GrantDateApril72021Member" xlink:title="ugp_GrantDateApril72021Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:to="ugp_GrantDateApril72021Member" xlink:title="Definition : ifrs-full_TypesOfSharebasedPaymentArrangementsDomain to ugp_GrantDateApril72021Member" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_GrantDateSeptember222021Member" xlink:label="ugp_GrantDateSeptember222021Member" xlink:title="ugp_GrantDateSeptember222021Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:to="ugp_GrantDateSeptember222021Member" xlink:title="Definition : ifrs-full_TypesOfSharebasedPaymentArrangementsDomain to ugp_GrantDateSeptember222021Member" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:label="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_1" xlink:title="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:to="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_1" xlink:title="Definition : ifrs-full_TypesOfSharebasedPaymentArrangementsAxis to ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/TradereceivablesresellerfinancingandotherreceivablesSummaryofofTradeReceivablesGrossofLossAllowanceforExpectedCreditLossesDetail">
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SummaryOfTradeReceivablesLineItems" xlink:label="ugp_SummaryOfTradeReceivablesLineItems" xlink:title="ugp_SummaryOfTradeReceivablesLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ExpectedCreditLossRate" xlink:label="ifrs-full_ExpectedCreditLossRate" xlink:title="ifrs-full_ExpectedCreditLossRate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfTradeReceivablesLineItems" xlink:to="ifrs-full_ExpectedCreditLossRate" xlink:title="Definition : ugp_SummaryOfTradeReceivablesLineItems to ifrs-full_ExpectedCreditLossRate" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TradeAndOtherReceivablesGross" xlink:label="ugp_TradeAndOtherReceivablesGross" xlink:title="ugp_TradeAndOtherReceivablesGross" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfTradeReceivablesLineItems" xlink:to="ugp_TradeAndOtherReceivablesGross" xlink:title="Definition : ugp_SummaryOfTradeReceivablesLineItems to ugp_TradeAndOtherReceivablesGross" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AllowancesForDoubfulAccountsOnTradeReceivablesAndOtherReceivables" xlink:label="ugp_AllowancesForDoubfulAccountsOnTradeReceivablesAndOtherReceivables" xlink:title="ugp_AllowancesForDoubfulAccountsOnTradeReceivablesAndOtherReceivables" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfTradeReceivablesLineItems" xlink:to="ugp_AllowancesForDoubfulAccountsOnTradeReceivablesAndOtherReceivables" xlink:title="Definition : ugp_SummaryOfTradeReceivablesLineItems to ugp_AllowancesForDoubfulAccountsOnTradeReceivablesAndOtherReceivables" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialAssetsTable" xlink:label="ifrs-full_DisclosureOfFinancialAssetsTable" xlink:title="ifrs-full_DisclosureOfFinancialAssetsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ugp_SummaryOfTradeReceivablesLineItems" xlink:to="ifrs-full_DisclosureOfFinancialAssetsTable" xlink:title="Definition : ugp_SummaryOfTradeReceivablesLineItems to ifrs-full_DisclosureOfFinancialAssetsTable" xlink:type="arc" order="3" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeAxis" xlink:label="ifrs-full_RangeAxis" xlink:title="ifrs-full_RangeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialAssetsTable" xlink:to="ifrs-full_RangeAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialAssetsTable to ifrs-full_RangeAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeDomain" xlink:label="ifrs-full_RangeDomain" xlink:title="ifrs-full_RangeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_RangeAxis" xlink:to="ifrs-full_RangeDomain" xlink:title="Definition : ifrs-full_RangeAxis to ifrs-full_RangeDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_WeightedAverageMember" xlink:label="ifrs-full_WeightedAverageMember" xlink:title="ifrs-full_WeightedAverageMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RangeDomain" xlink:to="ifrs-full_WeightedAverageMember" xlink:title="Definition : ifrs-full_RangeDomain to ifrs-full_WeightedAverageMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeDomain" xlink:label="ifrs-full_RangeDomain_1" xlink:title="ifrs-full_RangeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_RangeAxis" xlink:to="ifrs-full_RangeDomain_1" xlink:title="Definition : ifrs-full_RangeAxis to ifrs-full_RangeDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PastDueStatusAxis" xlink:label="ifrs-full_PastDueStatusAxis" xlink:title="ifrs-full_PastDueStatusAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialAssetsTable" xlink:to="ifrs-full_PastDueStatusAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialAssetsTable to ifrs-full_PastDueStatusAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PastDueStatusDomain" xlink:label="ifrs-full_PastDueStatusDomain" xlink:title="ifrs-full_PastDueStatusDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_PastDueStatusAxis" xlink:to="ifrs-full_PastDueStatusDomain" xlink:title="Definition : ifrs-full_PastDueStatusAxis to ifrs-full_PastDueStatusDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CurrentMember" xlink:label="ifrs-full_CurrentMember" xlink:title="ifrs-full_CurrentMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_PastDueStatusDomain" xlink:to="ifrs-full_CurrentMember" xlink:title="Definition : ifrs-full_PastDueStatusDomain to ifrs-full_CurrentMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NotLaterThanOneMonthMember" xlink:label="ifrs-full_NotLaterThanOneMonthMember" xlink:title="ifrs-full_NotLaterThanOneMonthMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_PastDueStatusDomain" xlink:to="ifrs-full_NotLaterThanOneMonthMember" xlink:title="Definition : ifrs-full_PastDueStatusDomain to ifrs-full_NotLaterThanOneMonthMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanOneMonthAndNotLaterThanTwoMonthsMember" xlink:label="ifrs-full_LaterThanOneMonthAndNotLaterThanTwoMonthsMember" xlink:title="ifrs-full_LaterThanOneMonthAndNotLaterThanTwoMonthsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_PastDueStatusDomain" xlink:to="ifrs-full_LaterThanOneMonthAndNotLaterThanTwoMonthsMember" xlink:title="Definition : ifrs-full_PastDueStatusDomain to ifrs-full_LaterThanOneMonthAndNotLaterThanTwoMonthsMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanTwoMonthsAndNotLaterThanThreeMonthsMember" xlink:label="ifrs-full_LaterThanTwoMonthsAndNotLaterThanThreeMonthsMember" xlink:title="ifrs-full_LaterThanTwoMonthsAndNotLaterThanThreeMonthsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_PastDueStatusDomain" xlink:to="ifrs-full_LaterThanTwoMonthsAndNotLaterThanThreeMonthsMember" xlink:title="Definition : ifrs-full_PastDueStatusDomain to ifrs-full_LaterThanTwoMonthsAndNotLaterThanThreeMonthsMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanThreeMonthsAndNotLaterThanSixMonthsMember" xlink:label="ifrs-full_LaterThanThreeMonthsAndNotLaterThanSixMonthsMember" xlink:title="ifrs-full_LaterThanThreeMonthsAndNotLaterThanSixMonthsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_PastDueStatusDomain" xlink:to="ifrs-full_LaterThanThreeMonthsAndNotLaterThanSixMonthsMember" xlink:title="Definition : ifrs-full_PastDueStatusDomain to ifrs-full_LaterThanThreeMonthsAndNotLaterThanSixMonthsMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanSixMonthsMember" xlink:label="ifrs-full_LaterThanSixMonthsMember" xlink:title="ifrs-full_LaterThanSixMonthsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_PastDueStatusDomain" xlink:to="ifrs-full_LaterThanSixMonthsMember" xlink:title="Definition : ifrs-full_PastDueStatusDomain to ifrs-full_LaterThanSixMonthsMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PastDueStatusDomain" xlink:label="ifrs-full_PastDueStatusDomain_1" xlink:title="ifrs-full_PastDueStatusDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_PastDueStatusAxis" xlink:to="ifrs-full_PastDueStatusDomain_1" xlink:title="Definition : ifrs-full_PastDueStatusAxis to ifrs-full_PastDueStatusDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/RelatedPartiesSummaryOfSharesGrantedDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:label="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:title="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DateOfGrantOfSharebasedPaymentArrangement" xlink:label="ifrs-full_DateOfGrantOfSharebasedPaymentArrangement" xlink:title="ifrs-full_DateOfGrantOfSharebasedPaymentArrangement" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ifrs-full_DateOfGrantOfSharebasedPaymentArrangement" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ifrs-full_DateOfGrantOfSharebasedPaymentArrangement" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DescriptionOfVestingRequirementsForSharebasedPaymentArrangement" xlink:label="ifrs-full_DescriptionOfVestingRequirementsForSharebasedPaymentArrangement" xlink:title="ifrs-full_DescriptionOfVestingRequirementsForSharebasedPaymentArrangement" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ifrs-full_DescriptionOfVestingRequirementsForSharebasedPaymentArrangement" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ifrs-full_DescriptionOfVestingRequirementsForSharebasedPaymentArrangement" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_WeightedAverageExercisePriceOfOtherEquityInstrumentsGrantedInSharebasedPaymentArrangement2019" xlink:label="ifrs-full_WeightedAverageExercisePriceOfOtherEquityInstrumentsGrantedInSharebasedPaymentArrangement2019" xlink:title="ifrs-full_WeightedAverageExercisePriceOfOtherEquityInstrumentsGrantedInSharebasedPaymentArrangement2019" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ifrs-full_WeightedAverageExercisePriceOfOtherEquityInstrumentsGrantedInSharebasedPaymentArrangement2019" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ifrs-full_WeightedAverageExercisePriceOfOtherEquityInstrumentsGrantedInSharebasedPaymentArrangement2019" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:label="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:title="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:type="arc" order="3" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SharebasedPaymentPlanNameAxis" xlink:label="ugp_SharebasedPaymentPlanNameAxis" xlink:title="ugp_SharebasedPaymentPlanNameAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:to="ugp_SharebasedPaymentPlanNameAxis" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable to ugp_SharebasedPaymentPlanNameAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SharebasedPaymentPlanNameDomain" xlink:label="ugp_SharebasedPaymentPlanNameDomain" xlink:title="ugp_SharebasedPaymentPlanNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_SharebasedPaymentPlanNameAxis" xlink:to="ugp_SharebasedPaymentPlanNameDomain" xlink:title="Definition : ugp_SharebasedPaymentPlanNameAxis to ugp_SharebasedPaymentPlanNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DeferredStockUnitPlanMember" xlink:label="ugp_DeferredStockUnitPlanMember" xlink:title="ugp_DeferredStockUnitPlanMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SharebasedPaymentPlanNameDomain" xlink:to="ugp_DeferredStockUnitPlanMember" xlink:title="Definition : ugp_SharebasedPaymentPlanNameDomain to ugp_DeferredStockUnitPlanMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SharebasedPaymentPlanNameDomain" xlink:label="ugp_SharebasedPaymentPlanNameDomain_1" xlink:title="ugp_SharebasedPaymentPlanNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_SharebasedPaymentPlanNameAxis" xlink:to="ugp_SharebasedPaymentPlanNameDomain_1" xlink:title="Definition : ugp_SharebasedPaymentPlanNameAxis to ugp_SharebasedPaymentPlanNameDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:label="ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:title="ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:to="ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable to ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:label="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:title="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:to="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:title="Definition : ifrs-full_TypesOfSharebasedPaymentArrangementsAxis to ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_GrantDateMarch42016Member" xlink:label="ugp_GrantDateMarch42016Member" xlink:title="ugp_GrantDateMarch42016Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:to="ugp_GrantDateMarch42016Member" xlink:title="Definition : ifrs-full_TypesOfSharebasedPaymentArrangementsDomain to ugp_GrantDateMarch42016Member" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_GrantDateDecember102014Member" xlink:label="ugp_GrantDateDecember102014Member" xlink:title="ugp_GrantDateDecember102014Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:to="ugp_GrantDateDecember102014Member" xlink:title="Definition : ifrs-full_TypesOfSharebasedPaymentArrangementsDomain to ugp_GrantDateDecember102014Member" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_GrantDateMarch52014Member" xlink:label="ugp_GrantDateMarch52014Member" xlink:title="ugp_GrantDateMarch52014Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:to="ugp_GrantDateMarch52014Member" xlink:title="Definition : ifrs-full_TypesOfSharebasedPaymentArrangementsDomain to ugp_GrantDateMarch52014Member" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:label="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_1" xlink:title="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:to="ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_1" xlink:title="Definition : ifrs-full_TypesOfSharebasedPaymentArrangementsAxis to ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:title="ifrs-full_CategoriesOfRelatedPartiesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:to="ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable to ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:title="ifrs-full_CategoriesOfRelatedPartiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:to="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesAxis to ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_KeyManagementPersonnelOfEntityOrParentMember" xlink:label="ifrs-full_KeyManagementPersonnelOfEntityOrParentMember" xlink:title="ifrs-full_KeyManagementPersonnelOfEntityOrParentMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:to="ifrs-full_KeyManagementPersonnelOfEntityOrParentMember" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesDomain to ifrs-full_KeyManagementPersonnelOfEntityOrParentMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="ifrs-full_CategoriesOfRelatedPartiesDomain_1" xlink:title="ifrs-full_CategoriesOfRelatedPartiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:to="ifrs-full_CategoriesOfRelatedPartiesDomain_1" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesAxis to ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/RelatedPartiesAdditionalInformationDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:label="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:title="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AmortizationReversalOfAmortizationOfShareBasedPlansRecognizedAsGeneralAndAdministrativeExpense" xlink:label="ugp_AmortizationReversalOfAmortizationOfShareBasedPlansRecognizedAsGeneralAndAdministrativeExpense" xlink:title="ugp_AmortizationReversalOfAmortizationOfShareBasedPlansRecognizedAsGeneralAndAdministrativeExpense" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ugp_AmortizationReversalOfAmortizationOfShareBasedPlansRecognizedAsGeneralAndAdministrativeExpense" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ugp_AmortizationReversalOfAmortizationOfShareBasedPlansRecognizedAsGeneralAndAdministrativeExpense" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ProvisionForExpectedLossesOnAccountsReceivableOrGuarantees" xlink:label="ugp_ProvisionForExpectedLossesOnAccountsReceivableOrGuarantees" xlink:title="ugp_ProvisionForExpectedLossesOnAccountsReceivableOrGuarantees" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ugp_ProvisionForExpectedLossesOnAccountsReceivableOrGuarantees" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ugp_ProvisionForExpectedLossesOnAccountsReceivableOrGuarantees" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PeriodOfAmortizationFromGrantDate" xlink:label="ugp_PeriodOfAmortizationFromGrantDate" xlink:title="ugp_PeriodOfAmortizationFromGrantDate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ugp_PeriodOfAmortizationFromGrantDate" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ugp_PeriodOfAmortizationFromGrantDate" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PeriodOfTransfterOfOwnershipShares" xlink:label="ugp_PeriodOfTransfterOfOwnershipShares" xlink:title="ugp_PeriodOfTransfterOfOwnershipShares" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ugp_PeriodOfTransfterOfOwnershipShares" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ugp_PeriodOfTransfterOfOwnershipShares" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SharesReservedForIssueUnderOptionsAndContractsForSaleOfShares" xlink:label="ifrs-full_SharesReservedForIssueUnderOptionsAndContractsForSaleOfShares" xlink:title="ifrs-full_SharesReservedForIssueUnderOptionsAndContractsForSaleOfShares" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ifrs-full_SharesReservedForIssueUnderOptionsAndContractsForSaleOfShares" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ifrs-full_SharesReservedForIssueUnderOptionsAndContractsForSaleOfShares" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ParticipationPercentageOfShareCapital" xlink:label="ugp_ParticipationPercentageOfShareCapital" xlink:title="ugp_ParticipationPercentageOfShareCapital" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ugp_ParticipationPercentageOfShareCapital" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ugp_ParticipationPercentageOfShareCapital" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_GeneralAndAdministrativeExpense" xlink:label="ifrs-full_GeneralAndAdministrativeExpense" xlink:title="ifrs-full_GeneralAndAdministrativeExpense" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ifrs-full_GeneralAndAdministrativeExpense" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ifrs-full_GeneralAndAdministrativeExpense" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:label="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:title="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems to ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:type="arc" use="optional" order="7" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeAxis" xlink:label="ifrs-full_RangeAxis" xlink:title="ifrs-full_RangeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:to="ifrs-full_RangeAxis" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable to ifrs-full_RangeAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeDomain" xlink:label="ifrs-full_RangeDomain" xlink:title="ifrs-full_RangeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_RangeAxis" xlink:to="ifrs-full_RangeDomain" xlink:title="Definition : ifrs-full_RangeAxis to ifrs-full_RangeDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BottomOfRangeMember" xlink:label="ifrs-full_BottomOfRangeMember" xlink:title="ifrs-full_BottomOfRangeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RangeDomain" xlink:to="ifrs-full_BottomOfRangeMember" xlink:title="Definition : ifrs-full_RangeDomain to ifrs-full_BottomOfRangeMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TopOfRangeMember" xlink:label="ifrs-full_TopOfRangeMember" xlink:title="ifrs-full_TopOfRangeMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RangeDomain" xlink:to="ifrs-full_TopOfRangeMember" xlink:title="Definition : ifrs-full_RangeDomain to ifrs-full_TopOfRangeMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeDomain" xlink:label="ifrs-full_RangeDomain_1" xlink:title="ifrs-full_RangeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_RangeAxis" xlink:to="ifrs-full_RangeDomain_1" xlink:title="Definition : ifrs-full_RangeAxis to ifrs-full_RangeDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SharebasedPaymentPlanNameAxis" xlink:label="ugp_SharebasedPaymentPlanNameAxis" xlink:title="ugp_SharebasedPaymentPlanNameAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:to="ugp_SharebasedPaymentPlanNameAxis" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable to ugp_SharebasedPaymentPlanNameAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SharebasedPaymentPlanNameDomain" xlink:label="ugp_SharebasedPaymentPlanNameDomain" xlink:title="ugp_SharebasedPaymentPlanNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ugp_SharebasedPaymentPlanNameAxis" xlink:to="ugp_SharebasedPaymentPlanNameDomain" xlink:title="Definition : ugp_SharebasedPaymentPlanNameAxis to ugp_SharebasedPaymentPlanNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DeferredStockUnitPlanMember" xlink:label="ugp_DeferredStockUnitPlanMember" xlink:title="ugp_DeferredStockUnitPlanMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SharebasedPaymentPlanNameDomain" xlink:to="ugp_DeferredStockUnitPlanMember" xlink:title="Definition : ugp_SharebasedPaymentPlanNameDomain to ugp_DeferredStockUnitPlanMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_RestrictedAndPerformanceStockMember" xlink:label="ugp_RestrictedAndPerformanceStockMember" xlink:title="ugp_RestrictedAndPerformanceStockMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SharebasedPaymentPlanNameDomain" xlink:to="ugp_RestrictedAndPerformanceStockMember" xlink:title="Definition : ugp_SharebasedPaymentPlanNameDomain to ugp_RestrictedAndPerformanceStockMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SharebasedPaymentPlanNameDomain" xlink:label="ugp_SharebasedPaymentPlanNameDomain_1" xlink:title="ugp_SharebasedPaymentPlanNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ugp_SharebasedPaymentPlanNameAxis" xlink:to="ugp_SharebasedPaymentPlanNameDomain_1" xlink:title="Definition : ugp_SharebasedPaymentPlanNameAxis to ugp_SharebasedPaymentPlanNameDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:title="ifrs-full_CategoriesOfRelatedPartiesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:to="ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable to ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:title="ifrs-full_CategoriesOfRelatedPartiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:to="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesAxis to ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_KeyManagementPersonnelOfEntityOrParentMember" xlink:label="ifrs-full_KeyManagementPersonnelOfEntityOrParentMember" xlink:title="ifrs-full_KeyManagementPersonnelOfEntityOrParentMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:to="ifrs-full_KeyManagementPersonnelOfEntityOrParentMember" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesDomain to ifrs-full_KeyManagementPersonnelOfEntityOrParentMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="ifrs-full_CategoriesOfRelatedPartiesDomain_1" xlink:title="ifrs-full_CategoriesOfRelatedPartiesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:to="ifrs-full_CategoriesOfRelatedPartiesDomain_1" xlink:title="Definition : ifrs-full_CategoriesOfRelatedPartiesAxis to ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:label="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:title="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:to="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:title="Definition : ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable to ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ContinuingOperationsMember" xlink:label="ifrs-full_ContinuingOperationsMember" xlink:title="ifrs-full_ContinuingOperationsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:to="ifrs-full_ContinuingOperationsMember" xlink:title="Definition : ifrs-full_ContinuingAndDiscontinuedOperationsAxis to ifrs-full_ContinuingOperationsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DiscontinuedOperationsMember" xlink:label="ifrs-full_DiscontinuedOperationsMember" xlink:title="ifrs-full_DiscontinuedOperationsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ContinuingOperationsMember" xlink:to="ifrs-full_DiscontinuedOperationsMember" xlink:title="Definition : ifrs-full_ContinuingOperationsMember to ifrs-full_DiscontinuedOperationsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ContinuingOperationsMember" xlink:label="ifrs-full_ContinuingOperationsMember_1" xlink:title="ifrs-full_ContinuingOperationsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:to="ifrs-full_ContinuingOperationsMember_1" xlink:title="Definition : ifrs-full_ContinuingAndDiscontinuedOperationsAxis to ifrs-full_ContinuingOperationsMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/TradereceivablesresellerfinancingandotherreceivablessaleofsubsidiariesDetail">
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SummaryOfTradeReceivablesLineItems" xlink:label="ugp_SummaryOfTradeReceivablesLineItems" xlink:title="ugp_SummaryOfTradeReceivablesLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ReceivablesFromSaleOfInvestments" xlink:label="ugp_ReceivablesFromSaleOfInvestments" xlink:title="ugp_ReceivablesFromSaleOfInvestments" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfTradeReceivablesLineItems" xlink:to="ugp_ReceivablesFromSaleOfInvestments" xlink:title="Definition : ugp_SummaryOfTradeReceivablesLineItems to ugp_ReceivablesFromSaleOfInvestments" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AdjustmentToPresentValueOfReceivablesFromSaleOfInvestments" xlink:label="ugp_AdjustmentToPresentValueOfReceivablesFromSaleOfInvestments" xlink:title="ugp_AdjustmentToPresentValueOfReceivablesFromSaleOfInvestments" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfTradeReceivablesLineItems" xlink:to="ugp_AdjustmentToPresentValueOfReceivablesFromSaleOfInvestments" xlink:title="Definition : ugp_SummaryOfTradeReceivablesLineItems to ugp_AdjustmentToPresentValueOfReceivablesFromSaleOfInvestments" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TotalSaleOfInvestments" xlink:label="ugp_TotalSaleOfInvestments" xlink:title="ugp_TotalSaleOfInvestments" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfTradeReceivablesLineItems" xlink:to="ugp_TotalSaleOfInvestments" xlink:title="Definition : ugp_SummaryOfTradeReceivablesLineItems to ugp_TotalSaleOfInvestments" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CurrentReceivablesFromSaleOfInvestments" xlink:label="ugp_CurrentReceivablesFromSaleOfInvestments" xlink:title="ugp_CurrentReceivablesFromSaleOfInvestments" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfTradeReceivablesLineItems" xlink:to="ugp_CurrentReceivablesFromSaleOfInvestments" xlink:title="Definition : ugp_SummaryOfTradeReceivablesLineItems to ugp_CurrentReceivablesFromSaleOfInvestments" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NonCurrentReceivablesFromSaleOfInvestments" xlink:label="ugp_NonCurrentReceivablesFromSaleOfInvestments" xlink:title="ugp_NonCurrentReceivablesFromSaleOfInvestments" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfTradeReceivablesLineItems" xlink:to="ugp_NonCurrentReceivablesFromSaleOfInvestments" xlink:title="Definition : ugp_SummaryOfTradeReceivablesLineItems to ugp_NonCurrentReceivablesFromSaleOfInvestments" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_FinalPaymentToBeReceivedInDisposalGroupTransaction" xlink:label="ugp_FinalPaymentToBeReceivedInDisposalGroupTransaction" xlink:title="ugp_FinalPaymentToBeReceivedInDisposalGroupTransaction" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfTradeReceivablesLineItems" xlink:to="ugp_FinalPaymentToBeReceivedInDisposalGroupTransaction" xlink:title="Definition : ugp_SummaryOfTradeReceivablesLineItems to ugp_FinalPaymentToBeReceivedInDisposalGroupTransaction" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DiscountRate" xlink:label="ugp_DiscountRate" xlink:title="ugp_DiscountRate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfTradeReceivablesLineItems" xlink:to="ugp_DiscountRate" xlink:title="Definition : ugp_SummaryOfTradeReceivablesLineItems to ugp_DiscountRate" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NumberOfInstallmentsInDisposalGroupTransaction" xlink:label="ugp_NumberOfInstallmentsInDisposalGroupTransaction" xlink:title="ugp_NumberOfInstallmentsInDisposalGroupTransaction" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfTradeReceivablesLineItems" xlink:to="ugp_NumberOfInstallmentsInDisposalGroupTransaction" xlink:title="Definition : ugp_SummaryOfTradeReceivablesLineItems to ugp_NumberOfInstallmentsInDisposalGroupTransaction" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AmountPerInstallmentsInDisposalGroupTransaction" xlink:label="ugp_AmountPerInstallmentsInDisposalGroupTransaction" xlink:title="ugp_AmountPerInstallmentsInDisposalGroupTransaction" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfTradeReceivablesLineItems" xlink:to="ugp_AmountPerInstallmentsInDisposalGroupTransaction" xlink:title="Definition : ugp_SummaryOfTradeReceivablesLineItems to ugp_AmountPerInstallmentsInDisposalGroupTransaction" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsInterestRateBasis" xlink:label="ifrs-full_BorrowingsInterestRateBasis" xlink:title="ifrs-full_BorrowingsInterestRateBasis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ugp_SummaryOfTradeReceivablesLineItems" xlink:to="ifrs-full_BorrowingsInterestRateBasis" xlink:title="Definition : ugp_SummaryOfTradeReceivablesLineItems to ifrs-full_BorrowingsInterestRateBasis" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialAssetsTable" xlink:label="ifrs-full_DisclosureOfFinancialAssetsTable" xlink:title="ifrs-full_DisclosureOfFinancialAssetsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ugp_SummaryOfTradeReceivablesLineItems" xlink:to="ifrs-full_DisclosureOfFinancialAssetsTable" xlink:title="Definition : ugp_SummaryOfTradeReceivablesLineItems to ifrs-full_DisclosureOfFinancialAssetsTable" xlink:type="arc" use="optional" order="10" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialAssetsTable" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialAssetsTable to ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OxitenoIndustriaComercioMember" xlink:label="ugp_OxitenoIndustriaComercioMember" xlink:title="ugp_OxitenoIndustriaComercioMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_OxitenoIndustriaComercioMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_OxitenoIndustriaComercioMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ExtrafarmaMember" xlink:label="ugp_ExtrafarmaMember" xlink:title="ugp_ExtrafarmaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_ExtrafarmaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_ExtrafarmaMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:label="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:title="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialAssetsTable" xlink:to="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialAssetsTable to ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ContinuingOperationsMember" xlink:label="ifrs-full_ContinuingOperationsMember" xlink:title="ifrs-full_ContinuingOperationsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:to="ifrs-full_ContinuingOperationsMember" xlink:title="Definition : ifrs-full_ContinuingAndDiscontinuedOperationsAxis to ifrs-full_ContinuingOperationsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DiscontinuedOperationsMember" xlink:label="ifrs-full_DiscontinuedOperationsMember" xlink:title="ifrs-full_DiscontinuedOperationsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ContinuingOperationsMember" xlink:to="ifrs-full_DiscontinuedOperationsMember" xlink:title="Definition : ifrs-full_ContinuingOperationsMember to ifrs-full_DiscontinuedOperationsMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ContinuingOperationsMember" xlink:label="ifrs-full_ContinuingOperationsMember_1" xlink:title="ifrs-full_ContinuingOperationsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ContinuingAndDiscontinuedOperationsAxis" xlink:to="ifrs-full_ContinuingOperationsMember_1" xlink:title="Definition : ifrs-full_ContinuingAndDiscontinuedOperationsAxis to ifrs-full_ContinuingOperationsMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_CounterpartyNameAxis" xlink:label="srt_CounterpartyNameAxis" xlink:title="srt_CounterpartyNameAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialAssetsTable" xlink:to="srt_CounterpartyNameAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialAssetsTable to srt_CounterpartyNameAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="srt_RepurchaseAgreementCounterpartyNameDomain" xlink:title="srt_RepurchaseAgreementCounterpartyNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_CounterpartyNameAxis" xlink:to="srt_RepurchaseAgreementCounterpartyNameDomain" xlink:title="Definition : srt_CounterpartyNameAxis to srt_RepurchaseAgreementCounterpartyNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IndoramaVenturesPlcMember" xlink:label="ugp_IndoramaVenturesPlcMember" xlink:title="ugp_IndoramaVenturesPlcMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_RepurchaseAgreementCounterpartyNameDomain" xlink:to="ugp_IndoramaVenturesPlcMember" xlink:title="Definition : srt_RepurchaseAgreementCounterpartyNameDomain to ugp_IndoramaVenturesPlcMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="srt_RepurchaseAgreementCounterpartyNameDomain_1" xlink:title="srt_RepurchaseAgreementCounterpartyNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_CounterpartyNameAxis" xlink:to="srt_RepurchaseAgreementCounterpartyNameDomain_1" xlink:title="Definition : srt_CounterpartyNameAxis to srt_RepurchaseAgreementCounterpartyNameDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/OperationsMainrisksandassociatedmeasuresDetailsTextuals">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:label="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:title="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_BorrowingsMaturityPeriod" xlink:label="ugp_BorrowingsMaturityPeriod" xlink:title="ugp_BorrowingsMaturityPeriod" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_BorrowingsMaturityPeriod" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_BorrowingsMaturityPeriod" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ProceedsFromIssueOfBondsNotesAndDebentures" xlink:label="ifrs-full_ProceedsFromIssueOfBondsNotesAndDebentures" xlink:title="ifrs-full_ProceedsFromIssueOfBondsNotesAndDebentures" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_ProceedsFromIssueOfBondsNotesAndDebentures" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_ProceedsFromIssueOfBondsNotesAndDebentures" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RepaymentsOfBondsNotesAndDebentures" xlink:label="ifrs-full_RepaymentsOfBondsNotesAndDebentures" xlink:title="ifrs-full_RepaymentsOfBondsNotesAndDebentures" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_RepaymentsOfBondsNotesAndDebentures" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_RepaymentsOfBondsNotesAndDebentures" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DecreasePercentageOfInvestmentPlan" xlink:label="ugp_DecreasePercentageOfInvestmentPlan" xlink:title="ugp_DecreasePercentageOfInvestmentPlan" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_DecreasePercentageOfInvestmentPlan" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_DecreasePercentageOfInvestmentPlan" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsInterestRate" xlink:label="ifrs-full_BorrowingsInterestRate" xlink:title="ifrs-full_BorrowingsInterestRate" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_BorrowingsInterestRate" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_BorrowingsInterestRate" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PercentageOfVotingEquityInterestsToBeAcquired" xlink:label="ugp_PercentageOfVotingEquityInterestsToBeAcquired" xlink:title="ugp_PercentageOfVotingEquityInterestsToBeAcquired" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ugp_PercentageOfVotingEquityInterestsToBeAcquired" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ugp_PercentageOfVotingEquityInterestsToBeAcquired" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:label="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:title="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems to ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:type="arc" use="optional" order="6" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsByNameAxis" xlink:label="ifrs-full_BorrowingsByNameAxis" xlink:title="ifrs-full_BorrowingsByNameAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:to="ifrs-full_BorrowingsByNameAxis" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable to ifrs-full_BorrowingsByNameAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsByNameDomain" xlink:label="ifrs-full_BorrowingsByNameDomain" xlink:title="ifrs-full_BorrowingsByNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_BorrowingsByNameAxis" xlink:to="ifrs-full_BorrowingsByNameDomain" xlink:title="Definition : ifrs-full_BorrowingsByNameAxis to ifrs-full_BorrowingsByNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_PromissoryNotesMember" xlink:label="ugp_PromissoryNotesMember" xlink:title="ugp_PromissoryNotesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BorrowingsByNameDomain" xlink:to="ugp_PromissoryNotesMember" xlink:title="Definition : ifrs-full_BorrowingsByNameDomain to ugp_PromissoryNotesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_BondsMaturingIn2029Member" xlink:label="ugp_BondsMaturingIn2029Member" xlink:title="ugp_BondsMaturingIn2029Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_BorrowingsByNameDomain" xlink:to="ugp_BondsMaturingIn2029Member" xlink:title="Definition : ifrs-full_BorrowingsByNameDomain to ugp_BondsMaturingIn2029Member" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_BorrowingsByNameDomain" xlink:label="ifrs-full_BorrowingsByNameDomain_1" xlink:title="ifrs-full_BorrowingsByNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_BorrowingsByNameAxis" xlink:to="ifrs-full_BorrowingsByNameDomain_1" xlink:title="Definition : ifrs-full_BorrowingsByNameAxis to ifrs-full_BorrowingsByNameDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable to ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IpirangaProdutosdePetroleoSAMember" xlink:label="ugp_IpirangaProdutosdePetroleoSAMember" xlink:title="ugp_IpirangaProdutosdePetroleoSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_IpirangaProdutosdePetroleoSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_IpirangaProdutosdePetroleoSAMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltraparEmpreendimentosLtdaMember" xlink:label="ugp_UltraparEmpreendimentosLtdaMember" xlink:title="ugp_UltraparEmpreendimentosLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltraparEmpreendimentosLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltraparEmpreendimentosLtdaMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_CounterpartyNameAxis" xlink:label="srt_CounterpartyNameAxis" xlink:title="srt_CounterpartyNameAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:to="srt_CounterpartyNameAxis" xlink:title="Definition : ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable to srt_CounterpartyNameAxis" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="srt_RepurchaseAgreementCounterpartyNameDomain" xlink:title="srt_RepurchaseAgreementCounterpartyNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_CounterpartyNameAxis" xlink:to="srt_RepurchaseAgreementCounterpartyNameDomain" xlink:title="Definition : srt_CounterpartyNameAxis to srt_RepurchaseAgreementCounterpartyNameDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SerraDieselGroupMember" xlink:label="ugp_SerraDieselGroupMember" xlink:title="ugp_SerraDieselGroupMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_RepurchaseAgreementCounterpartyNameDomain" xlink:to="ugp_SerraDieselGroupMember" xlink:title="Definition : srt_RepurchaseAgreementCounterpartyNameDomain to ugp_SerraDieselGroupMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="srt_RepurchaseAgreementCounterpartyNameDomain_1" xlink:title="srt_RepurchaseAgreementCounterpartyNameDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_CounterpartyNameAxis" xlink:to="srt_RepurchaseAgreementCounterpartyNameDomain_1" xlink:title="Definition : srt_CounterpartyNameAxis to srt_RepurchaseAgreementCounterpartyNameDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/TradereceivablesresellerfinancingandotherreceivablesTables">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialAssetsLineItems" xlink:label="ifrs-full_DisclosureOfFinancialAssetsLineItems" xlink:title="ifrs-full_DisclosureOfFinancialAssetsLineItems" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DisclosureOfTradeReceivablesCompositionExplanatory" xlink:label="ugp_DisclosureOfTradeReceivablesCompositionExplanatory" xlink:title="ugp_DisclosureOfTradeReceivablesCompositionExplanatory" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialAssetsLineItems" xlink:to="ugp_DisclosureOfTradeReceivablesCompositionExplanatory" xlink:title="Definition : ifrs-full_DisclosureOfFinancialAssetsLineItems to ugp_DisclosureOfTradeReceivablesCompositionExplanatory" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DisclosureOfTradeReceivablesBreakdownExplanatory" xlink:label="ugp_DisclosureOfTradeReceivablesBreakdownExplanatory" xlink:title="ugp_DisclosureOfTradeReceivablesBreakdownExplanatory" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialAssetsLineItems" xlink:to="ugp_DisclosureOfTradeReceivablesBreakdownExplanatory" xlink:title="Definition : ifrs-full_DisclosureOfFinancialAssetsLineItems to ugp_DisclosureOfTradeReceivablesBreakdownExplanatory" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DisclosureInBreakdownOfExpectedLossOnDoubtfulAccountsExplanatoryTextBlock" xlink:label="ugp_DisclosureInBreakdownOfExpectedLossOnDoubtfulAccountsExplanatoryTextBlock" xlink:title="ugp_DisclosureInBreakdownOfExpectedLossOnDoubtfulAccountsExplanatoryTextBlock" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialAssetsLineItems" xlink:to="ugp_DisclosureInBreakdownOfExpectedLossOnDoubtfulAccountsExplanatoryTextBlock" xlink:title="Definition : ifrs-full_DisclosureOfFinancialAssetsLineItems to ugp_DisclosureInBreakdownOfExpectedLossOnDoubtfulAccountsExplanatoryTextBlock" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DisclosureOfResellerFinancingCompositionExplanatory" xlink:label="ugp_DisclosureOfResellerFinancingCompositionExplanatory" xlink:title="ugp_DisclosureOfResellerFinancingCompositionExplanatory" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialAssetsLineItems" xlink:to="ugp_DisclosureOfResellerFinancingCompositionExplanatory" xlink:title="Definition : ifrs-full_DisclosureOfFinancialAssetsLineItems to ugp_DisclosureOfResellerFinancingCompositionExplanatory" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DisclosureOfBreakdownOfResellerFinancingGrossOfExpectedLossesOnDoubtfulAccountsExplanatoryTextBlock" xlink:label="ugp_DisclosureOfBreakdownOfResellerFinancingGrossOfExpectedLossesOnDoubtfulAccountsExplanatoryTextBlock" xlink:title="ugp_DisclosureOfBreakdownOfResellerFinancingGrossOfExpectedLossesOnDoubtfulAccountsExplanatoryTextBlock" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialAssetsLineItems" xlink:to="ugp_DisclosureOfBreakdownOfResellerFinancingGrossOfExpectedLossesOnDoubtfulAccountsExplanatoryTextBlock" xlink:title="Definition : ifrs-full_DisclosureOfFinancialAssetsLineItems to ugp_DisclosureOfBreakdownOfResellerFinancingGrossOfExpectedLossesOnDoubtfulAccountsExplanatoryTextBlock" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DisclosureOfBreakdownOfAllowanceForExpectedCreditLossesOnDoubtfulAccountsExplanatoryTextBlock" xlink:label="ugp_DisclosureOfBreakdownOfAllowanceForExpectedCreditLossesOnDoubtfulAccountsExplanatoryTextBlock" xlink:title="ugp_DisclosureOfBreakdownOfAllowanceForExpectedCreditLossesOnDoubtfulAccountsExplanatoryTextBlock" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialAssetsLineItems" xlink:to="ugp_DisclosureOfBreakdownOfAllowanceForExpectedCreditLossesOnDoubtfulAccountsExplanatoryTextBlock" xlink:title="Definition : ifrs-full_DisclosureOfFinancialAssetsLineItems to ugp_DisclosureOfBreakdownOfAllowanceForExpectedCreditLossesOnDoubtfulAccountsExplanatoryTextBlock" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DisclosureOfBreakdownOfExpectedLossesOnDoubtfulAccountsExplanatoryTextBlock" xlink:label="ugp_DisclosureOfBreakdownOfExpectedLossesOnDoubtfulAccountsExplanatoryTextBlock" xlink:title="ugp_DisclosureOfBreakdownOfExpectedLossesOnDoubtfulAccountsExplanatoryTextBlock" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialAssetsLineItems" xlink:to="ugp_DisclosureOfBreakdownOfExpectedLossesOnDoubtfulAccountsExplanatoryTextBlock" xlink:title="Definition : ifrs-full_DisclosureOfFinancialAssetsLineItems to ugp_DisclosureOfBreakdownOfExpectedLossesOnDoubtfulAccountsExplanatoryTextBlock" xlink:type="arc" use="optional" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfCreditRiskExposureExplanatory" xlink:label="ifrs-full_DisclosureOfCreditRiskExposureExplanatory" xlink:title="ifrs-full_DisclosureOfCreditRiskExposureExplanatory" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialAssetsLineItems" xlink:to="ifrs-full_DisclosureOfCreditRiskExposureExplanatory" xlink:title="Definition : ifrs-full_DisclosureOfFinancialAssetsLineItems to ifrs-full_DisclosureOfCreditRiskExposureExplanatory" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutFinancialInstrumentsExplanatory" xlink:label="ifrs-full_DisclosureOfDetailedInformationAboutFinancialInstrumentsExplanatory" xlink:title="ifrs-full_DisclosureOfDetailedInformationAboutFinancialInstrumentsExplanatory" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfFinancialAssetsLineItems" xlink:to="ifrs-full_DisclosureOfDetailedInformationAboutFinancialInstrumentsExplanatory" xlink:title="Definition : ifrs-full_DisclosureOfFinancialAssetsLineItems to ifrs-full_DisclosureOfDetailedInformationAboutFinancialInstrumentsExplanatory" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialAssetsTable" xlink:label="ifrs-full_DisclosureOfFinancialAssetsTable" xlink:title="ifrs-full_DisclosureOfFinancialAssetsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfFinancialAssetsLineItems" xlink:to="ifrs-full_DisclosureOfFinancialAssetsTable" xlink:title="Definition : ifrs-full_DisclosureOfFinancialAssetsLineItems to ifrs-full_DisclosureOfFinancialAssetsTable" xlink:type="arc" use="optional" order="9" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsAxis" xlink:label="ifrs-full_ClassesOfFinancialAssetsAxis" xlink:title="ifrs-full_ClassesOfFinancialAssetsAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialAssetsTable" xlink:to="ifrs-full_ClassesOfFinancialAssetsAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialAssetsTable to ifrs-full_ClassesOfFinancialAssetsAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsDomain" xlink:label="ifrs-full_ClassesOfFinancialAssetsDomain" xlink:title="ifrs-full_ClassesOfFinancialAssetsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_ClassesOfFinancialAssetsAxis" xlink:to="ifrs-full_ClassesOfFinancialAssetsDomain" xlink:title="Definition : ifrs-full_ClassesOfFinancialAssetsAxis to ifrs-full_ClassesOfFinancialAssetsDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_TradeReceivablesMember" xlink:label="ifrs-full_TradeReceivablesMember" xlink:title="ifrs-full_TradeReceivablesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialAssetsDomain" xlink:to="ifrs-full_TradeReceivablesMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialAssetsDomain to ifrs-full_TradeReceivablesMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ResellerFinancingIpirangaMember" xlink:label="ugp_ResellerFinancingIpirangaMember" xlink:title="ugp_ResellerFinancingIpirangaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_ClassesOfFinancialAssetsDomain" xlink:to="ugp_ResellerFinancingIpirangaMember" xlink:title="Definition : ifrs-full_ClassesOfFinancialAssetsDomain to ugp_ResellerFinancingIpirangaMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsDomain" xlink:label="ifrs-full_ClassesOfFinancialAssetsDomain_1" xlink:title="ifrs-full_ClassesOfFinancialAssetsDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_ClassesOfFinancialAssetsAxis" xlink:to="ifrs-full_ClassesOfFinancialAssetsDomain_1" xlink:title="Definition : ifrs-full_ClassesOfFinancialAssetsAxis to ifrs-full_ClassesOfFinancialAssetsDomain" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis" xlink:label="ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis" xlink:title="ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialAssetsTable" xlink:to="ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialAssetsTable to ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RestatedMember" xlink:label="ifrs-full_RestatedMember" xlink:title="ifrs-full_RestatedMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis" xlink:to="ifrs-full_RestatedMember" xlink:title="Definition : ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis to ifrs-full_RestatedMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_InAccordanceWithIFRS9Member" xlink:label="ifrs-full_InAccordanceWithIFRS9Member" xlink:title="ifrs-full_InAccordanceWithIFRS9Member" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RestatedMember" xlink:to="ifrs-full_InAccordanceWithIFRS9Member" xlink:title="Definition : ifrs-full_RestatedMember to ifrs-full_InAccordanceWithIFRS9Member" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RestatedMember" xlink:label="ifrs-full_RestatedMember_1" xlink:title="ifrs-full_RestatedMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis" xlink:to="ifrs-full_RestatedMember_1" xlink:title="Definition : ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis to ifrs-full_RestatedMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/OperationsDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesLineItems" xlink:label="ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesLineItems" xlink:title="ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NameOfSubsidiary" xlink:label="ifrs-full_NameOfSubsidiary" xlink:title="ifrs-full_NameOfSubsidiary" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesLineItems" xlink:to="ifrs-full_NameOfSubsidiary" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesLineItems to ifrs-full_NameOfSubsidiary" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PrincipalPlaceOfBusinessOfSubsidiary" xlink:label="ifrs-full_PrincipalPlaceOfBusinessOfSubsidiary" xlink:title="ifrs-full_PrincipalPlaceOfBusinessOfSubsidiary" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesLineItems" xlink:to="ifrs-full_PrincipalPlaceOfBusinessOfSubsidiary" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesLineItems to ifrs-full_PrincipalPlaceOfBusinessOfSubsidiary" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_BusinessSegment" xlink:label="ugp_BusinessSegment" xlink:title="ugp_BusinessSegment" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesLineItems" xlink:to="ugp_BusinessSegment" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesLineItems to ugp_BusinessSegment" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_DirectControlInterestPercentage" xlink:label="ugp_DirectControlInterestPercentage" xlink:title="ugp_DirectControlInterestPercentage" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesLineItems" xlink:to="ugp_DirectControlInterestPercentage" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesLineItems to ugp_DirectControlInterestPercentage" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IndirectControlInterestPercentage" xlink:label="ugp_IndirectControlInterestPercentage" xlink:title="ugp_IndirectControlInterestPercentage" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesLineItems" xlink:to="ugp_IndirectControlInterestPercentage" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesLineItems to ugp_IndirectControlInterestPercentage" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesTable" xlink:label="ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesTable" xlink:title="ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesLineItems" xlink:to="ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesTable" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesLineItems to ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesTable" xlink:type="arc" order="5" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesTable" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:title="Definition : ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesTable to ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltraparMobilidadeLtdaMember" xlink:label="ugp_UltraparMobilidadeLtdaMember" xlink:title="ugp_UltraparMobilidadeLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltraparMobilidadeLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltraparMobilidadeLtdaMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CentrodeConvenienciasMillenniumLtdaAndSubsidiariesMember" xlink:label="ugp_CentrodeConvenienciasMillenniumLtdaAndSubsidiariesMember" xlink:title="ugp_CentrodeConvenienciasMillenniumLtdaAndSubsidiariesMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_CentrodeConvenienciasMillenniumLtdaAndSubsidiariesMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_CentrodeConvenienciasMillenniumLtdaAndSubsidiariesMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NeodieselLtdaMember" xlink:label="ugp_NeodieselLtdaMember" xlink:title="ugp_NeodieselLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_NeodieselLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_NeodieselLtdaMember" xlink:type="arc" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SerraDieselMember" xlink:label="ugp_SerraDieselMember" xlink:title="ugp_SerraDieselMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_SerraDieselMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_SerraDieselMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IpirangaProdutosdePetroleoSAMember" xlink:label="ugp_IpirangaProdutosdePetroleoSAMember" xlink:title="ugp_IpirangaProdutosdePetroleoSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_IpirangaProdutosdePetroleoSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_IpirangaProdutosdePetroleoSAMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AmPmComestveisLtdaMember" xlink:label="ugp_AmPmComestveisLtdaMember" xlink:title="ugp_AmPmComestveisLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_AmPmComestveisLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_AmPmComestveisLtdaMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_GlazedBrasilSAMember" xlink:label="ugp_GlazedBrasilSAMember" xlink:title="ugp_GlazedBrasilSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_GlazedBrasilSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_GlazedBrasilSAMember" xlink:type="arc" order="6" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IcorbanCorrespondenteBancarioLtdaMember" xlink:label="ugp_IcorbanCorrespondenteBancarioLtdaMember" xlink:title="ugp_IcorbanCorrespondenteBancarioLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_IcorbanCorrespondenteBancarioLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_IcorbanCorrespondenteBancarioLtdaMember" xlink:type="arc" use="optional" order="7" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IpirangaTradingLimitedMember" xlink:label="ugp_IpirangaTradingLimitedMember" xlink:title="ugp_IpirangaTradingLimitedMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_IpirangaTradingLimitedMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_IpirangaTradingLimitedMember" xlink:type="arc" use="optional" order="8" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TropicalTransportesIpirangaLtdaMember" xlink:label="ugp_TropicalTransportesIpirangaLtdaMember" xlink:title="ugp_TropicalTransportesIpirangaLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_TropicalTransportesIpirangaLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_TropicalTransportesIpirangaLtdaMember" xlink:type="arc" use="optional" order="9" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IpirangaImobiliriaLtdaMember" xlink:label="ugp_IpirangaImobiliriaLtdaMember" xlink:title="ugp_IpirangaImobiliriaLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_IpirangaImobiliriaLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_IpirangaImobiliriaLtdaMember" xlink:type="arc" use="optional" order="10" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IpirangaLogsticaLtdaMember" xlink:label="ugp_IpirangaLogsticaLtdaMember" xlink:title="ugp_IpirangaLogsticaLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_IpirangaLogsticaLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_IpirangaLogsticaLtdaMember" xlink:type="arc" use="optional" order="11" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OilTradingImportadoraExportadoraLtdaMember" xlink:label="ugp_OilTradingImportadoraExportadoraLtdaMember" xlink:title="ugp_OilTradingImportadoraExportadoraLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_OilTradingImportadoraExportadoraLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_OilTradingImportadoraExportadoraLtdaMember" xlink:type="arc" use="optional" order="12" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IconicLubrificantesSAMember" xlink:label="ugp_IconicLubrificantesSAMember" xlink:title="ugp_IconicLubrificantesSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_IconicLubrificantesSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_IconicLubrificantesSAMember" xlink:type="arc" use="optional" order="13" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IntegraFrotasLtdaMember" xlink:label="ugp_IntegraFrotasLtdaMember" xlink:title="ugp_IntegraFrotasLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_IntegraFrotasLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_IntegraFrotasLtdaMember" xlink:type="arc" use="optional" order="14" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IrupeBiocombustiveisLtdaMember" xlink:label="ugp_IrupeBiocombustiveisLtdaMember" xlink:title="ugp_IrupeBiocombustiveisLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_IrupeBiocombustiveisLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_IrupeBiocombustiveisLtdaMember" xlink:type="arc" use="optional" order="15" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IpirangaTradingNorthAmericaLlcMember" xlink:label="ugp_IpirangaTradingNorthAmericaLlcMember" xlink:title="ugp_IpirangaTradingNorthAmericaLlcMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_IpirangaTradingNorthAmericaLlcMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_IpirangaTradingNorthAmericaLlcMember" xlink:type="arc" order="16" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IpirangaTradingMiddleEastDmccMember" xlink:label="ugp_IpirangaTradingMiddleEastDmccMember" xlink:title="ugp_IpirangaTradingMiddleEastDmccMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_IpirangaTradingMiddleEastDmccMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_IpirangaTradingMiddleEastDmccMember" xlink:type="arc" order="17" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_IpirangaTradingEuropeSAMember" xlink:label="ugp_IpirangaTradingEuropeSAMember" xlink:title="ugp_IpirangaTradingEuropeSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_IpirangaTradingEuropeSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_IpirangaTradingEuropeSAMember" xlink:type="arc" order="18" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_EaiClubeAutomobilistaSAMember" xlink:label="ugp_EaiClubeAutomobilistaSAMember" xlink:title="ugp_EaiClubeAutomobilistaSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_EaiClubeAutomobilistaSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_EaiClubeAutomobilistaSAMember" xlink:type="arc" use="optional" order="19" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AbasteceAiParticipacoesSAMember" xlink:label="ugp_AbasteceAiParticipacoesSAMember" xlink:title="ugp_AbasteceAiParticipacoesSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_AbasteceAiParticipacoesSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_AbasteceAiParticipacoesSAMember" xlink:type="arc" use="optional" order="20" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_AbasteceAiClubeAutomobilistaInstituicaoDePagamentoLtdaMember" xlink:label="ugp_AbasteceAiClubeAutomobilistaInstituicaoDePagamentoLtdaMember" xlink:title="ugp_AbasteceAiClubeAutomobilistaInstituicaoDePagamentoLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_AbasteceAiClubeAutomobilistaInstituicaoDePagamentoLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_AbasteceAiClubeAutomobilistaInstituicaoDePagamentoLtdaMember" xlink:type="arc" use="optional" order="21" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CompanhiaUltragazMember" xlink:label="ugp_CompanhiaUltragazMember" xlink:title="ugp_CompanhiaUltragazMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_CompanhiaUltragazMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_CompanhiaUltragazMember" xlink:type="arc" use="optional" order="22" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltragazParticipacoesLtdaMember" xlink:label="ugp_UltragazParticipacoesLtdaMember" xlink:title="ugp_UltragazParticipacoesLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltragazParticipacoesLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltragazParticipacoesLtdaMember" xlink:type="arc" use="optional" order="23" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltragazEnergiaLtdaMember" xlink:label="ugp_UltragazEnergiaLtdaMember" xlink:title="ugp_UltragazEnergiaLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltragazEnergiaLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltragazEnergiaLtdaMember" xlink:type="arc" use="optional" order="24" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NovaParanaDistribuidoraDeGasLtdaMember" xlink:label="ugp_NovaParanaDistribuidoraDeGasLtdaMember" xlink:title="ugp_NovaParanaDistribuidoraDeGasLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_NovaParanaDistribuidoraDeGasLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_NovaParanaDistribuidoraDeGasLtdaMember" xlink:type="arc" use="optional" order="25" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UtingasArmazenadoraMember" xlink:label="ugp_UtingasArmazenadoraMember" xlink:title="ugp_UtingasArmazenadoraMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UtingasArmazenadoraMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UtingasArmazenadoraMember" xlink:type="arc" use="optional" order="26" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_BahianaDistribuidoraDeGasLtdaMember" xlink:label="ugp_BahianaDistribuidoraDeGasLtdaMember" xlink:title="ugp_BahianaDistribuidoraDeGasLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_BahianaDistribuidoraDeGasLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_BahianaDistribuidoraDeGasLtdaMember" xlink:type="arc" use="optional" order="27" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_LPGInternationalIncMember" xlink:label="ugp_LPGInternationalIncMember" xlink:title="ugp_LPGInternationalIncMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_LPGInternationalIncMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_LPGInternationalIncMember" xlink:type="arc" use="optional" order="28" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_NeogasGroupMember" xlink:label="ugp_NeogasGroupMember" xlink:title="ugp_NeogasGroupMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_NeogasGroupMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_NeogasGroupMember" xlink:type="arc" use="optional" order="29" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_WtzParticipacoesSAMember" xlink:label="ugp_WtzParticipacoesSAMember" xlink:title="ugp_WtzParticipacoesSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_WtzParticipacoesSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_WtzParticipacoesSAMember" xlink:type="arc" order="30" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UVCInvestimentosLtdaMember" xlink:label="ugp_UVCInvestimentosLtdaMember" xlink:title="ugp_UVCInvestimentosLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UVCInvestimentosLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UVCInvestimentosLtdaMember" xlink:type="arc" use="optional" order="31" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltracargoOperacoesLogisticasParticipacoesLtdaMember" xlink:label="ugp_UltracargoOperacoesLogisticasParticipacoesLtdaMember" xlink:title="ugp_UltracargoOperacoesLogisticasParticipacoesLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltracargoOperacoesLogisticasParticipacoesLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltracargoOperacoesLogisticasParticipacoesLtdaMember" xlink:type="arc" use="optional" order="32" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltracargoLogisticaSAMember" xlink:label="ugp_UltracargoLogisticaSAMember" xlink:title="ugp_UltracargoLogisticaSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltracargoLogisticaSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltracargoLogisticaSAMember" xlink:type="arc" use="optional" order="33" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltracargoSolucoesLogisticasSAMember" xlink:label="ugp_UltracargoSolucoesLogisticasSAMember" xlink:title="ugp_UltracargoSolucoesLogisticasSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltracargoSolucoesLogisticasSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltracargoSolucoesLogisticasSAMember" xlink:type="arc" use="optional" order="34" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TEASTerminalExportadorDeAlcoolDeSantosLtdaMember" xlink:label="ugp_TEASTerminalExportadorDeAlcoolDeSantosLtdaMember" xlink:title="ugp_TEASTerminalExportadorDeAlcoolDeSantosLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_TEASTerminalExportadorDeAlcoolDeSantosLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_TEASTerminalExportadorDeAlcoolDeSantosLtdaMember" xlink:type="arc" use="optional" order="35" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltraparInternationalSAMember" xlink:label="ugp_UltraparInternationalSAMember" xlink:title="ugp_UltraparInternationalSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltraparInternationalSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltraparInternationalSAMember" xlink:type="arc" use="optional" order="36" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ImavenImoveisLtdaMember" xlink:label="ugp_ImavenImoveisLtdaMember" xlink:title="ugp_ImavenImoveisLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_ImavenImoveisLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_ImavenImoveisLtdaMember" xlink:type="arc" use="optional" order="37" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UVCFundoDeInvestimentoEmParticipacoesMultiestrategiaInvestimenToNoExteriorMember" xlink:label="ugp_UVCFundoDeInvestimentoEmParticipacoesMultiestrategiaInvestimenToNoExteriorMember" xlink:title="ugp_UVCFundoDeInvestimentoEmParticipacoesMultiestrategiaInvestimenToNoExteriorMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UVCFundoDeInvestimentoEmParticipacoesMultiestrategiaInvestimenToNoExteriorMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UVCFundoDeInvestimentoEmParticipacoesMultiestrategiaInvestimenToNoExteriorMember" xlink:type="arc" use="optional" order="38" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_SermaAssDosUsuariosEquipProcDeDadosMember" xlink:label="ugp_SermaAssDosUsuariosEquipProcDeDadosMember" xlink:title="ugp_SermaAssDosUsuariosEquipProcDeDadosMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_SermaAssDosUsuariosEquipProcDeDadosMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_SermaAssDosUsuariosEquipProcDeDadosMember" xlink:type="arc" use="optional" order="39" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_ImifarmaProdutosFarmaceuticosCosmeticosMember" xlink:label="ugp_ImifarmaProdutosFarmaceuticosCosmeticosMember" xlink:title="ugp_ImifarmaProdutosFarmaceuticosCosmeticosMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_ImifarmaProdutosFarmaceuticosCosmeticosMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_ImifarmaProdutosFarmaceuticosCosmeticosMember" xlink:type="arc" use="optional" order="40" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OxitenoIndustriaComercioMember" xlink:label="ugp_OxitenoIndustriaComercioMember" xlink:title="ugp_OxitenoIndustriaComercioMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_OxitenoIndustriaComercioMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_OxitenoIndustriaComercioMember" xlink:type="arc" use="optional" order="41" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OxitenoArgentinaSociedadDeResponsabilidadLtdaMember" xlink:label="ugp_OxitenoArgentinaSociedadDeResponsabilidadLtdaMember" xlink:title="ugp_OxitenoArgentinaSociedadDeResponsabilidadLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_OxitenoArgentinaSociedadDeResponsabilidadLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_OxitenoArgentinaSociedadDeResponsabilidadLtdaMember" xlink:type="arc" use="optional" order="42" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OleoqumicaIndustriaeComrcioDeProdutosQumicosLtdaMember" xlink:label="ugp_OleoqumicaIndustriaeComrcioDeProdutosQumicosLtdaMember" xlink:title="ugp_OleoqumicaIndustriaeComrcioDeProdutosQumicosLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_OleoqumicaIndustriaeComrcioDeProdutosQumicosLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_OleoqumicaIndustriaeComrcioDeProdutosQumicosLtdaMember" xlink:type="arc" use="optional" order="43" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OxitenoUruguaySAMember" xlink:label="ugp_OxitenoUruguaySAMember" xlink:title="ugp_OxitenoUruguaySAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_OxitenoUruguaySAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_OxitenoUruguaySAMember" xlink:type="arc" use="optional" order="44" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OxitenoMexicoSADeCVMember" xlink:label="ugp_OxitenoMexicoSADeCVMember" xlink:title="ugp_OxitenoMexicoSADeCVMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_OxitenoMexicoSADeCVMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_OxitenoMexicoSADeCVMember" xlink:type="arc" use="optional" order="45" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OxitenoServiciosCorporativosSADeCVMember" xlink:label="ugp_OxitenoServiciosCorporativosSADeCVMember" xlink:title="ugp_OxitenoServiciosCorporativosSADeCVMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_OxitenoServiciosCorporativosSADeCVMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_OxitenoServiciosCorporativosSADeCVMember" xlink:type="arc" use="optional" order="46" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OxitenoServiciosIndustrialsDeCVMember" xlink:label="ugp_OxitenoServiciosIndustrialsDeCVMember" xlink:title="ugp_OxitenoServiciosIndustrialsDeCVMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_OxitenoServiciosIndustrialsDeCVMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_OxitenoServiciosIndustrialsDeCVMember" xlink:type="arc" use="optional" order="47" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OxitenoUSALLCMember" xlink:label="ugp_OxitenoUSALLCMember" xlink:title="ugp_OxitenoUSALLCMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_OxitenoUSALLCMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_OxitenoUSALLCMember" xlink:type="arc" use="optional" order="48" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OxitenoEuropeSprlMember" xlink:label="ugp_OxitenoEuropeSprlMember" xlink:title="ugp_OxitenoEuropeSprlMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_OxitenoEuropeSprlMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_OxitenoEuropeSprlMember" xlink:type="arc" use="optional" order="49" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OxitenoColombiaSASMember" xlink:label="ugp_OxitenoColombiaSASMember" xlink:title="ugp_OxitenoColombiaSASMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_OxitenoColombiaSASMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_OxitenoColombiaSASMember" xlink:type="arc" use="optional" order="50" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OxitenoShanghaiLtdMember" xlink:label="ugp_OxitenoShanghaiLtdMember" xlink:title="ugp_OxitenoShanghaiLtdMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_OxitenoShanghaiLtdMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_OxitenoShanghaiLtdMember" xlink:type="arc" use="optional" order="51" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_EmpresaCariocaDeProdutosQuimicosSAMember" xlink:label="ugp_EmpresaCariocaDeProdutosQuimicosSAMember" xlink:title="ugp_EmpresaCariocaDeProdutosQuimicosSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_EmpresaCariocaDeProdutosQuimicosSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_EmpresaCariocaDeProdutosQuimicosSAMember" xlink:type="arc" use="optional" order="52" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_GlobalPetroleumProductsTradingCorporationMember" xlink:label="ugp_GlobalPetroleumProductsTradingCorporationMember" xlink:title="ugp_GlobalPetroleumProductsTradingCorporationMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_GlobalPetroleumProductsTradingCorporationMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_GlobalPetroleumProductsTradingCorporationMember" xlink:type="arc" use="optional" order="53" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltragazComercialLtdaMember" xlink:label="ugp_UltragazComercialLtdaMember" xlink:title="ugp_UltragazComercialLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltragazComercialLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltragazComercialLtdaMember" xlink:type="arc" use="optional" order="54" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_CentroDeConveninciasMillenniumLtdaMember" xlink:label="ugp_CentroDeConveninciasMillenniumLtdaMember" xlink:title="ugp_CentroDeConveninciasMillenniumLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_CentroDeConveninciasMillenniumLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_CentroDeConveninciasMillenniumLtdaMember" xlink:type="arc" use="optional" order="55" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_StellaGdIntermediacaoDeGeracaoDistribuidaDeEnergiaLtdaMember" xlink:label="ugp_StellaGdIntermediacaoDeGeracaoDistribuidaDeEnergiaLtdaMember" xlink:title="ugp_StellaGdIntermediacaoDeGeracaoDistribuidaDeEnergiaLtdaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_StellaGdIntermediacaoDeGeracaoDistribuidaDeEnergiaLtdaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_StellaGdIntermediacaoDeGeracaoDistribuidaDeEnergiaLtdaMember" xlink:type="arc" use="optional" order="56" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_UltracargoVilaDoCondeLogisticaPortuariaSAMember" xlink:label="ugp_UltracargoVilaDoCondeLogisticaPortuariaSAMember" xlink:title="ugp_UltracargoVilaDoCondeLogisticaPortuariaSAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_UltracargoVilaDoCondeLogisticaPortuariaSAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_UltracargoVilaDoCondeLogisticaPortuariaSAMember" xlink:type="arc" use="optional" order="57" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OxitenoNordesteSAIndustriaeComercioMember" xlink:label="ugp_OxitenoNordesteSAIndustriaeComercioMember" xlink:title="ugp_OxitenoNordesteSAIndustriaeComercioMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_OxitenoNordesteSAIndustriaeComercioMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_OxitenoNordesteSAIndustriaeComercioMember" xlink:type="arc" use="optional" order="58" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_OxitenoAndinaCAMember" xlink:label="ugp_OxitenoAndinaCAMember" xlink:title="ugp_OxitenoAndinaCAMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_OxitenoAndinaCAMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_OxitenoAndinaCAMember" xlink:type="arc" use="optional" order="59" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TerminalQuimicoDeAratuSATequimarMember" xlink:label="ugp_TerminalQuimicoDeAratuSATequimarMember" xlink:title="ugp_TerminalQuimicoDeAratuSATequimarMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_TerminalQuimicoDeAratuSATequimarMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_TerminalQuimicoDeAratuSATequimarMember" xlink:type="arc" use="optional" order="60" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="ugp-20241231.xsd#ugp_TequimarVilaDoCondeLogsticaPorturiaSaMember" xlink:label="ugp_TequimarVilaDoCondeLogsticaPorturiaSaMember" xlink:title="ugp_TequimarVilaDoCondeLogsticaPorturiaSaMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="ugp_TequimarVilaDoCondeLogsticaPorturiaSaMember" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesDomain to ugp_TequimarVilaDoCondeLogsticaPorturiaSaMember" xlink:type="arc" use="optional" order="61" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1" xlink:title="Definition : ifrs-full_SignificantInvestmentsInSubsidiariesAxis to ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/RisksandFinancialInstrumentsCreditriskexposureDetail">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:label="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:title="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:label="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:title="ifrs-full_DisclosureOfFinancialInstrumentsTable" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsLineItems to ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:type="arc" order="0" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeAxis" xlink:label="ifrs-full_RangeAxis" xlink:title="ifrs-full_RangeAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="ifrs-full_RangeAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsTable to ifrs-full_RangeAxis" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeDomain" xlink:label="ifrs-full_RangeDomain" xlink:title="ifrs-full_RangeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_RangeAxis" xlink:to="ifrs-full_RangeDomain" xlink:title="Definition : ifrs-full_RangeAxis to ifrs-full_RangeDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_WeightedAverageMember" xlink:label="ifrs-full_WeightedAverageMember" xlink:title="ifrs-full_WeightedAverageMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_RangeDomain" xlink:to="ifrs-full_WeightedAverageMember" xlink:title="Definition : ifrs-full_RangeDomain to ifrs-full_WeightedAverageMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_RangeDomain" xlink:label="ifrs-full_RangeDomain_1" xlink:title="ifrs-full_RangeDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_RangeAxis" xlink:to="ifrs-full_RangeDomain_1" xlink:title="Definition : ifrs-full_RangeAxis to ifrs-full_RangeDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PastDueStatusAxis" xlink:label="ifrs-full_PastDueStatusAxis" xlink:title="ifrs-full_PastDueStatusAxis" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="ifrs-full_PastDueStatusAxis" xlink:title="Definition : ifrs-full_DisclosureOfFinancialInstrumentsTable to ifrs-full_PastDueStatusAxis" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PastDueStatusDomain" xlink:label="ifrs-full_PastDueStatusDomain" xlink:title="ifrs-full_PastDueStatusDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="ifrs-full_PastDueStatusAxis" xlink:to="ifrs-full_PastDueStatusDomain" xlink:title="Definition : ifrs-full_PastDueStatusAxis to ifrs-full_PastDueStatusDomain" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_CurrentMember" xlink:label="ifrs-full_CurrentMember" xlink:title="ifrs-full_CurrentMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_PastDueStatusDomain" xlink:to="ifrs-full_CurrentMember" xlink:title="Definition : ifrs-full_PastDueStatusDomain to ifrs-full_CurrentMember" xlink:type="arc" use="optional" order="0" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_NotLaterThanOneMonthMember" xlink:label="ifrs-full_NotLaterThanOneMonthMember" xlink:title="ifrs-full_NotLaterThanOneMonthMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_PastDueStatusDomain" xlink:to="ifrs-full_NotLaterThanOneMonthMember" xlink:title="Definition : ifrs-full_PastDueStatusDomain to ifrs-full_NotLaterThanOneMonthMember" xlink:type="arc" use="optional" order="1" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanOneMonthAndNotLaterThanTwoMonthsMember" xlink:label="ifrs-full_LaterThanOneMonthAndNotLaterThanTwoMonthsMember" xlink:title="ifrs-full_LaterThanOneMonthAndNotLaterThanTwoMonthsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_PastDueStatusDomain" xlink:to="ifrs-full_LaterThanOneMonthAndNotLaterThanTwoMonthsMember" xlink:title="Definition : ifrs-full_PastDueStatusDomain to ifrs-full_LaterThanOneMonthAndNotLaterThanTwoMonthsMember" xlink:type="arc" use="optional" order="2" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanTwoMonthsAndNotLaterThanThreeMonthsMember" xlink:label="ifrs-full_LaterThanTwoMonthsAndNotLaterThanThreeMonthsMember" xlink:title="ifrs-full_LaterThanTwoMonthsAndNotLaterThanThreeMonthsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_PastDueStatusDomain" xlink:to="ifrs-full_LaterThanTwoMonthsAndNotLaterThanThreeMonthsMember" xlink:title="Definition : ifrs-full_PastDueStatusDomain to ifrs-full_LaterThanTwoMonthsAndNotLaterThanThreeMonthsMember" xlink:type="arc" use="optional" order="3" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanThreeMonthsAndNotLaterThanSixMonthsMember" xlink:label="ifrs-full_LaterThanThreeMonthsAndNotLaterThanSixMonthsMember" xlink:title="ifrs-full_LaterThanThreeMonthsAndNotLaterThanSixMonthsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_PastDueStatusDomain" xlink:to="ifrs-full_LaterThanThreeMonthsAndNotLaterThanSixMonthsMember" xlink:title="Definition : ifrs-full_PastDueStatusDomain to ifrs-full_LaterThanThreeMonthsAndNotLaterThanSixMonthsMember" xlink:type="arc" use="optional" order="4" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_LaterThanSixMonthsMember" xlink:label="ifrs-full_LaterThanSixMonthsMember" xlink:title="ifrs-full_LaterThanSixMonthsMember" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ifrs-full_PastDueStatusDomain" xlink:to="ifrs-full_LaterThanSixMonthsMember" xlink:title="Definition : ifrs-full_PastDueStatusDomain to ifrs-full_LaterThanSixMonthsMember" xlink:type="arc" use="optional" order="5" xbrldt:closed="false" />
    <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd#ifrs-full_PastDueStatusDomain" xlink:label="ifrs-full_PastDueStatusDomain_1" xlink:title="ifrs-full_PastDueStatusDomain" />
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="ifrs-full_PastDueStatusAxis" xlink:to="ifrs-full_PastDueStatusDomain_1" xlink:title="Definition : ifrs-full_PastDueStatusAxis to ifrs-full_PastDueStatusDomain" xlink:type="arc" order="1" xbrldt:closed="false" />
  </link:definitionLink>
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/Consolidatedstatementsoffinancialposition" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/Consolidatedstatementsofincome" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/ConsolidatedstatementsofincomeCalc2" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/Consolidatedstatementsofcomprehensiveincome" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/ConsolidatedstatementsofcomprehensiveincomeCalc2" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/ConsolidatedstatementsofchangesinequityParenthetical" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/Consolidatedstatementsofcashflowsindirectmethod" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/ConsolidatedstatementsofcashflowsindirectmethodCalc2" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/Operations" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/Basisofpreparationandpresentationofconsolidatedfinancialstatements" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/Newaccountingpoliciesandchangesinaccountingpolicies" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/PrinciplesOfConsolidationAndInvestmentsInSubsidiaries" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/Cashandcashequivalentsfinancialinvestmentsderivativefinancialinstrumentsandotherfinancialassets" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/Tradereceivablesresellerfinancingandotherreceivables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/Inventories" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/Recoverabletaxes" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/RelatedParties" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/IncomeAndSocialContributionTaxes" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/PrepaidExpenses" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/Contractualassetswithcustomersexclusivityrights" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/Investmentsinsubsidiariesjointventuresandassociates" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/Rightofuseassetsandleasespayable" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/Propertyplantandequipment" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/Intangibleassets" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/Loansfinancingdebenturesandderivativefinancialinstruments" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/Tradepayables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/Salariesandrelatedcharges" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/TaxesPayable" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/Employeebenefitsandprivatepensionplan" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/Provisionforassetretirementobligation" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/Provisionsandcontingentliabilities" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/DeferredRevenue" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/SubscriptionWarrantsIndemnification" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/Equity" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/Costsexpensesandotheroperatingresultsbynature" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/Gainlossondisposalofpropertyplantandequipmentandintangibleassets" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/Otheroperatingincomenet" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/Financialresult" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/Earningspershare" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/Segmentinformation" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/FinancialInstruments" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/Commitments" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/AcquisitionofInterestandControl" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/Discontinuedoperations" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/Eventsafterthereportingperiod" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/BasisofpreparationandpresentationofconsolidatedfinancialstatementsPolicies" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/OperationsTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/PresentationOfFinancialStatementsAndSummaryOfSignificantAccountingPoliciesTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/CashandcashequivalentsfinancialinvestmentsderivativefinancialinstrumentsandotherfinancialassetsTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/InventoriesTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/RecoverabletaxesTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/RelatedPartiesTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/IncomeAndSocialContributionTaxesTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/PrepaidExpensesTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/ContractualassetswithcustomersexclusivityrightsTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/InvestmentsinsubsidiariesjointventuresandassociatesTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/RightofuseassetsandleasespayableTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/PropertyPlantAndEquipmentTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/IntangibleassetsTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/LoansfinancingdebenturesandderivativefinancialinstrumentsTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/TradePayablesTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/SalariesandrelatedchargesTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/TaxesPayableTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/EmployeebenefitsandprivatepensionplanTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/ProvisionforassetretirementobligationTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/ProvisionsandcontingentliabilitiesTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/DeferredRevenueTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/EquityTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/CostsexpensesandotheroperatingresultsbynatureTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/OtheroperatingincomenetTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/FinancialresultTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/EarningspershareTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/SegmentinformationTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/FinancialInstrumentsTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/CommitmentsTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/DiscontinuedoperationsTables" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/CashandcashequivalentsfinancialinvestmentsderivativefinancialinstrumentsandotherfinancialassetsCashandcashequivalentsDetail" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/CashandcashequivalentsfinancialinvestmentsderivativefinancialinstrumentsandotherfinancialassetsFinancialinvestmentsDetail" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/CashandCashEquivalentsandFinancialInvestmentsFinancialinvestmentsDetailCalc2" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/CashandcashequivalentsfinancialinvestmentsandderivativefinancialinstrumentsAdditionalInformationDetail" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/TradeReceivablesandResellerFinancingTradereceivablesDetailCalc2" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/TradeReceivablesandResellerFinancingCompositionofResellerFinancingDetailCalc2" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/InventoriesMovementsintheProvisionforinventoryLossesDetail" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/InventoriesBreakdownofProvisionforLossesRelatedtoInventoriesDetail" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/RelatedPartiesSummaryOfExpensesForCompensationOfItsKeyExecutivesDetail" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/IncomeAndSocialContributionTaxesDeferredTaxesDetail" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/IncomeAndSocialContributionTaxesSummaryOfChangesInBalancesOfDeferredTaxesDetail" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/IncomeAndSocialContributionTaxesSummaryOfReconciliationOfTaxesDetail" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/ContractualassetswithcustomersexclusivityrightsSummaryofContractualAssetswithCustomersExclusiveRightsBalanceandChangesDetail" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/RightofuseassetsandleasespayableAdditionalInformationDetail" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/LoansfinancingdebenturesandderivativefinancialinstrumentsSummaryofChangesinLoansDebenturesandFinanceLeasesDetail" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/EmployeebenefitsandprivatepensionplanChangesinprovisionforpostemploymentbenefitsDetail" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/EmployeebenefitsandprivatepensionplanSignificantactuarialassumptionsadoptedDetail" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/DeferredRevenueAdditionalInformationDetail" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/EquityDividendsAndAllocationOfNetIncomeDetail" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/EquityDividendsandAllocationofNetIncomeDetailCalc2" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/EquityDividendsAndAllocationOfNetIncomeParentheticalDetail" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/EquitySummaryofBalancesandChangesinDividendsPayableDetail" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/CostsexpensesandotheroperatingresultsbynatureCostsandexpensesbynatureDetail" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/CostsandexpensesbynatureAdditionalinformationDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/CostsandexpensesbynatureCostsandexpensesbynatureDetailCalc2" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/FinancialresultFinancialresultDetail" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/EarningspershareBasicandDilutedEarningsperShareDetail" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/FinancialInstrumentsAssetsandliabilitiesinforeigncurrenciesDetailCalc2" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/FinancialInstrumentsScheduleofleverageratioDetail" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/CommitmentsMinimumAnnualPurchasesDetail" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/InvestmentSummaryofprovisionforshorttermliabilitiesDetail" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/InvestmentsSummaryofreconciliationofshareofprofitlossofsubsidiariesjointventuresandassociatesDetails" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/LoansfinancingdebenturesandderivativefinancialinstrumentsSummaryofCollateraltoFinancialInstitutionsDetail" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/PrepaidExpensesSummaryOfPrepaidExpensesDetail" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/PrepaidExpensesSummaryofPrepaidExpensesDetailCalc2" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/EquityBalanceAndChangesInCumulativeTranslationAdjustmentsDetail" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/SalariesAndRelatedChargesSummaryOfSalariesAndRelatedChargesDetail" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/GainlossondisposalofpropertyplantandequipmentandintangibleassetsAdditionalinformationDetail" />
  <link:definitionLink xlink:type="extended" xlink:role="http://www.ultrapar.com/role/OtheroperatingincomenetOtheroperatingincomenetDetail" />
</link:linkbase>
