<?xml version="1.0" encoding="utf-8"?>
<!--Generated by DFIN XBRL Instance Document - http://www.dfinsolutions.com/ - Version R3.0 - on 15-June-2021 [07:37:50] {PM}-->
<linkbase xmlns="http://www.xbrl.org/2003/linkbase" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" xmlns:xbrldt="http://xbrl.org/2005/xbrldt">
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#CoverPage" roleURI="http://www.xpenginc.com/role/CoverPage" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#ConsolidatedBalanceSheets" roleURI="http://www.xpenginc.com/role/ConsolidatedBalanceSheets" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#ConsolidatedBalanceSheetsParenthetical" roleURI="http://www.xpenginc.com/role/ConsolidatedBalanceSheetsParenthetical" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#ConsolidatedStatementsOfComprehensiveLoss" roleURI="http://www.xpenginc.com/role/ConsolidatedStatementsOfComprehensiveLoss" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#ConsolidatedStatementsOfComprehensiveLossParenthetical" roleURI="http://www.xpenginc.com/role/ConsolidatedStatementsOfComprehensiveLossParenthetical" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#ConsolidatedStatementsOfChangesInShareholdersDeficitEquity" roleURI="http://www.xpenginc.com/role/ConsolidatedStatementsOfChangesInShareholdersDeficitEquity" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#ConsolidatedStatementsOfCashFlows" roleURI="http://www.xpenginc.com/role/ConsolidatedStatementsOfCashFlows" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#ShareBasedCompensationTables" roleURI="http://www.xpenginc.com/role/ShareBasedCompensationTables" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#OrganizationAndNatureOfOperationsAdditionalInformationDetail" roleURI="http://www.xpenginc.com/role/OrganizationAndNatureOfOperationsAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#OrganizationAndNatureOfOperationsSummaryOfCompanySPrincipalSubsidiariesAndViesDetail" roleURI="http://www.xpenginc.com/role/OrganizationAndNatureOfOperationsSummaryOfCompanySPrincipalSubsidiariesAndViesDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#OrganizationAndNatureOfOperationsSummaryOfCompanySPrincipalSubsidiariesAndViesParentheticalDetail" roleURI="http://www.xpenginc.com/role/OrganizationAndNatureOfOperationsSummaryOfCompanySPrincipalSubsidiariesAndViesParentheticalDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail" roleURI="http://www.xpenginc.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#SummaryOfSignificantAccountingPoliciesSummaryOfCashAndCashEquivalentsDetails" roleURI="http://www.xpenginc.com/role/SummaryOfSignificantAccountingPoliciesSummaryOfCashAndCashEquivalentsDetails" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#SummaryOfSignificantAccountingPoliciesSummaryOfAccountReceivableAndAllowanceForCreditLossDetails" roleURI="http://www.xpenginc.com/role/SummaryOfSignificantAccountingPoliciesSummaryOfAccountReceivableAndAllowanceForCreditLossDetails" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#SummaryOfSignificantAccountingPoliciesSummaryOfUsefulLivesOfPropertyPlantAndEquipmentDetails" roleURI="http://www.xpenginc.com/role/SummaryOfSignificantAccountingPoliciesSummaryOfUsefulLivesOfPropertyPlantAndEquipmentDetails" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#SummaryOfSignificantAccountingPoliciesSummaryOfFiniteLivedIntangibleAssetsUsefulLivesDetails" roleURI="http://www.xpenginc.com/role/SummaryOfSignificantAccountingPoliciesSummaryOfFiniteLivedIntangibleAssetsUsefulLivesDetails" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#RecentAccountingPronouncementsAdditionalInformationDetail" roleURI="http://www.xpenginc.com/role/RecentAccountingPronouncementsAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#FairValueOfFinancialInstrumentsSummaryOfFairValueOfTheFinancialInstrumentsThatAreMeasuredAtFairValueOnARecurringBasisDetail" roleURI="http://www.xpenginc.com/role/FairValueOfFinancialInstrumentsSummaryOfFairValueOfTheFinancialInstrumentsThatAreMeasuredAtFairValueOnARecurringBasisDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#FairValueOfFinancialInstrumentsScheduleForDeterminingTheFairValueOfDerivativeLiabilitiesDetail" roleURI="http://www.xpenginc.com/role/FairValueOfFinancialInstrumentsScheduleForDeterminingTheFairValueOfDerivativeLiabilitiesDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#PropertyPlantAndEquipmentNetSummaryOfPropertyPlantAndEquipmentNetDetail" roleURI="http://www.xpenginc.com/role/PropertyPlantAndEquipmentNetSummaryOfPropertyPlantAndEquipmentNetDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#PropertyPlantAndEquipmentNetAdditionalInformationDetail" roleURI="http://www.xpenginc.com/role/PropertyPlantAndEquipmentNetAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#IntangibleAssetsNetScheduleOfIntangibleAssetsAndGoodwillDetail" roleURI="http://www.xpenginc.com/role/IntangibleAssetsNetScheduleOfIntangibleAssetsAndGoodwillDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#IntangibleAssetsNetAdditionalInformationDetail" roleURI="http://www.xpenginc.com/role/IntangibleAssetsNetAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#LandUseRightsNetSummaryOfLandUseRightsAndRelatedAccumulatedAmortizationDetail" roleURI="http://www.xpenginc.com/role/LandUseRightsNetSummaryOfLandUseRightsAndRelatedAccumulatedAmortizationDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#LandUseRightsNetAdditionalInformationDetail" roleURI="http://www.xpenginc.com/role/LandUseRightsNetAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#AccrualsAndOtherLiabilitiesSummaryOfAccrualsAndOtherCurrentLiabilitiesParentheticalDetail" roleURI="http://www.xpenginc.com/role/AccrualsAndOtherLiabilitiesSummaryOfAccrualsAndOtherCurrentLiabilitiesParentheticalDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#BorrowingsAdditionalInformationDetail" roleURI="http://www.xpenginc.com/role/BorrowingsAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#OtherNonCurrentLiabilitiesSummaryOfOtherNonCurrentLiabilitiesParentheticalDetail" roleURI="http://www.xpenginc.com/role/OtherNonCurrentLiabilitiesSummaryOfOtherNonCurrentLiabilitiesParentheticalDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#RevenuesSummaryOfRevenuesDetail" roleURI="http://www.xpenginc.com/role/RevenuesSummaryOfRevenuesDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#DeferredRevenueAdditionalInformationDetail" roleURI="http://www.xpenginc.com/role/DeferredRevenueAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#ManufacturingInCollaborationWithHaimaAutoAdditionalInformationDetail" roleURI="http://www.xpenginc.com/role/ManufacturingInCollaborationWithHaimaAutoAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#ConvertibleRedeemablePreferredSharesAdditionalInformationDetail" roleURI="http://www.xpenginc.com/role/ConvertibleRedeemablePreferredSharesAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#ConvertibleRedeemablePreferredSharesSummaryOfPreferredSharesActivitiesDetails" roleURI="http://www.xpenginc.com/role/ConvertibleRedeemablePreferredSharesSummaryOfPreferredSharesActivitiesDetails" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#OrdinarySharesAdditionalInformationDetail" roleURI="http://www.xpenginc.com/role/OrdinarySharesAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#ShareBasedCompensationSummaryOfFairValueOfEachShareOptionsGrantedDetail" roleURI="http://www.xpenginc.com/role/ShareBasedCompensationSummaryOfFairValueOfEachShareOptionsGrantedDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#ShareBasedCompensationSummaryOfVestingScheduleOfTheRestrictedSharesDetail" roleURI="http://www.xpenginc.com/role/ShareBasedCompensationSummaryOfVestingScheduleOfTheRestrictedSharesDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#ShareBasedCompensationAdditionalInformationDetail" roleURI="http://www.xpenginc.com/role/ShareBasedCompensationAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#ShareBasedCompensationSummaryOfRestrictedStockAndRestrictedStockUnitActivityDetail" roleURI="http://www.xpenginc.com/role/ShareBasedCompensationSummaryOfRestrictedStockAndRestrictedStockUnitActivityDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#TaxationSummaryOfMovementOfValuationAllowanceDetail" roleURI="http://www.xpenginc.com/role/TaxationSummaryOfMovementOfValuationAllowanceDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#TaxationSummaryOfTaxLossCarryforwardsDetail" roleURI="http://www.xpenginc.com/role/TaxationSummaryOfTaxLossCarryforwardsDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#TaxationAdditionalInformationDetail" roleURI="http://www.xpenginc.com/role/TaxationAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#LossPerShareAdditionalInformationDetail" roleURI="http://www.xpenginc.com/role/LossPerShareAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#RelatedPartiesSummaryOfRelatedPartiesAndNatureOfRelationshipDetail" roleURI="http://www.xpenginc.com/role/RelatedPartiesSummaryOfRelatedPartiesAndNatureOfRelationshipDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#RelatedPartiesAdditionalInformationDetail" roleURI="http://www.xpenginc.com/role/RelatedPartiesAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#CommitmentsAndContingenciesSummaryOfCapitalExpendituresDetails" roleURI="http://www.xpenginc.com/role/CommitmentsAndContingenciesSummaryOfCapitalExpendituresDetails" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#SubsequentEventsAdditionalInformationDetail" roleURI="http://www.xpenginc.com/role/SubsequentEventsAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#RestrictedNetAssetsAdditionalInformationDetail" roleURI="http://www.xpenginc.com/role/RestrictedNetAssetsAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#CompanyFinancialStatementsCondensedBalanceSheetsDetail" roleURI="http://www.xpenginc.com/role/CompanyFinancialStatementsCondensedBalanceSheetsDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#CompanyFinancialStatementsCondensedStatementsOfComprehensiveLossDetail" roleURI="http://www.xpenginc.com/role/CompanyFinancialStatementsCondensedStatementsOfComprehensiveLossDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#CompanyFinancialStatementsConsolidatedStatementsOfCashFlowsDetail" roleURI="http://www.xpenginc.com/role/CompanyFinancialStatementsConsolidatedStatementsOfCashFlowsDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#PrepaymentsAndOtherCurrentAssets" roleURI="http://www.xpenginc.com/role/PrepaymentsAndOtherCurrentAssets" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#PrepaymentsAndOtherCurrentAssetsTables" roleURI="http://www.xpenginc.com/role/PrepaymentsAndOtherCurrentAssetsTables" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#PrepaymentsAndOtherCurrentAssetsSummaryOfPrepaymentsAndOtherCurrentAssetsDetail" roleURI="http://www.xpenginc.com/role/PrepaymentsAndOtherCurrentAssetsSummaryOfPrepaymentsAndOtherCurrentAssetsDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#Inventory" roleURI="http://www.xpenginc.com/role/Inventory" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#InventoryTables" roleURI="http://www.xpenginc.com/role/InventoryTables" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#InventorySummaryOfInventoryDetail" roleURI="http://www.xpenginc.com/role/InventorySummaryOfInventoryDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#ConcentrationAndRisks" roleURI="http://www.xpenginc.com/role/ConcentrationAndRisks" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#FairValueOfFinancialInstruments" roleURI="http://www.xpenginc.com/role/FairValueOfFinancialInstruments" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#RecentAccountingPronouncements" roleURI="http://www.xpenginc.com/role/RecentAccountingPronouncements" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#FairValueOfFinancialInstrumentsTables" roleURI="http://www.xpenginc.com/role/FairValueOfFinancialInstrumentsTables" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#SummaryOfSignificantAccountingPolicies" roleURI="http://www.xpenginc.com/role/SummaryOfSignificantAccountingPolicies" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#SummaryOfSignificantAccountingPoliciesPolicies" roleURI="http://www.xpenginc.com/role/SummaryOfSignificantAccountingPoliciesPolicies" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#SummaryOfSignificantAccountingPoliciesTables" roleURI="http://www.xpenginc.com/role/SummaryOfSignificantAccountingPoliciesTables" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#PropertyPlantAndEquipmentNet" roleURI="http://www.xpenginc.com/role/PropertyPlantAndEquipmentNet" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#PropertyPlantAndEquipmentNetTables" roleURI="http://www.xpenginc.com/role/PropertyPlantAndEquipmentNetTables" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#OrdinaryShares" roleURI="http://www.xpenginc.com/role/OrdinaryShares" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#OrganizationAndNatureOfOperations" roleURI="http://www.xpenginc.com/role/OrganizationAndNatureOfOperations" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#OrganizationAndNatureOfOperationsTables" roleURI="http://www.xpenginc.com/role/OrganizationAndNatureOfOperationsTables" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#CompanyFinancialStatements" roleURI="http://www.xpenginc.com/role/CompanyFinancialStatements" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#CompanyFinancialStatementsTables" roleURI="http://www.xpenginc.com/role/CompanyFinancialStatementsTables" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#SubsequentEvents" roleURI="http://www.xpenginc.com/role/SubsequentEvents" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#CommitmentsAndContingencies" roleURI="http://www.xpenginc.com/role/CommitmentsAndContingencies" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#CommitmentsAndContingenciesTables" roleURI="http://www.xpenginc.com/role/CommitmentsAndContingenciesTables" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#CommitmentsAndContingenciesSummaryOfPurchaseExpendituresDetail" roleURI="http://www.xpenginc.com/role/CommitmentsAndContingenciesSummaryOfPurchaseExpendituresDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#ShareBasedCompensation" roleURI="http://www.xpenginc.com/role/ShareBasedCompensation" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#ShareBasedCompensationSummaryOfShareBasedCompensationStockOptionsActivityDetail" roleURI="http://www.xpenginc.com/role/ShareBasedCompensationSummaryOfShareBasedCompensationStockOptionsActivityDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#RelatedParties" roleURI="http://www.xpenginc.com/role/RelatedParties" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#RelatedPartiesTables" roleURI="http://www.xpenginc.com/role/RelatedPartiesTables" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#LossPerShare" roleURI="http://www.xpenginc.com/role/LossPerShare" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#LossPerShareTables" roleURI="http://www.xpenginc.com/role/LossPerShareTables" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#LossPerShareSummaryOfEarningsPerShareBasicAndDilutedDetail" roleURI="http://www.xpenginc.com/role/LossPerShareSummaryOfEarningsPerShareBasicAndDilutedDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#Taxation" roleURI="http://www.xpenginc.com/role/Taxation" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#TaxationTables" roleURI="http://www.xpenginc.com/role/TaxationTables" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#TaxationSummaryOfCompositionOfIncomeTaxExpensesDetail" roleURI="http://www.xpenginc.com/role/TaxationSummaryOfCompositionOfIncomeTaxExpensesDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#ManufacturingInCollaborationWithHaimaAuto" roleURI="http://www.xpenginc.com/role/ManufacturingInCollaborationWithHaimaAuto" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#OtherNonCurrentLiabilities" roleURI="http://www.xpenginc.com/role/OtherNonCurrentLiabilities" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#OtherNonCurrentLiabilitiesTables" roleURI="http://www.xpenginc.com/role/OtherNonCurrentLiabilitiesTables" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#TaxationSummaryOfReconciliationsOfTheIncomeTaxExpensesDetail" roleURI="http://www.xpenginc.com/role/TaxationSummaryOfReconciliationsOfTheIncomeTaxExpensesDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#OtherNonCurrentLiabilitiesSummaryOfOtherNonCurrentLiabilitiesDetail" roleURI="http://www.xpenginc.com/role/OtherNonCurrentLiabilitiesSummaryOfOtherNonCurrentLiabilitiesDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#OtherNonCurrentLiabilitiesSummaryOfMovementsOfAccruedWarrantyDetail" roleURI="http://www.xpenginc.com/role/OtherNonCurrentLiabilitiesSummaryOfMovementsOfAccruedWarrantyDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#DeferredRevenue" roleURI="http://www.xpenginc.com/role/DeferredRevenue" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#DeferredRevenueTables" roleURI="http://www.xpenginc.com/role/DeferredRevenueTables" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#TaxationSummaryOfComponentsOfDeferredTaxAssetsDetail" roleURI="http://www.xpenginc.com/role/TaxationSummaryOfComponentsOfDeferredTaxAssetsDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#DeferredRevenueDeferredRevenueDisclosureDetail" roleURI="http://www.xpenginc.com/role/DeferredRevenueDeferredRevenueDisclosureDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#Revenues" roleURI="http://www.xpenginc.com/role/Revenues" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#RevenuesTables" roleURI="http://www.xpenginc.com/role/RevenuesTables" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#LandUseRightsNet" roleURI="http://www.xpenginc.com/role/LandUseRightsNet" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#LandUseRightsNetTables" roleURI="http://www.xpenginc.com/role/LandUseRightsNetTables" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#IntangibleAssetsNet" roleURI="http://www.xpenginc.com/role/IntangibleAssetsNet" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#OtherNonCurrentAssets" roleURI="http://www.xpenginc.com/role/OtherNonCurrentAssets" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#IntangibleAssetsNetTables" roleURI="http://www.xpenginc.com/role/IntangibleAssetsNetTables" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#OtherNonCurrentAssetsSummaryOfOtherNonCurrentAssetsDetail" roleURI="http://www.xpenginc.com/role/OtherNonCurrentAssetsSummaryOfOtherNonCurrentAssetsDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#IntangibleAssetsNetScheduleOfIntangibleAssetsAndGoodwillParentheticalDetail" roleURI="http://www.xpenginc.com/role/IntangibleAssetsNetScheduleOfIntangibleAssetsAndGoodwillParentheticalDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#IntangibleAssetsNetScheduleOfFiniteLivedIntangibleAssetsFutureAmortizationExpenseDetail" roleURI="http://www.xpenginc.com/role/IntangibleAssetsNetScheduleOfFiniteLivedIntangibleAssetsFutureAmortizationExpenseDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#AccrualsAndOtherLiabilities" roleURI="http://www.xpenginc.com/role/AccrualsAndOtherLiabilities" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#AccrualsAndOtherLiabilitiesTables" roleURI="http://www.xpenginc.com/role/AccrualsAndOtherLiabilitiesTables" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#AccrualsAndOtherLiabilitiesSummaryOfAccrualsAndOtherLiabilitiesDetail" roleURI="http://www.xpenginc.com/role/AccrualsAndOtherLiabilitiesSummaryOfAccrualsAndOtherLiabilitiesDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#LeasesScheduleOfBalanceSheetInformationRelatedToOperatingLeasesDetail" roleURI="http://www.xpenginc.com/role/LeasesScheduleOfBalanceSheetInformationRelatedToOperatingLeasesDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#LeasesSummaryOfComponentsOfOperatingLeaseExpenseDetail" roleURI="http://www.xpenginc.com/role/LeasesSummaryOfComponentsOfOperatingLeaseExpenseDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#Borrowings" roleURI="http://www.xpenginc.com/role/Borrowings" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#LeasesScheduleOfOtherInformationRelatedToOperatingLeasesDetail" roleURI="http://www.xpenginc.com/role/LeasesScheduleOfOtherInformationRelatedToOperatingLeasesDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#BorrowingsTables" roleURI="http://www.xpenginc.com/role/BorrowingsTables" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#LeasesSummaryOfCashFlowInformationRelatedToOperatingLeasesDetail" roleURI="http://www.xpenginc.com/role/LeasesSummaryOfCashFlowInformationRelatedToOperatingLeasesDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#BorrowingsSummaryOfBorrowingsDetail" roleURI="http://www.xpenginc.com/role/BorrowingsSummaryOfBorrowingsDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#LeasesSummaryOfMaturitiesOfTheGroupSOperatingLeaseLiabilitiesDetail" roleURI="http://www.xpenginc.com/role/LeasesSummaryOfMaturitiesOfTheGroupSOperatingLeaseLiabilitiesDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#LeasesSummaryOfFinanceLeaseReceivablesDetail" roleURI="http://www.xpenginc.com/role/LeasesSummaryOfFinanceLeaseReceivablesDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#LeasesSummaryOfMaturityAnalysisOfTheMinimumLeasePaymentsReceivableDetail" roleURI="http://www.xpenginc.com/role/LeasesSummaryOfMaturityAnalysisOfTheMinimumLeasePaymentsReceivableDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#LeasesAdditionalInformationDetail" roleURI="http://www.xpenginc.com/role/LeasesAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#ConvertibleRedeemablePreferredShares" roleURI="http://www.xpenginc.com/role/ConvertibleRedeemablePreferredShares" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#ConvertibleRedeemablePreferredSharesTables" roleURI="http://www.xpenginc.com/role/ConvertibleRedeemablePreferredSharesTables" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#OtherNonCurrentAssetsTables" roleURI="http://www.xpenginc.com/role/OtherNonCurrentAssetsTables" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#Leases" roleURI="http://www.xpenginc.com/role/Leases" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#LeasesTables" roleURI="http://www.xpenginc.com/role/LeasesTables" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#OtherNonCurrentAssetsAdditionalInformationDetail" roleURI="http://www.xpenginc.com/role/OtherNonCurrentAssetsAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#RestrictedNetAssets" roleURI="http://www.xpenginc.com/role/RestrictedNetAssets" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#InventoryAdditionalInformationDetail" roleURI="http://www.xpenginc.com/role/InventoryAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#ConsolidatedStatementsOfChangesInShareholdersDeficitEquityParenthetical" roleURI="http://www.xpenginc.com/role/ConsolidatedStatementsOfChangesInShareholdersDeficitEquityParenthetical" />
<roleRef xlink:type="simple" xlink:href="xpev-20210331.xsd#SummaryOfSignificantAccountingPoliciesSummaryOfAccountReceivableAndAllowanceForCreditParentheticalDetails" roleURI="http://www.xpenginc.com/role/SummaryOfSignificantAccountingPoliciesSummaryOfAccountReceivableAndAllowanceForCreditParentheticalDetails" />
<arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all" />
<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" />
<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" />
<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" />
<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" />
<arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/notAll" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#notAll" />
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/CoverPage">
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_DocumentInformationLineItems" xlink:label="loc_dei_DocumentInformationLineItems_787739" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_DocumentInformationTable" xlink:label="loc_dei_DocumentInformationTable_787736" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_dei_DocumentInformationLineItems_787739" xlink:to="loc_dei_DocumentInformationTable_787736" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_787737" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_dei_DocumentInformationTable_787736" xlink:to="loc_us-gaap_StatementClassOfStockAxis_787737" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_787738" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_787737" xlink:to="loc_us-gaap_ClassOfStockDomain_787738" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_787738_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_787737" xlink:to="loc_us-gaap_ClassOfStockDomain_787738_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityAddressesAddressTypeAxis" xlink:label="loc_dei_EntityAddressesAddressTypeAxis_787776" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_dei_DocumentInformationTable_787736" xlink:to="loc_dei_EntityAddressesAddressTypeAxis_787776" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_AddressTypeDomain" xlink:label="loc_dei_AddressTypeDomain_787777" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_EntityAddressesAddressTypeAxis_787776" xlink:to="loc_dei_AddressTypeDomain_787777" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_AddressTypeDomain" xlink:label="loc_dei_AddressTypeDomain_787777_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_EntityAddressesAddressTypeAxis_787776" xlink:to="loc_dei_AddressTypeDomain_787777_default" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_DocumentType" xlink:label="loc_dei_DocumentType_787742" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_787739" xlink:to="loc_dei_DocumentType_787742" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_AmendmentFlag" xlink:label="loc_dei_AmendmentFlag_787746" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_787739" xlink:to="loc_dei_AmendmentFlag_787746" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityRegistrantName" xlink:label="loc_dei_EntityRegistrantName_787750" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_787739" xlink:to="loc_dei_EntityRegistrantName_787750" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityCentralIndexKey" xlink:label="loc_dei_EntityCentralIndexKey_787751" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_787739" xlink:to="loc_dei_EntityCentralIndexKey_787751" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityIncorporationStateCountryCode" xlink:label="loc_dei_EntityIncorporationStateCountryCode_787753" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_787739" xlink:to="loc_dei_EntityIncorporationStateCountryCode_787753" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityEmergingGrowthCompany" xlink:label="loc_dei_EntityEmergingGrowthCompany_787762" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_787739" xlink:to="loc_dei_EntityEmergingGrowthCompany_787762" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityExTransitionPeriod" xlink:label="loc_dei_EntityExTransitionPeriod_787763" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_787739" xlink:to="loc_dei_EntityExTransitionPeriod_787763" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityAddressCountry" xlink:label="loc_dei_EntityAddressCountry_787767" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_787739" xlink:to="loc_dei_EntityAddressCountry_787767" use="optional" order="15" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/ConsolidatedBalanceSheets">
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_786035" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_786008" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_786035" xlink:to="loc_us-gaap_StatementTable_786008" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_786012" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_786008" xlink:to="loc_us-gaap_StatementClassOfStockAxis_786012" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_786014" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_786012" xlink:to="loc_us-gaap_ClassOfStockDomain_786014" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_786014_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_786012" xlink:to="loc_us-gaap_ClassOfStockDomain_786014_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SeriesARedeemableConvertiblePreferredSharesMember" xlink:label="loc_xpev_SeriesARedeemableConvertiblePreferredSharesMember_786017" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786014" xlink:to="loc_xpev_SeriesARedeemableConvertiblePreferredSharesMember_786017" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SeriesAOneRedeemableConvertiblePreferredSharesMember" xlink:label="loc_xpev_SeriesAOneRedeemableConvertiblePreferredSharesMember_786019" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786014" xlink:to="loc_xpev_SeriesAOneRedeemableConvertiblePreferredSharesMember_786019" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SeriesATwoRedeemableConvertiblePreferredSharesMember" xlink:label="loc_xpev_SeriesATwoRedeemableConvertiblePreferredSharesMember_786022" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786014" xlink:to="loc_xpev_SeriesATwoRedeemableConvertiblePreferredSharesMember_786022" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SeriesBOneRedeemableConvertiblePreferredSharesMember" xlink:label="loc_xpev_SeriesBOneRedeemableConvertiblePreferredSharesMember_786027" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786014" xlink:to="loc_xpev_SeriesBOneRedeemableConvertiblePreferredSharesMember_786027" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SeriesBTwoRedeemableConvertiblePreferredSharesMember" xlink:label="loc_xpev_SeriesBTwoRedeemableConvertiblePreferredSharesMember_786029" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786014" xlink:to="loc_xpev_SeriesBTwoRedeemableConvertiblePreferredSharesMember_786029" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SeriesCRedeemableConvertiblePreferredSharesMember" xlink:label="loc_xpev_SeriesCRedeemableConvertiblePreferredSharesMember_786030" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786014" xlink:to="loc_xpev_SeriesCRedeemableConvertiblePreferredSharesMember_786030" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonClassAMember" xlink:label="loc_us-gaap_CommonClassAMember_786031" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786014" xlink:to="loc_us-gaap_CommonClassAMember_786031" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonClassBMember" xlink:label="loc_us-gaap_CommonClassBMember_786032" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786014" xlink:to="loc_us-gaap_CommonClassBMember_786032" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonClassCMember" xlink:label="loc_us-gaap_CommonClassCMember_786033" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786014" xlink:to="loc_us-gaap_CommonClassCMember_786033" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SeriesBRedeemableConvertiblePreferredSharesMember" xlink:label="loc_xpev_SeriesBRedeemableConvertiblePreferredSharesMember_786025" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786014" xlink:to="loc_xpev_SeriesBRedeemableConvertiblePreferredSharesMember_786025" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsAbstract" xlink:label="loc_us-gaap_AssetsAbstract_786038" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786035" xlink:to="loc_us-gaap_AssetsAbstract_786038" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsCurrentAbstract" xlink:label="loc_us-gaap_AssetsCurrentAbstract_786039" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_786038" xlink:to="loc_us-gaap_AssetsCurrentAbstract_786039" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShortTermInvestments" xlink:label="loc_us-gaap_ShortTermInvestments_786043" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_786039" xlink:to="loc_us-gaap_ShortTermInvestments_786043" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccountsReceivableNetCurrent" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_786045" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_786039" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_786045" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_786040" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_786039" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_786040" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestrictedCash" xlink:label="loc_us-gaap_RestrictedCash_786042" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_786039" xlink:to="loc_us-gaap_RestrictedCash_786042" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_FinanceLeaseReceivablesNetCurrent" xlink:label="loc_xpev_FinanceLeaseReceivablesNetCurrent_786047" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_786039" xlink:to="loc_xpev_FinanceLeaseReceivablesNetCurrent_786047" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InventoryNet" xlink:label="loc_us-gaap_InventoryNet_786048" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_786039" xlink:to="loc_us-gaap_InventoryNet_786048" use="optional" order="22" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DueFromRelatedParties" xlink:label="loc_us-gaap_DueFromRelatedParties_786050" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_786039" xlink:to="loc_us-gaap_DueFromRelatedParties_786050" use="optional" order="23" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_786051" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_786039" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_786051" use="optional" order="24" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsCurrent" xlink:label="loc_us-gaap_AssetsCurrent_786052" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_786039" xlink:to="loc_us-gaap_AssetsCurrent_786052" use="optional" order="25" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ShortTermDeposits" xlink:label="loc_xpev_ShortTermDeposits_863501" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_786039" xlink:to="loc_xpev_ShortTermDeposits_863501" use="optional" order="26" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeAssetsCurrent" xlink:label="loc_us-gaap_DerivativeAssetsCurrent_863502" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_786039" xlink:to="loc_us-gaap_DerivativeAssetsCurrent_863502" use="optional" order="27" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_786064" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_786038" xlink:to="loc_us-gaap_Assets_786064" use="optional" order="28" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsNoncurrentAbstract" xlink:label="loc_us-gaap_AssetsNoncurrentAbstract_786053" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_786038" xlink:to="loc_us-gaap_AssetsNoncurrentAbstract_786053" use="optional" order="29" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherAssetsNoncurrent" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_786062" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_786053" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_786062" use="optional" order="30" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsNoncurrent" xlink:label="loc_us-gaap_AssetsNoncurrent_786063" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_786053" xlink:to="loc_us-gaap_AssetsNoncurrent_786063" use="optional" order="31" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_786054" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_786053" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_786054" use="optional" order="32" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeaseRightOfUseAsset" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_786055" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_786053" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_786055" use="optional" order="33" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_786057" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_786053" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_786057" use="optional" order="34" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_LandUseRightAsset" xlink:label="loc_xpev_LandUseRightAsset_786059" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_786053" xlink:to="loc_xpev_LandUseRightAsset_786059" use="optional" order="35" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_FinanceLeaseReceivablesNetNoncurrent" xlink:label="loc_xpev_FinanceLeaseReceivablesNetNoncurrent_786060" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_786053" xlink:to="loc_xpev_FinanceLeaseReceivablesNetNoncurrent_786060" use="optional" order="36" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermInvestments" xlink:label="loc_us-gaap_LongTermInvestments_863503" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_786053" xlink:to="loc_us-gaap_LongTermInvestments_863503" use="optional" order="37" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_LongTermDeposits" xlink:label="loc_xpev_LongTermDeposits_989156" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_786053" xlink:to="loc_xpev_LongTermDeposits_989156" use="optional" order="38" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesAbstract" xlink:label="loc_us-gaap_LiabilitiesAbstract_786068" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786035" xlink:to="loc_us-gaap_LiabilitiesAbstract_786068" use="optional" order="39" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesCurrentAbstract" xlink:label="loc_us-gaap_LiabilitiesCurrentAbstract_786070" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_786068" xlink:to="loc_us-gaap_LiabilitiesCurrentAbstract_786070" use="optional" order="40" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeaseLiabilityCurrent" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_786075" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_786070" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_786075" use="optional" order="41" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredRevenueCurrent" xlink:label="loc_us-gaap_DeferredRevenueCurrent_786077" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_786070" xlink:to="loc_us-gaap_DeferredRevenueCurrent_786077" use="optional" order="42" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShortTermBorrowings" xlink:label="loc_us-gaap_ShortTermBorrowings_786072" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_786070" xlink:to="loc_us-gaap_ShortTermBorrowings_786072" use="optional" order="43" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccountsPayableCurrent" xlink:label="loc_us-gaap_AccountsPayableCurrent_786073" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_786070" xlink:to="loc_us-gaap_AccountsPayableCurrent_786073" use="optional" order="44" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DueToRelatedPartiesCurrent" xlink:label="loc_us-gaap_DueToRelatedPartiesCurrent_786074" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_786070" xlink:to="loc_us-gaap_DueToRelatedPartiesCurrent_786074" use="optional" order="45" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtCurrent" xlink:label="loc_us-gaap_LongTermDebtCurrent_786078" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_786070" xlink:to="loc_us-gaap_LongTermDebtCurrent_786078" use="optional" order="46" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccruedLiabilitiesCurrent" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_786080" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_786070" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_786080" use="optional" order="47" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesCurrent" xlink:label="loc_us-gaap_LiabilitiesCurrent_786081" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_786070" xlink:to="loc_us-gaap_LiabilitiesCurrent_786081" use="optional" order="48" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccruedIncomeTaxesCurrent" xlink:label="loc_us-gaap_AccruedIncomeTaxesCurrent_863504" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_786070" xlink:to="loc_us-gaap_AccruedIncomeTaxesCurrent_863504" use="optional" order="49" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeLiabilitiesCurrent" xlink:label="loc_us-gaap_DerivativeLiabilitiesCurrent_989173" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_786070" xlink:to="loc_us-gaap_DerivativeLiabilitiesCurrent_989173" use="optional" order="50" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesNoncurrentAbstract" xlink:label="loc_us-gaap_LiabilitiesNoncurrentAbstract_786085" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_786068" xlink:to="loc_us-gaap_LiabilitiesNoncurrentAbstract_786085" use="optional" order="51" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtNoncurrent" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_786086" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesNoncurrentAbstract_786085" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_786086" use="optional" order="52" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_786087" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesNoncurrentAbstract_786085" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_786087" use="optional" order="53" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredRevenueNoncurrent" xlink:label="loc_us-gaap_DeferredRevenueNoncurrent_786088" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesNoncurrentAbstract_786085" xlink:to="loc_us-gaap_DeferredRevenueNoncurrent_786088" use="optional" order="54" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeLiabilitiesNoncurrent" xlink:label="loc_us-gaap_DerivativeLiabilitiesNoncurrent_786089" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesNoncurrentAbstract_786085" xlink:to="loc_us-gaap_DerivativeLiabilitiesNoncurrent_786089" use="optional" order="55" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_786090" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesNoncurrentAbstract_786085" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_786090" use="optional" order="56" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesNoncurrent" xlink:label="loc_us-gaap_LiabilitiesNoncurrent_786091" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesNoncurrentAbstract_786085" xlink:to="loc_us-gaap_LiabilitiesNoncurrent_786091" use="optional" order="57" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaap_Liabilities_786092" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesNoncurrentAbstract_786085" xlink:to="loc_us-gaap_Liabilities_786092" use="optional" order="58" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquityAbstract" xlink:label="loc_us-gaap_StockholdersEquityAbstract_786097" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_786068" xlink:to="loc_us-gaap_StockholdersEquityAbstract_786097" use="optional" order="59" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_786100" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_786097" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_786100" use="optional" order="60" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_786101" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_786097" xlink:to="loc_us-gaap_StockholdersEquity_786101" use="optional" order="61" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_786111" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_786097" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_786111" use="optional" order="62" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockValue" xlink:label="loc_us-gaap_CommonStockValue_786098" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_786097" xlink:to="loc_us-gaap_CommonStockValue_786098" use="optional" order="63" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AdditionalPaidInCapital" xlink:label="loc_us-gaap_AdditionalPaidInCapital_786099" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_786097" xlink:to="loc_us-gaap_AdditionalPaidInCapital_786099" use="optional" order="64" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_786107" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_786068" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquity_786107" use="optional" order="65" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TemporaryEquityAbstract" xlink:label="loc_us-gaap_TemporaryEquityAbstract_786094" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_786068" xlink:to="loc_us-gaap_TemporaryEquityAbstract_786094" use="optional" order="66" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TemporaryEquityCarryingAmountAttributableToParent" xlink:label="loc_us-gaap_TemporaryEquityCarryingAmountAttributableToParent_786096" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TemporaryEquityAbstract_786094" xlink:to="loc_us-gaap_TemporaryEquityCarryingAmountAttributableToParent_786096" use="optional" order="67" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RedeemableNoncontrollingInterestEquityPreferredCarryingAmount" xlink:label="loc_us-gaap_RedeemableNoncontrollingInterestEquityPreferredCarryingAmount_786095" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TemporaryEquityAbstract_786094" xlink:to="loc_us-gaap_RedeemableNoncontrollingInterestEquityPreferredCarryingAmount_786095" use="optional" order="68" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommitmentsAndContingencies" xlink:label="loc_us-gaap_CommitmentsAndContingencies_786093" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_786068" xlink:to="loc_us-gaap_CommitmentsAndContingencies_786093" use="optional" order="69" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/ConsolidatedBalanceSheetsParenthetical">
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_786227" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_786208" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_786227" xlink:to="loc_us-gaap_StatementTable_786208" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_786212" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_786208" xlink:to="loc_us-gaap_StatementClassOfStockAxis_786212" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_786213" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_786212" xlink:to="loc_us-gaap_ClassOfStockDomain_786213" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_786213_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_786212" xlink:to="loc_us-gaap_ClassOfStockDomain_786213_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SeriesATwoRedeemableConvertiblePreferredSharesMember" xlink:label="loc_xpev_SeriesATwoRedeemableConvertiblePreferredSharesMember_786218" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786213" xlink:to="loc_xpev_SeriesATwoRedeemableConvertiblePreferredSharesMember_786218" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SeriesBRedeemableConvertiblePreferredSharesMember" xlink:label="loc_xpev_SeriesBRedeemableConvertiblePreferredSharesMember_786219" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786213" xlink:to="loc_xpev_SeriesBRedeemableConvertiblePreferredSharesMember_786219" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SeriesBOneRedeemableConvertiblePreferredSharesMember" xlink:label="loc_xpev_SeriesBOneRedeemableConvertiblePreferredSharesMember_786220" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786213" xlink:to="loc_xpev_SeriesBOneRedeemableConvertiblePreferredSharesMember_786220" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonClassBMember" xlink:label="loc_us-gaap_CommonClassBMember_786225" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786213" xlink:to="loc_us-gaap_CommonClassBMember_786225" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonClassCMember" xlink:label="loc_us-gaap_CommonClassCMember_786226" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786213" xlink:to="loc_us-gaap_CommonClassCMember_786226" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SeriesARedeemableConvertiblePreferredSharesMember" xlink:label="loc_xpev_SeriesARedeemableConvertiblePreferredSharesMember_786216" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786213" xlink:to="loc_xpev_SeriesARedeemableConvertiblePreferredSharesMember_786216" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SeriesAOneRedeemableConvertiblePreferredSharesMember" xlink:label="loc_xpev_SeriesAOneRedeemableConvertiblePreferredSharesMember_786217" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786213" xlink:to="loc_xpev_SeriesAOneRedeemableConvertiblePreferredSharesMember_786217" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SeriesBTwoRedeemableConvertiblePreferredSharesMember" xlink:label="loc_xpev_SeriesBTwoRedeemableConvertiblePreferredSharesMember_786221" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786213" xlink:to="loc_xpev_SeriesBTwoRedeemableConvertiblePreferredSharesMember_786221" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SeriesCRedeemableConvertiblePreferredSharesMember" xlink:label="loc_xpev_SeriesCRedeemableConvertiblePreferredSharesMember_786222" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786213" xlink:to="loc_xpev_SeriesCRedeemableConvertiblePreferredSharesMember_786222" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonClassAMember" xlink:label="loc_us-gaap_CommonClassAMember_786224" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786213" xlink:to="loc_us-gaap_CommonClassAMember_786224" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockSharesIssued" xlink:label="loc_us-gaap_CommonStockSharesIssued_786247" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786227" xlink:to="loc_us-gaap_CommonStockSharesIssued_786247" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockSharesOutstanding" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_786248" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786227" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_786248" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TemporaryEquityParOrStatedValuePerShare" xlink:label="loc_us-gaap_TemporaryEquityParOrStatedValuePerShare_786229" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786227" xlink:to="loc_us-gaap_TemporaryEquityParOrStatedValuePerShare_786229" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TemporaryEquitySharesAuthorized" xlink:label="loc_us-gaap_TemporaryEquitySharesAuthorized_786230" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786227" xlink:to="loc_us-gaap_TemporaryEquitySharesAuthorized_786230" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockParOrStatedValuePerShare" xlink:label="loc_us-gaap_CommonStockParOrStatedValuePerShare_786245" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786227" xlink:to="loc_us-gaap_CommonStockParOrStatedValuePerShare_786245" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockSharesAuthorized" xlink:label="loc_us-gaap_CommonStockSharesAuthorized_786246" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786227" xlink:to="loc_us-gaap_CommonStockSharesAuthorized_786246" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TemporaryEquitySharesIssued" xlink:label="loc_us-gaap_TemporaryEquitySharesIssued_786231" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786227" xlink:to="loc_us-gaap_TemporaryEquitySharesIssued_786231" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TemporaryEquitySharesOutstanding" xlink:label="loc_us-gaap_TemporaryEquitySharesOutstanding_786233" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786227" xlink:to="loc_us-gaap_TemporaryEquitySharesOutstanding_786233" use="optional" order="22" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TemporaryEquityAggregateAmountOfRedemptionRequirement" xlink:label="loc_us-gaap_TemporaryEquityAggregateAmountOfRedemptionRequirement_786236" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786227" xlink:to="loc_us-gaap_TemporaryEquityAggregateAmountOfRedemptionRequirement_786236" use="optional" order="23" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/ConsolidatedStatementsOfComprehensiveLoss">
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_785994" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenuesAbstract" xlink:label="loc_us-gaap_RevenuesAbstract_786000" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_785994" xlink:to="loc_us-gaap_RevenuesAbstract_786000" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Revenues" xlink:label="loc_us-gaap_Revenues_786001" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesAbstract_786000" xlink:to="loc_us-gaap_Revenues_786001" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherNonoperatingIncomeExpense" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_786023" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_785994" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_786023" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GrossProfit" xlink:label="loc_us-gaap_GrossProfit_786006" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_785994" xlink:to="loc_us-gaap_GrossProfit_786006" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingExpensesAbstract" xlink:label="loc_us-gaap_OperatingExpensesAbstract_786007" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_785994" xlink:to="loc_us-gaap_OperatingExpensesAbstract_786007" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ResearchAndDevelopmentExpense" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_786009" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_786007" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_786009" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SellingGeneralAndAdministrativeExpense" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_786011" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_786007" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_786011" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingExpenses" xlink:label="loc_us-gaap_OperatingExpenses_786013" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_786007" xlink:to="loc_us-gaap_OperatingExpenses_786013" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_OperatingOtherIncome" xlink:label="loc_xpev_OperatingOtherIncome_786015" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_785994" xlink:to="loc_xpev_OperatingOtherIncome_786015" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CostOfRevenueAbstract" xlink:label="loc_us-gaap_CostOfRevenueAbstract_786004" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_785994" xlink:to="loc_us-gaap_CostOfRevenueAbstract_786004" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CostOfGoodsAndServicesSold" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_786005" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostOfRevenueAbstract_786004" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_786005" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GainLossOnDerivativeInstrumentsNetPretax" xlink:label="loc_us-gaap_GainLossOnDerivativeInstrumentsNetPretax_786021" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_785994" xlink:to="loc_us-gaap_GainLossOnDerivativeInstrumentsNetPretax_786021" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_785991" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_785994" xlink:to="loc_us-gaap_StatementTable_785991" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ProductOrServiceAxis" xlink:label="loc_srt_ProductOrServiceAxis_785995" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_785991" xlink:to="loc_srt_ProductOrServiceAxis_785995" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_785996" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_785995" xlink:to="loc_srt_ProductsAndServicesDomain_785996" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_785996_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_785995" xlink:to="loc_srt_ProductsAndServicesDomain_785996_default" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_VehicleMember" xlink:label="loc_xpev_VehicleMember_785998" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_785996" xlink:to="loc_xpev_VehicleMember_785998" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ServiceOtherMember" xlink:label="loc_us-gaap_ServiceOtherMember_785999" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_785996" xlink:to="loc_us-gaap_ServiceOtherMember_785999" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingIncomeLoss" xlink:label="loc_us-gaap_OperatingIncomeLoss_786016" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_785994" xlink:to="loc_us-gaap_OperatingIncomeLoss_786016" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_786046" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_785994" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_786046" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_786028" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_785994" xlink:to="loc_us-gaap_NetIncomeLoss_786028" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAbstract" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAbstract_786056" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_785994" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAbstract_786056" use="optional" order="22" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_786058" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAbstract_786056" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_786058" use="optional" order="23" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_DeemedContributionFromRepurchaseofPreferredShares" xlink:label="loc_xpev_DeemedContributionFromRepurchaseofPreferredShares_786044" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_785994" xlink:to="loc_xpev_DeemedContributionFromRepurchaseofPreferredShares_786044" use="optional" order="24" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_RedeemablePreferredStockDividendsOnExtinguishment" xlink:label="loc_xpev_RedeemablePreferredStockDividendsOnExtinguishment_786036" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_785994" xlink:to="loc_xpev_RedeemablePreferredStockDividendsOnExtinguishment_786036" use="optional" order="25" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_RedeemablePreferredStockDividendsOnModifications" xlink:label="loc_xpev_RedeemablePreferredStockDividendsOnModifications_786037" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_785994" xlink:to="loc_xpev_RedeemablePreferredStockDividendsOnModifications_786037" use="optional" order="26" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_RedeemablePreferredStockDividendsOnReclassifications" xlink:label="loc_xpev_RedeemablePreferredStockDividendsOnReclassifications_786041" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_785994" xlink:to="loc_xpev_RedeemablePreferredStockDividendsOnReclassifications_786041" use="optional" order="27" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InvestmentIncomeInterest" xlink:label="loc_us-gaap_InvestmentIncomeInterest_786018" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_785994" xlink:to="loc_us-gaap_InvestmentIncomeInterest_786018" use="optional" order="28" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestExpense" xlink:label="loc_us-gaap_InterestExpense_786020" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_785994" xlink:to="loc_us-gaap_InterestExpense_786020" use="optional" order="29" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_786024" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_785994" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_786024" use="optional" order="30" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_786026" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_785994" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_786026" use="optional" order="31" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TemporaryEquityAccretionToRedemptionValueAdjustment" xlink:label="loc_us-gaap_TemporaryEquityAccretionToRedemptionValueAdjustment_786034" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_785994" xlink:to="loc_us-gaap_TemporaryEquityAccretionToRedemptionValueAdjustment_786034" use="optional" order="32" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EarningsPerShareBasicAndDilutedAbstract" xlink:label="loc_us-gaap_EarningsPerShareBasicAndDilutedAbstract_786069" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_785994" xlink:to="loc_us-gaap_EarningsPerShareBasicAndDilutedAbstract_786069" use="optional" order="33" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EarningsPerShareBasicAndDiluted" xlink:label="loc_us-gaap_EarningsPerShareBasicAndDiluted_786071" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicAndDilutedAbstract_786069" xlink:to="loc_us-gaap_EarningsPerShareBasicAndDiluted_786071" use="optional" order="34" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_786061" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_785994" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTax_786061" use="optional" order="35" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ComprehensiveIncomeNetOfTaxAvailableToCommonStockholdersBasic" xlink:label="loc_xpev_ComprehensiveIncomeNetOfTaxAvailableToCommonStockholdersBasic_786065" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_785994" xlink:to="loc_xpev_ComprehensiveIncomeNetOfTaxAvailableToCommonStockholdersBasic_786065" use="optional" order="36" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EarningsPerShareBasicAndDilutedOtherDisclosuresAbstract" xlink:label="loc_us-gaap_EarningsPerShareBasicAndDilutedOtherDisclosuresAbstract_786066" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_785994" xlink:to="loc_us-gaap_EarningsPerShareBasicAndDilutedOtherDisclosuresAbstract_786066" use="optional" order="37" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_WeightedAverageNumberOfShareOutstandingBasicAndDiluted" xlink:label="loc_us-gaap_WeightedAverageNumberOfShareOutstandingBasicAndDiluted_786067" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicAndDilutedOtherDisclosuresAbstract_786066" xlink:to="loc_us-gaap_WeightedAverageNumberOfShareOutstandingBasicAndDiluted_786067" use="optional" order="38" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/ConsolidatedStatementsOfComprehensiveLossParenthetical">
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_786122" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_786119" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_786122" xlink:to="loc_us-gaap_StatementTable_786119" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_786123" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_786119" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_786123" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_786124" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_786123" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_786124" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_786124_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_786123" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_786124_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ResearchAndDevelopmentExpenseMember" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpenseMember_786125" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_786124" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpenseMember_786125" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SellingGeneralAndAdministrativeExpensesMember" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_786127" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_786124" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_786127" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_786128" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786122" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_786128" use="optional" order="7" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/ConsolidatedStatementsOfChangesInShareholdersDeficitEquity">
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_786163" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_786160" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_786163" xlink:to="loc_us-gaap_StatementTable_786160" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_786165" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_786160" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_786165" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_786166" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_786165" xlink:to="loc_us-gaap_EquityComponentDomain_786166" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_786166_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_786165" xlink:to="loc_us-gaap_EquityComponentDomain_786166_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockMember" xlink:label="loc_us-gaap_CommonStockMember_786167" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_786166" xlink:to="loc_us-gaap_CommonStockMember_786167" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TreasuryStockMember" xlink:label="loc_us-gaap_TreasuryStockMember_786168" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_786166" xlink:to="loc_us-gaap_TreasuryStockMember_786168" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RetainedEarningsMember" xlink:label="loc_us-gaap_RetainedEarningsMember_786171" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_786166" xlink:to="loc_us-gaap_RetainedEarningsMember_786171" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AdditionalPaidInCapitalMember" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_786169" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_786166" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_786169" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_786170" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_786166" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_786170" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsidiarySaleOfStockAxis" xlink:label="loc_us-gaap_SubsidiarySaleOfStockAxis_863529" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_786160" xlink:to="loc_us-gaap_SubsidiarySaleOfStockAxis_863529" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SaleOfStockNameOfTransactionDomain" xlink:label="loc_us-gaap_SaleOfStockNameOfTransactionDomain_863530" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsidiarySaleOfStockAxis_863529" xlink:to="loc_us-gaap_SaleOfStockNameOfTransactionDomain_863530" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SaleOfStockNameOfTransactionDomain" xlink:label="loc_us-gaap_SaleOfStockNameOfTransactionDomain_863530_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsidiarySaleOfStockAxis_863529" xlink:to="loc_us-gaap_SaleOfStockNameOfTransactionDomain_863530_default" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_FollowOnOfferingMember" xlink:label="loc_xpev_FollowOnOfferingMember_863532" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleOfStockNameOfTransactionDomain_863530" xlink:to="loc_xpev_FollowOnOfferingMember_863532" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IPOMember" xlink:label="loc_us-gaap_IPOMember_863531" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleOfStockNameOfTransactionDomain_863530" xlink:to="loc_us-gaap_IPOMember_863531" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionAxis" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_863524" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_786160" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_863524" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_863525" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_863524" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_863525" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_863525_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_863524" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_863525_default" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_863527" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_863525" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_863527" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_786185" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786163" xlink:to="loc_us-gaap_NetIncomeLoss_786185" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_786172" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786163" xlink:to="loc_us-gaap_StockholdersEquity_786172" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SharesOutstanding" xlink:label="loc_us-gaap_SharesOutstanding_786174" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786163" xlink:to="loc_us-gaap_SharesOutstanding_786174" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_786183" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786163" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_786183" use="optional" order="22" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesNewIssues" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_786178" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786163" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_786178" use="optional" order="23" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TemporaryEquityAccretionToRedemptionValueAdjustment" xlink:label="loc_us-gaap_TemporaryEquityAccretionToRedemptionValueAdjustment_786179" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786163" xlink:to="loc_us-gaap_TemporaryEquityAccretionToRedemptionValueAdjustment_786179" use="optional" order="24" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_RedeemablePreferredStockDividendsOnExtinguishment" xlink:label="loc_xpev_RedeemablePreferredStockDividendsOnExtinguishment_786180" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786163" xlink:to="loc_xpev_RedeemablePreferredStockDividendsOnExtinguishment_786180" use="optional" order="25" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_RedeemablePreferredStockDividendsOnModifications" xlink:label="loc_xpev_RedeemablePreferredStockDividendsOnModifications_786181" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786163" xlink:to="loc_xpev_RedeemablePreferredStockDividendsOnModifications_786181" use="optional" order="26" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ReclassificationsOfTemporaryPermanentEquity" xlink:label="loc_xpev_ReclassificationsOfTemporaryPermanentEquity_787940" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786163" xlink:to="loc_xpev_ReclassificationsOfTemporaryPermanentEquity_787940" use="optional" order="27" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueNewIssues" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueNewIssues_786177" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786163" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueNewIssues_786177" use="optional" order="28" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_DeemedContributionFromRepurchaseofPreferredShares" xlink:label="loc_xpev_DeemedContributionFromRepurchaseofPreferredShares_786186" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786163" xlink:to="loc_xpev_DeemedContributionFromRepurchaseofPreferredShares_786186" use="optional" order="29" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_786228" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786163" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_786228" use="optional" order="30" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_StockIssuedDuringPeriodSharesStockBasedCompensation" xlink:label="loc_xpev_StockIssuedDuringPeriodSharesStockBasedCompensation_786234" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786163" xlink:to="loc_xpev_StockIssuedDuringPeriodSharesStockBasedCompensation_786234" use="optional" order="31" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardNetOfForfeitures" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardNetOfForfeitures_863541" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786163" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardNetOfForfeitures_863541" use="optional" order="32" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockRepurchasedDuringPeriodShares" xlink:label="loc_us-gaap_StockRepurchasedDuringPeriodShares_863533" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786163" xlink:to="loc_us-gaap_StockRepurchasedDuringPeriodShares_863533" use="optional" order="33" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockRepurchasedDuringPeriodValue" xlink:label="loc_us-gaap_StockRepurchasedDuringPeriodValue_863534" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786163" xlink:to="loc_us-gaap_StockRepurchasedDuringPeriodValue_863534" use="optional" order="34" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_StockIssuedDuringPeriodValueRestrictedStockUnits" xlink:label="loc_xpev_StockIssuedDuringPeriodValueRestrictedStockUnits_863536" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786163" xlink:to="loc_xpev_StockIssuedDuringPeriodValueRestrictedStockUnits_863536" use="optional" order="35" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_StockIssuedDuringPeriodSharesRestrictedStockUnits" xlink:label="loc_xpev_StockIssuedDuringPeriodSharesRestrictedStockUnits_863537" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786163" xlink:to="loc_xpev_StockIssuedDuringPeriodSharesRestrictedStockUnits_863537" use="optional" order="36" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationRestrictedStockUnitsRequisiteServicePeriodRecognition" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationRestrictedStockUnitsRequisiteServicePeriodRecognition_863542" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786163" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationRestrictedStockUnitsRequisiteServicePeriodRecognition_863542" use="optional" order="37" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_AdjustmentsToAdditionalPaidInCapitalImmediateVestingOfRestrictedShareUnits" xlink:label="loc_xpev_AdjustmentsToAdditionalPaidInCapitalImmediateVestingOfRestrictedShareUnits_863545" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786163" xlink:to="loc_xpev_AdjustmentsToAdditionalPaidInCapitalImmediateVestingOfRestrictedShareUnits_863545" use="optional" order="38" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueConversionOfConvertibleSecurities" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueConversionOfConvertibleSecurities_863546" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786163" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueConversionOfConvertibleSecurities_863546" use="optional" order="39" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesConversionOfConvertibleSecurities" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesConversionOfConvertibleSecurities_863547" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786163" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesConversionOfConvertibleSecurities_863547" use="optional" order="40" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ReclassificationsOfTemporaryPermanentEquityValue" xlink:label="loc_xpev_ReclassificationsOfTemporaryPermanentEquityValue_786182" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786163" xlink:to="loc_xpev_ReclassificationsOfTemporaryPermanentEquityValue_786182" use="optional" order="41" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesTreasuryStockReissued" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesTreasuryStockReissued_989534" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786163" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesTreasuryStockReissued_989534" use="optional" order="42" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueTreasuryStockReissued" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueTreasuryStockReissued_989535" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786163" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueTreasuryStockReissued_989535" use="optional" order="43" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/ConsolidatedStatementsOfCashFlows">
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_786256" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_786258" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786256" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_786258" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_786259" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_786258" xlink:to="loc_us-gaap_NetIncomeLoss_786259" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract" xlink:label="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_786266" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_786258" xlink:to="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_786266" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeaseRightOfUseAssetAmortizationExpense" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAssetAmortizationExpense_786272" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_786266" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAssetAmortizationExpense_786272" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_AmortizationOfLandUseRight" xlink:label="loc_xpev_AmortizationOfLandUseRight_786273" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_786266" xlink:to="loc_xpev_AmortizationOfLandUseRight_786273" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Depreciation" xlink:label="loc_us-gaap_Depreciation_786268" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_786266" xlink:to="loc_us-gaap_Depreciation_786268" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AmortizationOfIntangibleAssets" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_786270" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_786266" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_786270" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GainLossOnDispositionOfAssets" xlink:label="loc_us-gaap_GainLossOnDispositionOfAssets_786274" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_786266" xlink:to="loc_us-gaap_GainLossOnDispositionOfAssets_786274" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensation" xlink:label="loc_us-gaap_ShareBasedCompensation_786275" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_786266" xlink:to="loc_us-gaap_ShareBasedCompensation_786275" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TangibleAssetImpairmentCharges" xlink:label="loc_us-gaap_TangibleAssetImpairmentCharges_786276" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_786266" xlink:to="loc_us-gaap_TangibleAssetImpairmentCharges_786276" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ImpairmentOfAccountsReceivable" xlink:label="loc_xpev_ImpairmentOfAccountsReceivable_786277" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_786266" xlink:to="loc_xpev_ImpairmentOfAccountsReceivable_786277" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InventoryWriteDown" xlink:label="loc_us-gaap_InventoryWriteDown_786279" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_786266" xlink:to="loc_us-gaap_InventoryWriteDown_786279" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_IncomeInterest" xlink:label="loc_xpev_IncomeInterest_786280" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_786266" xlink:to="loc_xpev_IncomeInterest_786280" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GainLossOnDerivativeInstrumentsNetPretax" xlink:label="loc_us-gaap_GainLossOnDerivativeInstrumentsNetPretax_786281" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_786266" xlink:to="loc_us-gaap_GainLossOnDerivativeInstrumentsNetPretax_786281" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ImpairmentOfFinanceLeaseReceivables" xlink:label="loc_xpev_ImpairmentOfFinanceLeaseReceivables_822805" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_786266" xlink:to="loc_xpev_ImpairmentOfFinanceLeaseReceivables_822805" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ForeignCurrencyTransactionGainLossBeforeTax" xlink:label="loc_us-gaap_ForeignCurrencyTransactionGainLossBeforeTax_786345" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_786266" xlink:to="loc_us-gaap_ForeignCurrencyTransactionGainLossBeforeTax_786345" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ImpairmentOfOtherCurrentAssets" xlink:label="loc_xpev_ImpairmentOfOtherCurrentAssets_863836" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_786266" xlink:to="loc_xpev_ImpairmentOfOtherCurrentAssets_863836" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInOperatingCapitalAbstract" xlink:label="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_786282" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_786258" xlink:to="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_786282" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInDueFromRelatedPartiesCurrent" xlink:label="loc_us-gaap_IncreaseDecreaseInDueFromRelatedPartiesCurrent_786285" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_786282" xlink:to="loc_us-gaap_IncreaseDecreaseInDueFromRelatedPartiesCurrent_786285" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInDeferredRevenue" xlink:label="loc_us-gaap_IncreaseDecreaseInDeferredRevenue_786289" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_786282" xlink:to="loc_us-gaap_IncreaseDecreaseInDeferredRevenue_786289" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_IncreaseDecreaseInLeaseLiabilities" xlink:label="loc_xpev_IncreaseDecreaseInLeaseLiabilities_786290" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_786282" xlink:to="loc_xpev_IncreaseDecreaseInLeaseLiabilities_786290" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_786291" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_786282" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_786291" use="optional" order="22" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_786283" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_786282" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_786283" use="optional" order="23" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInInventories" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_786284" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_786282" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_786284" use="optional" order="24" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_786286" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_786282" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_786286" use="optional" order="25" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInOtherNoncurrentAssets" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentAssets_786287" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_786282" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentAssets_786287" use="optional" order="26" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsPayable" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_786288" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_786282" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_786288" use="optional" order="27" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_786292" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_786282" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_786292" use="optional" order="28" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_IncreaseDecreaseInFinanceLeaseReceivables" xlink:label="loc_xpev_IncreaseDecreaseInFinanceLeaseReceivables_786293" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_786282" xlink:to="loc_xpev_IncreaseDecreaseInFinanceLeaseReceivables_786293" use="optional" order="29" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInDueToRelatedParties" xlink:label="loc_us-gaap_IncreaseDecreaseInDueToRelatedParties_786294" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_786282" xlink:to="loc_us-gaap_IncreaseDecreaseInDueToRelatedParties_786294" use="optional" order="30" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_863838" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_786282" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_863838" use="optional" order="31" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_786295" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_786258" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_786295" use="optional" order="32" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_786253" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_786256" xlink:to="loc_us-gaap_StatementTable_786253" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="33" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_786296" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786256" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_786296" use="optional" order="34" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_PaymentsTimeDeposits" xlink:label="loc_xpev_PaymentsTimeDeposits_786297" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_786296" xlink:to="loc_xpev_PaymentsTimeDeposits_786297" use="optional" order="35" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_786300" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_786296" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_786300" use="optional" order="36" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_786306" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_786296" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_786306" use="optional" order="37" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_PrepaymentForAcquisitionOfAssets" xlink:label="loc_xpev_PrepaymentForAcquisitionOfAssets_786305" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_786296" xlink:to="loc_xpev_PrepaymentForAcquisitionOfAssets_786305" use="optional" order="38" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment" xlink:label="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_786304" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_786296" xlink:to="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_786304" use="optional" order="39" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_PaymentsToAcquireLandHeld" xlink:label="loc_xpev_PaymentsToAcquireLandHeld_786303" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_786296" xlink:to="loc_xpev_PaymentsToAcquireLandHeld_786303" use="optional" order="40" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsToAcquireIntangibleAssets" xlink:label="loc_us-gaap_PaymentsToAcquireIntangibleAssets_786302" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_786296" xlink:to="loc_us-gaap_PaymentsToAcquireIntangibleAssets_786302" use="optional" order="41" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ProceedsFromGovernmentSubsidyRelatedToAssets" xlink:label="loc_xpev_ProceedsFromGovernmentSubsidyRelatedToAssets_786301" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_786296" xlink:to="loc_xpev_ProceedsFromGovernmentSubsidyRelatedToAssets_786301" use="optional" order="42" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsForProceedsFromShortTermInvestments" xlink:label="loc_us-gaap_PaymentsForProceedsFromShortTermInvestments_786299" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_786296" xlink:to="loc_us-gaap_PaymentsForProceedsFromShortTermInvestments_786299" use="optional" order="43" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsToAcquireLongtermInvestments" xlink:label="loc_us-gaap_PaymentsToAcquireLongtermInvestments_863841" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_786296" xlink:to="loc_us-gaap_PaymentsToAcquireLongtermInvestments_863841" use="optional" order="44" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromSaleOfEquityMethodInvestments" xlink:label="loc_us-gaap_ProceedsFromSaleOfEquityMethodInvestments_863839" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_786296" xlink:to="loc_us-gaap_ProceedsFromSaleOfEquityMethodInvestments_863839" use="optional" order="45" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_PrepaymentForAcquisitionOfLandUseRights" xlink:label="loc_xpev_PrepaymentForAcquisitionOfLandUseRights_885750" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_786296" xlink:to="loc_xpev_PrepaymentForAcquisitionOfLandUseRights_885750" use="optional" order="46" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfShorttermInvestments" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfShorttermInvestments_989355" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_786296" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfShorttermInvestments_989355" use="optional" order="47" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_PlacementOfLongTermDeposits" xlink:label="loc_xpev_PlacementOfLongTermDeposits_989357" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_786296" xlink:to="loc_xpev_PlacementOfLongTermDeposits_989357" use="optional" order="48" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromDerivativeInstrumentInvestingActivities" xlink:label="loc_us-gaap_ProceedsFromDerivativeInstrumentInvestingActivities_989363" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_786296" xlink:to="loc_us-gaap_ProceedsFromDerivativeInstrumentInvestingActivities_989363" use="optional" order="49" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_786307" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786256" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_786307" use="optional" order="50" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromIssuanceInitialPublicOffering" xlink:label="loc_us-gaap_ProceedsFromIssuanceInitialPublicOffering_786309" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_786307" xlink:to="loc_us-gaap_ProceedsFromIssuanceInitialPublicOffering_786309" use="optional" order="51" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromIssuanceOfDebt" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfDebt_786310" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_786307" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfDebt_786310" use="optional" order="52" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RepaymentsOfDebt" xlink:label="loc_us-gaap_RepaymentsOfDebt_786315" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_786307" xlink:to="loc_us-gaap_RepaymentsOfDebt_786315" use="optional" order="53" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromIssuanceOfRedeemableConvertiblePreferredStock" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfRedeemableConvertiblePreferredStock_786308" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_786307" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfRedeemableConvertiblePreferredStock_786308" use="optional" order="54" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromRelatedPartyDebt" xlink:label="loc_us-gaap_ProceedsFromRelatedPartyDebt_786317" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_786307" xlink:to="loc_us-gaap_ProceedsFromRelatedPartyDebt_786317" use="optional" order="55" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RepaymentsOfRelatedPartyDebt" xlink:label="loc_us-gaap_RepaymentsOfRelatedPartyDebt_786319" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_786307" xlink:to="loc_us-gaap_RepaymentsOfRelatedPartyDebt_786319" use="optional" order="56" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ProceedsFromRepurchaseOfPreferredStock" xlink:label="loc_xpev_ProceedsFromRepurchaseOfPreferredStock_786321" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_786307" xlink:to="loc_xpev_ProceedsFromRepurchaseOfPreferredStock_786321" use="optional" order="57" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromMinorityShareholders" xlink:label="loc_us-gaap_ProceedsFromMinorityShareholders_786322" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_786307" xlink:to="loc_us-gaap_ProceedsFromMinorityShareholders_786322" use="optional" order="58" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_786323" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_786307" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_786323" use="optional" order="59" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ProceedsFromFONetOfIssuanceCost" xlink:label="loc_xpev_ProceedsFromFONetOfIssuanceCost_885774" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_786307" xlink:to="loc_xpev_ProceedsFromFONetOfIssuanceCost_885774" use="optional" order="60" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_PaymentsOfListingExpenses" xlink:label="loc_xpev_PaymentsOfListingExpenses_989373" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_786307" xlink:to="loc_xpev_PaymentsOfListingExpenses_989373" use="optional" order="61" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations_786325" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786256" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations_786325" use="optional" order="62" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_786328" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786256" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_786328" use="optional" order="63" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_786332" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786256" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_786332" use="optional" order="64" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SupplementalCashFlowInformationAbstract" xlink:label="loc_us-gaap_SupplementalCashFlowInformationAbstract_786336" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786256" xlink:to="loc_us-gaap_SupplementalCashFlowInformationAbstract_786336" use="optional" order="65" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestPaidNet" xlink:label="loc_us-gaap_InterestPaidNet_786337" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SupplementalCashFlowInformationAbstract_786336" xlink:to="loc_us-gaap_InterestPaidNet_786337" use="optional" order="66" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CapitalExpendituresIncurredButNotYetPaid" xlink:label="loc_us-gaap_CapitalExpendituresIncurredButNotYetPaid_786338" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SupplementalCashFlowInformationAbstract_786336" xlink:to="loc_us-gaap_CapitalExpendituresIncurredButNotYetPaid_786338" use="optional" order="67" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/ShareBasedCompensationTables">
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ShareBasedCompensationLineItems" xlink:label="loc_xpev_ShareBasedCompensationLineItems_863870" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock_786917" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ShareBasedCompensationLineItems_863870" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock_786917" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ScheduleOfFairValueOfEachShareOptionsGranted" xlink:label="loc_xpev_ScheduleOfFairValueOfEachShareOptionsGranted_786918" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ShareBasedCompensationLineItems_863870" xlink:to="loc_xpev_ScheduleOfFairValueOfEachShareOptionsGranted_786918" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationRestrictedStockUnitsAwardActivityTableTextBlock" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationRestrictedStockUnitsAwardActivityTableTextBlock_786919" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ShareBasedCompensationLineItems_863870" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationRestrictedStockUnitsAwardActivityTableTextBlock_786919" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfSharebasedCompensationRestrictedStockAndRestrictedStockUnitsActivityTableTextBlock" xlink:label="loc_us-gaap_ScheduleOfSharebasedCompensationRestrictedStockAndRestrictedStockUnitsActivityTableTextBlock_863861" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ShareBasedCompensationLineItems_863870" xlink:to="loc_us-gaap_ScheduleOfSharebasedCompensationRestrictedStockAndRestrictedStockUnitsActivityTableTextBlock_863861" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SharebasedCompensationTable" xlink:label="loc_xpev_SharebasedCompensationTable_863865" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_xpev_ShareBasedCompensationLineItems_863870" xlink:to="loc_xpev_SharebasedCompensationTable_863865" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_863866" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_SharebasedCompensationTable_863865" xlink:to="loc_us-gaap_AwardTypeAxis_863866" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_863867" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_863866" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_863867" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_863867_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_863866" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_863867_default" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestrictedStockMember" xlink:label="loc_us-gaap_RestrictedStockMember_863869" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_863867" xlink:to="loc_us-gaap_RestrictedStockMember_863869" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_866708" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_863867" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_866708" use="optional" order="10" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/OrganizationAndNatureOfOperationsAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems" xlink:label="loc_xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_786678" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsTable" xlink:label="loc_xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_786677" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_786678" xlink:to="loc_xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_786677" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_786680" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_786677" xlink:to="loc_us-gaap_StatementClassOfStockAxis_786680" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_786681" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_786680" xlink:to="loc_us-gaap_ClassOfStockDomain_786681" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_786681_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_786680" xlink:to="loc_us-gaap_ClassOfStockDomain_786681_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SeriesARedeemableConvertiblePreferredSharesMember" xlink:label="loc_xpev_SeriesARedeemableConvertiblePreferredSharesMember_786682" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786681" xlink:to="loc_xpev_SeriesARedeemableConvertiblePreferredSharesMember_786682" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SeriesAOneRedeemableConvertiblePreferredSharesMember" xlink:label="loc_xpev_SeriesAOneRedeemableConvertiblePreferredSharesMember_786683" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786681" xlink:to="loc_xpev_SeriesAOneRedeemableConvertiblePreferredSharesMember_786683" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SeriesBOneRedeemableConvertiblePreferredSharesMember" xlink:label="loc_xpev_SeriesBOneRedeemableConvertiblePreferredSharesMember_786686" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786681" xlink:to="loc_xpev_SeriesBOneRedeemableConvertiblePreferredSharesMember_786686" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SeriesBTwoRedeemableConvertiblePreferredSharesMember" xlink:label="loc_xpev_SeriesBTwoRedeemableConvertiblePreferredSharesMember_786687" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786681" xlink:to="loc_xpev_SeriesBTwoRedeemableConvertiblePreferredSharesMember_786687" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SeriesATwoRedeemableConvertiblePreferredSharesMember" xlink:label="loc_xpev_SeriesATwoRedeemableConvertiblePreferredSharesMember_786684" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786681" xlink:to="loc_xpev_SeriesATwoRedeemableConvertiblePreferredSharesMember_786684" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SeriesBRedeemableConvertiblePreferredSharesMember" xlink:label="loc_xpev_SeriesBRedeemableConvertiblePreferredSharesMember_786685" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786681" xlink:to="loc_xpev_SeriesBRedeemableConvertiblePreferredSharesMember_786685" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SeriesCRedeemableConvertiblePreferredSharesMember" xlink:label="loc_xpev_SeriesCRedeemableConvertiblePreferredSharesMember_786688" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786681" xlink:to="loc_xpev_SeriesCRedeemableConvertiblePreferredSharesMember_786688" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockMember" xlink:label="loc_us-gaap_CommonStockMember_786695" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786681" xlink:to="loc_us-gaap_CommonStockMember_786695" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_RedeembleConvertiblePreferredStockMember" xlink:label="loc_xpev_RedeembleConvertiblePreferredStockMember_786696" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786681" xlink:to="loc_xpev_RedeembleConvertiblePreferredStockMember_786696" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_EquityRelatedWarrantsMember" xlink:label="loc_xpev_EquityRelatedWarrantsMember_786697" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786681" xlink:to="loc_xpev_EquityRelatedWarrantsMember_786697" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_dei_LegalEntityAxis_786692" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_786677" xlink:to="loc_dei_LegalEntityAxis_786692" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_786693" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_786692" xlink:to="loc_dei_EntityDomain_786693" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_786693_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_786692" xlink:to="loc_dei_EntityDomain_786693_default" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_GuangzhouXiaopengMotorsTechnologyCoLtdXiaopengTechnologyMember" xlink:label="loc_xpev_GuangzhouXiaopengMotorsTechnologyCoLtdXiaopengTechnologyMember_786694" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_786693" xlink:to="loc_xpev_GuangzhouXiaopengMotorsTechnologyCoLtdXiaopengTechnologyMember_786694" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShortTermDebtTypeAxis" xlink:label="loc_us-gaap_ShortTermDebtTypeAxis_786698" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_786677" xlink:to="loc_us-gaap_ShortTermDebtTypeAxis_786698" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShortTermDebtTypeDomain" xlink:label="loc_us-gaap_ShortTermDebtTypeDomain_786699" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ShortTermDebtTypeAxis_786698" xlink:to="loc_us-gaap_ShortTermDebtTypeDomain_786699" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShortTermDebtTypeDomain" xlink:label="loc_us-gaap_ShortTermDebtTypeDomain_786699_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ShortTermDebtTypeAxis_786698" xlink:to="loc_us-gaap_ShortTermDebtTypeDomain_786699_default" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_UnsecuredDebtMember" xlink:label="loc_us-gaap_UnsecuredDebtMember_786700" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShortTermDebtTypeDomain_786699" xlink:to="loc_us-gaap_UnsecuredDebtMember_786700" use="optional" order="22" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_786689" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_786677" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_786689" use="optional" order="23" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_786690" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_786689" xlink:to="loc_us-gaap_RelatedPartyDomain_786690" use="optional" order="24" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_786690_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_786689" xlink:to="loc_us-gaap_RelatedPartyDomain_786690_default" use="optional" order="25" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ChengxingMember" xlink:label="loc_xpev_ChengxingMember_786691" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_786690" xlink:to="loc_xpev_ChengxingMember_786691" use="optional" order="26" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventTypeAxis" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_786701" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_786677" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_786701" use="optional" order="27" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_786702" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_786701" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_786702" use="optional" order="28" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_786702_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_786701" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_786702_default" use="optional" order="29" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsidiarySaleOfStockAxis" xlink:label="loc_us-gaap_SubsidiarySaleOfStockAxis_885825" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_786677" xlink:to="loc_us-gaap_SubsidiarySaleOfStockAxis_885825" use="optional" order="30" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SaleOfStockNameOfTransactionDomain" xlink:label="loc_us-gaap_SaleOfStockNameOfTransactionDomain_885826" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsidiarySaleOfStockAxis_885825" xlink:to="loc_us-gaap_SaleOfStockNameOfTransactionDomain_885826" use="optional" order="31" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SaleOfStockNameOfTransactionDomain" xlink:label="loc_us-gaap_SaleOfStockNameOfTransactionDomain_885826_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsidiarySaleOfStockAxis_885825" xlink:to="loc_us-gaap_SaleOfStockNameOfTransactionDomain_885826_default" use="optional" order="32" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IPOMember" xlink:label="loc_us-gaap_IPOMember_885827" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleOfStockNameOfTransactionDomain_885826" xlink:to="loc_us-gaap_IPOMember_885827" use="optional" order="33" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_PublicOfferingMember" xlink:label="loc_xpev_PublicOfferingMember_890865" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleOfStockNameOfTransactionDomain_885826" xlink:to="loc_xpev_PublicOfferingMember_890865" use="optional" order="34" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashCashEquivalentsAndShortTermInvestments" xlink:label="loc_us-gaap_CashCashEquivalentsAndShortTermInvestments_786713" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_786678" xlink:to="loc_us-gaap_CashCashEquivalentsAndShortTermInvestments_786713" use="optional" order="35" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ClassOfWarrantsOrRightsWarrantsIssuedDuringThePeriod" xlink:label="loc_xpev_ClassOfWarrantsOrRightsWarrantsIssuedDuringThePeriod_786706" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_786678" xlink:to="loc_xpev_ClassOfWarrantsOrRightsWarrantsIssuedDuringThePeriod_786706" use="optional" order="36" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityMethodInvestmentOwnershipPercentage" xlink:label="loc_us-gaap_EquityMethodInvestmentOwnershipPercentage_786707" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_786678" xlink:to="loc_us-gaap_EquityMethodInvestmentOwnershipPercentage_786707" use="optional" order="37" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_EquityInterestIssuedPercentage" xlink:label="loc_xpev_EquityInterestIssuedPercentage_786708" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_786678" xlink:to="loc_xpev_EquityInterestIssuedPercentage_786708" use="optional" order="38" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_786709" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_786678" xlink:to="loc_us-gaap_NetIncomeLoss_786709" use="optional" order="39" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_786710" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_786678" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_786710" use="optional" order="40" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_786711" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_786678" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_786711" use="optional" order="41" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_CashSubjectToWithdrawalRestrictionSubjectToSettlementOfDispute" xlink:label="loc_xpev_CashSubjectToWithdrawalRestrictionSubjectToSettlementOfDispute_786712" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_786678" xlink:to="loc_xpev_CashSubjectToWithdrawalRestrictionSubjectToSettlementOfDispute_786712" use="optional" order="42" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesNewIssues" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_786704" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_786678" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_786704" use="optional" order="43" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_TemporaryEquitySharesIssuedDuringThePeriod" xlink:label="loc_xpev_TemporaryEquitySharesIssuedDuringThePeriod_786705" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_786678" xlink:to="loc_xpev_TemporaryEquitySharesIssuedDuringThePeriod_786705" use="optional" order="44" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromIssuanceInitialPublicOffering" xlink:label="loc_us-gaap_ProceedsFromIssuanceInitialPublicOffering_885831" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_786678" xlink:to="loc_us-gaap_ProceedsFromIssuanceInitialPublicOffering_885831" use="optional" order="45" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ProceedsFromFONetOfIssuanceCost" xlink:label="loc_xpev_ProceedsFromFONetOfIssuanceCost_891070" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_786678" xlink:to="loc_xpev_ProceedsFromFONetOfIssuanceCost_891070" use="optional" order="46" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/OrganizationAndNatureOfOperationsSummaryOfCompanySPrincipalSubsidiariesAndViesDetail">
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems" xlink:label="loc_xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_786617" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityIncorporationDateOfIncorporation" xlink:label="loc_dei_EntityIncorporationDateOfIncorporation_786618" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_786617" xlink:to="loc_dei_EntityIncorporationDateOfIncorporation_786618" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityMethodInvestmentOwnershipPercentage" xlink:label="loc_us-gaap_EquityMethodInvestmentOwnershipPercentage_786619" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_786617" xlink:to="loc_us-gaap_EquityMethodInvestmentOwnershipPercentage_786619" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityMethodInvestmentDescriptionOfPrincipalActivities" xlink:label="loc_us-gaap_EquityMethodInvestmentDescriptionOfPrincipalActivities_786620" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_786617" xlink:to="loc_us-gaap_EquityMethodInvestmentDescriptionOfPrincipalActivities_786620" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsTable" xlink:label="loc_xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_786593" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_786617" xlink:to="loc_xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_786593" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_dei_LegalEntityAxis_786594" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_786593" xlink:to="loc_dei_LegalEntityAxis_786594" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_786595" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_786594" xlink:to="loc_dei_EntityDomain_786595" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_786595_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_786594" xlink:to="loc_dei_EntityDomain_786595_default" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ChengxingMember" xlink:label="loc_xpev_ChengxingMember_786598" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_786595" xlink:to="loc_xpev_ChengxingMember_786598" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_GuangzhouXiaopengAutomobileManufacturingCoLtdMember" xlink:label="loc_xpev_GuangzhouXiaopengAutomobileManufacturingCoLtdMember_786600" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_786595" xlink:to="loc_xpev_GuangzhouXiaopengAutomobileManufacturingCoLtdMember_786600" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_GuangzhouXiaopengMotorsTechnologyCoLtdXiaopengTechnologyMember" xlink:label="loc_xpev_GuangzhouXiaopengMotorsTechnologyCoLtdXiaopengTechnologyMember_786599" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_786595" xlink:to="loc_xpev_GuangzhouXiaopengMotorsTechnologyCoLtdXiaopengTechnologyMember_786599" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_GuangzhouZhipengIovTechnologyCoLtdzhipengIovMember" xlink:label="loc_xpev_GuangzhouZhipengIovTechnologyCoLtdzhipengIovMember_786624" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_786595" xlink:to="loc_xpev_GuangzhouZhipengIovTechnologyCoLtdzhipengIovMember_786624" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_XsenseAiIncMember" xlink:label="loc_xpev_XsenseAiIncMember_786596" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_786595" xlink:to="loc_xpev_XsenseAiIncMember_786596" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ShanghaiXiaopengAutomobileSalesServiceCoLtdMember" xlink:label="loc_xpev_ShanghaiXiaopengAutomobileSalesServiceCoLtdMember_786612" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_786595" xlink:to="loc_xpev_ShanghaiXiaopengAutomobileSalesServiceCoLtdMember_786612" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_GuangzhouYidianZhihuiChuxingTechnologyCoLtdyidianChuxingMember" xlink:label="loc_xpev_GuangzhouYidianZhihuiChuxingTechnologyCoLtdyidianChuxingMember_786625" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_786595" xlink:to="loc_xpev_GuangzhouYidianZhihuiChuxingTechnologyCoLtdyidianChuxingMember_786625" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_XMotorsAiIncMember" xlink:label="loc_xpev_XMotorsAiIncMember_786597" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_786595" xlink:to="loc_xpev_XMotorsAiIncMember_786597" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_BeijingXiaopengAutomobileCoLtdMember" xlink:label="loc_xpev_BeijingXiaopengAutomobileCoLtdMember_786604" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_786595" xlink:to="loc_xpev_BeijingXiaopengAutomobileCoLtdMember_786604" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ZhaoqingXiaopengAutomobileCoLtdzhaoqingXpengMember" xlink:label="loc_xpev_ZhaoqingXiaopengAutomobileCoLtdzhaoqingXpengMember_786601" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_786595" xlink:to="loc_xpev_ZhaoqingXiaopengAutomobileCoLtdzhaoqingXpengMember_786601" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_XiaopengAutomobileSalesCoLtdMember" xlink:label="loc_xpev_XiaopengAutomobileSalesCoLtdMember_786602" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_786595" xlink:to="loc_xpev_XiaopengAutomobileSalesCoLtdMember_786602" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ShenzhenXiaopengAutomobileSalesServiceCoLtdMember" xlink:label="loc_xpev_ShenzhenXiaopengAutomobileSalesServiceCoLtdMember_786607" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_786595" xlink:to="loc_xpev_ShenzhenXiaopengAutomobileSalesServiceCoLtdMember_786607" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ZhaoqingXiaopengNewEnergyInvestmentCoLtdMember" xlink:label="loc_xpev_ZhaoqingXiaopengNewEnergyInvestmentCoLtdMember_862590" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_786595" xlink:to="loc_xpev_ZhaoqingXiaopengNewEnergyInvestmentCoLtdMember_862590" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_GuangzhouXiaopengAutomaticDrivingTechnologyCoLtdMember" xlink:label="loc_xpev_GuangzhouXiaopengAutomaticDrivingTechnologyCoLtdMember_885863" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_786595" xlink:to="loc_xpev_GuangzhouXiaopengAutomaticDrivingTechnologyCoLtdMember_885863" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_XiaopengAutomobileServiceCoLtdMember" xlink:label="loc_xpev_XiaopengAutomobileServiceCoLtdMember_885864" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_786595" xlink:to="loc_xpev_XiaopengAutomobileServiceCoLtdMember_885864" use="optional" order="22" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_XpenghongKongLimitedMember" xlink:label="loc_xpev_XpenghongKongLimitedMember_885872" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_786595" xlink:to="loc_xpev_XpenghongKongLimitedMember_885872" use="optional" order="23" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_GuangzhouXiaopengSmartChargingTechnologyCoLtdMember" xlink:label="loc_xpev_GuangzhouXiaopengSmartChargingTechnologyCoLtdMember_988437" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_786595" xlink:to="loc_xpev_GuangzhouXiaopengSmartChargingTechnologyCoLtdMember_988437" use="optional" order="24" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ShanghaiXiaopengMotorsTechnologyCoLtdMember" xlink:label="loc_xpev_ShanghaiXiaopengMotorsTechnologyCoLtdMember_988438" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_786595" xlink:to="loc_xpev_ShanghaiXiaopengMotorsTechnologyCoLtdMember_988438" use="optional" order="25" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_StatementGeographicalAxis" xlink:label="loc_srt_StatementGeographicalAxis_786613" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_786593" xlink:to="loc_srt_StatementGeographicalAxis_786613" use="optional" order="26" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_786614" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_786613" xlink:to="loc_srt_SegmentGeographicalDomain_786614" use="optional" order="27" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_786614_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_786613" xlink:to="loc_srt_SegmentGeographicalDomain_786614_default" use="optional" order="28" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2020/country-2020-01-31.xsd#country_US" xlink:label="loc_country_US_786615" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_786614" xlink:to="loc_country_US_786615" use="optional" order="29" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2020/country-2020-01-31.xsd#country_CN" xlink:label="loc_country_CN_786616" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_786614" xlink:to="loc_country_CN_786616" use="optional" order="30" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2020/country-2020-01-31.xsd#country_HK" xlink:label="loc_country_HK_885866" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_786614" xlink:to="loc_country_HK_885866" use="optional" order="31" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_VariableInterestEntityOwnershipPercentage" xlink:label="loc_us-gaap_VariableInterestEntityOwnershipPercentage_786622" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_786617" xlink:to="loc_us-gaap_VariableInterestEntityOwnershipPercentage_786622" use="optional" order="32" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_VariableInterestEntityVIEActivitiesOfVIE" xlink:label="loc_us-gaap_VariableInterestEntityVIEActivitiesOfVIE_786623" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_786617" xlink:to="loc_us-gaap_VariableInterestEntityVIEActivitiesOfVIE_786623" use="optional" order="33" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_VariableInterestEntityQualitativeOrQuantitativeInformationDateInvolvementBegan1" xlink:label="loc_us-gaap_VariableInterestEntityQualitativeOrQuantitativeInformationDateInvolvementBegan1_786621" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_786617" xlink:to="loc_us-gaap_VariableInterestEntityQualitativeOrQuantitativeInformationDateInvolvementBegan1_786621" use="optional" order="34" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/OrganizationAndNatureOfOperationsSummaryOfCompanySPrincipalSubsidiariesAndViesParentheticalDetail">
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_StatementLineitemLineItems" xlink:label="loc_xpev_StatementLineitemLineItems_885882" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsTable" xlink:label="loc_xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_885878" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_xpev_StatementLineitemLineItems_885882" xlink:to="loc_xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_885878" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_885879" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_885878" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_885879" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_885880" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_885879" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_885880" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_885880_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_885879" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_885880_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ChengxingMember" xlink:label="loc_xpev_ChengxingMember_885881" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_885880" xlink:to="loc_xpev_ChengxingMember_885881" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessCombinationStepAcquisitionEquityInterestInAcquireePercentage" xlink:label="loc_us-gaap_BusinessCombinationStepAcquisitionEquityInterestInAcquireePercentage_885883" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_StatementLineitemLineItems_885882" xlink:to="loc_us-gaap_BusinessCombinationStepAcquisitionEquityInterestInAcquireePercentage_885883" use="optional" order="6" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_AccountingPoliciesLineItems" xlink:label="loc_xpev_AccountingPoliciesLineItems_786490" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_AccountingPoliciesTable" xlink:label="loc_xpev_AccountingPoliciesTable_786489" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_xpev_AccountingPoliciesLineItems_786490" xlink:to="loc_xpev_AccountingPoliciesTable_786489" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ProductOrServiceAxis" xlink:label="loc_srt_ProductOrServiceAxis_786495" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_AccountingPoliciesTable_786489" xlink:to="loc_srt_ProductOrServiceAxis_786495" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_786496" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_786495" xlink:to="loc_srt_ProductsAndServicesDomain_786496" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_786496_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_786495" xlink:to="loc_srt_ProductsAndServicesDomain_786496_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_VehiclesMember" xlink:label="loc_us-gaap_VehiclesMember_786497" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_786496" xlink:to="loc_us-gaap_VehiclesMember_786497" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_786491" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_AccountingPoliciesTable_786489" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_786491" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_786492" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_786491" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_786492" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_786492_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_786491" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_786492_default" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CostOfSalesMember" xlink:label="loc_us-gaap_CostOfSalesMember_786493" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_786492" xlink:to="loc_us-gaap_CostOfSalesMember_786493" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingExpenseMember" xlink:label="loc_us-gaap_OperatingExpenseMember_786494" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_786492" xlink:to="loc_us-gaap_OperatingExpenseMember_786494" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SchemeAxis" xlink:label="loc_xpev_SchemeAxis_786498" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_AccountingPoliciesTable_786489" xlink:to="loc_xpev_SchemeAxis_786498" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SchemeDomain" xlink:label="loc_xpev_SchemeDomain_786499" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_xpev_SchemeAxis_786498" xlink:to="loc_xpev_SchemeDomain_786499" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SchemeDomain" xlink:label="loc_xpev_SchemeDomain_786499_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_xpev_SchemeAxis_786498" xlink:to="loc_xpev_SchemeDomain_786499_default" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_CustomerUpgradeProgrammeMember" xlink:label="loc_xpev_CustomerUpgradeProgrammeMember_786500" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_SchemeDomain_786499" xlink:to="loc_xpev_CustomerUpgradeProgrammeMember_786500" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_CustomerUpgradeProgrammeSubschemeAxis" xlink:label="loc_xpev_CustomerUpgradeProgrammeSubschemeAxis_786501" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_AccountingPoliciesTable_786489" xlink:to="loc_xpev_CustomerUpgradeProgrammeSubschemeAxis_786501" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_CustomerUpgradeProgrammeSubschemeDomain" xlink:label="loc_xpev_CustomerUpgradeProgrammeSubschemeDomain_786502" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_xpev_CustomerUpgradeProgrammeSubschemeAxis_786501" xlink:to="loc_xpev_CustomerUpgradeProgrammeSubschemeDomain_786502" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_CustomerUpgradeProgrammeSubschemeDomain" xlink:label="loc_xpev_CustomerUpgradeProgrammeSubschemeDomain_786502_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_xpev_CustomerUpgradeProgrammeSubschemeAxis_786501" xlink:to="loc_xpev_CustomerUpgradeProgrammeSubschemeDomain_786502_default" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_TitleOfIndividualAxis" xlink:label="loc_srt_TitleOfIndividualAxis_786545" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_AccountingPoliciesTable_786489" xlink:to="loc_srt_TitleOfIndividualAxis_786545" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_TitleOfIndividualWithRelationshipToEntityDomain" xlink:label="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_786547" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_TitleOfIndividualAxis_786545" xlink:to="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_786547" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_TitleOfIndividualWithRelationshipToEntityDomain" xlink:label="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_786547_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_TitleOfIndividualAxis_786545" xlink:to="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_786547_default" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_StatementGeographicalAxis" xlink:label="loc_srt_StatementGeographicalAxis_786542" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_AccountingPoliciesTable_786489" xlink:to="loc_srt_StatementGeographicalAxis_786542" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_786543" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_786542" xlink:to="loc_srt_SegmentGeographicalDomain_786543" use="optional" order="22" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_786543_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_786542" xlink:to="loc_srt_SegmentGeographicalDomain_786543_default" use="optional" order="23" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2020/country-2020-01-31.xsd#country_CN" xlink:label="loc_country_CN_786544" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_786543" xlink:to="loc_country_CN_786544" use="optional" order="24" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_dei_LegalEntityAxis_786556" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_AccountingPoliciesTable_786489" xlink:to="loc_dei_LegalEntityAxis_786556" use="optional" order="25" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_786558" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_786556" xlink:to="loc_dei_EntityDomain_786558" use="optional" order="26" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_786558_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_786556" xlink:to="loc_dei_EntityDomain_786558_default" use="optional" order="27" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ChengxingMember" xlink:label="loc_xpev_ChengxingMember_786559" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_786558" xlink:to="loc_xpev_ChengxingMember_786559" use="optional" order="28" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_786560" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_AccountingPoliciesTable_786489" xlink:to="loc_us-gaap_StatementClassOfStockAxis_786560" use="optional" order="29" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_786561" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_786560" xlink:to="loc_us-gaap_ClassOfStockDomain_786561" use="optional" order="30" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_786561_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_786560" xlink:to="loc_us-gaap_ClassOfStockDomain_786561_default" use="optional" order="31" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonClassAMember" xlink:label="loc_us-gaap_CommonClassAMember_786563" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786561" xlink:to="loc_us-gaap_CommonClassAMember_786563" use="optional" order="32" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_786550" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_AccountingPoliciesTable_786489" xlink:to="loc_us-gaap_AwardTypeAxis_786550" use="optional" order="33" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_786551" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_786550" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_786551" use="optional" order="34" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_786551_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_786550" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_786551_default" use="optional" order="35" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PlanNameAxis" xlink:label="loc_us-gaap_PlanNameAxis_786564" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_AccountingPoliciesTable_786489" xlink:to="loc_us-gaap_PlanNameAxis_786564" use="optional" order="36" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PlanNameDomain" xlink:label="loc_us-gaap_PlanNameDomain_786565" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_786564" xlink:to="loc_us-gaap_PlanNameDomain_786565" use="optional" order="37" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PlanNameDomain" xlink:label="loc_us-gaap_PlanNameDomain_786565_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_786564" xlink:to="loc_us-gaap_PlanNameDomain_786565_default" use="optional" order="38" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_TwoThousandAndNineteenEquityIncentivePlanMember" xlink:label="loc_xpev_TwoThousandAndNineteenEquityIncentivePlanMember_786567" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_786565" xlink:to="loc_xpev_TwoThousandAndNineteenEquityIncentivePlanMember_786567" use="optional" order="39" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_788095" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_AccountingPoliciesTable_786489" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_788095" use="optional" order="40" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_788096" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_788095" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_788096" use="optional" order="41" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_788096_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_788095" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_788096_default" use="optional" order="42" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LeaseholdsAndLeaseholdImprovementsMember" xlink:label="loc_us-gaap_LeaseholdsAndLeaseholdImprovementsMember_788097" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_788096" xlink:to="loc_us-gaap_LeaseholdsAndLeaseholdImprovementsMember_788097" use="optional" order="43" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_StatutoryReservesAxis" xlink:label="loc_xpev_StatutoryReservesAxis_786603" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_AccountingPoliciesTable_786489" xlink:to="loc_xpev_StatutoryReservesAxis_786603" use="optional" order="44" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_StatutoryReservesDomain" xlink:label="loc_xpev_StatutoryReservesDomain_786605" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_xpev_StatutoryReservesAxis_786603" xlink:to="loc_xpev_StatutoryReservesDomain_786605" use="optional" order="45" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_StatutoryReservesDomain" xlink:label="loc_xpev_StatutoryReservesDomain_786605_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_xpev_StatutoryReservesAxis_786603" xlink:to="loc_xpev_StatutoryReservesDomain_786605_default" use="optional" order="46" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_GeneralReserveFundMember" xlink:label="loc_xpev_GeneralReserveFundMember_786606" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_StatutoryReservesDomain_786605" xlink:to="loc_xpev_GeneralReserveFundMember_786606" use="optional" order="47" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_786608" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_AccountingPoliciesTable_786489" xlink:to="loc_srt_RangeAxis_786608" use="optional" order="48" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_786609" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_786608" xlink:to="loc_srt_RangeMember_786609" use="optional" order="49" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_786609_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_786608" xlink:to="loc_srt_RangeMember_786609_default" use="optional" order="50" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_786610" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_786609" xlink:to="loc_srt_MinimumMember_786610" use="optional" order="51" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_788098" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_786609" xlink:to="loc_srt_MaximumMember_788098" use="optional" order="52" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsAxis" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsAxis_822809" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_AccountingPoliciesTable_786489" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsAxis_822809" use="optional" order="53" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_822810" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsAxis_822809" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_822810" use="optional" order="54" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_822810_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsAxis_822809" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_822810_default" use="optional" order="55" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_BankDepositsForLetterOfCreditBankNotesAndAForwardExchangeContractMember" xlink:label="loc_xpev_BankDepositsForLetterOfCreditBankNotesAndAForwardExchangeContractMember_822812" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_822810" xlink:to="loc_xpev_BankDepositsForLetterOfCreditBankNotesAndAForwardExchangeContractMember_822812" use="optional" order="56" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_DepositsRestrictionSubjectToSettlementOfDisputeMember" xlink:label="loc_xpev_DepositsRestrictionSubjectToSettlementOfDisputeMember_822815" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_822810" xlink:to="loc_xpev_DepositsRestrictionSubjectToSettlementOfDisputeMember_822815" use="optional" order="57" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_988467" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_AccountingPoliciesTable_786489" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_988467" use="optional" order="58" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_988468" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_988467" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_988468" use="optional" order="59" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_988468_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_988467" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_988468_default" use="optional" order="60" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SoftwareAndSoftwareDevelopmentCostsMember" xlink:label="loc_us-gaap_SoftwareAndSoftwareDevelopmentCostsMember_988469" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_988468" xlink:to="loc_us-gaap_SoftwareAndSoftwareDevelopmentCostsMember_988469" use="optional" order="61" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_LicenseOfMaintenanceAndOverhaulsMember" xlink:label="loc_xpev_LicenseOfMaintenanceAndOverhaulsMember_988470" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_988468" xlink:to="loc_xpev_LicenseOfMaintenanceAndOverhaulsMember_988470" use="optional" order="62" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_988473" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_AccountingPoliciesTable_786489" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_988473" use="optional" order="63" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_988474" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_988473" xlink:to="loc_us-gaap_RelatedPartyDomain_988474" use="optional" order="64" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_988474_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_988473" xlink:to="loc_us-gaap_RelatedPartyDomain_988474_default" use="optional" order="65" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_GuangzhouHuitianAerospaceTechnologyCoLtdMember" xlink:label="loc_xpev_GuangzhouHuitianAerospaceTechnologyCoLtdMember_988475" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_988474" xlink:to="loc_xpev_GuangzhouHuitianAerospaceTechnologyCoLtdMember_988475" use="optional" order="66" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_DistanceForTheVehicleUsedForWhichWarrantyIsGiven" xlink:label="loc_xpev_DistanceForTheVehicleUsedForWhichWarrantyIsGiven_786519" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_AccountingPoliciesLineItems_786490" xlink:to="loc_xpev_DistanceForTheVehicleUsedForWhichWarrantyIsGiven_786519" use="optional" order="67" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProvisionForDoubtfulAccounts" xlink:label="loc_us-gaap_ProvisionForDoubtfulAccounts_786507" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_AccountingPoliciesLineItems_786490" xlink:to="loc_us-gaap_ProvisionForDoubtfulAccounts_786507" use="optional" order="68" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ForeignCurrencyExchangeRateTranslation1" xlink:label="loc_us-gaap_ForeignCurrencyExchangeRateTranslation1_786504" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_AccountingPoliciesLineItems_786490" xlink:to="loc_us-gaap_ForeignCurrencyExchangeRateTranslation1_786504" use="optional" order="69" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_786508" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_AccountingPoliciesLineItems_786490" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_786508" use="optional" order="70" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_PeriodOfValidityOfLoyaltySchemeOffered" xlink:label="loc_xpev_PeriodOfValidityOfLoyaltySchemeOffered_786526" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_AccountingPoliciesLineItems_786490" xlink:to="loc_xpev_PeriodOfValidityOfLoyaltySchemeOffered_786526" use="optional" order="71" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SellingAndMarketingExpense" xlink:label="loc_us-gaap_SellingAndMarketingExpense_786534" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_AccountingPoliciesLineItems_786490" xlink:to="loc_us-gaap_SellingAndMarketingExpense_786534" use="optional" order="72" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableNoncurrent" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableNoncurrent_786509" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_AccountingPoliciesLineItems_786490" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableNoncurrent_786509" use="optional" order="73" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShortTermInvestments" xlink:label="loc_us-gaap_ShortTermInvestments_786510" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_AccountingPoliciesLineItems_786490" xlink:to="loc_us-gaap_ShortTermInvestments_786510" use="optional" order="74" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InventoryWriteDown" xlink:label="loc_us-gaap_InventoryWriteDown_786511" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_AccountingPoliciesLineItems_786490" xlink:to="loc_us-gaap_InventoryWriteDown_786511" use="optional" order="75" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GainLossOnSaleOfPropertyPlantEquipment" xlink:label="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_786512" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_AccountingPoliciesLineItems_786490" xlink:to="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_786512" use="optional" order="76" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_LandUseRightsAmortizationPeriod" xlink:label="loc_xpev_LandUseRightsAmortizationPeriod_786513" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_AccountingPoliciesLineItems_786490" xlink:to="loc_xpev_LandUseRightsAmortizationPeriod_786513" use="optional" order="77" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ProductWarrantyTerm" xlink:label="loc_xpev_ProductWarrantyTerm_786515" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_AccountingPoliciesLineItems_786490" xlink:to="loc_xpev_ProductWarrantyTerm_786515" use="optional" order="78" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_PeriodWithinWhichCustomersHaveToAcceptTheLoyaltySchemeOffered" xlink:label="loc_xpev_PeriodWithinWhichCustomersHaveToAcceptTheLoyaltySchemeOffered_786528" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_AccountingPoliciesLineItems_786490" xlink:to="loc_xpev_PeriodWithinWhichCustomersHaveToAcceptTheLoyaltySchemeOffered_786528" use="optional" order="79" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ResearchAndDevelopmentExpense" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_786532" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_AccountingPoliciesLineItems_786490" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_786532" use="optional" order="80" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AdvertisingExpense" xlink:label="loc_us-gaap_AdvertisingExpense_786533" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_AccountingPoliciesLineItems_786490" xlink:to="loc_us-gaap_AdvertisingExpense_786533" use="optional" order="81" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DividendsPayableCurrentAndNoncurrent" xlink:label="loc_us-gaap_DividendsPayableCurrentAndNoncurrent_786541" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_AccountingPoliciesLineItems_786490" xlink:to="loc_us-gaap_DividendsPayableCurrentAndNoncurrent_786541" use="optional" order="82" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DefinedContributionPlanCostRecognized" xlink:label="loc_us-gaap_DefinedContributionPlanCostRecognized_786535" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_AccountingPoliciesLineItems_786490" xlink:to="loc_us-gaap_DefinedContributionPlanCostRecognized_786535" use="optional" order="83" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_786536" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_AccountingPoliciesLineItems_786490" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_786536" use="optional" order="84" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_PercentageOfTheAfterTaxProfitsAllocatableToStatutoryGeneralReserveFund" xlink:label="loc_xpev_PercentageOfTheAfterTaxProfitsAllocatableToStatutoryGeneralReserveFund_786538" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_AccountingPoliciesLineItems_786490" xlink:to="loc_xpev_PercentageOfTheAfterTaxProfitsAllocatableToStatutoryGeneralReserveFund_786538" use="optional" order="85" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_StatutoryReservesAsAPercentageOfTheReservedCapitalOfTheCompany" xlink:label="loc_xpev_StatutoryReservesAsAPercentageOfTheReservedCapitalOfTheCompany_786539" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_AccountingPoliciesLineItems_786490" xlink:to="loc_xpev_StatutoryReservesAsAPercentageOfTheReservedCapitalOfTheCompany_786539" use="optional" order="86" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatutoryAccountingPracticesStatutoryCapitalAndSurplusBalance" xlink:label="loc_us-gaap_StatutoryAccountingPracticesStatutoryCapitalAndSurplusBalance_786540" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_AccountingPoliciesLineItems_786490" xlink:to="loc_us-gaap_StatutoryAccountingPracticesStatutoryCapitalAndSurplusBalance_786540" use="optional" order="87" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GeneralAndAdministrativeExpense" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_786661" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_AccountingPoliciesLineItems_786490" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_786661" use="optional" order="88" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentUsefulLife" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_788094" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_AccountingPoliciesLineItems_786490" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_788094" use="optional" order="89" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestrictedCash" xlink:label="loc_us-gaap_RestrictedCash_822816" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_AccountingPoliciesLineItems_786490" xlink:to="loc_us-gaap_RestrictedCash_822816" use="optional" order="90" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ShortTermDeposits" xlink:label="loc_xpev_ShortTermDeposits_863822" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_AccountingPoliciesLineItems_786490" xlink:to="loc_xpev_ShortTermDeposits_863822" use="optional" order="91" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestBearingDepositsInBanks" xlink:label="loc_us-gaap_InterestBearingDepositsInBanks_988458" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_AccountingPoliciesLineItems_786490" xlink:to="loc_us-gaap_InterestBearingDepositsInBanks_988458" use="optional" order="92" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_988466" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_AccountingPoliciesLineItems_786490" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_988466" use="optional" order="93" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ImpairmentOfIntangibleAssetsIndefinitelivedExcludingGoodwill" xlink:label="loc_us-gaap_ImpairmentOfIntangibleAssetsIndefinitelivedExcludingGoodwill_988471" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_AccountingPoliciesLineItems_786490" xlink:to="loc_us-gaap_ImpairmentOfIntangibleAssetsIndefinitelivedExcludingGoodwill_988471" use="optional" order="94" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsToAcquireEquityMethodInvestments" xlink:label="loc_us-gaap_PaymentsToAcquireEquityMethodInvestments_988476" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_AccountingPoliciesLineItems_786490" xlink:to="loc_us-gaap_PaymentsToAcquireEquityMethodInvestments_988476" use="optional" order="95" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/SummaryOfSignificantAccountingPoliciesSummaryOfCashAndCashEquivalentsDetails">
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashAndCashEquivalentsLineItems" xlink:label="loc_us-gaap_CashAndCashEquivalentsLineItems_786424" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfCashAndCashEquivalentsTable" xlink:label="loc_us-gaap_ScheduleOfCashAndCashEquivalentsTable_786423" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_CashAndCashEquivalentsLineItems_786424" xlink:to="loc_us-gaap_ScheduleOfCashAndCashEquivalentsTable_786423" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_CurrencyAxis" xlink:label="loc_srt_CurrencyAxis_786425" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfCashAndCashEquivalentsTable_786423" xlink:to="loc_srt_CurrencyAxis_786425" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/currency/2020/currency-2020-01-31.xsd#currency_AllCurrenciesDomain" xlink:label="loc_currency_AllCurrenciesDomain_786426" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CurrencyAxis_786425" xlink:to="loc_currency_AllCurrenciesDomain_786426" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/currency/2020/currency-2020-01-31.xsd#currency_AllCurrenciesDomain" xlink:label="loc_currency_AllCurrenciesDomain_786426_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CurrencyAxis_786425" xlink:to="loc_currency_AllCurrenciesDomain_786426_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/currency/2020/currency-2020-01-31.xsd#currency_CNY" xlink:label="loc_currency_CNY_786427" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_786426" xlink:to="loc_currency_CNY_786427" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/currency/2020/currency-2020-01-31.xsd#currency_USD" xlink:label="loc_currency_USD_786428" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_786426" xlink:to="loc_currency_USD_786428" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/currency/2020/currency-2020-01-31.xsd#currency_HKD" xlink:label="loc_currency_HKD_786429" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_786426" xlink:to="loc_currency_HKD_786429" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/currency/2020/currency-2020-01-31.xsd#currency_EUR" xlink:label="loc_currency_EUR_988449" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_786426" xlink:to="loc_currency_EUR_988449" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashCashEquivalentsAndShortTermInvestments" xlink:label="loc_us-gaap_CashCashEquivalentsAndShortTermInvestments_786432" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CashAndCashEquivalentsLineItems_786424" xlink:to="loc_us-gaap_CashCashEquivalentsAndShortTermInvestments_786432" use="optional" order="9" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/SummaryOfSignificantAccountingPoliciesSummaryOfAccountReceivableAndAllowanceForCreditLossDetails">
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_867161" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivable" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivable_786441" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_867161" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivable_786441" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccountsReceivableChangeInMethodCreditLossExpenseReversal" xlink:label="loc_us-gaap_AccountsReceivableChangeInMethodCreditLossExpenseReversal_786444" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_867161" xlink:to="loc_us-gaap_AccountsReceivableChangeInMethodCreditLossExpenseReversal_786444" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProvisionForDoubtfulAccounts" xlink:label="loc_us-gaap_ProvisionForDoubtfulAccounts_786445" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_867161" xlink:to="loc_us-gaap_ProvisionForDoubtfulAccounts_786445" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableWriteOffs" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableWriteOffs_786446" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_867161" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableWriteOffs_786446" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_867157" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_867161" xlink:to="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_867157" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AdjustmentsForNewAccountingPronouncementsAxis" xlink:label="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_867158" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_867157" xlink:to="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_867158" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_867159" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_867158" xlink:to="loc_us-gaap_TypeOfAdoptionMember_867159" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_867159_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_867158" xlink:to="loc_us-gaap_TypeOfAdoptionMember_867159_default" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NewAccountingPronouncementMember" xlink:label="loc_us-gaap_NewAccountingPronouncementMember_867160" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfAdoptionMember_867159" xlink:to="loc_us-gaap_NewAccountingPronouncementMember_867160" use="optional" order="9" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/SummaryOfSignificantAccountingPoliciesSummaryOfUsefulLivesOfPropertyPlantAndEquipmentDetails">
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentLineItems" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_786453" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentUsefulLife" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_786466" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_786453" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_786466" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_786452" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_786453" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_786452" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_786454" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_786452" xlink:to="loc_srt_RangeAxis_786454" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_786455" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_786454" xlink:to="loc_srt_RangeMember_786455" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_786455_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_786454" xlink:to="loc_srt_RangeMember_786455_default" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_786456" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_786455" xlink:to="loc_srt_MaximumMember_786456" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_786457" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_786455" xlink:to="loc_srt_MinimumMember_786457" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_786458" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_786452" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_786458" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_786459" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_786458" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_786459" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_786459_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_786458" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_786459_default" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ComputerEquipmentMember" xlink:label="loc_us-gaap_ComputerEquipmentMember_786463" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_786459" xlink:to="loc_us-gaap_ComputerEquipmentMember_786463" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherMachineryAndEquipmentMember" xlink:label="loc_us-gaap_OtherMachineryAndEquipmentMember_786464" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_786459" xlink:to="loc_us-gaap_OtherMachineryAndEquipmentMember_786464" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MachineryAndEquipmentMember" xlink:label="loc_us-gaap_MachineryAndEquipmentMember_786460" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_786459" xlink:to="loc_us-gaap_MachineryAndEquipmentMember_786460" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ChargingInfrastructureMember" xlink:label="loc_xpev_ChargingInfrastructureMember_786461" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_786459" xlink:to="loc_xpev_ChargingInfrastructureMember_786461" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_VehiclesMember" xlink:label="loc_us-gaap_VehiclesMember_786462" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_786459" xlink:to="loc_us-gaap_VehiclesMember_786462" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BuildingMember" xlink:label="loc_us-gaap_BuildingMember_862645" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_786459" xlink:to="loc_us-gaap_BuildingMember_862645" use="optional" order="16" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/SummaryOfSignificantAccountingPoliciesSummaryOfFiniteLivedIntangibleAssetsUsefulLivesDetails">
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AcquiredFiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsLineItems_786477" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfAcquiredFiniteLivedIntangibleAssetByMajorClassTable" xlink:label="loc_us-gaap_ScheduleOfAcquiredFiniteLivedIntangibleAssetByMajorClassTable_786475" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsLineItems_786477" xlink:to="loc_us-gaap_ScheduleOfAcquiredFiniteLivedIntangibleAssetByMajorClassTable_786475" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_786482" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAcquiredFiniteLivedIntangibleAssetByMajorClassTable_786475" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_786482" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_786483" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_786482" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_786483" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_786483_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_786482" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_786483_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SoftwareAndSoftwareDevelopmentCostsMember" xlink:label="loc_us-gaap_SoftwareAndSoftwareDevelopmentCostsMember_786484" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_786483" xlink:to="loc_us-gaap_SoftwareAndSoftwareDevelopmentCostsMember_786484" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_LicenseOfMaintenanceAndOverhaulsMember" xlink:label="loc_xpev_LicenseOfMaintenanceAndOverhaulsMember_786485" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_786483" xlink:to="loc_xpev_LicenseOfMaintenanceAndOverhaulsMember_786485" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_786478" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAcquiredFiniteLivedIntangibleAssetByMajorClassTable_786475" xlink:to="loc_srt_RangeAxis_786478" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_786479" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_786478" xlink:to="loc_srt_RangeMember_786479" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_786479_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_786478" xlink:to="loc_srt_RangeMember_786479_default" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_786480" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_786479" xlink:to="loc_srt_MaximumMember_786480" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_786481" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_786479" xlink:to="loc_srt_MinimumMember_786481" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_786486" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsLineItems_786477" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_786486" use="optional" order="12" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/RecentAccountingPronouncementsAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_AccountingPoliciesLineItems" xlink:label="loc_xpev_AccountingPoliciesLineItems_863808" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_AccountingPoliciesTable" xlink:label="loc_xpev_AccountingPoliciesTable_863800" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_xpev_AccountingPoliciesLineItems_863808" xlink:to="loc_xpev_AccountingPoliciesTable_863800" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_863801" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_AccountingPoliciesTable_863800" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_863801" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_863802" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_863801" xlink:to="loc_us-gaap_EquityComponentDomain_863802" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_863802_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_863801" xlink:to="loc_us-gaap_EquityComponentDomain_863802_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RetainedEarningsMember" xlink:label="loc_us-gaap_RetainedEarningsMember_863804" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_863802" xlink:to="loc_us-gaap_RetainedEarningsMember_863804" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionAxis" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_863805" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_AccountingPoliciesTable_863800" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_863805" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_863806" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_863805" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_863806" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_863806_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_863805" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_863806_default" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_863807" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_863806" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_863807" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_863810" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_AccountingPoliciesLineItems_863808" xlink:to="loc_us-gaap_StockholdersEquity_863810" use="optional" order="10" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/FairValueOfFinancialInstrumentsSummaryOfFairValueOfTheFinancialInstrumentsThatAreMeasuredAtFairValueOnARecurringBasisDetail">
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems" xlink:label="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_786412" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueByBalanceSheetGroupingTable" xlink:label="loc_us-gaap_FairValueByBalanceSheetGroupingTable_786403" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_786412" xlink:to="loc_us-gaap_FairValueByBalanceSheetGroupingTable_786403" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_786405" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_786403" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_786405" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_786406" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_786405" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_786406" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_786406_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_786405" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_786406_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueInputsLevel2Member" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_786409" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_786406" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_786409" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueInputsLevel3Member" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_786410" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_786406" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_786410" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ShortTermInvestmentsFairValueDisclosure" xlink:label="loc_xpev_ShortTermInvestmentsFairValueDisclosure_786414" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_786412" xlink:to="loc_xpev_ShortTermInvestmentsFairValueDisclosure_786414" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MandatorilyRedeemablePreferredStockFairValueDisclosure" xlink:label="loc_us-gaap_MandatorilyRedeemablePreferredStockFairValueDisclosure_786415" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_786412" xlink:to="loc_us-gaap_MandatorilyRedeemablePreferredStockFairValueDisclosure_786415" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ForeignCurrencyContractsLiabilityFairValueDisclosure" xlink:label="loc_us-gaap_ForeignCurrencyContractsLiabilityFairValueDisclosure_786416" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_786412" xlink:to="loc_us-gaap_ForeignCurrencyContractsLiabilityFairValueDisclosure_786416" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ForeignCurrencyContractAssetFairValueDisclosure" xlink:label="loc_us-gaap_ForeignCurrencyContractAssetFairValueDisclosure_863791" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_786412" xlink:to="loc_us-gaap_ForeignCurrencyContractAssetFairValueDisclosure_863791" use="optional" order="10" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/FairValueOfFinancialInstrumentsScheduleForDeterminingTheFairValueOfDerivativeLiabilitiesDetail">
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ScheduleForDeterminingTheFairValueOfDerivativeLiabilitiesLineItems" xlink:label="loc_xpev_ScheduleForDeterminingTheFairValueOfDerivativeLiabilitiesLineItems_786433" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ScheduleForDeterminingTheFairValueOfDerivativeLiabilitiesTableTable" xlink:label="loc_xpev_ScheduleForDeterminingTheFairValueOfDerivativeLiabilitiesTableTable_786431" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_xpev_ScheduleForDeterminingTheFairValueOfDerivativeLiabilitiesLineItems_786433" xlink:to="loc_xpev_ScheduleForDeterminingTheFairValueOfDerivativeLiabilitiesTableTable_786431" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_786434" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ScheduleForDeterminingTheFairValueOfDerivativeLiabilitiesLineItems_786433" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_786434" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate_786435" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ScheduleForDeterminingTheFairValueOfDerivativeLiabilitiesLineItems_786433" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate_786435" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsTerm" xlink:label="loc_xpev_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsTerm_788325" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ScheduleForDeterminingTheFairValueOfDerivativeLiabilitiesLineItems_786433" xlink:to="loc_xpev_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsTerm_788325" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_786436" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ScheduleForDeterminingTheFairValueOfDerivativeLiabilitiesLineItems_786433" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_786436" use="optional" order="5" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/PropertyPlantAndEquipmentNetSummaryOfPropertyPlantAndEquipmentNetDetail">
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentLineItems" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_786546" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_786517" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_786546" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_786517" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_786518" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_786517" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_786518" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_786520" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_786518" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_786520" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_786520_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_786518" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_786520_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ChargingInfrastructureMember" xlink:label="loc_xpev_ChargingInfrastructureMember_786529" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_786520" xlink:to="loc_xpev_ChargingInfrastructureMember_786529" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConstructionInProgressMember" xlink:label="loc_us-gaap_ConstructionInProgressMember_786521" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_786520" xlink:to="loc_us-gaap_ConstructionInProgressMember_786521" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ToolsDiesAndMoldsMember" xlink:label="loc_us-gaap_ToolsDiesAndMoldsMember_786522" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_786520" xlink:to="loc_us-gaap_ToolsDiesAndMoldsMember_786522" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_VehiclesMember" xlink:label="loc_us-gaap_VehiclesMember_786523" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_786520" xlink:to="loc_us-gaap_VehiclesMember_786523" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MachineryAndEquipmentMember" xlink:label="loc_us-gaap_MachineryAndEquipmentMember_786524" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_786520" xlink:to="loc_us-gaap_MachineryAndEquipmentMember_786524" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LeaseholdImprovementsMember" xlink:label="loc_us-gaap_LeaseholdImprovementsMember_786525" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_786520" xlink:to="loc_us-gaap_LeaseholdImprovementsMember_786525" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ComputerAndElectronicEquipmentMember" xlink:label="loc_xpev_ComputerAndElectronicEquipmentMember_786527" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_786520" xlink:to="loc_xpev_ComputerAndElectronicEquipmentMember_786527" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherMachineryAndEquipmentMember" xlink:label="loc_us-gaap_OtherMachineryAndEquipmentMember_786530" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_786520" xlink:to="loc_us-gaap_OtherMachineryAndEquipmentMember_786530" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BuildingMember" xlink:label="loc_us-gaap_BuildingMember_862735" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_786520" xlink:to="loc_us-gaap_BuildingMember_862735" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_786552" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_786546" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_786552" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentGross" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_786549" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_786546" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_786549" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TangibleAssetImpairmentCharges" xlink:label="loc_us-gaap_TangibleAssetImpairmentCharges_786555" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_786546" xlink:to="loc_us-gaap_TangibleAssetImpairmentCharges_786555" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_786557" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_786546" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_786557" use="optional" order="17" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/PropertyPlantAndEquipmentNetAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentLineItems" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_786577" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_786571" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_786577" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_786571" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_786572" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_786571" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_786572" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_786573" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_786572" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_786573" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_786573_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_786572" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_786573_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConstructionInProgressMember" xlink:label="loc_us-gaap_ConstructionInProgressMember_786574" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_786573" xlink:to="loc_us-gaap_ConstructionInProgressMember_786574" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ToolsDiesAndMoldsMember" xlink:label="loc_us-gaap_ToolsDiesAndMoldsMember_786575" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_786573" xlink:to="loc_us-gaap_ToolsDiesAndMoldsMember_786575" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedCapitalizedInterestCosts" xlink:label="loc_us-gaap_AccumulatedCapitalizedInterestCosts_786579" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_786577" xlink:to="loc_us-gaap_AccumulatedCapitalizedInterestCosts_786579" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Depreciation" xlink:label="loc_us-gaap_Depreciation_786578" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_786577" xlink:to="loc_us-gaap_Depreciation_786578" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TangibleAssetImpairmentCharges" xlink:label="loc_us-gaap_TangibleAssetImpairmentCharges_786580" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_786577" xlink:to="loc_us-gaap_TangibleAssetImpairmentCharges_786580" use="optional" order="9" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/IntangibleAssetsNetScheduleOfIntangibleAssetsAndGoodwillDetail">
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ScheduleOfFiniteLivedAndIndefiniteLivedIntangibleAssetsExcludingGoodwillLineItems" xlink:label="loc_xpev_ScheduleOfFiniteLivedAndIndefiniteLivedIntangibleAssetsExcludingGoodwillLineItems_787427" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ScheduleOfFiniteLivedAndIndefiniteLivedIntangibleAssetsExcludingGoodwillTable" xlink:label="loc_xpev_ScheduleOfFiniteLivedAndIndefiniteLivedIntangibleAssetsExcludingGoodwillTable_787426" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_xpev_ScheduleOfFiniteLivedAndIndefiniteLivedIntangibleAssetsExcludingGoodwillLineItems_787427" xlink:to="loc_xpev_ScheduleOfFiniteLivedAndIndefiniteLivedIntangibleAssetsExcludingGoodwillTable_787426" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_787428" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_ScheduleOfFiniteLivedAndIndefiniteLivedIntangibleAssetsExcludingGoodwillTable_787426" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_787428" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_787429" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_787428" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_787429" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_787429_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_787428" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_787429_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SoftwareAndSoftwareDevelopmentCostsMember" xlink:label="loc_us-gaap_SoftwareAndSoftwareDevelopmentCostsMember_787430" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_787429" xlink:to="loc_us-gaap_SoftwareAndSoftwareDevelopmentCostsMember_787430" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_LicenseOfMaintenanceAndOverhaulsMember" xlink:label="loc_xpev_LicenseOfMaintenanceAndOverhaulsMember_787431" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_787429" xlink:to="loc_xpev_LicenseOfMaintenanceAndOverhaulsMember_787431" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_787432" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_ScheduleOfFiniteLivedAndIndefiniteLivedIntangibleAssetsExcludingGoodwillTable_787426" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_787432" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_787433" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_787432" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_787433" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_787433_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_787432" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_787433_default" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ManufacturingLicenseMember" xlink:label="loc_xpev_ManufacturingLicenseMember_787435" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_787433" xlink:to="loc_xpev_ManufacturingLicenseMember_787435" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_LicensePlateMember" xlink:label="loc_xpev_LicensePlateMember_787436" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_787433" xlink:to="loc_xpev_LicensePlateMember_787436" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_IntangibleAssetsFiniteAndInfiniteLivedAccumulatedAmortisationAndImpairment" xlink:label="loc_xpev_IntangibleAssetsFiniteAndInfiniteLivedAccumulatedAmortisationAndImpairment_787447" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ScheduleOfFiniteLivedAndIndefiniteLivedIntangibleAssetsExcludingGoodwillLineItems_787427" xlink:to="loc_xpev_IntangibleAssetsFiniteAndInfiniteLivedAccumulatedAmortisationAndImpairment_787447" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IntangibleAssetsGrossExcludingGoodwill" xlink:label="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_787446" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ScheduleOfFiniteLivedAndIndefiniteLivedIntangibleAssetsExcludingGoodwillLineItems_787427" xlink:to="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_787446" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_787443" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ScheduleOfFiniteLivedAndIndefiniteLivedIntangibleAssetsExcludingGoodwillLineItems_787427" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_787443" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_787439" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ScheduleOfFiniteLivedAndIndefiniteLivedIntangibleAssetsExcludingGoodwillLineItems_787427" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_787439" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsGross" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_787437" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ScheduleOfFiniteLivedAndIndefiniteLivedIntangibleAssetsExcludingGoodwillLineItems_787427" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_787437" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_787438" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ScheduleOfFiniteLivedAndIndefiniteLivedIntangibleAssetsExcludingGoodwillLineItems_787427" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_787438" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_787448" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ScheduleOfFiniteLivedAndIndefiniteLivedIntangibleAssetsExcludingGoodwillLineItems_787427" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_787448" use="optional" order="18" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/IntangibleAssetsNetAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ScheduleOfFiniteLivedAndIndefiniteLivedIntangibleAssetsExcludingGoodwilllineItemsLineItems" xlink:label="loc_xpev_ScheduleOfFiniteLivedAndIndefiniteLivedIntangibleAssetsExcludingGoodwilllineItemsLineItems_787501" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityMethodInvestmentOwnershipPercentage" xlink:label="loc_us-gaap_EquityMethodInvestmentOwnershipPercentage_787502" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ScheduleOfFiniteLivedAndIndefiniteLivedIntangibleAssetsExcludingGoodwilllineItemsLineItems_787501" xlink:to="loc_us-gaap_EquityMethodInvestmentOwnershipPercentage_787502" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferred1" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_787503" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ScheduleOfFiniteLivedAndIndefiniteLivedIntangibleAssetsExcludingGoodwilllineItemsLineItems_787501" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferred1_787503" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ScheduleOfFiniteLivedAndIndefiniteLivedIntangibleAssetsExcludingGoodwilltableTable" xlink:label="loc_xpev_ScheduleOfFiniteLivedAndIndefiniteLivedIntangibleAssetsExcludingGoodwilltableTable_787473" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_xpev_ScheduleOfFiniteLivedAndIndefiniteLivedIntangibleAssetsExcludingGoodwilllineItemsLineItems_787501" xlink:to="loc_xpev_ScheduleOfFiniteLivedAndIndefiniteLivedIntangibleAssetsExcludingGoodwilltableTable_787473" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_AgreementAxis" xlink:label="loc_xpev_AgreementAxis_787475" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_ScheduleOfFiniteLivedAndIndefiniteLivedIntangibleAssetsExcludingGoodwilltableTable_787473" xlink:to="loc_xpev_AgreementAxis_787475" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_AgreementDomain" xlink:label="loc_xpev_AgreementDomain_787477" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_xpev_AgreementAxis_787475" xlink:to="loc_xpev_AgreementDomain_787477" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_AgreementDomain" xlink:label="loc_xpev_AgreementDomain_787477_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_xpev_AgreementAxis_787475" xlink:to="loc_xpev_AgreementDomain_787477_default" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ShareTransferAgreementMember" xlink:label="loc_xpev_ShareTransferAgreementMember_787480" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_AgreementDomain_787477" xlink:to="loc_xpev_ShareTransferAgreementMember_787480" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_BusinessCombinationIntangibleAssetsAcquistionAxis" xlink:label="loc_xpev_BusinessCombinationIntangibleAssetsAcquistionAxis_787481" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_ScheduleOfFiniteLivedAndIndefiniteLivedIntangibleAssetsExcludingGoodwilltableTable_787473" xlink:to="loc_xpev_BusinessCombinationIntangibleAssetsAcquistionAxis_787481" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_BusinessCombinationIntangibleAssetsAcquistionDomain" xlink:label="loc_xpev_BusinessCombinationIntangibleAssetsAcquistionDomain_787483" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_xpev_BusinessCombinationIntangibleAssetsAcquistionAxis_787481" xlink:to="loc_xpev_BusinessCombinationIntangibleAssetsAcquistionDomain_787483" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_BusinessCombinationIntangibleAssetsAcquistionDomain" xlink:label="loc_xpev_BusinessCombinationIntangibleAssetsAcquistionDomain_787483_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_xpev_BusinessCombinationIntangibleAssetsAcquistionAxis_787481" xlink:to="loc_xpev_BusinessCombinationIntangibleAssetsAcquistionDomain_787483_default" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ManufacturingLicenseSubjectToApprovalMember" xlink:label="loc_xpev_ManufacturingLicenseSubjectToApprovalMember_787500" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_BusinessCombinationIntangibleAssetsAcquistionDomain_787483" xlink:to="loc_xpev_ManufacturingLicenseSubjectToApprovalMember_787500" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_IncludingManufacturingLicenseSubjectToRegulatoryApprovalMember" xlink:label="loc_xpev_IncludingManufacturingLicenseSubjectToRegulatoryApprovalMember_787491" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_BusinessCombinationIntangibleAssetsAcquistionDomain_787483" xlink:to="loc_xpev_IncludingManufacturingLicenseSubjectToRegulatoryApprovalMember_787491" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_BusinessAcquistionDisposalAxis" xlink:label="loc_xpev_BusinessAcquistionDisposalAxis_787493" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_ScheduleOfFiniteLivedAndIndefiniteLivedIntangibleAssetsExcludingGoodwilltableTable_787473" xlink:to="loc_xpev_BusinessAcquistionDisposalAxis_787493" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_BusinessAcquistionDisposalDomain" xlink:label="loc_xpev_BusinessAcquistionDisposalDomain_787494" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_xpev_BusinessAcquistionDisposalAxis_787493" xlink:to="loc_xpev_BusinessAcquistionDisposalDomain_787494" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_BusinessAcquistionDisposalDomain" xlink:label="loc_xpev_BusinessAcquistionDisposalDomain_787494_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_xpev_BusinessAcquistionDisposalAxis_787493" xlink:to="loc_xpev_BusinessAcquistionDisposalDomain_787494_default" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_RelatedPartyOfTheAcquireeMember" xlink:label="loc_xpev_RelatedPartyOfTheAcquireeMember_787495" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_BusinessAcquistionDisposalDomain_787494" xlink:to="loc_xpev_RelatedPartyOfTheAcquireeMember_787495" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationConsideration" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationConsideration_787508" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ScheduleOfFiniteLivedAndIndefiniteLivedIntangibleAssetsExcludingGoodwilllineItemsLineItems_787501" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationConsideration_787508" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IndefinitelivedIntangibleAssetsAcquired" xlink:label="loc_us-gaap_IndefinitelivedIntangibleAssetsAcquired_787510" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ScheduleOfFiniteLivedAndIndefiniteLivedIntangibleAssetsExcludingGoodwilllineItemsLineItems_787501" xlink:to="loc_us-gaap_IndefinitelivedIntangibleAssetsAcquired_787510" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsToAcquireBusinessesGross" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesGross_787513" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ScheduleOfFiniteLivedAndIndefiniteLivedIntangibleAssetsExcludingGoodwilllineItemsLineItems_787501" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesGross_787513" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromDivestitureOfBusinessesAndInterestsInAffiliates" xlink:label="loc_us-gaap_ProceedsFromDivestitureOfBusinessesAndInterestsInAffiliates_787516" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ScheduleOfFiniteLivedAndIndefiniteLivedIntangibleAssetsExcludingGoodwilllineItemsLineItems_787501" xlink:to="loc_us-gaap_ProceedsFromDivestitureOfBusinessesAndInterestsInAffiliates_787516" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_EquityMethodInvestmentPercentageDisposedOff" xlink:label="loc_xpev_EquityMethodInvestmentPercentageDisposedOff_787507" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ScheduleOfFiniteLivedAndIndefiniteLivedIntangibleAssetsExcludingGoodwilllineItemsLineItems_787501" xlink:to="loc_xpev_EquityMethodInvestmentPercentageDisposedOff_787507" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill_787504" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ScheduleOfFiniteLivedAndIndefiniteLivedIntangibleAssetsExcludingGoodwilllineItemsLineItems_787501" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill_787504" use="optional" order="22" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/LandUseRightsNetSummaryOfLandUseRightsAndRelatedAccumulatedAmortizationDetail">
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ScheduleOfLandUseRightsFiniteLivedLineItems" xlink:label="loc_xpev_ScheduleOfLandUseRightsFiniteLivedLineItems_787328" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ScheduleOfLandUseRightsFiniteLivedTable" xlink:label="loc_xpev_ScheduleOfLandUseRightsFiniteLivedTable_787321" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_xpev_ScheduleOfLandUseRightsFiniteLivedLineItems_787328" xlink:to="loc_xpev_ScheduleOfLandUseRightsFiniteLivedTable_787321" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_787322" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_ScheduleOfLandUseRightsFiniteLivedTable_787321" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_787322" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_787323" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_787322" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_787323" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_787323_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_787322" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_787323_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LandMember" xlink:label="loc_us-gaap_LandMember_787327" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_787323" xlink:to="loc_us-gaap_LandMember_787327" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_LandUseRightsGross" xlink:label="loc_xpev_LandUseRightsGross_787329" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ScheduleOfLandUseRightsFiniteLivedLineItems_787328" xlink:to="loc_xpev_LandUseRightsGross_787329" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_LandUseRightsAccumulatedAmortization" xlink:label="loc_xpev_LandUseRightsAccumulatedAmortization_787332" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ScheduleOfLandUseRightsFiniteLivedLineItems_787328" xlink:to="loc_xpev_LandUseRightsAccumulatedAmortization_787332" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_LandUseRightsNet" xlink:label="loc_xpev_LandUseRightsNet_787338" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ScheduleOfLandUseRightsFiniteLivedLineItems_787328" xlink:to="loc_xpev_LandUseRightsNet_787338" use="optional" order="8" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/LandUseRightsNetAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ScheduleOfLandUseRightsFiniteLivedLineItems" xlink:label="loc_xpev_ScheduleOfLandUseRightsFiniteLivedLineItems_787370" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ScheduleOfLandUseRightsFiniteLivedTable" xlink:label="loc_xpev_ScheduleOfLandUseRightsFiniteLivedTable_787351" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_xpev_ScheduleOfLandUseRightsFiniteLivedLineItems_787370" xlink:to="loc_xpev_ScheduleOfLandUseRightsFiniteLivedTable_787351" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_787352" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_ScheduleOfLandUseRightsFiniteLivedTable_787351" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_787352" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_787355" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_787352" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_787355" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_787355_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_787352" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_787355_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LandMember" xlink:label="loc_us-gaap_LandMember_863765" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_787355" xlink:to="loc_us-gaap_LandMember_863765" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_AmortizationOfLandUseRights" xlink:label="loc_xpev_AmortizationOfLandUseRights_822819" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ScheduleOfLandUseRightsFiniteLivedLineItems_787370" xlink:to="loc_xpev_AmortizationOfLandUseRights_822819" use="optional" order="6" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/AccrualsAndOtherLiabilitiesSummaryOfAccrualsAndOtherCurrentLiabilitiesParentheticalDetail">
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_AccountsPayableAndAccruedLiabilitiesCurrentLineItems" xlink:label="loc_xpev_AccountsPayableAndAccruedLiabilitiesCurrentLineItems_787542" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsToAcquireLimitedPartnershipInterests" xlink:label="loc_us-gaap_PaymentsToAcquireLimitedPartnershipInterests_787545" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_AccountsPayableAndAccruedLiabilitiesCurrentLineItems_787542" xlink:to="loc_us-gaap_PaymentsToAcquireLimitedPartnershipInterests_787545" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_AccountsPayableAndAccruedLiabilitiesCurrentTable" xlink:label="loc_xpev_AccountsPayableAndAccruedLiabilitiesCurrentTable_787532" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_xpev_AccountsPayableAndAccruedLiabilitiesCurrentLineItems_787542" xlink:to="loc_xpev_AccountsPayableAndAccruedLiabilitiesCurrentTable_787532" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_LimitedLiabilityParntershipAxis" xlink:label="loc_xpev_LimitedLiabilityParntershipAxis_787533" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_AccountsPayableAndAccruedLiabilitiesCurrentTable_787532" xlink:to="loc_xpev_LimitedLiabilityParntershipAxis_787533" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_LimitedLiabilityParntershipDomain" xlink:label="loc_xpev_LimitedLiabilityParntershipDomain_787535" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_xpev_LimitedLiabilityParntershipAxis_787533" xlink:to="loc_xpev_LimitedLiabilityParntershipDomain_787535" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_LimitedLiabilityParntershipDomain" xlink:label="loc_xpev_LimitedLiabilityParntershipDomain_787535_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_xpev_LimitedLiabilityParntershipAxis_787533" xlink:to="loc_xpev_LimitedLiabilityParntershipDomain_787535_default" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_KunpengKenchuangLlpMember" xlink:label="loc_xpev_KunpengKenchuangLlpMember_787536" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_LimitedLiabilityParntershipDomain_787535" xlink:to="loc_xpev_KunpengKenchuangLlpMember_787536" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_OwnershipAxis" xlink:label="loc_srt_OwnershipAxis_787537" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_AccountsPayableAndAccruedLiabilitiesCurrentTable_787532" xlink:to="loc_srt_OwnershipAxis_787537" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_OwnershipDomain" xlink:label="loc_srt_OwnershipDomain_787538" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_OwnershipAxis_787537" xlink:to="loc_srt_OwnershipDomain_787538" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_OwnershipDomain" xlink:label="loc_srt_OwnershipDomain_787538_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_OwnershipAxis_787537" xlink:to="loc_srt_OwnershipDomain_787538_default" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ShenzhenAntuoHengyuanFundManagementCoLimitedMember" xlink:label="loc_xpev_ShenzhenAntuoHengyuanFundManagementCoLimitedMember_787540" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_OwnershipDomain_787538" xlink:to="loc_xpev_ShenzhenAntuoHengyuanFundManagementCoLimitedMember_787540" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_GuangzhouIndustrialTransformationAndUpgradingDevelopmentFundCoLimitedMember" xlink:label="loc_xpev_GuangzhouIndustrialTransformationAndUpgradingDevelopmentFundCoLimitedMember_787539" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_OwnershipDomain_787538" xlink:to="loc_xpev_GuangzhouIndustrialTransformationAndUpgradingDevelopmentFundCoLimitedMember_787539" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_NonControllingInterestAxis" xlink:label="loc_xpev_NonControllingInterestAxis_822847" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_AccountsPayableAndAccruedLiabilitiesCurrentTable_787532" xlink:to="loc_xpev_NonControllingInterestAxis_822847" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_NonControllingInterestDomain" xlink:label="loc_xpev_NonControllingInterestDomain_822849" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_xpev_NonControllingInterestAxis_822847" xlink:to="loc_xpev_NonControllingInterestDomain_822849" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_NonControllingInterestDomain" xlink:label="loc_xpev_NonControllingInterestDomain_822849_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_xpev_NonControllingInterestAxis_822847" xlink:to="loc_xpev_NonControllingInterestDomain_822849_default" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MinorityInterestOwnershipPercentageByNoncontrollingOwners" xlink:label="loc_us-gaap_MinorityInterestOwnershipPercentageByNoncontrollingOwners_818372" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_AccountsPayableAndAccruedLiabilitiesCurrentLineItems_787542" xlink:to="loc_us-gaap_MinorityInterestOwnershipPercentageByNoncontrollingOwners_818372" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_PayableToNonControllingInterestForLimitedPartnershipInterest" xlink:label="loc_xpev_PayableToNonControllingInterestForLimitedPartnershipInterest_787544" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_AccountsPayableAndAccruedLiabilitiesCurrentLineItems_787542" xlink:to="loc_xpev_PayableToNonControllingInterestForLimitedPartnershipInterest_787544" use="optional" order="16" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/BorrowingsAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_DebtDisclosureLineItems" xlink:label="loc_xpev_DebtDisclosureLineItems_787682" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_DebtDisclosureTable" xlink:label="loc_xpev_DebtDisclosureTable_787651" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_xpev_DebtDisclosureLineItems_787682" xlink:to="loc_xpev_DebtDisclosureTable_787651" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShortTermDebtTypeAxis" xlink:label="loc_us-gaap_ShortTermDebtTypeAxis_787655" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_DebtDisclosureTable_787651" xlink:to="loc_us-gaap_ShortTermDebtTypeAxis_787655" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShortTermDebtTypeDomain" xlink:label="loc_us-gaap_ShortTermDebtTypeDomain_787657" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ShortTermDebtTypeAxis_787655" xlink:to="loc_us-gaap_ShortTermDebtTypeDomain_787657" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShortTermDebtTypeDomain" xlink:label="loc_us-gaap_ShortTermDebtTypeDomain_787657_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ShortTermDebtTypeAxis_787655" xlink:to="loc_us-gaap_ShortTermDebtTypeDomain_787657_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_OtherShortTermLoansPayableToBanksMember" xlink:label="loc_xpev_OtherShortTermLoansPayableToBanksMember_787658" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShortTermDebtTypeDomain_787657" xlink:to="loc_xpev_OtherShortTermLoansPayableToBanksMember_787658" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_dei_LegalEntityAxis_787666" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_DebtDisclosureTable_787651" xlink:to="loc_dei_LegalEntityAxis_787666" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_787667" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_787666" xlink:to="loc_dei_EntityDomain_787667" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_787667_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_787666" xlink:to="loc_dei_EntityDomain_787667_default" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ZhaoqingXiaopengAutomobileCoLtdzhaoqingXpengMember" xlink:label="loc_xpev_ZhaoqingXiaopengAutomobileCoLtdzhaoqingXpengMember_787668" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_787667" xlink:to="loc_xpev_ZhaoqingXiaopengAutomobileCoLtdzhaoqingXpengMember_787668" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongtermDebtTypeAxis" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_787659" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_DebtDisclosureTable_787651" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_787659" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_787660" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_787659" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_787660" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_787660_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_787659" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_787660_default" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_LongTermDebtAgreementWithBankInPeoplesRepublicOfChinaMember" xlink:label="loc_xpev_LongTermDebtAgreementWithBankInPeoplesRepublicOfChinaMember_787661" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_787660" xlink:to="loc_xpev_LongTermDebtAgreementWithBankInPeoplesRepublicOfChinaMember_787661" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LineOfCreditFacilityAxis" xlink:label="loc_us-gaap_LineOfCreditFacilityAxis_787675" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_DebtDisclosureTable_787651" xlink:to="loc_us-gaap_LineOfCreditFacilityAxis_787675" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LineOfCreditFacilityLenderDomain" xlink:label="loc_us-gaap_LineOfCreditFacilityLenderDomain_787676" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LineOfCreditFacilityAxis_787675" xlink:to="loc_us-gaap_LineOfCreditFacilityLenderDomain_787676" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LineOfCreditFacilityLenderDomain" xlink:label="loc_us-gaap_LineOfCreditFacilityLenderDomain_787676_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LineOfCreditFacilityAxis_787675" xlink:to="loc_us-gaap_LineOfCreditFacilityLenderDomain_787676_default" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ZhaoqingHightechZoneConstructionInvestmentDevelopmentCoLtdMember" xlink:label="loc_xpev_ZhaoqingHightechZoneConstructionInvestmentDevelopmentCoLtdMember_787679" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_787676" xlink:to="loc_xpev_ZhaoqingHightechZoneConstructionInvestmentDevelopmentCoLtdMember_787679" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_BanksInPeoplesRepublicOfChinaMember" xlink:label="loc_xpev_BanksInPeoplesRepublicOfChinaMember_863723" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_787676" xlink:to="loc_xpev_BanksInPeoplesRepublicOfChinaMember_863723" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ZhaoqingHightechZoneLoanOneMember" xlink:label="loc_xpev_ZhaoqingHightechZoneLoanOneMember_863724" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_787676" xlink:to="loc_xpev_ZhaoqingHightechZoneLoanOneMember_863724" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ZhaoqingHightechZoneLoanTwoMember" xlink:label="loc_xpev_ZhaoqingHightechZoneLoanTwoMember_863725" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_787676" xlink:to="loc_xpev_ZhaoqingHightechZoneLoanTwoMember_863725" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_BankLoanMember" xlink:label="loc_xpev_BankLoanMember_882709" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLenderDomain_787676" xlink:to="loc_xpev_BankLoanMember_882709" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CreditFacilityAxis" xlink:label="loc_us-gaap_CreditFacilityAxis_787671" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_DebtDisclosureTable_787651" xlink:to="loc_us-gaap_CreditFacilityAxis_787671" use="optional" order="22" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_787672" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_787671" xlink:to="loc_us-gaap_CreditFacilityDomain_787672" use="optional" order="23" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_787672_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_787671" xlink:to="loc_us-gaap_CreditFacilityDomain_787672_default" use="optional" order="24" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LineOfCreditMember" xlink:label="loc_us-gaap_LineOfCreditMember_787673" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_787672" xlink:to="loc_us-gaap_LineOfCreditMember_787673" use="optional" order="25" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_787662" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_DebtDisclosureTable_787651" xlink:to="loc_srt_RangeAxis_787662" use="optional" order="26" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_787663" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_787662" xlink:to="loc_srt_RangeMember_787663" use="optional" order="27" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_787663_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_787662" xlink:to="loc_srt_RangeMember_787663_default" use="optional" order="28" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_787665" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_787663" xlink:to="loc_srt_MinimumMember_787665" use="optional" order="29" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_787664" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_787663" xlink:to="loc_srt_MaximumMember_787664" use="optional" order="30" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BalanceSheetLocationAxis" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_989384" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_DebtDisclosureTable_787651" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_989384" use="optional" order="31" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_989385" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_989384" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_989385" use="optional" order="32" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_989385_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_989384" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_989385_default" use="optional" order="33" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherNoncurrentLiabilitiesMember" xlink:label="loc_us-gaap_OtherNoncurrentLiabilitiesMember_989386" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_989385" xlink:to="loc_us-gaap_OtherNoncurrentLiabilitiesMember_989386" use="optional" order="34" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShortTermBankLoansAndNotesPayable" xlink:label="loc_us-gaap_ShortTermBankLoansAndNotesPayable_787686" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DebtDisclosureLineItems_787682" xlink:to="loc_us-gaap_ShortTermBankLoansAndNotesPayable_787686" use="optional" order="35" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentInterestRateEffectivePercentage" xlink:label="loc_us-gaap_DebtInstrumentInterestRateEffectivePercentage_787687" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DebtDisclosureLineItems_787682" xlink:to="loc_us-gaap_DebtInstrumentInterestRateEffectivePercentage_787687" use="optional" order="36" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebt" xlink:label="loc_us-gaap_LongTermDebt_788194" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DebtDisclosureLineItems_787682" xlink:to="loc_us-gaap_LongTermDebt_788194" use="optional" order="37" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtPercentageBearingVariableInterestRate" xlink:label="loc_us-gaap_LongTermDebtPercentageBearingVariableInterestRate_787689" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DebtDisclosureLineItems_787682" xlink:to="loc_us-gaap_LongTermDebtPercentageBearingVariableInterestRate_787689" use="optional" order="38" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentMaturityDateRangeStart1" xlink:label="loc_us-gaap_DebtInstrumentMaturityDateRangeStart1_787690" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DebtDisclosureLineItems_787682" xlink:to="loc_us-gaap_DebtInstrumentMaturityDateRangeStart1_787690" use="optional" order="39" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentMaturityDateRangeEnd1" xlink:label="loc_us-gaap_DebtInstrumentMaturityDateRangeEnd1_787691" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DebtDisclosureLineItems_787682" xlink:to="loc_us-gaap_DebtInstrumentMaturityDateRangeEnd1_787691" use="optional" order="40" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtCurrent" xlink:label="loc_us-gaap_LongTermDebtCurrent_787692" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DebtDisclosureLineItems_787682" xlink:to="loc_us-gaap_LongTermDebtCurrent_787692" use="optional" order="41" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_787693" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DebtDisclosureLineItems_787682" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_787693" use="optional" order="42" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermLineOfCredit" xlink:label="loc_us-gaap_LongTermLineOfCredit_787694" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DebtDisclosureLineItems_787682" xlink:to="loc_us-gaap_LongTermLineOfCredit_787694" use="optional" order="43" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LineOfCreditFacilityInterestRateAtPeriodEnd" xlink:label="loc_us-gaap_LineOfCreditFacilityInterestRateAtPeriodEnd_787700" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DebtDisclosureLineItems_787682" xlink:to="loc_us-gaap_LineOfCreditFacilityInterestRateAtPeriodEnd_787700" use="optional" order="44" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermLoansFromBank" xlink:label="loc_us-gaap_LongTermLoansFromBank_863722" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DebtDisclosureLineItems_787682" xlink:to="loc_us-gaap_LongTermLoansFromBank_863722" use="optional" order="45" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_LineOfCreditFacilityExpirationDate" xlink:label="loc_xpev_LineOfCreditFacilityExpirationDate_882776" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DebtDisclosureLineItems_787682" xlink:to="loc_xpev_LineOfCreditFacilityExpirationDate_882776" use="optional" order="46" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentAnnualPrincipalPayment" xlink:label="loc_us-gaap_DebtInstrumentAnnualPrincipalPayment_989387" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DebtDisclosureLineItems_787682" xlink:to="loc_us-gaap_DebtInstrumentAnnualPrincipalPayment_989387" use="optional" order="47" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/OtherNonCurrentLiabilitiesSummaryOfOtherNonCurrentLiabilitiesParentheticalDetail">
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_989317" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_989314" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_989317" xlink:to="loc_us-gaap_StatementTable_989314" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_LimitedLiabilityPartnershipAxis" xlink:label="loc_xpev_LimitedLiabilityPartnershipAxis_989320" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_989314" xlink:to="loc_xpev_LimitedLiabilityPartnershipAxis_989320" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_LimitedLiabilityPartnershipDomain" xlink:label="loc_xpev_LimitedLiabilityPartnershipDomain_989321" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_xpev_LimitedLiabilityPartnershipAxis_989320" xlink:to="loc_xpev_LimitedLiabilityPartnershipDomain_989321" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_LimitedLiabilityPartnershipDomain" xlink:label="loc_xpev_LimitedLiabilityPartnershipDomain_989321_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_xpev_LimitedLiabilityPartnershipAxis_989320" xlink:to="loc_xpev_LimitedLiabilityPartnershipDomain_989321_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_KunpengChuangyeLlpMember" xlink:label="loc_xpev_KunpengChuangyeLlpMember_989322" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_LimitedLiabilityPartnershipDomain_989321" xlink:to="loc_xpev_KunpengChuangyeLlpMember_989322" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_OwnershipAxis" xlink:label="loc_srt_OwnershipAxis_989323" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_989314" xlink:to="loc_srt_OwnershipAxis_989323" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_OwnershipDomain" xlink:label="loc_srt_OwnershipDomain_989324" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_OwnershipAxis_989323" xlink:to="loc_srt_OwnershipDomain_989324" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_OwnershipDomain" xlink:label="loc_srt_OwnershipDomain_989324_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_OwnershipAxis_989323" xlink:to="loc_srt_OwnershipDomain_989324_default" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ChengxingMember" xlink:label="loc_xpev_ChengxingMember_989325" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_OwnershipDomain_989324" xlink:to="loc_xpev_ChengxingMember_989325" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ChengxingMember" xlink:label="loc_xpev_ChengxingMember_989342" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_989340" xlink:to="loc_xpev_ChengxingMember_989342" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_GuangzhouXiaopengAutomaticDrivingTechnologyCoLtdMember" xlink:label="loc_xpev_GuangzhouXiaopengAutomaticDrivingTechnologyCoLtdMember_989326" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_OwnershipDomain_989324" xlink:to="loc_xpev_GuangzhouXiaopengAutomaticDrivingTechnologyCoLtdMember_989326" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_GuangzhouGetInvestmentMember" xlink:label="loc_xpev_GuangzhouGetInvestmentMember_989328" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_OwnershipDomain_989324" xlink:to="loc_xpev_GuangzhouGetInvestmentMember_989328" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_GuangzhouGetInvestmentMember" xlink:label="loc_xpev_GuangzhouGetInvestmentMember_989343" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_InvestorDomain_989337" xlink:to="loc_xpev_GuangzhouGetInvestmentMember_989343" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OptionIndexedToIssuersEquityTypeAxis" xlink:label="loc_us-gaap_OptionIndexedToIssuersEquityTypeAxis_989329" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_989314" xlink:to="loc_us-gaap_OptionIndexedToIssuersEquityTypeAxis_989329" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OptionIndexedToIssuersEquityTypeDomain" xlink:label="loc_us-gaap_OptionIndexedToIssuersEquityTypeDomain_989330" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_OptionIndexedToIssuersEquityTypeAxis_989329" xlink:to="loc_us-gaap_OptionIndexedToIssuersEquityTypeDomain_989330" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OptionIndexedToIssuersEquityTypeDomain" xlink:label="loc_us-gaap_OptionIndexedToIssuersEquityTypeDomain_989330_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_OptionIndexedToIssuersEquityTypeAxis_989329" xlink:to="loc_us-gaap_OptionIndexedToIssuersEquityTypeDomain_989330_default" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CallOptionMember" xlink:label="loc_us-gaap_CallOptionMember_989331" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OptionIndexedToIssuersEquityTypeDomain_989330" xlink:to="loc_us-gaap_CallOptionMember_989331" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_989332" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_989314" xlink:to="loc_srt_RangeAxis_989332" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_989333" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_989332" xlink:to="loc_srt_RangeMember_989333" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_989333_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_989332" xlink:to="loc_srt_RangeMember_989333_default" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_989334" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_989333" xlink:to="loc_srt_MaximumMember_989334" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_989335" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_989333" xlink:to="loc_srt_MinimumMember_989335" use="optional" order="22" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_InvestorAxis" xlink:label="loc_xpev_InvestorAxis_989336" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_989314" xlink:to="loc_xpev_InvestorAxis_989336" use="optional" order="23" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_InvestorDomain" xlink:label="loc_xpev_InvestorDomain_989337" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_xpev_InvestorAxis_989336" xlink:to="loc_xpev_InvestorDomain_989337" use="optional" order="24" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_InvestorDomain" xlink:label="loc_xpev_InvestorDomain_989337_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_xpev_InvestorAxis_989336" xlink:to="loc_xpev_InvestorDomain_989337_default" use="optional" order="25" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_GuangdongUTrustMember" xlink:label="loc_xpev_GuangdongUTrustMember_989338" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_InvestorDomain_989337" xlink:to="loc_xpev_GuangdongUTrustMember_989338" use="optional" order="26" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_989339" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_989314" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_989339" use="optional" order="27" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_989340" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_989339" xlink:to="loc_us-gaap_RelatedPartyDomain_989340" use="optional" order="28" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_989340_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_989339" xlink:to="loc_us-gaap_RelatedPartyDomain_989340_default" use="optional" order="29" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_TermOfTheOperatingAgreementWithLimitedLiabilityPartnership" xlink:label="loc_xpev_TermOfTheOperatingAgreementWithLimitedLiabilityPartnership_989344" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_989317" xlink:to="loc_xpev_TermOfTheOperatingAgreementWithLimitedLiabilityPartnership_989344" use="optional" order="30" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsToAcquireLimitedPartnershipInterests" xlink:label="loc_us-gaap_PaymentsToAcquireLimitedPartnershipInterests_989345" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_989317" xlink:to="loc_us-gaap_PaymentsToAcquireLimitedPartnershipInterests_989345" use="optional" order="31" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LimitedLiabilityCompanyLLCOrLimitedPartnershipLPMembersOrLimitedPartnersOwnershipInterest" xlink:label="loc_us-gaap_LimitedLiabilityCompanyLLCOrLimitedPartnershipLPMembersOrLimitedPartnersOwnershipInterest_989346" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_989317" xlink:to="loc_us-gaap_LimitedLiabilityCompanyLLCOrLimitedPartnershipLPMembersOrLimitedPartnersOwnershipInterest_989346" use="optional" order="32" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_PayableToNoncontrollingInterestNonCurrent" xlink:label="loc_xpev_PayableToNoncontrollingInterestNonCurrent_989347" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_989317" xlink:to="loc_xpev_PayableToNoncontrollingInterestNonCurrent_989347" use="optional" order="33" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_InterestRateOnLimitedLiabilityPartnershipInvestment" xlink:label="loc_xpev_InterestRateOnLimitedLiabilityPartnershipInvestment_989348" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_989317" xlink:to="loc_xpev_InterestRateOnLimitedLiabilityPartnershipInvestment_989348" use="optional" order="34" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromMinorityShareholders" xlink:label="loc_us-gaap_ProceedsFromMinorityShareholders_989349" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_989317" xlink:to="loc_us-gaap_ProceedsFromMinorityShareholders_989349" use="optional" order="35" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MinorityInterestOwnershipPercentageByNoncontrollingOwners" xlink:label="loc_us-gaap_MinorityInterestOwnershipPercentageByNoncontrollingOwners_989350" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_989317" xlink:to="loc_us-gaap_MinorityInterestOwnershipPercentageByNoncontrollingOwners_989350" use="optional" order="36" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OptionIndexedToIssuersEquityRedeemableStockRedemptionRequirementsAmount1" xlink:label="loc_us-gaap_OptionIndexedToIssuersEquityRedeemableStockRedemptionRequirementsAmount1_989351" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_989317" xlink:to="loc_us-gaap_OptionIndexedToIssuersEquityRedeemableStockRedemptionRequirementsAmount1_989351" use="optional" order="37" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_NonControllingInterestCommonStockStrikePriceInterestRatePayablePercentage" xlink:label="loc_xpev_NonControllingInterestCommonStockStrikePriceInterestRatePayablePercentage_989352" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_989317" xlink:to="loc_xpev_NonControllingInterestCommonStockStrikePriceInterestRatePayablePercentage_989352" use="optional" order="38" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/RevenuesSummaryOfRevenuesDetail">
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DisaggregationOfRevenueLineItems" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_787238" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DisaggregationOfRevenueTable" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_787237" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_787238" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_787237" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ProductOrServiceAxis" xlink:label="loc_srt_ProductOrServiceAxis_787239" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_787237" xlink:to="loc_srt_ProductOrServiceAxis_787239" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_787240" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_787239" xlink:to="loc_srt_ProductsAndServicesDomain_787240" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_787240_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_787239" xlink:to="loc_srt_ProductsAndServicesDomain_787240_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_VehicleMember" xlink:label="loc_xpev_VehicleMember_787241" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_787240" xlink:to="loc_xpev_VehicleMember_787241" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ServicesAndOthersMember" xlink:label="loc_xpev_ServicesAndOthersMember_787242" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_787240" xlink:to="loc_xpev_ServicesAndOthersMember_787242" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Revenues" xlink:label="loc_us-gaap_Revenues_787243" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_787238" xlink:to="loc_us-gaap_Revenues_787243" use="optional" order="7" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/DeferredRevenueAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CapitalizedContractCostLineItems" xlink:label="loc_us-gaap_CapitalizedContractCostLineItems_787194" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CapitalizedContractCostTable" xlink:label="loc_us-gaap_CapitalizedContractCostTable_787186" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_CapitalizedContractCostLineItems_787194" xlink:to="loc_us-gaap_CapitalizedContractCostTable_787186" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ProductOrServiceAxis" xlink:label="loc_srt_ProductOrServiceAxis_787190" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_CapitalizedContractCostTable_787186" xlink:to="loc_srt_ProductOrServiceAxis_787190" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_787191" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_787190" xlink:to="loc_srt_ProductsAndServicesDomain_787191" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_787191_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_787190" xlink:to="loc_srt_ProductsAndServicesDomain_787191_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_VehicleMember" xlink:label="loc_xpev_VehicleMember_787192" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_787191" xlink:to="loc_xpev_VehicleMember_787192" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_RevenuePerformanceObligationSatisfiedOverTimePercentage" xlink:label="loc_xpev_RevenuePerformanceObligationSatisfiedOverTimePercentage_787199" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CapitalizedContractCostLineItems_787194" xlink:to="loc_xpev_RevenuePerformanceObligationSatisfiedOverTimePercentage_787199" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_RevenuePerformanceObligationSatisfiedOverTimeExplanation" xlink:label="loc_xpev_RevenuePerformanceObligationSatisfiedOverTimeExplanation_787201" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CapitalizedContractCostLineItems_787194" xlink:to="loc_xpev_RevenuePerformanceObligationSatisfiedOverTimeExplanation_787201" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationPercentage" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationPercentage_787203" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CapitalizedContractCostLineItems_787194" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationPercentage_787203" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionExplanation" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionExplanation_787204" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CapitalizedContractCostLineItems_787194" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionExplanation_787204" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_FreeChargingPeriod" xlink:label="loc_xpev_FreeChargingPeriod_787196" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CapitalizedContractCostLineItems_787194" xlink:to="loc_xpev_FreeChargingPeriod_787196" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_FreeChargingKilometers" xlink:label="loc_xpev_FreeChargingKilometers_787197" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CapitalizedContractCostLineItems_787194" xlink:to="loc_xpev_FreeChargingKilometers_787197" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredRevenue" xlink:label="loc_us-gaap_DeferredRevenue_787198" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CapitalizedContractCostLineItems_787194" xlink:to="loc_us-gaap_DeferredRevenue_787198" use="optional" order="12" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/ManufacturingInCollaborationWithHaimaAutoAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OffsettingAssetsLineItems" xlink:label="loc_us-gaap_OffsettingAssetsLineItems_787125" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfCollaborativeArrangementsAndNoncollaborativeArrangementTransactionsTable" xlink:label="loc_us-gaap_ScheduleOfCollaborativeArrangementsAndNoncollaborativeArrangementTransactionsTable_787115" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_OffsettingAssetsLineItems_787125" xlink:to="loc_us-gaap_ScheduleOfCollaborativeArrangementsAndNoncollaborativeArrangementTransactionsTable_787115" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TypeOfArrangementAxis" xlink:label="loc_us-gaap_TypeOfArrangementAxis_787116" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfCollaborativeArrangementsAndNoncollaborativeArrangementTransactionsTable_787115" xlink:to="loc_us-gaap_TypeOfArrangementAxis_787116" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_787117" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TypeOfArrangementAxis_787116" xlink:to="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_787117" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_787117_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TypeOfArrangementAxis_787116" xlink:to="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_787117_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CollaborativeArrangementMember" xlink:label="loc_us-gaap_CollaborativeArrangementMember_787118" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_787117" xlink:to="loc_us-gaap_CollaborativeArrangementMember_787118" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_CounterpartyNameAxis" xlink:label="loc_srt_CounterpartyNameAxis_787119" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfCollaborativeArrangementsAndNoncollaborativeArrangementTransactionsTable_787115" xlink:to="loc_srt_CounterpartyNameAxis_787119" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="loc_srt_RepurchaseAgreementCounterpartyNameDomain_787122" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CounterpartyNameAxis_787119" xlink:to="loc_srt_RepurchaseAgreementCounterpartyNameDomain_787122" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="loc_srt_RepurchaseAgreementCounterpartyNameDomain_787122_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CounterpartyNameAxis_787119" xlink:to="loc_srt_RepurchaseAgreementCounterpartyNameDomain_787122_default" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_HaimaAutoMember" xlink:label="loc_xpev_HaimaAutoMember_787124" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RepurchaseAgreementCounterpartyNameDomain_787122" xlink:to="loc_xpev_HaimaAutoMember_787124" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_CollaborativeArrangementDateOfContractExpiration" xlink:label="loc_xpev_CollaborativeArrangementDateOfContractExpiration_787127" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OffsettingAssetsLineItems_787125" xlink:to="loc_xpev_CollaborativeArrangementDateOfContractExpiration_787127" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_CollaborativeArrangementDateOfContract" xlink:label="loc_xpev_CollaborativeArrangementDateOfContract_787126" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OffsettingAssetsLineItems_787125" xlink:to="loc_xpev_CollaborativeArrangementDateOfContract_787126" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_AnnualProductionCapacity" xlink:label="loc_xpev_AnnualProductionCapacity_787128" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OffsettingAssetsLineItems_787125" xlink:to="loc_xpev_AnnualProductionCapacity_787128" use="optional" order="12" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/ConvertibleRedeemablePreferredSharesAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ConvertibleRedeemablePreferredSharesLineItems" xlink:label="loc_xpev_ConvertibleRedeemablePreferredSharesLineItems_787812" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ConvertibleRedeemablePreferredSharesTable" xlink:label="loc_xpev_ConvertibleRedeemablePreferredSharesTable_787791" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_xpev_ConvertibleRedeemablePreferredSharesLineItems_787812" xlink:to="loc_xpev_ConvertibleRedeemablePreferredSharesTable_787791" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_PreferredStockRedemptionTypeAxis" xlink:label="loc_xpev_PreferredStockRedemptionTypeAxis_787801" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_ConvertibleRedeemablePreferredSharesTable_787791" xlink:to="loc_xpev_PreferredStockRedemptionTypeAxis_787801" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_PreferredStockRedemptionTypeDomain" xlink:label="loc_xpev_PreferredStockRedemptionTypeDomain_787802" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_xpev_PreferredStockRedemptionTypeAxis_787801" xlink:to="loc_xpev_PreferredStockRedemptionTypeDomain_787802" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_PreferredStockRedemptionTypeDomain" xlink:label="loc_xpev_PreferredStockRedemptionTypeDomain_787802_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_xpev_PreferredStockRedemptionTypeAxis_787801" xlink:to="loc_xpev_PreferredStockRedemptionTypeDomain_787802_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_PreferredStockRedemptionOneMember" xlink:label="loc_xpev_PreferredStockRedemptionOneMember_787803" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_PreferredStockRedemptionTypeDomain_787802" xlink:to="loc_xpev_PreferredStockRedemptionOneMember_787803" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_PreferredStockRedemptionTwoMember" xlink:label="loc_xpev_PreferredStockRedemptionTwoMember_788246" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_PreferredStockRedemptionTypeDomain_787802" xlink:to="loc_xpev_PreferredStockRedemptionTwoMember_788246" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_787792" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_ConvertibleRedeemablePreferredSharesTable_787791" xlink:to="loc_us-gaap_StatementClassOfStockAxis_787792" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_787793" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_787792" xlink:to="loc_us-gaap_ClassOfStockDomain_787793" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_787793_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_787792" xlink:to="loc_us-gaap_ClassOfStockDomain_787793_default" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SeriesB2PreferredStockMember" xlink:label="loc_xpev_SeriesB2PreferredStockMember_787799" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_787793" xlink:to="loc_xpev_SeriesB2PreferredStockMember_787799" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SeriesCPreferredStockMember" xlink:label="loc_us-gaap_SeriesCPreferredStockMember_787800" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_787793" xlink:to="loc_us-gaap_SeriesCPreferredStockMember_787800" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SeriesA2PreferredStockMember" xlink:label="loc_xpev_SeriesA2PreferredStockMember_787796" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_787793" xlink:to="loc_xpev_SeriesA2PreferredStockMember_787796" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SeriesBPreferredStockMember" xlink:label="loc_us-gaap_SeriesBPreferredStockMember_787797" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_787793" xlink:to="loc_us-gaap_SeriesBPreferredStockMember_787797" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SeriesB1PreferredStockMember" xlink:label="loc_xpev_SeriesB1PreferredStockMember_787798" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_787793" xlink:to="loc_xpev_SeriesB1PreferredStockMember_787798" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SeriesAPreferredStockMember" xlink:label="loc_us-gaap_SeriesAPreferredStockMember_787794" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_787793" xlink:to="loc_us-gaap_SeriesAPreferredStockMember_787794" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SeriesA1PreferredStockMember" xlink:label="loc_xpev_SeriesA1PreferredStockMember_787795" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_787793" xlink:to="loc_xpev_SeriesA1PreferredStockMember_787795" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_LiquidationTypeAxis" xlink:label="loc_xpev_LiquidationTypeAxis_787805" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_ConvertibleRedeemablePreferredSharesTable_787791" xlink:to="loc_xpev_LiquidationTypeAxis_787805" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_LiquidationTypeDomain" xlink:label="loc_xpev_LiquidationTypeDomain_787806" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_xpev_LiquidationTypeAxis_787805" xlink:to="loc_xpev_LiquidationTypeDomain_787806" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_LiquidationTypeDomain" xlink:label="loc_xpev_LiquidationTypeDomain_787806_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_xpev_LiquidationTypeAxis_787805" xlink:to="loc_xpev_LiquidationTypeDomain_787806_default" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_LiquidationOneMember" xlink:label="loc_xpev_LiquidationOneMember_787808" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_LiquidationTypeDomain_787806" xlink:to="loc_xpev_LiquidationOneMember_787808" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_LiquidationTwoMember" xlink:label="loc_xpev_LiquidationTwoMember_787809" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_LiquidationTypeDomain_787806" xlink:to="loc_xpev_LiquidationTwoMember_787809" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction" xlink:label="loc_us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction_787814" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ConvertibleRedeemablePreferredSharesLineItems_787812" xlink:to="loc_us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction_787814" use="optional" order="22" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SaleOfStockConsiderationReceivedOnTransaction" xlink:label="loc_us-gaap_SaleOfStockConsiderationReceivedOnTransaction_787815" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ConvertibleRedeemablePreferredSharesLineItems_787812" xlink:to="loc_us-gaap_SaleOfStockConsiderationReceivedOnTransaction_787815" use="optional" order="23" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SaleOfStockPricePerShare" xlink:label="loc_us-gaap_SaleOfStockPricePerShare_787816" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ConvertibleRedeemablePreferredSharesLineItems_787812" xlink:to="loc_us-gaap_SaleOfStockPricePerShare_787816" use="optional" order="24" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesStockSplits" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesStockSplits_787819" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ConvertibleRedeemablePreferredSharesLineItems_787812" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockSplits_787819" use="optional" order="25" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PreferredStockParOrStatedValuePerShare" xlink:label="loc_us-gaap_PreferredStockParOrStatedValuePerShare_787820" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ConvertibleRedeemablePreferredSharesLineItems_787812" xlink:to="loc_us-gaap_PreferredStockParOrStatedValuePerShare_787820" use="optional" order="26" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_FundRedemptionPrice" xlink:label="loc_xpev_FundRedemptionPrice_787842" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ConvertibleRedeemablePreferredSharesLineItems_787812" xlink:to="loc_xpev_FundRedemptionPrice_787842" use="optional" order="27" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_PercentOfHoldersForSeries" xlink:label="loc_xpev_PercentOfHoldersForSeries_787830" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ConvertibleRedeemablePreferredSharesLineItems_787812" xlink:to="loc_xpev_PercentOfHoldersForSeries_787830" use="optional" order="28" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_PreferredStockRedemptionPricePercent" xlink:label="loc_xpev_PreferredStockRedemptionPricePercent_787832" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ConvertibleRedeemablePreferredSharesLineItems_787812" xlink:to="loc_xpev_PreferredStockRedemptionPricePercent_787832" use="optional" order="29" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_787835" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ConvertibleRedeemablePreferredSharesLineItems_787812" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_787835" use="optional" order="30" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_PreferredStockLiquidationPercent" xlink:label="loc_xpev_PreferredStockLiquidationPercent_787838" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ConvertibleRedeemablePreferredSharesLineItems_787812" xlink:to="loc_xpev_PreferredStockLiquidationPercent_787838" use="optional" order="31" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_StockLiquidationPercent" xlink:label="loc_xpev_StockLiquidationPercent_787839" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ConvertibleRedeemablePreferredSharesLineItems_787812" xlink:to="loc_xpev_StockLiquidationPercent_787839" use="optional" order="32" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_DividendRightPercent" xlink:label="loc_xpev_DividendRightPercent_787840" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ConvertibleRedeemablePreferredSharesLineItems_787812" xlink:to="loc_xpev_DividendRightPercent_787840" use="optional" order="33" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_FundRedemptionPriceAnnualizedInterestRate" xlink:label="loc_xpev_FundRedemptionPriceAnnualizedInterestRate_787843" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ConvertibleRedeemablePreferredSharesLineItems_787812" xlink:to="loc_xpev_FundRedemptionPriceAnnualizedInterestRate_787843" use="optional" order="34" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquityReverseStockSplit" xlink:label="loc_us-gaap_StockholdersEquityReverseStockSplit_788180" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ConvertibleRedeemablePreferredSharesLineItems_787812" xlink:to="loc_us-gaap_StockholdersEquityReverseStockSplit_788180" use="optional" order="35" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TemporaryEquityCarryingAmountAttributableToParent" xlink:label="loc_us-gaap_TemporaryEquityCarryingAmountAttributableToParent_989411" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ConvertibleRedeemablePreferredSharesLineItems_787812" xlink:to="loc_us-gaap_TemporaryEquityCarryingAmountAttributableToParent_989411" use="optional" order="36" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/ConvertibleRedeemablePreferredSharesSummaryOfPreferredSharesActivitiesDetails">
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_DisclosureOfPreferredSharesActivitiesLineItems" xlink:label="loc_xpev_DisclosureOfPreferredSharesActivitiesLineItems_787831" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_DisclosureOfPreferredSharesActivitiesTable" xlink:label="loc_xpev_DisclosureOfPreferredSharesActivitiesTable_787813" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_xpev_DisclosureOfPreferredSharesActivitiesLineItems_787831" xlink:to="loc_xpev_DisclosureOfPreferredSharesActivitiesTable_787813" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_787817" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_DisclosureOfPreferredSharesActivitiesTable_787813" xlink:to="loc_us-gaap_StatementClassOfStockAxis_787817" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_787818" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_787817" xlink:to="loc_us-gaap_ClassOfStockDomain_787818" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_787818_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_787817" xlink:to="loc_us-gaap_ClassOfStockDomain_787818_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SeriesA1PreferredStockMember" xlink:label="loc_xpev_SeriesA1PreferredStockMember_787824" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_787818" xlink:to="loc_xpev_SeriesA1PreferredStockMember_787824" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RedeemablePreferredStockMember" xlink:label="loc_us-gaap_RedeemablePreferredStockMember_787822" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_787818" xlink:to="loc_us-gaap_RedeemablePreferredStockMember_787822" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SeriesAPreferredStockMember" xlink:label="loc_us-gaap_SeriesAPreferredStockMember_787823" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_787818" xlink:to="loc_us-gaap_SeriesAPreferredStockMember_787823" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SeriesBPreferredStockMember" xlink:label="loc_us-gaap_SeriesBPreferredStockMember_787828" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_787818" xlink:to="loc_us-gaap_SeriesBPreferredStockMember_787828" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SeriesA2PreferredStockMember" xlink:label="loc_xpev_SeriesA2PreferredStockMember_787825" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_787818" xlink:to="loc_xpev_SeriesA2PreferredStockMember_787825" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SeriesB1PreferredStockMember" xlink:label="loc_xpev_SeriesB1PreferredStockMember_787826" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_787818" xlink:to="loc_xpev_SeriesB1PreferredStockMember_787826" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SeriesB2PreferredStockMember" xlink:label="loc_xpev_SeriesB2PreferredStockMember_787827" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_787818" xlink:to="loc_xpev_SeriesB2PreferredStockMember_787827" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SeriesCPreferredStockMember" xlink:label="loc_us-gaap_SeriesCPreferredStockMember_787829" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_787818" xlink:to="loc_us-gaap_SeriesCPreferredStockMember_787829" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PreferredStockSharesOutstanding" xlink:label="loc_us-gaap_PreferredStockSharesOutstanding_787833" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DisclosureOfPreferredSharesActivitiesLineItems_787831" xlink:to="loc_us-gaap_PreferredStockSharesOutstanding_787833" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PreferredStockValueOutstanding" xlink:label="loc_us-gaap_PreferredStockValueOutstanding_787836" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DisclosureOfPreferredSharesActivitiesLineItems_787831" xlink:to="loc_us-gaap_PreferredStockValueOutstanding_787836" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_IssuanceOfPreferredSharesOfSeriesA1AndA2Shares" xlink:label="loc_xpev_IssuanceOfPreferredSharesOfSeriesA1AndA2Shares_787841" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DisclosureOfPreferredSharesActivitiesLineItems_787831" xlink:to="loc_xpev_IssuanceOfPreferredSharesOfSeriesA1AndA2Shares_787841" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_AccretionOnPreferredSharesToRedemptionValue" xlink:label="loc_xpev_AccretionOnPreferredSharesToRedemptionValue_787854" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DisclosureOfPreferredSharesActivitiesLineItems_787831" xlink:to="loc_xpev_AccretionOnPreferredSharesToRedemptionValue_787854" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_DerecognitionOfEquityClassifiedAsPreferredShares" xlink:label="loc_xpev_DerecognitionOfEquityClassifiedAsPreferredShares_787855" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DisclosureOfPreferredSharesActivitiesLineItems_787831" xlink:to="loc_xpev_DerecognitionOfEquityClassifiedAsPreferredShares_787855" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_DerecognitionOfEquityClassifiedAsPreferredSharesValue" xlink:label="loc_xpev_DerecognitionOfEquityClassifiedAsPreferredSharesValue_787856" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DisclosureOfPreferredSharesActivitiesLineItems_787831" xlink:to="loc_xpev_DerecognitionOfEquityClassifiedAsPreferredSharesValue_787856" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_IssuanceOfPreferredSharesPostExtinguishmentValue" xlink:label="loc_xpev_IssuanceOfPreferredSharesPostExtinguishmentValue_787857" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DisclosureOfPreferredSharesActivitiesLineItems_787831" xlink:to="loc_xpev_IssuanceOfPreferredSharesPostExtinguishmentValue_787857" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_IssuanceOfPreferredSharesOfSeriesA1AndA2Value" xlink:label="loc_xpev_IssuanceOfPreferredSharesOfSeriesA1AndA2Value_787844" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DisclosureOfPreferredSharesActivitiesLineItems_787831" xlink:to="loc_xpev_IssuanceOfPreferredSharesOfSeriesA1AndA2Value_787844" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_DerecognitionOfEquityClassifiedAsRedeemableOrdinarySharesValue" xlink:label="loc_xpev_DerecognitionOfEquityClassifiedAsRedeemableOrdinarySharesValue_787876" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DisclosureOfPreferredSharesActivitiesLineItems_787831" xlink:to="loc_xpev_DerecognitionOfEquityClassifiedAsRedeemableOrdinarySharesValue_787876" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ExtinguishmentOfEquityUponTheCompletionOfTheIssuanceOfSeriesA1AndA2Value" xlink:label="loc_xpev_ExtinguishmentOfEquityUponTheCompletionOfTheIssuanceOfSeriesA1AndA2Value_787845" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DisclosureOfPreferredSharesActivitiesLineItems_787831" xlink:to="loc_xpev_ExtinguishmentOfEquityUponTheCompletionOfTheIssuanceOfSeriesA1AndA2Value_787845" use="optional" order="22" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_IssuanceOfPreferredSharesOfSeriesBShares" xlink:label="loc_xpev_IssuanceOfPreferredSharesOfSeriesBShares_787847" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DisclosureOfPreferredSharesActivitiesLineItems_787831" xlink:to="loc_xpev_IssuanceOfPreferredSharesOfSeriesBShares_787847" use="optional" order="23" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_IssuanceOfPreferredSharesOfSeriesBValue" xlink:label="loc_xpev_IssuanceOfPreferredSharesOfSeriesBValue_787848" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DisclosureOfPreferredSharesActivitiesLineItems_787831" xlink:to="loc_xpev_IssuanceOfPreferredSharesOfSeriesBValue_787848" use="optional" order="24" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ModificationOfEquityUponTheCompletionOfTheIssuanceOfSeriesBValue" xlink:label="loc_xpev_ModificationOfEquityUponTheCompletionOfTheIssuanceOfSeriesBValue_787849" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DisclosureOfPreferredSharesActivitiesLineItems_787831" xlink:to="loc_xpev_ModificationOfEquityUponTheCompletionOfTheIssuanceOfSeriesBValue_787849" use="optional" order="25" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ExtinguishmentOfEquityUponTheCompletionOfTheIssuanceOfSeriesBEquityValue" xlink:label="loc_xpev_ExtinguishmentOfEquityUponTheCompletionOfTheIssuanceOfSeriesBEquityValue_787850" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DisclosureOfPreferredSharesActivitiesLineItems_787831" xlink:to="loc_xpev_ExtinguishmentOfEquityUponTheCompletionOfTheIssuanceOfSeriesBEquityValue_787850" use="optional" order="26" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_RecognitionOfEquityAtFairValueUponTheCompletionOfTheIssuanceOfSeriesBValue" xlink:label="loc_xpev_RecognitionOfEquityAtFairValueUponTheCompletionOfTheIssuanceOfSeriesBValue_787851" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DisclosureOfPreferredSharesActivitiesLineItems_787831" xlink:to="loc_xpev_RecognitionOfEquityAtFairValueUponTheCompletionOfTheIssuanceOfSeriesBValue_787851" use="optional" order="27" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_IssuanceOfPreferredSharesOfSeriesB1AndB2Value" xlink:label="loc_xpev_IssuanceOfPreferredSharesOfSeriesB1AndB2Value_787852" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DisclosureOfPreferredSharesActivitiesLineItems_787831" xlink:to="loc_xpev_IssuanceOfPreferredSharesOfSeriesB1AndB2Value_787852" use="optional" order="28" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_IssuanceOfPreferredSharesOfSeriesB1AndB2Shares" xlink:label="loc_xpev_IssuanceOfPreferredSharesOfSeriesB1AndB2Shares_787853" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DisclosureOfPreferredSharesActivitiesLineItems_787831" xlink:to="loc_xpev_IssuanceOfPreferredSharesOfSeriesB1AndB2Shares_787853" use="optional" order="29" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_RecognitionOfEquityUponTheCompletionOfTheIssuanceOfSeriesA1AndA2Value" xlink:label="loc_xpev_RecognitionOfEquityUponTheCompletionOfTheIssuanceOfSeriesA1AndA2Value_787846" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DisclosureOfPreferredSharesActivitiesLineItems_787831" xlink:to="loc_xpev_RecognitionOfEquityUponTheCompletionOfTheIssuanceOfSeriesA1AndA2Value_787846" use="optional" order="30" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_RepurchaseOfThePreferredSharesValue" xlink:label="loc_xpev_RepurchaseOfThePreferredSharesValue_787862" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DisclosureOfPreferredSharesActivitiesLineItems_787831" xlink:to="loc_xpev_RepurchaseOfThePreferredSharesValue_787862" use="optional" order="31" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_AccretionOnPreferredSharesToRedemptionValuePostExtinguishmentValue" xlink:label="loc_xpev_AccretionOnPreferredSharesToRedemptionValuePostExtinguishmentValue_787860" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DisclosureOfPreferredSharesActivitiesLineItems_787831" xlink:to="loc_xpev_AccretionOnPreferredSharesToRedemptionValuePostExtinguishmentValue_787860" use="optional" order="32" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ConversionOfPreferredSharesToOrdinarySharesUponTheCompletionOfTheIpoShares" xlink:label="loc_xpev_ConversionOfPreferredSharesToOrdinarySharesUponTheCompletionOfTheIpoShares_787865" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DisclosureOfPreferredSharesActivitiesLineItems_787831" xlink:to="loc_xpev_ConversionOfPreferredSharesToOrdinarySharesUponTheCompletionOfTheIpoShares_787865" use="optional" order="33" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ConversionOfPreferredSharesToOrdinarySharesUponTheCompletionOfTheIpoValue" xlink:label="loc_xpev_ConversionOfPreferredSharesToOrdinarySharesUponTheCompletionOfTheIpoValue_787866" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DisclosureOfPreferredSharesActivitiesLineItems_787831" xlink:to="loc_xpev_ConversionOfPreferredSharesToOrdinarySharesUponTheCompletionOfTheIpoValue_787866" use="optional" order="34" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_IssuanceOfPreferredSharesOfSeriesCShares" xlink:label="loc_xpev_IssuanceOfPreferredSharesOfSeriesCShares_787868" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DisclosureOfPreferredSharesActivitiesLineItems_787831" xlink:to="loc_xpev_IssuanceOfPreferredSharesOfSeriesCShares_787868" use="optional" order="35" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_IssuanceOfPreferredSharesOfSeriesCValue" xlink:label="loc_xpev_IssuanceOfPreferredSharesOfSeriesCValue_787869" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DisclosureOfPreferredSharesActivitiesLineItems_787831" xlink:to="loc_xpev_IssuanceOfPreferredSharesOfSeriesCValue_787869" use="optional" order="36" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_IssuanceOfPreferredSharesPostExtinguishmentShares" xlink:label="loc_xpev_IssuanceOfPreferredSharesPostExtinguishmentShares_787859" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DisclosureOfPreferredSharesActivitiesLineItems_787831" xlink:to="loc_xpev_IssuanceOfPreferredSharesPostExtinguishmentShares_787859" use="optional" order="37" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_RepurchaseOfThePreferredShares" xlink:label="loc_xpev_RepurchaseOfThePreferredShares_787861" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DisclosureOfPreferredSharesActivitiesLineItems_787831" xlink:to="loc_xpev_RepurchaseOfThePreferredShares_787861" use="optional" order="38" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_DerecognitionOfEquityClassifiedAsRedeemableOrdinaryShares" xlink:label="loc_xpev_DerecognitionOfEquityClassifiedAsRedeemableOrdinaryShares_787874" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_DisclosureOfPreferredSharesActivitiesLineItems_787831" xlink:to="loc_xpev_DerecognitionOfEquityClassifiedAsRedeemableOrdinaryShares_787874" use="optional" order="39" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/OrdinarySharesAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_StockholdersEquityNoteLineItems" xlink:label="loc_xpev_StockholdersEquityNoteLineItems_786652" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_StockholdersEquityNoteTable" xlink:label="loc_xpev_StockholdersEquityNoteTable_786635" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_xpev_StockholdersEquityNoteLineItems_786652" xlink:to="loc_xpev_StockholdersEquityNoteTable_786635" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_786636" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_StockholdersEquityNoteTable_786635" xlink:to="loc_us-gaap_StatementClassOfStockAxis_786636" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_786637" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_786636" xlink:to="loc_us-gaap_ClassOfStockDomain_786637" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_786637_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_786636" xlink:to="loc_us-gaap_ClassOfStockDomain_786637_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonClassAMember" xlink:label="loc_us-gaap_CommonClassAMember_786639" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786637" xlink:to="loc_us-gaap_CommonClassAMember_786639" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonClassBMember" xlink:label="loc_us-gaap_CommonClassBMember_786640" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786637" xlink:to="loc_us-gaap_CommonClassBMember_786640" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonClassCMember" xlink:label="loc_us-gaap_CommonClassCMember_786641" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786637" xlink:to="loc_us-gaap_CommonClassCMember_786641" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_dei_LegalEntityAxis_786643" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_StockholdersEquityNoteTable_786635" xlink:to="loc_dei_LegalEntityAxis_786643" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_786644" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_786643" xlink:to="loc_dei_EntityDomain_786644" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_786644_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_786643" xlink:to="loc_dei_EntityDomain_786644_default" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SuccessSharingDevelopmentHoldingLimitedMember" xlink:label="loc_xpev_SuccessSharingDevelopmentHoldingLimitedMember_786645" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_786644" xlink:to="loc_xpev_SuccessSharingDevelopmentHoldingLimitedMember_786645" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_QuackHoldingLimitedMember" xlink:label="loc_xpev_QuackHoldingLimitedMember_786647" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_786644" xlink:to="loc_xpev_QuackHoldingLimitedMember_786647" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_XpengFortuneHoldingLimitedMember" xlink:label="loc_xpev_XpengFortuneHoldingLimitedMember_786648" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_786644" xlink:to="loc_xpev_XpengFortuneHoldingLimitedMember_786648" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsidiarySaleOfStockAxis" xlink:label="loc_us-gaap_SubsidiarySaleOfStockAxis_786649" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_StockholdersEquityNoteTable_786635" xlink:to="loc_us-gaap_SubsidiarySaleOfStockAxis_786649" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SaleOfStockNameOfTransactionDomain" xlink:label="loc_us-gaap_SaleOfStockNameOfTransactionDomain_786650" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsidiarySaleOfStockAxis_786649" xlink:to="loc_us-gaap_SaleOfStockNameOfTransactionDomain_786650" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SaleOfStockNameOfTransactionDomain" xlink:label="loc_us-gaap_SaleOfStockNameOfTransactionDomain_786650_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsidiarySaleOfStockAxis_786649" xlink:to="loc_us-gaap_SaleOfStockNameOfTransactionDomain_786650_default" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IPOMember" xlink:label="loc_us-gaap_IPOMember_786651" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleOfStockNameOfTransactionDomain_786650" xlink:to="loc_us-gaap_IPOMember_786651" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_FollowOnOfferingMember" xlink:label="loc_xpev_FollowOnOfferingMember_863673" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleOfStockNameOfTransactionDomain_786650" xlink:to="loc_xpev_FollowOnOfferingMember_863673" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ShareIssuedPeriodAxis" xlink:label="loc_xpev_ShareIssuedPeriodAxis_989272" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_StockholdersEquityNoteTable_786635" xlink:to="loc_xpev_ShareIssuedPeriodAxis_989272" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ShareIssuedPeriodDomain" xlink:label="loc_xpev_ShareIssuedPeriodDomain_989274" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_xpev_ShareIssuedPeriodAxis_989272" xlink:to="loc_xpev_ShareIssuedPeriodDomain_989274" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ShareIssuedPeriodDomain" xlink:label="loc_xpev_ShareIssuedPeriodDomain_989274_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_xpev_ShareIssuedPeriodAxis_989272" xlink:to="loc_xpev_ShareIssuedPeriodDomain_989274_default" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ShareIssuePeriodOneMember" xlink:label="loc_xpev_ShareIssuePeriodOneMember_989276" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_ShareIssuedPeriodDomain_989274" xlink:to="loc_xpev_ShareIssuePeriodOneMember_989276" use="optional" order="22" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_989278" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_StockholdersEquityNoteTable_786635" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_989278" use="optional" order="23" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_989279" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_989278" xlink:to="loc_us-gaap_EquityComponentDomain_989279" use="optional" order="24" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_989279_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_989278" xlink:to="loc_us-gaap_EquityComponentDomain_989279_default" use="optional" order="25" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TreasuryStockMember" xlink:label="loc_us-gaap_TreasuryStockMember_989281" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_989279" xlink:to="loc_us-gaap_TreasuryStockMember_989281" use="optional" order="26" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockSharesAuthorized" xlink:label="loc_us-gaap_CommonStockSharesAuthorized_786653" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_StockholdersEquityNoteLineItems_786652" xlink:to="loc_us-gaap_CommonStockSharesAuthorized_786653" use="optional" order="27" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockParOrStatedValuePerShare" xlink:label="loc_us-gaap_CommonStockParOrStatedValuePerShare_786654" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_StockholdersEquityNoteLineItems_786652" xlink:to="loc_us-gaap_CommonStockParOrStatedValuePerShare_786654" use="optional" order="28" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockSharesIssued" xlink:label="loc_us-gaap_CommonStockSharesIssued_786655" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_StockholdersEquityNoteLineItems_786652" xlink:to="loc_us-gaap_CommonStockSharesIssued_786655" use="optional" order="29" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockSharesOutstanding" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_786656" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_StockholdersEquityNoteLineItems_786652" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_786656" use="optional" order="30" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromIssuanceInitialPublicOffering" xlink:label="loc_us-gaap_ProceedsFromIssuanceInitialPublicOffering_786667" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_StockholdersEquityNoteLineItems_786652" xlink:to="loc_us-gaap_ProceedsFromIssuanceInitialPublicOffering_786667" use="optional" order="31" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockRepurchasedAndRetiredDuringPeriodShares" xlink:label="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_786660" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_StockholdersEquityNoteLineItems_786652" xlink:to="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_786660" use="optional" order="32" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesNewIssues" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_786662" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_StockholdersEquityNoteLineItems_786652" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_786662" use="optional" order="33" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction" xlink:label="loc_us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction_786666" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_StockholdersEquityNoteLineItems_786652" xlink:to="loc_us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction_786666" use="optional" order="34" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_863664" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_StockholdersEquityNoteLineItems_786652" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_863664" use="optional" order="35" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TreasuryStockCommonShares" xlink:label="loc_us-gaap_TreasuryStockCommonShares_989285" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_StockholdersEquityNoteLineItems_786652" xlink:to="loc_us-gaap_TreasuryStockCommonShares_989285" use="optional" order="36" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardNetOfForfeitures" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardNetOfForfeitures_989286" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_StockholdersEquityNoteLineItems_786652" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardNetOfForfeitures_989286" use="optional" order="37" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/ShareBasedCompensationSummaryOfFairValueOfEachShareOptionsGrantedDetail">
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_786949" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_786955" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_786949" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_786955" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRateMinimum" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRateMinimum_786953" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_786949" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRateMinimum_786953" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ScheduleOfFairValueOfEachShareOptionsGrantedTable" xlink:label="loc_xpev_ScheduleOfFairValueOfEachShareOptionsGrantedTable_786944" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_786949" xlink:to="loc_xpev_ScheduleOfFairValueOfEachShareOptionsGrantedTable_786944" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_786945" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_xpev_ScheduleOfFairValueOfEachShareOptionsGrantedTable_786944" xlink:to="loc_srt_RangeAxis_786945" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_786946" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_786945" xlink:to="loc_srt_RangeMember_786946" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_786946_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_786945" xlink:to="loc_srt_RangeMember_786946_default" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_786947" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_786946" xlink:to="loc_srt_MaximumMember_786947" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_786948" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_786946" xlink:to="loc_srt_MinimumMember_786948" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1_786950" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_786949" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1_786950" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExercisePrice_786951" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_786949" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExercisePrice_786951" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRateMaximum" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRateMaximum_786958" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_786949" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRateMaximum_786958" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRateMinimum" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRateMinimum_786956" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_786949" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRateMinimum_786956" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRateMaximum" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRateMaximum_786957" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_786949" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRateMaximum_786957" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_875906" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_786949" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_875906" use="optional" order="14" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/ShareBasedCompensationSummaryOfVestingScheduleOfTheRestrictedSharesDetail">
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_786970" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_786972" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_786970" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_786972" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_786973" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_786970" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_786973" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_786974" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_786970" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_786974" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_786969" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_786970" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_786969" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="4" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/ShareBasedCompensationAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_787023" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable" xlink:label="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_786998" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_787023" xlink:to="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_786998" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_786999" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_786998" xlink:to="loc_us-gaap_AwardTypeAxis_786999" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_787000" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_786999" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_787000" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_787000_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_786999" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_787000_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockCompensationPlanMember" xlink:label="loc_us-gaap_StockCompensationPlanMember_787001" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_787000" xlink:to="loc_us-gaap_StockCompensationPlanMember_787001" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_787020" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_787000" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_787020" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestrictedStockMember" xlink:label="loc_us-gaap_RestrictedStockMember_787021" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_787000" xlink:to="loc_us-gaap_RestrictedStockMember_787021" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_VestingAxis" xlink:label="loc_us-gaap_VestingAxis_787014" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_786998" xlink:to="loc_us-gaap_VestingAxis_787014" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_VestingDomain" xlink:label="loc_us-gaap_VestingDomain_787015" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VestingAxis_787014" xlink:to="loc_us-gaap_VestingDomain_787015" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_VestingDomain" xlink:label="loc_us-gaap_VestingDomain_787015_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VestingAxis_787014" xlink:to="loc_us-gaap_VestingDomain_787015_default" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationAwardTrancheOneMember" xlink:label="loc_us-gaap_ShareBasedCompensationAwardTrancheOneMember_787016" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VestingDomain_787015" xlink:to="loc_us-gaap_ShareBasedCompensationAwardTrancheOneMember_787016" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationAwardTrancheTwoMember" xlink:label="loc_us-gaap_ShareBasedCompensationAwardTrancheTwoMember_787017" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VestingDomain_787015" xlink:to="loc_us-gaap_ShareBasedCompensationAwardTrancheTwoMember_787017" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationAwardTrancheThreeMember" xlink:label="loc_us-gaap_ShareBasedCompensationAwardTrancheThreeMember_787018" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VestingDomain_787015" xlink:to="loc_us-gaap_ShareBasedCompensationAwardTrancheThreeMember_787018" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice_787024" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_787023" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice_787024" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage_787025" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_787023" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage_787025" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_787026" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_787023" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_787026" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_NumberOfUnvestedRestrictedShares" xlink:label="loc_xpev_NumberOfUnvestedRestrictedShares_787061" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_787023" xlink:to="loc_xpev_NumberOfUnvestedRestrictedShares_787061" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ShareOptionVestingRightsPercentage" xlink:label="loc_xpev_ShareOptionVestingRightsPercentage_787027" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_787023" xlink:to="loc_xpev_ShareOptionVestingRightsPercentage_787027" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensation" xlink:label="loc_us-gaap_ShareBasedCompensation_787028" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_787023" xlink:to="loc_us-gaap_ShareBasedCompensation_787028" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedStockOptions" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedStockOptions_787047" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_787023" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedStockOptions_787047" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions_787048" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_787023" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions_787048" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ShareBasedCompensationArrangementByShareBasedPaymentAwardSubjectToRequisiteServiceConditions" xlink:label="loc_xpev_ShareBasedCompensationArrangementByShareBasedPaymentAwardSubjectToRequisiteServiceConditions_787051" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_787023" xlink:to="loc_xpev_ShareBasedCompensationArrangementByShareBasedPaymentAwardSubjectToRequisiteServiceConditions_787051" use="optional" order="22" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_NumberOfSharesReplaced" xlink:label="loc_xpev_NumberOfSharesReplaced_787049" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_787023" xlink:to="loc_xpev_NumberOfSharesReplaced_787049" use="optional" order="23" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockParOrStatedValuePerShare" xlink:label="loc_us-gaap_CommonStockParOrStatedValuePerShare_787050" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_787023" xlink:to="loc_us-gaap_CommonStockParOrStatedValuePerShare_787050" use="optional" order="24" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesModified" xlink:label="loc_xpev_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesModified_787058" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_787023" xlink:to="loc_xpev_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesModified_787058" use="optional" order="25" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_PercentOfNumberOfSharesVested" xlink:label="loc_xpev_PercentOfNumberOfSharesVested_787059" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_787023" xlink:to="loc_xpev_PercentOfNumberOfSharesVested_787059" use="optional" order="26" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_NumberOfSharesVested" xlink:label="loc_xpev_NumberOfSharesVested_787060" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_787023" xlink:to="loc_xpev_NumberOfSharesVested_787060" use="optional" order="27" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_NumberOfUnvestedRestrictedSharesUponModification" xlink:label="loc_xpev_NumberOfUnvestedRestrictedSharesUponModification_787062" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_787023" xlink:to="loc_xpev_NumberOfUnvestedRestrictedSharesUponModification_787062" use="optional" order="28" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_787063" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_787023" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_787063" use="optional" order="29" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_863931" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_787023" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_863931" use="optional" order="30" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/ShareBasedCompensationSummaryOfRestrictedStockAndRestrictedStockUnitActivityDetail">
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_863883" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_863891" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_863883" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_863891" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsReplacementsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_xpev_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsReplacementsInPeriodWeightedAverageGrantDateFairValue_863886" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_863883" xlink:to="loc_xpev_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsReplacementsInPeriodWeightedAverageGrantDateFairValue_863886" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_863878" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_863883" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_863878" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_863879" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_863878" xlink:to="loc_us-gaap_AwardTypeAxis_863879" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_863880" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_863879" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_863880" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_863880_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_863879" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_863880_default" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_863881" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_863880" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_863881" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestrictedStockMember" xlink:label="loc_us-gaap_RestrictedStockMember_866710" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_863880" xlink:to="loc_us-gaap_RestrictedStockMember_866710" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_863893" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_863883" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_863893" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_863887" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_863883" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_863887" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_863888" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_863883" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_863888" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_863889" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_863883" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_863889" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsExercisableNumber" xlink:label="loc_xpev_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsExercisableNumber_863901" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_863883" xlink:to="loc_xpev_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsExercisableNumber_863901" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsReplacementsInPeriod" xlink:label="loc_xpev_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsReplacementsInPeriod_863895" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_863883" xlink:to="loc_xpev_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsReplacementsInPeriod_863895" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_863896" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_863883" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_863896" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_863897" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_863883" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_863897" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_863898" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_863883" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_863898" use="optional" order="17" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/TaxationSummaryOfMovementOfValuationAllowanceDetail">
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ValuationAllowanceLineItems" xlink:label="loc_us-gaap_ValuationAllowanceLineItems_787179" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredTaxAssetsValuationAllowance" xlink:label="loc_us-gaap_DeferredTaxAssetsValuationAllowance_787180" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationAllowanceLineItems_787179" xlink:to="loc_us-gaap_DeferredTaxAssetsValuationAllowance_787180" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ValuationAllowanceDeferredTaxAssetChangeInAmount" xlink:label="loc_us-gaap_ValuationAllowanceDeferredTaxAssetChangeInAmount_787181" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationAllowanceLineItems_787179" xlink:to="loc_us-gaap_ValuationAllowanceDeferredTaxAssetChangeInAmount_787181" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ValuationAllowanceTable" xlink:label="loc_us-gaap_ValuationAllowanceTable_787173" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ValuationAllowanceLineItems_787179" xlink:to="loc_us-gaap_ValuationAllowanceTable_787173" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ValuationAllowanceByDeferredTaxAssetAxis" xlink:label="loc_us-gaap_ValuationAllowanceByDeferredTaxAssetAxis_787174" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ValuationAllowanceTable_787173" xlink:to="loc_us-gaap_ValuationAllowanceByDeferredTaxAssetAxis_787174" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredTaxAssetDomain" xlink:label="loc_us-gaap_DeferredTaxAssetDomain_787175" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ValuationAllowanceByDeferredTaxAssetAxis_787174" xlink:to="loc_us-gaap_DeferredTaxAssetDomain_787175" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredTaxAssetDomain" xlink:label="loc_us-gaap_DeferredTaxAssetDomain_787175_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ValuationAllowanceByDeferredTaxAssetAxis_787174" xlink:to="loc_us-gaap_DeferredTaxAssetDomain_787175_default" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_DeferredTaxAssetsValuationAllowanceAdditionsMember" xlink:label="loc_xpev_DeferredTaxAssetsValuationAllowanceAdditionsMember_787176" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredTaxAssetDomain_787175" xlink:to="loc_xpev_DeferredTaxAssetsValuationAllowanceAdditionsMember_787176" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_DeferredTaxAssetsValuationAllowanceLossUtilizedMember" xlink:label="loc_xpev_DeferredTaxAssetsValuationAllowanceLossUtilizedMember_787177" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredTaxAssetDomain_787175" xlink:to="loc_xpev_DeferredTaxAssetsValuationAllowanceLossUtilizedMember_787177" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_DeferredTaxAssetsValuationAllowanceEffectOfChangeInTaxRateMember" xlink:label="loc_xpev_DeferredTaxAssetsValuationAllowanceEffectOfChangeInTaxRateMember_787178" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredTaxAssetDomain_787175" xlink:to="loc_xpev_DeferredTaxAssetsValuationAllowanceEffectOfChangeInTaxRateMember_787178" use="optional" order="9" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/TaxationSummaryOfTaxLossCarryforwardsDetail">
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLossCarryforwardsLineItems" xlink:label="loc_us-gaap_OperatingLossCarryforwardsLineItems_787220" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLossCarryforwardsTable" xlink:label="loc_us-gaap_OperatingLossCarryforwardsTable_787205" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_787220" xlink:to="loc_us-gaap_OperatingLossCarryforwardsTable_787205" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeTaxAuthorityNameAxis" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameAxis_787206" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OperatingLossCarryforwardsTable_787205" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameAxis_787206" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeTaxAuthorityNameDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameDomain_787207" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameAxis_787206" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameDomain_787207" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeTaxAuthorityNameDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameDomain_787207_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameAxis_787206" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameDomain_787207_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InlandRevenueHongKongMember" xlink:label="loc_us-gaap_InlandRevenueHongKongMember_787208" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameDomain_787207" xlink:to="loc_us-gaap_InlandRevenueHongKongMember_787208" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InternalRevenueServiceIRSMember" xlink:label="loc_us-gaap_InternalRevenueServiceIRSMember_787209" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameDomain_787207" xlink:to="loc_us-gaap_InternalRevenueServiceIRSMember_787209" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TaxPeriodAxis" xlink:label="loc_us-gaap_TaxPeriodAxis_787210" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OperatingLossCarryforwardsTable_787205" xlink:to="loc_us-gaap_TaxPeriodAxis_787210" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TaxPeriodDomain" xlink:label="loc_us-gaap_TaxPeriodDomain_787211" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TaxPeriodAxis_787210" xlink:to="loc_us-gaap_TaxPeriodDomain_787211" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TaxPeriodDomain" xlink:label="loc_us-gaap_TaxPeriodDomain_787211_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TaxPeriodAxis_787210" xlink:to="loc_us-gaap_TaxPeriodDomain_787211_default" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_Expiring2022TaxYearMember" xlink:label="loc_xpev_Expiring2022TaxYearMember_787213" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxPeriodDomain_787211" xlink:to="loc_xpev_Expiring2022TaxYearMember_787213" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_Expiring2023TaxYearMember" xlink:label="loc_xpev_Expiring2023TaxYearMember_787214" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxPeriodDomain_787211" xlink:to="loc_xpev_Expiring2023TaxYearMember_787214" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_Expiring2024TaxYearMember" xlink:label="loc_xpev_Expiring2024TaxYearMember_787215" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxPeriodDomain_787211" xlink:to="loc_xpev_Expiring2024TaxYearMember_787215" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_Expiring2026TaxYearMember" xlink:label="loc_xpev_Expiring2026TaxYearMember_787216" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxPeriodDomain_787211" xlink:to="loc_xpev_Expiring2026TaxYearMember_787216" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_Expiring2027TaxYearMember" xlink:label="loc_xpev_Expiring2027TaxYearMember_787217" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxPeriodDomain_787211" xlink:to="loc_xpev_Expiring2027TaxYearMember_787217" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_Expiring2028TaxYearMember" xlink:label="loc_xpev_Expiring2028TaxYearMember_787218" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxPeriodDomain_787211" xlink:to="loc_xpev_Expiring2028TaxYearMember_787218" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_Expiring2029TaxYearMember" xlink:label="loc_xpev_Expiring2029TaxYearMember_787219" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxPeriodDomain_787211" xlink:to="loc_xpev_Expiring2029TaxYearMember_787219" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_Expiring2021TaxYearMember" xlink:label="loc_xpev_Expiring2021TaxYearMember_787212" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxPeriodDomain_787211" xlink:to="loc_xpev_Expiring2021TaxYearMember_787212" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_LossExpiringIn2025Member" xlink:label="loc_xpev_LossExpiringIn2025Member_862845" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxPeriodDomain_787211" xlink:to="loc_xpev_LossExpiringIn2025Member_862845" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_LossExpiringIn2030Member" xlink:label="loc_xpev_LossExpiringIn2030Member_862846" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxPeriodDomain_787211" xlink:to="loc_xpev_LossExpiringIn2030Member_862846" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_Expiring2031TaxYearMember" xlink:label="loc_xpev_Expiring2031TaxYearMember_989032" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxPeriodDomain_787211" xlink:to="loc_xpev_Expiring2031TaxYearMember_989032" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsSubjectToExpiration" xlink:label="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsSubjectToExpiration_787221" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_787220" xlink:to="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsSubjectToExpiration_787221" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsNotSubjectToExpiration" xlink:label="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsNotSubjectToExpiration_787222" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_787220" xlink:to="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsNotSubjectToExpiration_787222" use="optional" order="22" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/TaxationAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLossCarryforwardsLineItems" xlink:label="loc_us-gaap_OperatingLossCarryforwardsLineItems_787269" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLossCarryforwardsTable" xlink:label="loc_us-gaap_OperatingLossCarryforwardsTable_787254" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_787269" xlink:to="loc_us-gaap_OperatingLossCarryforwardsTable_787254" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeTaxAuthorityNameAxis" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameAxis_787255" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OperatingLossCarryforwardsTable_787254" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameAxis_787255" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeTaxAuthorityNameDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameDomain_787256" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameAxis_787255" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameDomain_787256" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeTaxAuthorityNameDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameDomain_787256_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameAxis_787255" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameDomain_787256_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InlandRevenueHongKongMember" xlink:label="loc_us-gaap_InlandRevenueHongKongMember_787257" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameDomain_787256" xlink:to="loc_us-gaap_InlandRevenueHongKongMember_787257" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InternalRevenueServiceIRSMember" xlink:label="loc_us-gaap_InternalRevenueServiceIRSMember_787258" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameDomain_787256" xlink:to="loc_us-gaap_InternalRevenueServiceIRSMember_787258" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StateAdministrationOfTaxationChinaMember" xlink:label="loc_us-gaap_StateAdministrationOfTaxationChinaMember_787259" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameDomain_787256" xlink:to="loc_us-gaap_StateAdministrationOfTaxationChinaMember_787259" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_787260" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OperatingLossCarryforwardsTable_787254" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_787260" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_787261" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_787260" xlink:to="loc_us-gaap_RelatedPartyDomain_787261" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_787261_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_787260" xlink:to="loc_us-gaap_RelatedPartyDomain_787261_default" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BeneficialOwnerMember" xlink:label="loc_us-gaap_BeneficialOwnerMember_787262" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_787261" xlink:to="loc_us-gaap_BeneficialOwnerMember_787262" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_TaxPolicyAxis" xlink:label="loc_xpev_TaxPolicyAxis_787263" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OperatingLossCarryforwardsTable_787254" xlink:to="loc_xpev_TaxPolicyAxis_787263" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_TaxPolicyDomain" xlink:label="loc_xpev_TaxPolicyDomain_787264" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_xpev_TaxPolicyAxis_787263" xlink:to="loc_xpev_TaxPolicyDomain_787264" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_TaxPolicyDomain" xlink:label="loc_xpev_TaxPolicyDomain_787264_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_xpev_TaxPolicyAxis_787263" xlink:to="loc_xpev_TaxPolicyDomain_787264_default" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_EnterpriseTypeAxis" xlink:label="loc_xpev_EnterpriseTypeAxis_787266" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OperatingLossCarryforwardsTable_787254" xlink:to="loc_xpev_EnterpriseTypeAxis_787266" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_EnterpriseTypeDomain" xlink:label="loc_xpev_EnterpriseTypeDomain_787267" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_xpev_EnterpriseTypeAxis_787266" xlink:to="loc_xpev_EnterpriseTypeDomain_787267" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_EnterpriseTypeDomain" xlink:label="loc_xpev_EnterpriseTypeDomain_787267_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_xpev_EnterpriseTypeAxis_787266" xlink:to="loc_xpev_EnterpriseTypeDomain_787267_default" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_HnteMember" xlink:label="loc_xpev_HnteMember_787268" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_xpev_EnterpriseTypeDomain_787267" xlink:to="loc_xpev_HnteMember_787268" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_787270" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_787269" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_787270" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_PreferentialIncomeTaxRate" xlink:label="loc_xpev_PreferentialIncomeTaxRate_787273" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_787269" xlink:to="loc_xpev_PreferentialIncomeTaxRate_787273" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_WithholdingTaxRate" xlink:label="loc_xpev_WithholdingTaxRate_787274" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_787269" xlink:to="loc_xpev_WithholdingTaxRate_787274" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsResearch" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsResearch_787276" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_787269" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsResearch_787276" use="optional" order="22" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsNotSubjectToExpiration" xlink:label="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsNotSubjectToExpiration_788048" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_787269" xlink:to="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsNotSubjectToExpiration_788048" use="optional" order="23" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsSubjectToExpiration" xlink:label="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsSubjectToExpiration_788047" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_787269" xlink:to="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsSubjectToExpiration_788047" use="optional" order="24" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_989066" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_787269" xlink:to="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_989066" use="optional" order="25" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/LossPerShareAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ImpairmentEffectsOnEarningsPerShareLineItems" xlink:label="loc_us-gaap_ImpairmentEffectsOnEarningsPerShareLineItems_787066" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConvertiblePreferredStockSharesIssuedUponConversion" xlink:label="loc_us-gaap_ConvertiblePreferredStockSharesIssuedUponConversion_787068" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ImpairmentEffectsOnEarningsPerShareLineItems_787066" xlink:to="loc_us-gaap_ConvertiblePreferredStockSharesIssuedUponConversion_787068" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable" xlink:label="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_787054" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ImpairmentEffectsOnEarningsPerShareLineItems_787066" xlink:to="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_787054" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_787055" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_787054" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_787055" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_787056" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_787055" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_787056" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_787056_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_787055" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_787056_default" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaap_EmployeeStockOptionMember_787057" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_787056" xlink:to="loc_us-gaap_EmployeeStockOptionMember_787057" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestrictedStockMember" xlink:label="loc_us-gaap_RestrictedStockMember_787065" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_787056" xlink:to="loc_us-gaap_RestrictedStockMember_787065" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_866156" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_787056" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_866156" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_787067" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ImpairmentEffectsOnEarningsPerShareLineItems_787066" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_787067" use="optional" order="9" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/RelatedPartiesSummaryOfRelatedPartiesAndNatureOfRelationshipDetail">
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyTransactionLineItems" xlink:label="loc_us-gaap_RelatedPartyTransactionLineItems_786983" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NatureOfCommonOwnershipOrManagementControlRelationships" xlink:label="loc_us-gaap_NatureOfCommonOwnershipOrManagementControlRelationships_786984" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_786983" xlink:to="loc_us-gaap_NatureOfCommonOwnershipOrManagementControlRelationships_786984" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable" xlink:label="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_786978" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_786983" xlink:to="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_786978" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_786979" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_786978" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_786979" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_786980" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_786979" xlink:to="loc_us-gaap_RelatedPartyDomain_786980" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_786980_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_786979" xlink:to="loc_us-gaap_RelatedPartyDomain_786980_default" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_XiaopengHeMember" xlink:label="loc_xpev_XiaopengHeMember_786981" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_786980" xlink:to="loc_xpev_XiaopengHeMember_786981" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_GuangzhouHuitianAerospaceTechnologyCoLtdMember" xlink:label="loc_xpev_GuangzhouHuitianAerospaceTechnologyCoLtdMember_862807" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_786980" xlink:to="loc_xpev_GuangzhouHuitianAerospaceTechnologyCoLtdMember_862807" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_GuangzhouZhongpengInvestmentAndDevelopmentCoLtdMember" xlink:label="loc_xpev_GuangzhouZhongpengInvestmentAndDevelopmentCoLtdMember_862808" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_786980" xlink:to="loc_xpev_GuangzhouZhongpengInvestmentAndDevelopmentCoLtdMember_862808" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ShenzhenPengxingSmartCoLtdMember" xlink:label="loc_xpev_ShenzhenPengxingSmartCoLtdMember_988803" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_786980" xlink:to="loc_xpev_ShenzhenPengxingSmartCoLtdMember_988803" use="optional" order="9" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/RelatedPartiesAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyTransactionLineItems" xlink:label="loc_us-gaap_RelatedPartyTransactionLineItems_863632" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromRelatedPartyDebt" xlink:label="loc_us-gaap_ProceedsFromRelatedPartyDebt_863634" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_863632" xlink:to="loc_us-gaap_ProceedsFromRelatedPartyDebt_863634" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable" xlink:label="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_863614" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_863632" xlink:to="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_863614" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyTransactionAxis" xlink:label="loc_us-gaap_RelatedPartyTransactionAxis_863622" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_863614" xlink:to="loc_us-gaap_RelatedPartyTransactionAxis_863622" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyTransactionDomain" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_863623" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_863622" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_863623" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyTransactionDomain" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_863623_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_863622" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_863623_default" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_RentalExpenseMember" xlink:label="loc_xpev_RentalExpenseMember_863631" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_863623" xlink:to="loc_xpev_RentalExpenseMember_863631" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ReimbursmentExpenseMember" xlink:label="loc_xpev_ReimbursmentExpenseMember_863626" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_863623" xlink:to="loc_xpev_ReimbursmentExpenseMember_863626" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_PurchaseOfAssetsMember" xlink:label="loc_xpev_PurchaseOfAssetsMember_863628" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_863623" xlink:to="loc_xpev_PurchaseOfAssetsMember_863628" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_863616" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_863614" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_863616" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_863617" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_863616" xlink:to="loc_us-gaap_RelatedPartyDomain_863617" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_863617_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_863616" xlink:to="loc_us-gaap_RelatedPartyDomain_863617_default" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_XiaopengheMember" xlink:label="loc_xpev_XiaopengheMember_863620" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_863617" xlink:to="loc_xpev_XiaopengheMember_863620" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestExpenseRelatedParty" xlink:label="loc_us-gaap_InterestExpenseRelatedParty_863636" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_863632" xlink:to="loc_us-gaap_InterestExpenseRelatedParty_863636" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DueFromRelatedPartiesCurrent" xlink:label="loc_us-gaap_DueFromRelatedPartiesCurrent_863639" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_863632" xlink:to="loc_us-gaap_DueFromRelatedPartiesCurrent_863639" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_RentExpenseRelatedParty" xlink:label="loc_xpev_RentExpenseRelatedParty_863643" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_863632" xlink:to="loc_xpev_RentExpenseRelatedParty_863643" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DueToRelatedPartiesCurrent" xlink:label="loc_us-gaap_DueToRelatedPartiesCurrent_866171" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_863632" xlink:to="loc_us-gaap_DueToRelatedPartiesCurrent_866171" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyTransactionPurchasesFromRelatedParty" xlink:label="loc_us-gaap_RelatedPartyTransactionPurchasesFromRelatedParty_885916" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_863632" xlink:to="loc_us-gaap_RelatedPartyTransactionPurchasesFromRelatedParty_885916" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_RentalIncomeFromARelatedParty" xlink:label="loc_xpev_RentalIncomeFromARelatedParty_897372" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_863632" xlink:to="loc_xpev_RentalIncomeFromARelatedParty_897372" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RepaymentsOfRelatedPartyDebt" xlink:label="loc_us-gaap_RepaymentsOfRelatedPartyDebt_988835" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_863632" xlink:to="loc_us-gaap_RepaymentsOfRelatedPartyDebt_988835" use="optional" order="19" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/CommitmentsAndContingenciesSummaryOfCapitalExpendituresDetails">
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermPurchaseCommitmentLineItems" xlink:label="loc_us-gaap_LongTermPurchaseCommitmentLineItems_786907" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermPurchaseCommitmentTable" xlink:label="loc_us-gaap_LongTermPurchaseCommitmentTable_786902" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_786907" xlink:to="loc_us-gaap_LongTermPurchaseCommitmentTable_786902" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis" xlink:label="loc_us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis_786903" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentTable_786902" xlink:to="loc_us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis_786903" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain" xlink:label="loc_us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain_786904" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis_786903" xlink:to="loc_us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain_786904" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain" xlink:label="loc_us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain_786904_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis_786903" xlink:to="loc_us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain_786904_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CapitalAdditionsMember" xlink:label="loc_us-gaap_CapitalAdditionsMember_786905" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain_786904" xlink:to="loc_us-gaap_CapitalAdditionsMember_786905" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_InvestmentsAdditionsMember" xlink:label="loc_xpev_InvestmentsAdditionsMember_786906" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain_786904" xlink:to="loc_xpev_InvestmentsAdditionsMember_786906" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermPurchaseCommitmentAmount" xlink:label="loc_us-gaap_LongTermPurchaseCommitmentAmount_786908" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_786907" xlink:to="loc_us-gaap_LongTermPurchaseCommitmentAmount_786908" use="optional" order="7" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/SubsequentEventsAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventLineItems" xlink:label="loc_us-gaap_SubsequentEventLineItems_885852" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventTable" xlink:label="loc_us-gaap_SubsequentEventTable_885847" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SubsequentEventLineItems_885852" xlink:to="loc_us-gaap_SubsequentEventTable_885847" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventTypeAxis" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_885848" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_885847" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_885848" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_885849" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_885848" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_885849" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_885849_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_885848" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_885849_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventMember" xlink:label="loc_us-gaap_SubsequentEventMember_885851" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_885849" xlink:to="loc_us-gaap_SubsequentEventMember_885851" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_886620" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_885847" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_886620" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_886621" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_886620" xlink:to="loc_us-gaap_RelatedPartyDomain_886621" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_886621_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_886620" xlink:to="loc_us-gaap_RelatedPartyDomain_886621_default" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_GuangdongUTrustMember" xlink:label="loc_xpev_GuangdongUTrustMember_886623" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_886621" xlink:to="loc_xpev_GuangdongUTrustMember_886623" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ABusinessRelatedToFlightVehiclesMember" xlink:label="loc_xpev_ABusinessRelatedToFlightVehiclesMember_890806" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_886621" xlink:to="loc_xpev_ABusinessRelatedToFlightVehiclesMember_890806" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_GuangzhouGetInvestmentMember" xlink:label="loc_xpev_GuangzhouGetInvestmentMember_897392" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_886621" xlink:to="loc_xpev_GuangzhouGetInvestmentMember_897392" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ABusinessRelatedToIntelligentRobotMember" xlink:label="loc_xpev_ABusinessRelatedToIntelligentRobotMember_998897" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_886621" xlink:to="loc_xpev_ABusinessRelatedToIntelligentRobotMember_998897" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyTransactionAxis" xlink:label="loc_us-gaap_RelatedPartyTransactionAxis_897395" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_885847" xlink:to="loc_us-gaap_RelatedPartyTransactionAxis_897395" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyTransactionDomain" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_897396" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_897395" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_897396" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyTransactionDomain" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_897396_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_897395" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_897396_default" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityMethodInvestmentOwnershipPercentage" xlink:label="loc_us-gaap_EquityMethodInvestmentOwnershipPercentage_885854" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_885852" xlink:to="loc_us-gaap_EquityMethodInvestmentOwnershipPercentage_885854" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferred1" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_885855" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_885852" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferred1_885855" use="optional" order="17" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/RestrictedNetAssetsAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_885808" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_885805" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_885808" xlink:to="loc_us-gaap_StatementTable_885805" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_885809" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_885805" xlink:to="loc_srt_RangeAxis_885809" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_885810" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_885809" xlink:to="loc_srt_RangeMember_885810" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_885810_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_885809" xlink:to="loc_srt_RangeMember_885810_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_885811" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_885810" xlink:to="loc_srt_MaximumMember_885811" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_885812" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_885810" xlink:to="loc_srt_MinimumMember_885812" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_PercentageOfProfitsAfterTaxToGeneralReserveFund" xlink:label="loc_xpev_PercentageOfProfitsAfterTaxToGeneralReserveFund_885814" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_885808" xlink:to="loc_xpev_PercentageOfProfitsAfterTaxToGeneralReserveFund_885814" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_PercentageOfStatutorySurplusFundOnProfitsafterTax" xlink:label="loc_xpev_PercentageOfStatutorySurplusFundOnProfitsafterTax_885817" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_885808" xlink:to="loc_xpev_PercentageOfStatutorySurplusFundOnProfitsafterTax_885817" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_PercentageOfStatutorySurplusFundOnRegisteredCapital" xlink:label="loc_xpev_PercentageOfStatutorySurplusFundOnRegisteredCapital_890762" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_885808" xlink:to="loc_xpev_PercentageOfStatutorySurplusFundOnRegisteredCapital_890762" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_PercentageOfGeneralReserveFundOnRegisteredCapital" xlink:label="loc_xpev_PercentageOfGeneralReserveFundOnRegisteredCapital_890763" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_885808" xlink:to="loc_xpev_PercentageOfGeneralReserveFundOnRegisteredCapital_890763" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_PercentageOfAftertaxProfitsForAppropriationsPriorToDividendPayment" xlink:label="loc_xpev_PercentageOfAftertaxProfitsForAppropriationsPriorToDividendPayment_890765" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_885808" xlink:to="loc_xpev_PercentageOfAftertaxProfitsForAppropriationsPriorToDividendPayment_890765" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_RestrictedNetAssets" xlink:label="loc_xpev_RestrictedNetAssets_890769" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_885808" xlink:to="loc_xpev_RestrictedNetAssets_890769" use="optional" order="12" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/CompanyFinancialStatementsCondensedBalanceSheetsDetail">
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_786779" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_786776" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_786779" xlink:to="loc_us-gaap_StatementTable_786776" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidatedEntitiesAxis" xlink:label="loc_srt_ConsolidatedEntitiesAxis_786780" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_786776" xlink:to="loc_srt_ConsolidatedEntitiesAxis_786780" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_786781" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_786780" xlink:to="loc_srt_ConsolidatedEntitiesDomain_786781" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_786781_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_786780" xlink:to="loc_srt_ConsolidatedEntitiesDomain_786781_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ParentMember" xlink:label="loc_us-gaap_ParentMember_786782" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_786781" xlink:to="loc_us-gaap_ParentMember_786782" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_786777" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_786776" xlink:to="loc_us-gaap_StatementClassOfStockAxis_786777" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_786778" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_786777" xlink:to="loc_us-gaap_ClassOfStockDomain_786778" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_786778_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_786777" xlink:to="loc_us-gaap_ClassOfStockDomain_786778_default" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SeriesBRedeemableConvertiblePreferredSharesMember" xlink:label="loc_xpev_SeriesBRedeemableConvertiblePreferredSharesMember_786787" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786778" xlink:to="loc_xpev_SeriesBRedeemableConvertiblePreferredSharesMember_786787" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SeriesBOneRedeemableConvertiblePreferredSharesMember" xlink:label="loc_xpev_SeriesBOneRedeemableConvertiblePreferredSharesMember_786788" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786778" xlink:to="loc_xpev_SeriesBOneRedeemableConvertiblePreferredSharesMember_786788" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SeriesCRedeemableConvertiblePreferredSharesMember" xlink:label="loc_xpev_SeriesCRedeemableConvertiblePreferredSharesMember_786791" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786778" xlink:to="loc_xpev_SeriesCRedeemableConvertiblePreferredSharesMember_786791" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonClassAMember" xlink:label="loc_us-gaap_CommonClassAMember_786792" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786778" xlink:to="loc_us-gaap_CommonClassAMember_786792" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonClassBMember" xlink:label="loc_us-gaap_CommonClassBMember_786793" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786778" xlink:to="loc_us-gaap_CommonClassBMember_786793" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SeriesARedeemableConvertiblePreferredSharesMember" xlink:label="loc_xpev_SeriesARedeemableConvertiblePreferredSharesMember_786783" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786778" xlink:to="loc_xpev_SeriesARedeemableConvertiblePreferredSharesMember_786783" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SeriesAOneRedeemableConvertiblePreferredSharesMember" xlink:label="loc_xpev_SeriesAOneRedeemableConvertiblePreferredSharesMember_786784" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786778" xlink:to="loc_xpev_SeriesAOneRedeemableConvertiblePreferredSharesMember_786784" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SeriesATwoRedeemableConvertiblePreferredSharesMember" xlink:label="loc_xpev_SeriesATwoRedeemableConvertiblePreferredSharesMember_786785" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786778" xlink:to="loc_xpev_SeriesATwoRedeemableConvertiblePreferredSharesMember_786785" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_SeriesBTwoRedeemableConvertiblePreferredSharesMember" xlink:label="loc_xpev_SeriesBTwoRedeemableConvertiblePreferredSharesMember_786790" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786778" xlink:to="loc_xpev_SeriesBTwoRedeemableConvertiblePreferredSharesMember_786790" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonClassCMember" xlink:label="loc_us-gaap_CommonClassCMember_862781" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_786778" xlink:to="loc_us-gaap_CommonClassCMember_862781" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesAbstract" xlink:label="loc_us-gaap_LiabilitiesAbstract_786802" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786779" xlink:to="loc_us-gaap_LiabilitiesAbstract_786802" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesNoncurrentAbstract" xlink:label="loc_us-gaap_LiabilitiesNoncurrentAbstract_786803" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_786802" xlink:to="loc_us-gaap_LiabilitiesNoncurrentAbstract_786803" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeLiabilitiesNoncurrent" xlink:label="loc_us-gaap_DerivativeLiabilitiesNoncurrent_786806" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesNoncurrentAbstract_786803" xlink:to="loc_us-gaap_DerivativeLiabilitiesNoncurrent_786806" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesNoncurrent" xlink:label="loc_us-gaap_LiabilitiesNoncurrent_786814" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesNoncurrentAbstract_786803" xlink:to="loc_us-gaap_LiabilitiesNoncurrent_786814" use="optional" order="22" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaap_Liabilities_786815" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_786802" xlink:to="loc_us-gaap_Liabilities_786815" use="optional" order="23" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesCurrentAbstract" xlink:label="loc_us-gaap_LiabilitiesCurrentAbstract_862761" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_786802" xlink:to="loc_us-gaap_LiabilitiesCurrentAbstract_862761" use="optional" order="24" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccruedLiabilitiesCurrent" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_862762" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_862761" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_862762" use="optional" order="25" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesCurrent" xlink:label="loc_us-gaap_LiabilitiesCurrent_862763" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_862761" xlink:to="loc_us-gaap_LiabilitiesCurrent_862763" use="optional" order="26" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeLiabilitiesCurrent" xlink:label="loc_us-gaap_DerivativeLiabilitiesCurrent_988480" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_862761" xlink:to="loc_us-gaap_DerivativeLiabilitiesCurrent_988480" use="optional" order="27" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TemporaryEquityAbstract" xlink:label="loc_us-gaap_TemporaryEquityAbstract_786816" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786779" xlink:to="loc_us-gaap_TemporaryEquityAbstract_786816" use="optional" order="28" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RedeemableNoncontrollingInterestEquityPreferredCarryingAmount" xlink:label="loc_us-gaap_RedeemableNoncontrollingInterestEquityPreferredCarryingAmount_786817" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TemporaryEquityAbstract_786816" xlink:to="loc_us-gaap_RedeemableNoncontrollingInterestEquityPreferredCarryingAmount_786817" use="optional" order="29" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TemporaryEquityCarryingAmountAttributableToParent" xlink:label="loc_us-gaap_TemporaryEquityCarryingAmountAttributableToParent_786820" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TemporaryEquityAbstract_786816" xlink:to="loc_us-gaap_TemporaryEquityCarryingAmountAttributableToParent_786820" use="optional" order="30" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsAbstract" xlink:label="loc_us-gaap_AssetsAbstract_786794" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786779" xlink:to="loc_us-gaap_AssetsAbstract_786794" use="optional" order="31" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_786801" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_786794" xlink:to="loc_us-gaap_Assets_786801" use="optional" order="32" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsCurrentAbstract" xlink:label="loc_us-gaap_AssetsCurrentAbstract_786795" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_786794" xlink:to="loc_us-gaap_AssetsCurrentAbstract_786795" use="optional" order="33" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_786796" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_786795" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_786796" use="optional" order="34" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsCurrent" xlink:label="loc_us-gaap_AssetsCurrent_786797" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_786795" xlink:to="loc_us-gaap_AssetsCurrent_786797" use="optional" order="35" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestrictedCash" xlink:label="loc_us-gaap_RestrictedCash_862747" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_786795" xlink:to="loc_us-gaap_RestrictedCash_862747" use="optional" order="36" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ShortTermDeposits" xlink:label="loc_xpev_ShortTermDeposits_862749" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_786795" xlink:to="loc_xpev_ShortTermDeposits_862749" use="optional" order="37" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_862751" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_786795" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_862751" use="optional" order="38" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeAssetsCurrent" xlink:label="loc_us-gaap_DerivativeAssetsCurrent_863601" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_786795" xlink:to="loc_us-gaap_DerivativeAssetsCurrent_863601" use="optional" order="39" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsNoncurrentAbstract" xlink:label="loc_us-gaap_AssetsNoncurrentAbstract_786798" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_786794" xlink:to="loc_us-gaap_AssetsNoncurrentAbstract_786798" use="optional" order="40" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityMethodInvestments" xlink:label="loc_us-gaap_EquityMethodInvestments_786799" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_786798" xlink:to="loc_us-gaap_EquityMethodInvestments_786799" use="optional" order="41" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsNoncurrent" xlink:label="loc_us-gaap_AssetsNoncurrent_786800" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_786798" xlink:to="loc_us-gaap_AssetsNoncurrent_786800" use="optional" order="42" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_786826" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786779" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquity_786826" use="optional" order="43" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquityAbstract" xlink:label="loc_us-gaap_StockholdersEquityAbstract_786821" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786779" xlink:to="loc_us-gaap_StockholdersEquityAbstract_786821" use="optional" order="44" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockValue" xlink:label="loc_us-gaap_CommonStockValue_786822" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_786821" xlink:to="loc_us-gaap_CommonStockValue_786822" use="optional" order="45" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_786823" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_786821" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_786823" use="optional" order="46" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_786824" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_786821" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_786824" use="optional" order="47" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_786825" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_786821" xlink:to="loc_us-gaap_StockholdersEquity_786825" use="optional" order="48" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AdditionalPaidInCapital" xlink:label="loc_us-gaap_AdditionalPaidInCapital_862777" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_786821" xlink:to="loc_us-gaap_AdditionalPaidInCapital_862777" use="optional" order="49" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/CompanyFinancialStatementsCondensedStatementsOfComprehensiveLossDetail">
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_786845" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingExpensesAbstract" xlink:label="loc_us-gaap_OperatingExpensesAbstract_786850" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786845" xlink:to="loc_us-gaap_OperatingExpensesAbstract_786850" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingIncomeLoss" xlink:label="loc_us-gaap_OperatingIncomeLoss_786853" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_786850" xlink:to="loc_us-gaap_OperatingIncomeLoss_786853" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SellingGeneralAndAdministrativeExpense" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_786851" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_786850" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_786851" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingExpenses" xlink:label="loc_us-gaap_OperatingExpenses_786852" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_786850" xlink:to="loc_us-gaap_OperatingExpenses_786852" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InvestmentIncomeInterest" xlink:label="loc_us-gaap_InvestmentIncomeInterest_786854" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_786850" xlink:to="loc_us-gaap_InvestmentIncomeInterest_786854" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_786865" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_786850" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_786865" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GainLossOnInvestments" xlink:label="loc_us-gaap_GainLossOnInvestments_786855" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_786850" xlink:to="loc_us-gaap_GainLossOnInvestments_786855" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GainLossOnDerivativeInstrumentsNetPretax" xlink:label="loc_us-gaap_GainLossOnDerivativeInstrumentsNetPretax_786856" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_786850" xlink:to="loc_us-gaap_GainLossOnDerivativeInstrumentsNetPretax_786856" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_786857" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_786850" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_786857" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_786858" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_786850" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_786858" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_786859" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_786850" xlink:to="loc_us-gaap_NetIncomeLoss_786859" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TemporaryEquityAccretionToRedemptionValueAdjustment" xlink:label="loc_us-gaap_TemporaryEquityAccretionToRedemptionValueAdjustment_786860" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_786850" xlink:to="loc_us-gaap_TemporaryEquityAccretionToRedemptionValueAdjustment_786860" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_RedeemablePreferredStockDividendsOnExtinguishment" xlink:label="loc_xpev_RedeemablePreferredStockDividendsOnExtinguishment_786861" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_786850" xlink:to="loc_xpev_RedeemablePreferredStockDividendsOnExtinguishment_786861" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_RedeemablePreferredStockDividendsOnModifications" xlink:label="loc_xpev_RedeemablePreferredStockDividendsOnModifications_786862" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_786850" xlink:to="loc_xpev_RedeemablePreferredStockDividendsOnModifications_786862" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_RedeemablePreferredStockDividendsOnReclassifications" xlink:label="loc_xpev_RedeemablePreferredStockDividendsOnReclassifications_786863" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_786850" xlink:to="loc_xpev_RedeemablePreferredStockDividendsOnReclassifications_786863" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RedeemablePreferredStockDividends" xlink:label="loc_us-gaap_RedeemablePreferredStockDividends_786864" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_786850" xlink:to="loc_us-gaap_RedeemablePreferredStockDividends_786864" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestExpense" xlink:label="loc_us-gaap_InterestExpense_862785" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_786850" xlink:to="loc_us-gaap_InterestExpense_862785" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherNonoperatingIncomeExpense" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_862789" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_786850" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_862789" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_786842" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_786845" xlink:to="loc_us-gaap_StatementTable_786842" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidatedEntitiesAxis" xlink:label="loc_srt_ConsolidatedEntitiesAxis_786846" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_786842" xlink:to="loc_srt_ConsolidatedEntitiesAxis_786846" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_786848" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_786846" xlink:to="loc_srt_ConsolidatedEntitiesDomain_786848" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_786848_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_786846" xlink:to="loc_srt_ConsolidatedEntitiesDomain_786848_default" use="optional" order="22" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ParentMember" xlink:label="loc_us-gaap_ParentMember_786869" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_786848" xlink:to="loc_us-gaap_ParentMember_786869" use="optional" order="23" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAbstract" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAbstract_786866" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786845" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAbstract_786866" use="optional" order="24" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_786867" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAbstract_786866" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_786867" use="optional" order="25" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_786868" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAbstract_786866" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTax_786868" use="optional" order="26" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ComprehensiveIncomeNetOfTaxAvailableToCommonStockholdersBasic" xlink:label="loc_xpev_ComprehensiveIncomeNetOfTaxAvailableToCommonStockholdersBasic_786870" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAbstract_786866" xlink:to="loc_xpev_ComprehensiveIncomeNetOfTaxAvailableToCommonStockholdersBasic_786870" use="optional" order="27" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://www.xpenginc.com/role/CompanyFinancialStatementsConsolidatedStatementsOfCashFlowsDetail">
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_786877" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_786874" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_786877" xlink:to="loc_us-gaap_StatementTable_786874" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidatedEntitiesAxis" xlink:label="loc_srt_ConsolidatedEntitiesAxis_786878" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_786874" xlink:to="loc_srt_ConsolidatedEntitiesAxis_786878" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_786879" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_786878" xlink:to="loc_srt_ConsolidatedEntitiesDomain_786879" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_786879_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_786878" xlink:to="loc_srt_ConsolidatedEntitiesDomain_786879_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ParentMember" xlink:label="loc_us-gaap_ParentMember_786880" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_786879" xlink:to="loc_us-gaap_ParentMember_786880" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_786886" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786877" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_786886" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromIssuanceOfPreferredStockAndPreferenceStock" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfPreferredStockAndPreferenceStock_786887" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_786886" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfPreferredStockAndPreferenceStock_786887" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_786889" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_786886" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_786889" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_786890" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_786886" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_786890" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_786891" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_786886" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_786891" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromIssuanceInitialPublicOffering" xlink:label="loc_us-gaap_ProceedsFromIssuanceInitialPublicOffering_885756" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_786886" xlink:to="loc_us-gaap_ProceedsFromIssuanceInitialPublicOffering_885756" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_ProceedsFromFONetOfIssuanceCost" xlink:label="loc_xpev_ProceedsFromFONetOfIssuanceCost_885758" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_786886" xlink:to="loc_xpev_ProceedsFromFONetOfIssuanceCost_885758" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromRelatedPartyDebt" xlink:label="loc_us-gaap_ProceedsFromRelatedPartyDebt_988464" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_786886" xlink:to="loc_us-gaap_ProceedsFromRelatedPartyDebt_988464" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RepaymentsOfRelatedPartyDebt" xlink:label="loc_us-gaap_RepaymentsOfRelatedPartyDebt_988465" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_786886" xlink:to="loc_us-gaap_RepaymentsOfRelatedPartyDebt_988465" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_PaymentOfListingExpenses" xlink:label="loc_xpev_PaymentOfListingExpenses_988718" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_786886" xlink:to="loc_xpev_PaymentOfListingExpenses_988718" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_786881" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786877" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_786881" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_786882" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_786877" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_786882" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsToAcquireEquityMethodInvestments" xlink:label="loc_us-gaap_PaymentsToAcquireEquityMethodInvestments_786884" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_786882" xlink:to="loc_us-gaap_PaymentsToAcquireEquityMethodInvestments_786884" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_786885" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_786882" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_786885" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="xpev-20210331.xsd#xpev_PlacementOfTimeDeposit" xlink:label="loc_xpev_PlacementOfTimeDeposit_885754" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_786882" xlink:to="loc_xpev_PlacementOfTimeDeposit_885754" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromDerivativeInstrumentInvestingActivities" xlink:label="loc_us-gaap_ProceedsFromDerivativeInstrumentInvestingActivities_988714" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_786882" xlink:to="loc_us-gaap_ProceedsFromDerivativeInstrumentInvestingActivities_988714" use="optional" order="21" />
</definitionLink>
</linkbase>
