<?xml version="1.0" encoding="US-ASCII"?>
<!--XBRL Document Created with Wdesk from Workiva-->
<!-- -->
<link:linkbase xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <link:roleRef roleURI="http://www.ubnt.com/role/AccruedWarranty" xlink:href="ubnt-20180930.xsd#AccruedWarranty" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/AccruedWarrantyAdditionalInformationDetail" xlink:href="ubnt-20180930.xsd#AccruedWarrantyAdditionalInformationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/AccruedWarrantyTables" xlink:href="ubnt-20180930.xsd#AccruedWarrantyTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/AccruedWarrantyWarrantyObligationsDetail" xlink:href="ubnt-20180930.xsd#AccruedWarrantyWarrantyObligationsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/AccumulatedOtherComprehensiveIncome" xlink:href="ubnt-20180930.xsd#AccumulatedOtherComprehensiveIncome" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/AccumulatedOtherComprehensiveIncomeDetails" xlink:href="ubnt-20180930.xsd#AccumulatedOtherComprehensiveIncomeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/BalanceSheetComponents" xlink:href="ubnt-20180930.xsd#BalanceSheetComponents" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/BalanceSheetComponentsInventoryDetail" xlink:href="ubnt-20180930.xsd#BalanceSheetComponentsInventoryDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/BalanceSheetComponentsOtherCurrentLiabilitiesDetail" xlink:href="ubnt-20180930.xsd#BalanceSheetComponentsOtherCurrentLiabilitiesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/BalanceSheetComponentsOtherLongTermAssetsDetails" xlink:href="ubnt-20180930.xsd#BalanceSheetComponentsOtherLongTermAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/BalanceSheetComponentsOtherLongTermLiabilitiesDetails" xlink:href="ubnt-20180930.xsd#BalanceSheetComponentsOtherLongTermLiabilitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/BalanceSheetComponentsPropertyAndEquipmentNetDetail" xlink:href="ubnt-20180930.xsd#BalanceSheetComponentsPropertyAndEquipmentNetDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/BalanceSheetComponentsTables" xlink:href="ubnt-20180930.xsd#BalanceSheetComponentsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/BusinessAndBasisOfPresentation" xlink:href="ubnt-20180930.xsd#BusinessAndBasisOfPresentation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/CommitmentsAndContingencies" xlink:href="ubnt-20180930.xsd#CommitmentsAndContingencies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/CommitmentsAndContingenciesAdditionalInformationDetail" xlink:href="ubnt-20180930.xsd#CommitmentsAndContingenciesAdditionalInformationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/CommitmentsAndContingenciesFutureMinimumAnnualPaymentsUnderOperatingLeasesDetail" xlink:href="ubnt-20180930.xsd#CommitmentsAndContingenciesFutureMinimumAnnualPaymentsUnderOperatingLeasesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/CommitmentsAndContingenciesTables" xlink:href="ubnt-20180930.xsd#CommitmentsAndContingenciesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/CommonStockAndTreasuryStock" xlink:href="ubnt-20180930.xsd#CommonStockAndTreasuryStock" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/CommonStockAndTreasuryStockDetail" xlink:href="ubnt-20180930.xsd#CommonStockAndTreasuryStockDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/ConsolidatedBalanceSheetsUnaudited" xlink:href="ubnt-20180930.xsd#ConsolidatedBalanceSheetsUnaudited" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/ConsolidatedBalanceSheetsUnauditedParenthetical" xlink:href="ubnt-20180930.xsd#ConsolidatedBalanceSheetsUnauditedParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/ConsolidatedStatementsOfCashFlowsUnaudited" xlink:href="ubnt-20180930.xsd#ConsolidatedStatementsOfCashFlowsUnaudited" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/ConsolidatedStatementsOfOperationsAndComprehensiveIncomeUnaudited" xlink:href="ubnt-20180930.xsd#ConsolidatedStatementsOfOperationsAndComprehensiveIncomeUnaudited" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/Debt" xlink:href="ubnt-20180930.xsd#Debt" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/DebtAdditionalInformationDetail" xlink:href="ubnt-20180930.xsd#DebtAdditionalInformationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/DebtSummaryOfDebtAndInterestPaymentObligationsDetail" xlink:href="ubnt-20180930.xsd#DebtSummaryOfDebtAndInterestPaymentObligationsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/DebtSummaryOfDebtDetails" xlink:href="ubnt-20180930.xsd#DebtSummaryOfDebtDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/DebtTables" xlink:href="ubnt-20180930.xsd#DebtTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/DocumentAndEntityInformation" xlink:href="ubnt-20180930.xsd#DocumentAndEntityInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/EarningsPerShare" xlink:href="ubnt-20180930.xsd#EarningsPerShare" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/EarningsPerShareAntiDilutiveSecuritiesDetail" xlink:href="ubnt-20180930.xsd#EarningsPerShareAntiDilutiveSecuritiesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/EarningsPerShareComputationOfBasicAndDilutedEarningsPerShareDetail" xlink:href="ubnt-20180930.xsd#EarningsPerShareComputationOfBasicAndDilutedEarningsPerShareDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/EarningsPerShareTables" xlink:href="ubnt-20180930.xsd#EarningsPerShareTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/FairValueOfFinancialInstruments" xlink:href="ubnt-20180930.xsd#FairValueOfFinancialInstruments" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/FairValueOfFinancialInstrumentsContinuousLossPositionDetails" xlink:href="ubnt-20180930.xsd#FairValueOfFinancialInstrumentsContinuousLossPositionDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/FairValueOfFinancialInstrumentsDetail" xlink:href="ubnt-20180930.xsd#FairValueOfFinancialInstrumentsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/FairValueOfFinancialInstrumentsScheduleOfFinancialInstrumentsDetails" xlink:href="ubnt-20180930.xsd#FairValueOfFinancialInstrumentsScheduleOfFinancialInstrumentsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/FairValueOfFinancialInstrumentsScheduleOfInvestmentSecurityByContractMaturityDetails" xlink:href="ubnt-20180930.xsd#FairValueOfFinancialInstrumentsScheduleOfInvestmentSecurityByContractMaturityDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/FairValueOfFinancialInstrumentsTables" xlink:href="ubnt-20180930.xsd#FairValueOfFinancialInstrumentsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/IncomeTaxes" xlink:href="ubnt-20180930.xsd#IncomeTaxes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/IncomeTaxesDetail" xlink:href="ubnt-20180930.xsd#IncomeTaxesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/RelatedPartyTransactionsAndCertainOtherTransactions" xlink:href="ubnt-20180930.xsd#RelatedPartyTransactionsAndCertainOtherTransactions" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/RelatedPartyTransactionsAndCertainOtherTransactionsDetails" xlink:href="ubnt-20180930.xsd#RelatedPartyTransactionsAndCertainOtherTransactionsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/Revenues" xlink:href="ubnt-20180930.xsd#Revenues" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/RevenuesDetails" xlink:href="ubnt-20180930.xsd#RevenuesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/SegmentInformationRevenuesByGeographyAndSignificantCustomers" xlink:href="ubnt-20180930.xsd#SegmentInformationRevenuesByGeographyAndSignificantCustomers" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/SegmentInformationRevenuesByGeographyAndSignificantCustomersAdditionalInformationDetail" xlink:href="ubnt-20180930.xsd#SegmentInformationRevenuesByGeographyAndSignificantCustomersAdditionalInformationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/SegmentInformationRevenuesByGeographyAndSignificantCustomersPercentageOfRevenuesAccountsReceivableDetail" xlink:href="ubnt-20180930.xsd#SegmentInformationRevenuesByGeographyAndSignificantCustomersPercentageOfRevenuesAccountsReceivableDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/SegmentInformationRevenuesByGeographyAndSignificantCustomersRevenuesByGeographyDetail" xlink:href="ubnt-20180930.xsd#SegmentInformationRevenuesByGeographyAndSignificantCustomersRevenuesByGeographyDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/SegmentInformationRevenuesByGeographyAndSignificantCustomersRevenuesByProductDetail" xlink:href="ubnt-20180930.xsd#SegmentInformationRevenuesByGeographyAndSignificantCustomersRevenuesByProductDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/SegmentInformationRevenuesByGeographyAndSignificantCustomersTables" xlink:href="ubnt-20180930.xsd#SegmentInformationRevenuesByGeographyAndSignificantCustomersTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/StockBasedCompensation" xlink:href="ubnt-20180930.xsd#StockBasedCompensation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/StockBasedCompensationAdditionalInformationDetail" xlink:href="ubnt-20180930.xsd#StockBasedCompensationAdditionalInformationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/StockBasedCompensationOptionActivityForCompanysStockIncentivePlansDetail" xlink:href="ubnt-20180930.xsd#StockBasedCompensationOptionActivityForCompanysStockIncentivePlansDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/StockBasedCompensationStockBasedCompensationExpenseDetail" xlink:href="ubnt-20180930.xsd#StockBasedCompensationStockBasedCompensationExpenseDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/StockBasedCompensationSummaryOfRsuActivityDetail" xlink:href="ubnt-20180930.xsd#StockBasedCompensationSummaryOfRsuActivityDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/StockBasedCompensationTables" xlink:href="ubnt-20180930.xsd#StockBasedCompensationTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/SubsequentEvents" xlink:href="ubnt-20180930.xsd#SubsequentEvents" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/SubsequentEventsDetails" xlink:href="ubnt-20180930.xsd#SubsequentEventsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/SummaryOfSignificantAccountingPolicies" xlink:href="ubnt-20180930.xsd#SummaryOfSignificantAccountingPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.ubnt.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:href="ubnt-20180930.xsd#SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension" xlink:type="simple" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/AccruedWarranty" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/AccruedWarrantyAdditionalInformationDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/AccruedWarrantyTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/AccruedWarrantyWarrantyObligationsDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/AccumulatedOtherComprehensiveIncome" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/AccumulatedOtherComprehensiveIncomeDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/BalanceSheetComponents" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/BalanceSheetComponentsInventoryDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/BalanceSheetComponentsOtherCurrentLiabilitiesDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/BalanceSheetComponentsOtherLongTermAssetsDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/BalanceSheetComponentsOtherLongTermLiabilitiesDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/BalanceSheetComponentsPropertyAndEquipmentNetDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentLineItems" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_83EEC01029838E1EA3DA1CBF870B34F7" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_BEE3219AD859B30C3E5E1CBF870926EC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_83EEC01029838E1EA3DA1CBF870B34F7" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_BEE3219AD859B30C3E5E1CBF870926EC" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_51C6D59D5A4B2246CA7F1CBF870A8F19" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_BEE3219AD859B30C3E5E1CBF870926EC" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_51C6D59D5A4B2246CA7F1CBF870A8F19" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_492FBBDB5E09B23F7B291CBF870AE480_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_51C6D59D5A4B2246CA7F1CBF870A8F19" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_492FBBDB5E09B23F7B291CBF870AE480_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_492FBBDB5E09B23F7B291CBF870AE480" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_51C6D59D5A4B2246CA7F1CBF870A8F19" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_492FBBDB5E09B23F7B291CBF870AE480" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_TestingEquipmentMember" xlink:label="loc_ubnt_TestingEquipmentMember_13C38C8633B11788511F1CBF870AADA5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_492FBBDB5E09B23F7B291CBF870AE480" xlink:to="loc_ubnt_TestingEquipmentMember_13C38C8633B11788511F1CBF870AADA5" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_ComputerAndOtherEquipmentMember" xlink:label="loc_ubnt_ComputerAndOtherEquipmentMember_C9370D9373FAA4AFEF8E1CBF870BE463" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_492FBBDB5E09B23F7B291CBF870AE480" xlink:to="loc_ubnt_ComputerAndOtherEquipmentMember_C9370D9373FAA4AFEF8E1CBF870BE463" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_ToolingEquipmentMember" xlink:label="loc_ubnt_ToolingEquipmentMember_824D837C1550583A5D1D1CBF870B495B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_492FBBDB5E09B23F7B291CBF870AE480" xlink:to="loc_ubnt_ToolingEquipmentMember_824D837C1550583A5D1D1CBF870B495B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FurnitureAndFixturesMember" xlink:label="loc_us-gaap_FurnitureAndFixturesMember_1120367F36D1736BED011CBF870BDE5C" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_492FBBDB5E09B23F7B291CBF870AE480" xlink:to="loc_us-gaap_FurnitureAndFixturesMember_1120367F36D1736BED011CBF870BDE5C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LeaseholdImprovementsMember" xlink:label="loc_us-gaap_LeaseholdImprovementsMember_C3B20C7C8B8DC18065561CBF870BF2A2" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_492FBBDB5E09B23F7B291CBF870AE480" xlink:to="loc_us-gaap_LeaseholdImprovementsMember_C3B20C7C8B8DC18065561CBF870BF2A2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ComputerSoftwareIntangibleAssetMember" xlink:label="loc_us-gaap_ComputerSoftwareIntangibleAssetMember_C6B8688ED2E699FE38761CBF870B1D8F" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_492FBBDB5E09B23F7B291CBF870AE480" xlink:to="loc_us-gaap_ComputerSoftwareIntangibleAssetMember_C6B8688ED2E699FE38761CBF870B1D8F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentGross" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_882C0A347CE597DC9C781CBF870C45C4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_83EEC01029838E1EA3DA1CBF870B34F7" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_882C0A347CE597DC9C781CBF870C45C4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_C16A1AC018448DF1D1CA1CBF870C1109" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_83EEC01029838E1EA3DA1CBF870B34F7" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_C16A1AC018448DF1D1CA1CBF870C1109" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_C1C1F0FCC0BD3909582F1CBF870C60D1" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_83EEC01029838E1EA3DA1CBF870B34F7" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_C1C1F0FCC0BD3909582F1CBF870C60D1" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ubnt.com/role/BalanceSheetComponentsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/BusinessAndBasisOfPresentation" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/CommitmentsAndContingencies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/CommitmentsAndContingenciesAdditionalInformationDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertySubjectToOrAvailableForOperatingLeaseLineItems" xlink:label="loc_us-gaap_PropertySubjectToOrAvailableForOperatingLeaseLineItems_CF9421E786A2F48312C882A2D4526508" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertySubjectToOrAvailableForOperatingLeaseByMajorPropertyClassTable" xlink:label="loc_us-gaap_PropertySubjectToOrAvailableForOperatingLeaseByMajorPropertyClassTable_7826091F08B7B54DA13382A2D450E23D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertySubjectToOrAvailableForOperatingLeaseLineItems_CF9421E786A2F48312C882A2D4526508" xlink:to="loc_us-gaap_PropertySubjectToOrAvailableForOperatingLeaseByMajorPropertyClassTable_7826091F08B7B54DA13382A2D450E23D" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_D8D38E5A2FA2ECAEDCD182FEA3E7E85F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_PropertySubjectToOrAvailableForOperatingLeaseByMajorPropertyClassTable_7826091F08B7B54DA13382A2D450E23D" xlink:to="loc_srt_RangeAxis_D8D38E5A2FA2ECAEDCD182FEA3E7E85F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_D2227EE3A37DDF95060582FEA3E8931F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_D8D38E5A2FA2ECAEDCD182FEA3E7E85F" xlink:to="loc_srt_RangeMember_D2227EE3A37DDF95060582FEA3E8931F_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_D2227EE3A37DDF95060582FEA3E8931F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_D8D38E5A2FA2ECAEDCD182FEA3E7E85F" xlink:to="loc_srt_RangeMember_D2227EE3A37DDF95060582FEA3E8931F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_DD70881A1D24E21ABDE782FEA7ADDE2A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_D2227EE3A37DDF95060582FEA3E8931F" xlink:to="loc_srt_MinimumMember_DD70881A1D24E21ABDE782FEA7ADDE2A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_7BBC89461AD3842202BB82FEA8EA0A56" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_D2227EE3A37DDF95060582FEA3E8931F" xlink:to="loc_srt_MaximumMember_7BBC89461AD3842202BB82FEA8EA0A56" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_CounterpartyNameAxis" xlink:label="loc_srt_CounterpartyNameAxis_D8655012ED8C65C6328882FEA33AD646" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_PropertySubjectToOrAvailableForOperatingLeaseByMajorPropertyClassTable_7826091F08B7B54DA13382A2D450E23D" xlink:to="loc_srt_CounterpartyNameAxis_D8655012ED8C65C6328882FEA33AD646" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="loc_srt_RepurchaseAgreementCounterpartyNameDomain_58B37ADD69A27619FD6882FEA34071F6_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CounterpartyNameAxis_D8655012ED8C65C6328882FEA33AD646" xlink:to="loc_srt_RepurchaseAgreementCounterpartyNameDomain_58B37ADD69A27619FD6882FEA34071F6_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="loc_srt_RepurchaseAgreementCounterpartyNameDomain_58B37ADD69A27619FD6882FEA34071F6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CounterpartyNameAxis_D8655012ED8C65C6328882FEA33AD646" xlink:to="loc_srt_RepurchaseAgreementCounterpartyNameDomain_58B37ADD69A27619FD6882FEA34071F6" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_FrontRowMember" xlink:label="loc_ubnt_FrontRowMember_47AA4D19AE6818F46A2882FEA4A03CC2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RepurchaseAgreementCounterpartyNameDomain_58B37ADD69A27619FD6882FEA34071F6" xlink:to="loc_ubnt_FrontRowMember_47AA4D19AE6818F46A2882FEA4A03CC2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PublicUtilitiesInventoryAxis" xlink:label="loc_us-gaap_PublicUtilitiesInventoryAxis_759A033170D021C4C32B82A2D450ABEB" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_PropertySubjectToOrAvailableForOperatingLeaseByMajorPropertyClassTable_7826091F08B7B54DA13382A2D450E23D" xlink:to="loc_us-gaap_PublicUtilitiesInventoryAxis_759A033170D021C4C32B82A2D450ABEB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PublicUtilitiesInventoryTypeDomain" xlink:label="loc_us-gaap_PublicUtilitiesInventoryTypeDomain_A529912FA9701F055DBA82A2D451E7FD_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PublicUtilitiesInventoryAxis_759A033170D021C4C32B82A2D450ABEB" xlink:to="loc_us-gaap_PublicUtilitiesInventoryTypeDomain_A529912FA9701F055DBA82A2D451E7FD_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PublicUtilitiesInventoryTypeDomain" xlink:label="loc_us-gaap_PublicUtilitiesInventoryTypeDomain_A529912FA9701F055DBA82A2D451E7FD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PublicUtilitiesInventoryAxis_759A033170D021C4C32B82A2D450ABEB" xlink:to="loc_us-gaap_PublicUtilitiesInventoryTypeDomain_A529912FA9701F055DBA82A2D451E7FD" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_FinishedGoodsMember" xlink:label="loc_ubnt_FinishedGoodsMember_164F03794B7A95C58C3482A2D45103CA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PublicUtilitiesInventoryTypeDomain_A529912FA9701F055DBA82A2D451E7FD" xlink:to="loc_ubnt_FinishedGoodsMember_164F03794B7A95C58C3482A2D45103CA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PublicUtilitiesInventoryRawMaterialsMember" xlink:label="loc_us-gaap_PublicUtilitiesInventoryRawMaterialsMember_E38CF423E7D831501E6882A2D452A66D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PublicUtilitiesInventoryTypeDomain_A529912FA9701F055DBA82A2D451E7FD" xlink:to="loc_us-gaap_PublicUtilitiesInventoryRawMaterialsMember_E38CF423E7D831501E6882A2D452A66D" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_ComponentsMember" xlink:label="loc_ubnt_ComponentsMember_0BD4F681D38E5F9FC04982FEA6C9D76D" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PublicUtilitiesInventoryTypeDomain_A529912FA9701F055DBA82A2D451E7FD" xlink:to="loc_ubnt_ComponentsMember_0BD4F681D38E5F9FC04982FEA6C9D76D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PurchaseObligation" xlink:label="loc_us-gaap_PurchaseObligation_51CFD6754889A7AC221C82A2D453777D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertySubjectToOrAvailableForOperatingLeaseLineItems_CF9421E786A2F48312C882A2D4526508" xlink:to="loc_us-gaap_PurchaseObligation_51CFD6754889A7AC221C82A2D453777D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherCommitment" xlink:label="loc_us-gaap_OtherCommitment_43DA6B49B4884A725AA082A2D4534632" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertySubjectToOrAvailableForOperatingLeaseLineItems_CF9421E786A2F48312C882A2D4526508" xlink:to="loc_us-gaap_OtherCommitment_43DA6B49B4884A725AA082A2D4534632" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ubnt.com/role/CommitmentsAndContingenciesFutureMinimumAnnualPaymentsUnderOperatingLeasesDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/CommitmentsAndContingenciesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/CommonStockAndTreasuryStock" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/CommonStockAndTreasuryStockDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityClassOfTreasuryStockLineItems" xlink:label="loc_us-gaap_EquityClassOfTreasuryStockLineItems_AC56114CEE77A716A0BBE9FFD792FA61" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfTreasuryStockTable" xlink:label="loc_us-gaap_ClassOfTreasuryStockTable_AB468608B1A26A39FCFBE9FFD78F3F05" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_AC56114CEE77A716A0BBE9FFD792FA61" xlink:to="loc_us-gaap_ClassOfTreasuryStockTable_AB468608B1A26A39FCFBE9FFD78F3F05" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareRepurchaseProgramAxis" xlink:label="loc_us-gaap_ShareRepurchaseProgramAxis_8D3DC958995DB4FBA264E9FFD78F4B8F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ClassOfTreasuryStockTable_AB468608B1A26A39FCFBE9FFD78F3F05" xlink:to="loc_us-gaap_ShareRepurchaseProgramAxis_8D3DC958995DB4FBA264E9FFD78F4B8F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareRepurchaseProgramDomain" xlink:label="loc_us-gaap_ShareRepurchaseProgramDomain_A383DD211A090BFF3803E9FFD7906630_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ShareRepurchaseProgramAxis_8D3DC958995DB4FBA264E9FFD78F4B8F" xlink:to="loc_us-gaap_ShareRepurchaseProgramDomain_A383DD211A090BFF3803E9FFD7906630_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareRepurchaseProgramDomain" xlink:label="loc_us-gaap_ShareRepurchaseProgramDomain_A383DD211A090BFF3803E9FFD7906630" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ShareRepurchaseProgramAxis_8D3DC958995DB4FBA264E9FFD78F4B8F" xlink:to="loc_us-gaap_ShareRepurchaseProgramDomain_A383DD211A090BFF3803E9FFD7906630" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_MarchRepurchaseProgramMember" xlink:label="loc_ubnt_MarchRepurchaseProgramMember_69F33A1367E845BB2AA5E9FFD7902C62" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareRepurchaseProgramDomain_A383DD211A090BFF3803E9FFD7906630" xlink:to="loc_ubnt_MarchRepurchaseProgramMember_69F33A1367E845BB2AA5E9FFD7902C62" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_MayRepurchaseProgramMember" xlink:label="loc_ubnt_MayRepurchaseProgramMember_5A4B8754538FA81FF24AE9FFD791D6E9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareRepurchaseProgramDomain_A383DD211A090BFF3803E9FFD7906630" xlink:to="loc_ubnt_MayRepurchaseProgramMember_5A4B8754538FA81FF24AE9FFD791D6E9" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_NovemberRepurchaseProgramMember" xlink:label="loc_ubnt_NovemberRepurchaseProgramMember_3BE38E0B734E3598BA71EA16D6641630" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareRepurchaseProgramDomain_A383DD211A090BFF3803E9FFD7906630" xlink:to="loc_ubnt_NovemberRepurchaseProgramMember_3BE38E0B734E3598BA71EA16D6641630" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_EC390FD5BD70E8C98A0BE9FFD791471A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ClassOfTreasuryStockTable_AB468608B1A26A39FCFBE9FFD78F3F05" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_EC390FD5BD70E8C98A0BE9FFD791471A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_0FA35005C69F11F09F9FE9FFD791CFBF_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_EC390FD5BD70E8C98A0BE9FFD791471A" xlink:to="loc_us-gaap_EquityComponentDomain_0FA35005C69F11F09F9FE9FFD791CFBF_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_0FA35005C69F11F09F9FE9FFD791CFBF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_EC390FD5BD70E8C98A0BE9FFD791471A" xlink:to="loc_us-gaap_EquityComponentDomain_0FA35005C69F11F09F9FE9FFD791CFBF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockMember" xlink:label="loc_us-gaap_CommonStockMember_2F87746ECDD1D2D12DDEE9FFD791BD88" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_0FA35005C69F11F09F9FE9FFD791CFBF" xlink:to="loc_us-gaap_CommonStockMember_2F87746ECDD1D2D12DDEE9FFD791BD88" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeAxis" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_8C51639D05B441B4730AEA1758BA285F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ClassOfTreasuryStockTable_AB468608B1A26A39FCFBE9FFD78F3F05" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_8C51639D05B441B4730AEA1758BA285F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_8DC5755990DB3B74CBD5EA1758BD8844_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_8C51639D05B441B4730AEA1758BA285F" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_8DC5755990DB3B74CBD5EA1758BD8844_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_8DC5755990DB3B74CBD5EA1758BD8844" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_8C51639D05B441B4730AEA1758BA285F" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_8DC5755990DB3B74CBD5EA1758BD8844" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventMember" xlink:label="loc_us-gaap_SubsequentEventMember_A4D7D7382D2DF370EDAFEA17880D68D8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_8DC5755990DB3B74CBD5EA1758BD8844" xlink:to="loc_us-gaap_SubsequentEventMember_A4D7D7382D2DF370EDAFEA17880D68D8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockRepurchaseProgramAuthorizedAmount1" xlink:label="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_B72C169C118CDAEDAEEFE9FFD792617B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_AC56114CEE77A716A0BBE9FFD792FA61" xlink:to="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_B72C169C118CDAEDAEEFE9FFD792617B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockRepurchasedAndRetiredDuringPeriodShares" xlink:label="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_B0FF122201D390C86847E9FFD797CBFC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_AC56114CEE77A716A0BBE9FFD792FA61" xlink:to="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_B0FF122201D390C86847E9FFD797CBFC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TreasuryStockAcquiredAverageCostPerShare" xlink:label="loc_us-gaap_TreasuryStockAcquiredAverageCostPerShare_C01870A1C13CD2253F47E9FFD7970BEC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_AC56114CEE77A716A0BBE9FFD792FA61" xlink:to="loc_us-gaap_TreasuryStockAcquiredAverageCostPerShare_C01870A1C13CD2253F47E9FFD7970BEC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockRepurchasedAndRetiredDuringPeriodValue" xlink:label="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodValue_3F897A8058BA8B5EA500E9FFD79875A1" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_AC56114CEE77A716A0BBE9FFD792FA61" xlink:to="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodValue_3F897A8058BA8B5EA500E9FFD79875A1" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_StockRepurchaseCostIncurredButNotYetPaid" xlink:label="loc_ubnt_StockRepurchaseCostIncurredButNotYetPaid_40E7C98D5D18F14B0076E9FFD798E14A" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_AC56114CEE77A716A0BBE9FFD792FA61" xlink:to="loc_ubnt_StockRepurchaseCostIncurredButNotYetPaid_40E7C98D5D18F14B0076E9FFD798E14A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1" xlink:label="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_68C0493BD05934BA13FAE9FFD798D1AC" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_AC56114CEE77A716A0BBE9FFD792FA61" xlink:to="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_68C0493BD05934BA13FAE9FFD798D1AC" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ubnt.com/role/ConsolidatedBalanceSheetsUnaudited" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/ConsolidatedBalanceSheetsUnauditedParenthetical" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/ConsolidatedStatementsOfCashFlowsUnaudited" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_1AE92B4C20BD4140953BEAF7DCB843C2" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_CCE6D1B6DEC9C2674F62EAF7DCB54680" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_1AE92B4C20BD4140953BEAF7DCB843C2" xlink:to="loc_us-gaap_StatementTable_CCE6D1B6DEC9C2674F62EAF7DCB54680" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="loc_us-gaap_DebtInstrumentAxis_FFF6E19CFC1D24C5A073EAF7DCB69B3D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_CCE6D1B6DEC9C2674F62EAF7DCB54680" xlink:to="loc_us-gaap_DebtInstrumentAxis_FFF6E19CFC1D24C5A073EAF7DCB69B3D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_FF228260358A43A97903EAF7DCB629B6_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_FFF6E19CFC1D24C5A073EAF7DCB69B3D" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_FF228260358A43A97903EAF7DCB629B6_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_FF228260358A43A97903EAF7DCB629B6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_FFF6E19CFC1D24C5A073EAF7DCB69B3D" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_FF228260358A43A97903EAF7DCB629B6" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_SecondAmendedRestatedCreditAgreementMember" xlink:label="loc_ubnt_SecondAmendedRestatedCreditAgreementMember_303BF67D290B5FD673F0EAF7DCB6AFCD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_FF228260358A43A97903EAF7DCB629B6" xlink:to="loc_ubnt_SecondAmendedRestatedCreditAgreementMember_303BF67D290B5FD673F0EAF7DCB6AFCD" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_AmendedCreditAgreementMember" xlink:label="loc_ubnt_AmendedCreditAgreementMember_0A9C9922FBFB4BE93A59EAF7DCB7EA29" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_FF228260358A43A97903EAF7DCB629B6" xlink:to="loc_ubnt_AmendedCreditAgreementMember_0A9C9922FBFB4BE93A59EAF7DCB7EA29" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditFacilityAxis" xlink:label="loc_us-gaap_CreditFacilityAxis_7F7BEDE6F648385BBEF9EAF7DCB71EE0" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_CCE6D1B6DEC9C2674F62EAF7DCB54680" xlink:to="loc_us-gaap_CreditFacilityAxis_7F7BEDE6F648385BBEF9EAF7DCB71EE0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_F5842673EAB2950267FDEAF7DCB7CE2F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_7F7BEDE6F648385BBEF9EAF7DCB71EE0" xlink:to="loc_us-gaap_CreditFacilityDomain_F5842673EAB2950267FDEAF7DCB7CE2F_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_F5842673EAB2950267FDEAF7DCB7CE2F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_7F7BEDE6F648385BBEF9EAF7DCB71EE0" xlink:to="loc_us-gaap_CreditFacilityDomain_F5842673EAB2950267FDEAF7DCB7CE2F" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_TermLoanMember" xlink:label="loc_ubnt_TermLoanMember_D636A34F8E2A53F96911EAF7DCB768CE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_F5842673EAB2950267FDEAF7DCB7CE2F" xlink:to="loc_ubnt_TermLoanMember_D636A34F8E2A53F96911EAF7DCB768CE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevolvingCreditFacilityMember" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_B7E21653B8F4F9BAA5F9EAF7DCB8920B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_F5842673EAB2950267FDEAF7DCB7CE2F" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_B7E21653B8F4F9BAA5F9EAF7DCB8920B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_993A6680D300950C0C56EAF7DCB8EFF7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_1AE92B4C20BD4140953BEAF7DCB843C2" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_993A6680D300950C0C56EAF7DCB8EFF7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_5359DD3C0F732C60D475EAF7DCB84889" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_993A6680D300950C0C56EAF7DCB8EFF7" xlink:to="loc_us-gaap_NetIncomeLoss_5359DD3C0F732C60D475EAF7DCB84889" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract" xlink:label="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_28706F134BA8E3A38662EAF7DCB9040F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_993A6680D300950C0C56EAF7DCB8EFF7" xlink:to="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_28706F134BA8E3A38662EAF7DCB9040F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DepreciationDepletionAndAmortization" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_34266059238074B742C1EAF7DCB9EA41" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_28706F134BA8E3A38662EAF7DCB9040F" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_34266059238074B742C1EAF7DCB9EA41" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AmortizationOfFinancingCosts" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_858EB4C84D7467E22284EAF7DCB94FC3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_28706F134BA8E3A38662EAF7DCB9040F" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_858EB4C84D7467E22284EAF7DCB94FC3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AmortizationOfDebtDiscountPremium" xlink:label="loc_us-gaap_AmortizationOfDebtDiscountPremium_8AC1264E336DC1449002EAF7DCB91901" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_28706F134BA8E3A38662EAF7DCB9040F" xlink:to="loc_us-gaap_AmortizationOfDebtDiscountPremium_8AC1264E336DC1449002EAF7DCB91901" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InventoryWriteDown" xlink:label="loc_us-gaap_InventoryWriteDown_65F9B53E3F07CF4A924EEAF7DCB9DB74" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_28706F134BA8E3A38662EAF7DCB9040F" xlink:to="loc_us-gaap_InventoryWriteDown_65F9B53E3F07CF4A924EEAF7DCB9DB74" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_ProvisionforGainLossonVendorDeposit" xlink:label="loc_ubnt_ProvisionforGainLossonVendorDeposit_889CCCEDF6A6297F194AEAF7DCBA7A71" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_28706F134BA8E3A38662EAF7DCB9040F" xlink:to="loc_ubnt_ProvisionforGainLossonVendorDeposit_889CCCEDF6A6297F194AEAF7DCBA7A71" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensation" xlink:label="loc_us-gaap_ShareBasedCompensation_5EB0DE87C5227DA0FBD9EAF7DCBAA9BD" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_28706F134BA8E3A38662EAF7DCB9040F" xlink:to="loc_us-gaap_ShareBasedCompensation_5EB0DE87C5227DA0FBD9EAF7DCBAA9BD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherNoncashIncomeExpense" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_731423F059459AF45207EAF7DCBAE050" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_28706F134BA8E3A38662EAF7DCB9040F" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_731423F059459AF45207EAF7DCBAE050" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInOperatingCapitalAbstract" xlink:label="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_DCED82753A23897025F7EAF7DCBA73E5" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_993A6680D300950C0C56EAF7DCB8EFF7" xlink:to="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_DCED82753A23897025F7EAF7DCBA73E5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_FC9F67D15B655E57B7A0EAF7DCBAAEC2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_DCED82753A23897025F7EAF7DCBA73E5" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_FC9F67D15B655E57B7A0EAF7DCBAAEC2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInInventories" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_C1073504E60653524612EAF7DCBB37D9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_DCED82753A23897025F7EAF7DCBA73E5" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_C1073504E60653524612EAF7DCBB37D9" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_IncreaseDecreaseinVendorDeposits" xlink:label="loc_ubnt_IncreaseDecreaseinVendorDeposits_FB051F7D80CF58C74EF1EAF7DCBBAD28" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_DCED82753A23897025F7EAF7DCBA73E5" xlink:to="loc_ubnt_IncreaseDecreaseinVendorDeposits_FB051F7D80CF58C74EF1EAF7DCBBAD28" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInPrepaidTaxes" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidTaxes_3BE127ED99B01F6251E7EAF7DCBBCDEA" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_DCED82753A23897025F7EAF7DCBA73E5" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidTaxes_3BE127ED99B01F6251E7EAF7DCBBCDEA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_92B84153D7AD5FF3525FEAF7DCBB9915" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_DCED82753A23897025F7EAF7DCBA73E5" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_92B84153D7AD5FF3525FEAF7DCBB9915" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsPayable" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_59A984BD396B5B174CABEAF7DCBB26FC" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_DCED82753A23897025F7EAF7DCBA73E5" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_59A984BD396B5B174CABEAF7DCBB26FC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_6FC22DFF6F809FB59B7EEAF7DCBCD54E" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_DCED82753A23897025F7EAF7DCBA73E5" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_6FC22DFF6F809FB59B7EEAF7DCBCD54E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInContractWithCustomerLiability" xlink:label="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_26AD5C9ABA6C9FB7958DEAF7DCBCAD74" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_DCED82753A23897025F7EAF7DCBA73E5" xlink:to="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_26AD5C9ABA6C9FB7958DEAF7DCBCAD74" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_F0C2E0D94D59569259DDEAF7DCBCEE83" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingCapitalAbstract_DCED82753A23897025F7EAF7DCBA73E5" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_F0C2E0D94D59569259DDEAF7DCBCEE83" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_EA3AC6171844A7257B19EAF7DCBC0A73" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_993A6680D300950C0C56EAF7DCB8EFF7" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_EA3AC6171844A7257B19EAF7DCBC0A73" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_D635F5203C2595A80212EAF7DCBC59FA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_1AE92B4C20BD4140953BEAF7DCB843C2" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_D635F5203C2595A80212EAF7DCBC59FA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_77E3D699CE1C1C613384EAF7DCBD9747" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_D635F5203C2595A80212EAF7DCBC59FA" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_77E3D699CE1C1C613384EAF7DCBD9747" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsToAcquireInvestments" xlink:label="loc_us-gaap_PaymentsToAcquireInvestments_5B17618624310237628BEAF7DCBDE904" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_D635F5203C2595A80212EAF7DCBC59FA" xlink:to="loc_us-gaap_PaymentsToAcquireInvestments_5B17618624310237628BEAF7DCBDE904" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt" xlink:label="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_3CAA5478AB355DA27A05EAF7DCC28CEE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_D635F5203C2595A80212EAF7DCBC59FA" xlink:to="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_3CAA5478AB355DA27A05EAF7DCC28CEE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0373720D7117F3779088EAF7DCC32C4F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_D635F5203C2595A80212EAF7DCBC59FA" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0373720D7117F3779088EAF7DCC32C4F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_742E0A84699D4E82DD4DEAF7DCC3BAFE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_1AE92B4C20BD4140953BEAF7DCB843C2" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_742E0A84699D4E82DD4DEAF7DCC3BAFE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromLongTermLinesOfCredit" xlink:label="loc_us-gaap_ProceedsFromLongTermLinesOfCredit_3F1F8DFDFAE8D7860FEEEAF7DCC3B86B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_742E0A84699D4E82DD4DEAF7DCC3BAFE" xlink:to="loc_us-gaap_ProceedsFromLongTermLinesOfCredit_3F1F8DFDFAE8D7860FEEEAF7DCC3B86B" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_RepaymentofLongTermLinesofCreditPrincipal" xlink:label="loc_ubnt_RepaymentofLongTermLinesofCreditPrincipal_479F16C88780DA1AEE00EAF7DCC3F205" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_742E0A84699D4E82DD4DEAF7DCC3BAFE" xlink:to="loc_ubnt_RepaymentofLongTermLinesofCreditPrincipal_479F16C88780DA1AEE00EAF7DCC3F205" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_AB02B367D7E42AD3AB3DEAF7DCC3A3C7" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_742E0A84699D4E82DD4DEAF7DCC3BAFE" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_AB02B367D7E42AD3AB3DEAF7DCC3A3C7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsOfDividends" xlink:label="loc_us-gaap_PaymentsOfDividends_78FA1526F1CCD8E4C7F9EAF7DCC47F7E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_742E0A84699D4E82DD4DEAF7DCC3BAFE" xlink:to="loc_us-gaap_PaymentsOfDividends_78FA1526F1CCD8E4C7F9EAF7DCC47F7E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromStockOptionsExercised" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_6713925D435B95FD56CBEAF7DCC4E6BC" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_742E0A84699D4E82DD4DEAF7DCC3BAFE" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_6713925D435B95FD56CBEAF7DCC4E6BC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ExcessTaxBenefitFromShareBasedCompensationFinancingActivities" xlink:label="loc_us-gaap_ExcessTaxBenefitFromShareBasedCompensationFinancingActivities_AECA0DC28AA92AAAB8B0EAF7DCC4A8FE" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_742E0A84699D4E82DD4DEAF7DCC3BAFE" xlink:to="loc_us-gaap_ExcessTaxBenefitFromShareBasedCompensationFinancingActivities_AECA0DC28AA92AAAB8B0EAF7DCC4A8FE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_FA98C01AA73B41B1BB5EEAF7DCC4D90B" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_742E0A84699D4E82DD4DEAF7DCC3BAFE" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_FA98C01AA73B41B1BB5EEAF7DCC4D90B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease" xlink:label="loc_us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease_D5D8048B6A7E94950776EAF7DCC5DE13" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_1AE92B4C20BD4140953BEAF7DCB843C2" xlink:to="loc_us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease_D5D8048B6A7E94950776EAF7DCC5DE13" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_181CABE2A0BE6EF519C4EAF7DCC5EA63" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_1AE92B4C20BD4140953BEAF7DCB843C2" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_181CABE2A0BE6EF519C4EAF7DCC5EA63" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SupplementalCashFlowInformationAbstract" xlink:label="loc_us-gaap_SupplementalCashFlowInformationAbstract_33653D1D5D104AC520BBEAF7DCC5F306" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_1AE92B4C20BD4140953BEAF7DCB843C2" xlink:to="loc_us-gaap_SupplementalCashFlowInformationAbstract_33653D1D5D104AC520BBEAF7DCC5F306" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxesPaidNet" xlink:label="loc_us-gaap_IncomeTaxesPaidNet_F81E16ADDB7DC80C8C9BEAF7DCC57089" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SupplementalCashFlowInformationAbstract_33653D1D5D104AC520BBEAF7DCC5F306" xlink:to="loc_us-gaap_IncomeTaxesPaidNet_F81E16ADDB7DC80C8C9BEAF7DCC57089" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestPaidNet" xlink:label="loc_us-gaap_InterestPaidNet_BB3F89AADBE4C87E4507EAFFE87ACD81" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SupplementalCashFlowInformationAbstract_33653D1D5D104AC520BBEAF7DCC5F306" xlink:to="loc_us-gaap_InterestPaidNet_BB3F89AADBE4C87E4507EAFFE87ACD81" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdjustmentsNoncashItemsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract" xlink:label="loc_us-gaap_AdjustmentsNoncashItemsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_88D7DC643BCDC6E4EA36EAF7DCC69C35" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_1AE92B4C20BD4140953BEAF7DCB843C2" xlink:to="loc_us-gaap_AdjustmentsNoncashItemsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_88D7DC643BCDC6E4EA36EAF7DCC69C35" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DividendsCash" xlink:label="loc_us-gaap_DividendsCash_D6DBD788E426985E957AEAF7DCC634AB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsNoncashItemsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_88D7DC643BCDC6E4EA36EAF7DCC69C35" xlink:to="loc_us-gaap_DividendsCash_D6DBD788E426985E957AEAF7DCC634AB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CapitalExpendituresIncurredButNotYetPaid" xlink:label="loc_us-gaap_CapitalExpendituresIncurredButNotYetPaid_D35781F6A0B85A4F39C3EAF7DCC664C1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsNoncashItemsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_88D7DC643BCDC6E4EA36EAF7DCC69C35" xlink:to="loc_us-gaap_CapitalExpendituresIncurredButNotYetPaid_D35781F6A0B85A4F39C3EAF7DCC664C1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LiabilitiesAssumed1" xlink:label="loc_us-gaap_LiabilitiesAssumed1_DA14F15A3FE2A9111F1CEAF7DCC6E9C2" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsNoncashItemsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_88D7DC643BCDC6E4EA36EAF7DCC69C35" xlink:to="loc_us-gaap_LiabilitiesAssumed1_DA14F15A3FE2A9111F1CEAF7DCC6E9C2" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ubnt.com/role/ConsolidatedStatementsOfOperationsAndComprehensiveIncomeUnaudited" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/Debt" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/DebtAdditionalInformationDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentLineItems" xlink:label="loc_us-gaap_DebtInstrumentLineItems_524AFF738AC37DFE1E2ED6219A29B531" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentTable" xlink:label="loc_us-gaap_DebtInstrumentTable_CF2BD6CE247A551F7D81D6219A21BF4C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_524AFF738AC37DFE1E2ED6219A29B531" xlink:to="loc_us-gaap_DebtInstrumentTable_CF2BD6CE247A551F7D81D6219A21BF4C" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeAxis" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_FD49DF8D4065B402850ED6219A21D4C7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_CF2BD6CE247A551F7D81D6219A21BF4C" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_FD49DF8D4065B402850ED6219A21D4C7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_FF795AFA7AB1831B42CCD6219A227322_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_FD49DF8D4065B402850ED6219A21D4C7" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_FF795AFA7AB1831B42CCD6219A227322_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_FF795AFA7AB1831B42CCD6219A227322" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_FD49DF8D4065B402850ED6219A21D4C7" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_FF795AFA7AB1831B42CCD6219A227322" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventMember" xlink:label="loc_us-gaap_SubsequentEventMember_C3232659B4814478AC02D6219A2230C1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_FF795AFA7AB1831B42CCD6219A227322" xlink:to="loc_us-gaap_SubsequentEventMember_C3232659B4814478AC02D6219A2230C1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementScenarioAxis" xlink:label="loc_us-gaap_StatementScenarioAxis_78C12532B90D9EDADC24D6219A22D65F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_CF2BD6CE247A551F7D81D6219A21BF4C" xlink:to="loc_us-gaap_StatementScenarioAxis_78C12532B90D9EDADC24D6219A22D65F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain" xlink:label="loc_us-gaap_ScenarioUnspecifiedDomain_DF5FAB3137F6DD65EEDFD6219A2398C9_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementScenarioAxis_78C12532B90D9EDADC24D6219A22D65F" xlink:to="loc_us-gaap_ScenarioUnspecifiedDomain_DF5FAB3137F6DD65EEDFD6219A2398C9_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain" xlink:label="loc_us-gaap_ScenarioUnspecifiedDomain_DF5FAB3137F6DD65EEDFD6219A2398C9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementScenarioAxis_78C12532B90D9EDADC24D6219A22D65F" xlink:to="loc_us-gaap_ScenarioUnspecifiedDomain_DF5FAB3137F6DD65EEDFD6219A2398C9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScenarioForecastMember" xlink:label="loc_us-gaap_ScenarioForecastMember_EB6F7499394312E00B66D6219A23735C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScenarioUnspecifiedDomain_DF5FAB3137F6DD65EEDFD6219A2398C9" xlink:to="loc_us-gaap_ScenarioForecastMember_EB6F7499394312E00B66D6219A23735C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditFacilityAxis" xlink:label="loc_us-gaap_CreditFacilityAxis_19F9338A1AA424774B7BD6219A23A02C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_CF2BD6CE247A551F7D81D6219A21BF4C" xlink:to="loc_us-gaap_CreditFacilityAxis_19F9338A1AA424774B7BD6219A23A02C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_30943BDD4F1C95889DEED6219A246F6D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_19F9338A1AA424774B7BD6219A23A02C" xlink:to="loc_us-gaap_CreditFacilityDomain_30943BDD4F1C95889DEED6219A246F6D_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_30943BDD4F1C95889DEED6219A246F6D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_19F9338A1AA424774B7BD6219A23A02C" xlink:to="loc_us-gaap_CreditFacilityDomain_30943BDD4F1C95889DEED6219A246F6D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevolvingCreditFacilityMember" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_D6973C25868C60143A75D6219A241838" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_30943BDD4F1C95889DEED6219A246F6D" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_D6973C25868C60143A75D6219A241838" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_TermLoanMember" xlink:label="loc_ubnt_TermLoanMember_C9DCEE8134ADF7C1C022D6219A24C43C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_30943BDD4F1C95889DEED6219A246F6D" xlink:to="loc_ubnt_TermLoanMember_C9DCEE8134ADF7C1C022D6219A24C43C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LetterOfCreditMember" xlink:label="loc_us-gaap_LetterOfCreditMember_3434DFE852848A2DE314D6219A244C9C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_30943BDD4F1C95889DEED6219A246F6D" xlink:to="loc_us-gaap_LetterOfCreditMember_3434DFE852848A2DE314D6219A244C9C" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_SwinglineLoanMember" xlink:label="loc_ubnt_SwinglineLoanMember_C905ADDF553AC224D7C5D6219A24A268" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_30943BDD4F1C95889DEED6219A246F6D" xlink:to="loc_ubnt_SwinglineLoanMember_C905ADDF553AC224D7C5D6219A24A268" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="loc_us-gaap_DebtInstrumentAxis_22F2436FCBA5F0C19187D6219A251873" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_CF2BD6CE247A551F7D81D6219A21BF4C" xlink:to="loc_us-gaap_DebtInstrumentAxis_22F2436FCBA5F0C19187D6219A251873" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_F314B9D8BDDC235DA9FCD6219A252D28_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_22F2436FCBA5F0C19187D6219A251873" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_F314B9D8BDDC235DA9FCD6219A252D28_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_F314B9D8BDDC235DA9FCD6219A252D28" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_22F2436FCBA5F0C19187D6219A251873" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_F314B9D8BDDC235DA9FCD6219A252D28" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_AmendedCreditAgreementMember" xlink:label="loc_ubnt_AmendedCreditAgreementMember_93FAF4BFA49B61D225FFD6219A250914" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_F314B9D8BDDC235DA9FCD6219A252D28" xlink:to="loc_ubnt_AmendedCreditAgreementMember_93FAF4BFA49B61D225FFD6219A250914" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_SecondAmendedRestatedCreditAgreementMember" xlink:label="loc_ubnt_SecondAmendedRestatedCreditAgreementMember_8EC573FA248FF4CC9A93D6219A2534F6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_F314B9D8BDDC235DA9FCD6219A252D28" xlink:to="loc_ubnt_SecondAmendedRestatedCreditAgreementMember_8EC573FA248FF4CC9A93D6219A2534F6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableRateAxis" xlink:label="loc_us-gaap_VariableRateAxis_51BA613F58747FF5C9A1D6219A264DD4" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_CF2BD6CE247A551F7D81D6219A21BF4C" xlink:to="loc_us-gaap_VariableRateAxis_51BA613F58747FF5C9A1D6219A264DD4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableRateDomain" xlink:label="loc_us-gaap_VariableRateDomain_3CB32C71DA143BA52B85D6219A266242_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_51BA613F58747FF5C9A1D6219A264DD4" xlink:to="loc_us-gaap_VariableRateDomain_3CB32C71DA143BA52B85D6219A266242_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_VariableRateDomain" xlink:label="loc_us-gaap_VariableRateDomain_3CB32C71DA143BA52B85D6219A266242" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_51BA613F58747FF5C9A1D6219A264DD4" xlink:to="loc_us-gaap_VariableRateDomain_3CB32C71DA143BA52B85D6219A266242" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BaseRateMember" xlink:label="loc_us-gaap_BaseRateMember_390693956E4AE8F0692FD6219A27CD4B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_3CB32C71DA143BA52B85D6219A266242" xlink:to="loc_us-gaap_BaseRateMember_390693956E4AE8F0692FD6219A27CD4B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LondonInterbankOfferedRateLIBORMember" xlink:label="loc_us-gaap_LondonInterbankOfferedRateLIBORMember_B98167E52AE65288FBC5D6219A2720D6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_3CB32C71DA143BA52B85D6219A266242" xlink:to="loc_us-gaap_LondonInterbankOfferedRateLIBORMember_B98167E52AE65288FBC5D6219A2720D6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FederalFundsEffectiveSwapRateMember" xlink:label="loc_us-gaap_FederalFundsEffectiveSwapRateMember_F7BBF4FEC49D4CA5B1C5D6219A27A6A0" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_3CB32C71DA143BA52B85D6219A266242" xlink:to="loc_us-gaap_FederalFundsEffectiveSwapRateMember_F7BBF4FEC49D4CA5B1C5D6219A27A6A0" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_ApplicableInterestRateMember" xlink:label="loc_ubnt_ApplicableInterestRateMember_B5B41AADB22DC4C60A78D6219A274967" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_3CB32C71DA143BA52B85D6219A266242" xlink:to="loc_ubnt_ApplicableInterestRateMember_B5B41AADB22DC4C60A78D6219A274967" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_F22081F9458610EA46D4D6219A276CEE" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_CF2BD6CE247A551F7D81D6219A21BF4C" xlink:to="loc_srt_RangeAxis_F22081F9458610EA46D4D6219A276CEE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_64782A97EAAE9A85CDB0D6219A28BE9B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_F22081F9458610EA46D4D6219A276CEE" xlink:to="loc_srt_RangeMember_64782A97EAAE9A85CDB0D6219A28BE9B_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_64782A97EAAE9A85CDB0D6219A28BE9B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_F22081F9458610EA46D4D6219A276CEE" xlink:to="loc_srt_RangeMember_64782A97EAAE9A85CDB0D6219A28BE9B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_BC5D922A98110392E34AD6219A2878ED" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_64782A97EAAE9A85CDB0D6219A28BE9B" xlink:to="loc_srt_MinimumMember_BC5D922A98110392E34AD6219A2878ED" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_F62B25FD95CBFDB4D51BD6219A283697" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_64782A97EAAE9A85CDB0D6219A28BE9B" xlink:to="loc_srt_MaximumMember_F62B25FD95CBFDB4D51BD6219A283697" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_4B73B914BE429E34FF6ED6219A2992F9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_524AFF738AC37DFE1E2ED6219A29B531" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_4B73B914BE429E34FF6ED6219A2992F9" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_LineofCreditFacilityOptionAdditionalMaximumBorrowingCapacity" xlink:label="loc_ubnt_LineofCreditFacilityOptionAdditionalMaximumBorrowingCapacity_6642C4129F8958D58943D6219A29938D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_524AFF738AC37DFE1E2ED6219A29B531" xlink:to="loc_ubnt_LineofCreditFacilityOptionAdditionalMaximumBorrowingCapacity_6642C4129F8958D58943D6219A29938D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RepaymentsOfLongTermLinesOfCredit" xlink:label="loc_us-gaap_RepaymentsOfLongTermLinesOfCredit_08D175470574CCDE849DD6219A29EFA4" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_524AFF738AC37DFE1E2ED6219A29B531" xlink:to="loc_us-gaap_RepaymentsOfLongTermLinesOfCredit_08D175470574CCDE849DD6219A29EFA4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtIssuanceCostsLineOfCreditArrangementsGross" xlink:label="loc_us-gaap_DebtIssuanceCostsLineOfCreditArrangementsGross_CA743E562F383027627CD6219A298759" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_524AFF738AC37DFE1E2ED6219A29B531" xlink:to="loc_us-gaap_DebtIssuanceCostsLineOfCreditArrangementsGross_CA743E562F383027627CD6219A298759" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_LineofCreditFacilityPeriodicPaymentPrincipalPercentage" xlink:label="loc_ubnt_LineofCreditFacilityPeriodicPaymentPrincipalPercentage_D9F20E206289EA6DF947D6219A2957C9" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_524AFF738AC37DFE1E2ED6219A29B531" xlink:to="loc_ubnt_LineofCreditFacilityPeriodicPaymentPrincipalPercentage_D9F20E206289EA6DF947D6219A2957C9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_B6C9B93FC9A64F66091CD6219A2A500B" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_524AFF738AC37DFE1E2ED6219A29B531" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_B6C9B93FC9A64F66091CD6219A2A500B" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_DebtInstrumentDebtDefaultBasisSpreadOverApplicableInterestRate" xlink:label="loc_ubnt_DebtInstrumentDebtDefaultBasisSpreadOverApplicableInterestRate_31D2EDB15217EA741C21D6219A2AEC9E" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_524AFF738AC37DFE1E2ED6219A29B531" xlink:to="loc_ubnt_DebtInstrumentDebtDefaultBasisSpreadOverApplicableInterestRate_31D2EDB15217EA741C21D6219A2AEC9E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage" xlink:label="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_D75F5AEBFCD788995683D6219A2ADA61" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_524AFF738AC37DFE1E2ED6219A29B531" xlink:to="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_D75F5AEBFCD788995683D6219A2ADA61" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_LineofCreditFacilityDebtIssuanceCostsPercentageAnnually" xlink:label="loc_ubnt_LineofCreditFacilityDebtIssuanceCostsPercentageAnnually_BF795A2866FCCF7AC41FD6219A2A711B" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_524AFF738AC37DFE1E2ED6219A29B531" xlink:to="loc_ubnt_LineofCreditFacilityDebtIssuanceCostsPercentageAnnually_BF795A2866FCCF7AC41FD6219A2A711B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RatioOfIndebtednessToNetCapital1" xlink:label="loc_us-gaap_RatioOfIndebtednessToNetCapital1_EC0C87EAA10A9D47AB5BD6219A2AD44F" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_524AFF738AC37DFE1E2ED6219A29B531" xlink:to="loc_us-gaap_RatioOfIndebtednessToNetCapital1_EC0C87EAA10A9D47AB5BD6219A2AD44F" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_LineofCreditFacilityCovenantTermsMinimumLiquidity" xlink:label="loc_ubnt_LineofCreditFacilityCovenantTermsMinimumLiquidity_1BC05EA7891B2C830FC3D6219A2BEF88" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_524AFF738AC37DFE1E2ED6219A29B531" xlink:to="loc_ubnt_LineofCreditFacilityCovenantTermsMinimumLiquidity_1BC05EA7891B2C830FC3D6219A2BEF88" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_LineofCreditFacilityCovenantTermsMinimumAvailableBorrowingstoSatisfyCovenant" xlink:label="loc_ubnt_LineofCreditFacilityCovenantTermsMinimumAvailableBorrowingstoSatisfyCovenant_A0C9964E69D9EF3C9546D6219A2B59CD" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_524AFF738AC37DFE1E2ED6219A29B531" xlink:to="loc_ubnt_LineofCreditFacilityCovenantTermsMinimumAvailableBorrowingstoSatisfyCovenant_A0C9964E69D9EF3C9546D6219A2B59CD" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_RepaymentofLongTermLinesofCreditPrincipal" xlink:label="loc_ubnt_RepaymentofLongTermLinesofCreditPrincipal_26DB7871C9B7B87A4D75D6219A2B3472" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_524AFF738AC37DFE1E2ED6219A29B531" xlink:to="loc_ubnt_RepaymentofLongTermLinesofCreditPrincipal_26DB7871C9B7B87A4D75D6219A2B3472" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_RepaymentofLongTermLinesofCreditInterest" xlink:label="loc_ubnt_RepaymentofLongTermLinesofCreditInterest_BC18132D7AA2A6178A35D6219A2B9615" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_524AFF738AC37DFE1E2ED6219A29B531" xlink:to="loc_ubnt_RepaymentofLongTermLinesofCreditInterest_BC18132D7AA2A6178A35D6219A2B9615" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCredit" xlink:label="loc_us-gaap_LineOfCredit_4FF8EFE63C1DABF13A7CD6219A2B1F5C" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_524AFF738AC37DFE1E2ED6219A29B531" xlink:to="loc_us-gaap_LineOfCredit_4FF8EFE63C1DABF13A7CD6219A2B1F5C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditFacilityInterestRateDuringPeriod" xlink:label="loc_us-gaap_LineOfCreditFacilityInterestRateDuringPeriod_3E3A43FE0B746F605374D6219A2BDA74" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_524AFF738AC37DFE1E2ED6219A29B531" xlink:to="loc_us-gaap_LineOfCreditFacilityInterestRateDuringPeriod_3E3A43FE0B746F605374D6219A2BDA74" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ubnt.com/role/DebtSummaryOfDebtAndInterestPaymentObligationsDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/DebtSummaryOfDebtDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentLineItems" xlink:label="loc_us-gaap_DebtInstrumentLineItems_1F720D264BBA519FBDF1D6219A14F59D" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentTable" xlink:label="loc_us-gaap_DebtInstrumentTable_1402C1ED078525CD71C7D6219A11DA39" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1F720D264BBA519FBDF1D6219A14F59D" xlink:to="loc_us-gaap_DebtInstrumentTable_1402C1ED078525CD71C7D6219A11DA39" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditFacilityAxis" xlink:label="loc_us-gaap_CreditFacilityAxis_A3FE5825A477FB0E95A2D6219A11C3D1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_1402C1ED078525CD71C7D6219A11DA39" xlink:to="loc_us-gaap_CreditFacilityAxis_A3FE5825A477FB0E95A2D6219A11C3D1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_1024E695E75F4A78664AD6219A12C192_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_A3FE5825A477FB0E95A2D6219A11C3D1" xlink:to="loc_us-gaap_CreditFacilityDomain_1024E695E75F4A78664AD6219A12C192_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_1024E695E75F4A78664AD6219A12C192" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_A3FE5825A477FB0E95A2D6219A11C3D1" xlink:to="loc_us-gaap_CreditFacilityDomain_1024E695E75F4A78664AD6219A12C192" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_TermLoanMember" xlink:label="loc_ubnt_TermLoanMember_DBFCEC284BCC1C99469ED6219A12E307" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_1024E695E75F4A78664AD6219A12C192" xlink:to="loc_ubnt_TermLoanMember_DBFCEC284BCC1C99469ED6219A12E307" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShortTermBorrowings" xlink:label="loc_us-gaap_ShortTermBorrowings_57C6A2D9C2A40B12E23AD6219A142850" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1F720D264BBA519FBDF1D6219A14F59D" xlink:to="loc_us-gaap_ShortTermBorrowings_57C6A2D9C2A40B12E23AD6219A142850" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredFinanceCostsCurrentNet" xlink:label="loc_us-gaap_DeferredFinanceCostsCurrentNet_01BD4A92890B57EAF83AD6219A1550BB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1F720D264BBA519FBDF1D6219A14F59D" xlink:to="loc_us-gaap_DeferredFinanceCostsCurrentNet_01BD4A92890B57EAF83AD6219A1550BB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongTermDebtNoncurrent" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_775AB78C6F28F133CEF3D6219A15E809" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1F720D264BBA519FBDF1D6219A14F59D" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_775AB78C6F28F133CEF3D6219A15E809" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredFinanceCostsNoncurrentNet" xlink:label="loc_us-gaap_DeferredFinanceCostsNoncurrentNet_71C360DB221142481A75D6219A15946B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1F720D264BBA519FBDF1D6219A14F59D" xlink:to="loc_us-gaap_DeferredFinanceCostsNoncurrentNet_71C360DB221142481A75D6219A15946B" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ubnt.com/role/DebtTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/DocumentAndEntityInformation" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/EarningsPerShare" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/EarningsPerShareAntiDilutiveSecuritiesDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_B01B653E49EE76C663421CBF875C8C92" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" xlink:label="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_6F66518B8B87BF1CDD071CBF875B3295" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_B01B653E49EE76C663421CBF875C8C92" xlink:to="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_6F66518B8B87BF1CDD071CBF875B3295" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_98F360AC6732943608641CBF875C765F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_6F66518B8B87BF1CDD071CBF875B3295" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_98F360AC6732943608641CBF875C765F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_0CBE15E3242C691497A41CBF875C2E18_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_98F360AC6732943608641CBF875C765F" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_0CBE15E3242C691497A41CBF875C2E18_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_0CBE15E3242C691497A41CBF875C2E18" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_98F360AC6732943608641CBF875C765F" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_0CBE15E3242C691497A41CBF875C2E18" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_34274E96029A912991421CBF875C5CF0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_0CBE15E3242C691497A41CBF875C2E18" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_34274E96029A912991421CBF875C5CF0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_32657EBE5715DB99CC691CBF875D4F3A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_B01B653E49EE76C663421CBF875C8C92" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_32657EBE5715DB99CC691CBF875D4F3A" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ubnt.com/role/EarningsPerShareComputationOfBasicAndDilutedEarningsPerShareDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_5B2CD7F4906976EAE183D10A591B7A1A" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_4A3A73A09671FE70A51BD10A5919632E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_5B2CD7F4906976EAE183D10A591B7A1A" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_4A3A73A09671FE70A51BD10A5919632E" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_3DE5A9405BB2EE1A611FD10A591991B6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_4A3A73A09671FE70A51BD10A5919632E" xlink:to="loc_us-gaap_AwardTypeAxis_3DE5A9405BB2EE1A611FD10A591991B6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_D8F6F7DAA82EDCAD25BAD10A591ABA2F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_3DE5A9405BB2EE1A611FD10A591991B6" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_D8F6F7DAA82EDCAD25BAD10A591ABA2F_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_D8F6F7DAA82EDCAD25BAD10A591ABA2F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_3DE5A9405BB2EE1A611FD10A591991B6" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_D8F6F7DAA82EDCAD25BAD10A591ABA2F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaap_EmployeeStockOptionMember_8E4C69791132372B8437D10A591A43AC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_D8F6F7DAA82EDCAD25BAD10A591ABA2F" xlink:to="loc_us-gaap_EmployeeStockOptionMember_8E4C69791132372B8437D10A591A43AC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_387C6335820B016813DDD10A591B3892" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_D8F6F7DAA82EDCAD25BAD10A591ABA2F" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_387C6335820B016813DDD10A591B3892" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersDilutedAbstract" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDilutedAbstract_7111A007EC8A3EA36001D10A591B93CE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_5B2CD7F4906976EAE183D10A591B7A1A" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDilutedAbstract_7111A007EC8A3EA36001D10A591B93CE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_CA138749E198FCCA0EE5D10A591BFA4A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDilutedAbstract_7111A007EC8A3EA36001D10A591B93CE" xlink:to="loc_us-gaap_NetIncomeLoss_CA138749E198FCCA0EE5D10A591BFA4A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract_B556A374169694FCEA60D10A591C355C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_5B2CD7F4906976EAE183D10A591B7A1A" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract_B556A374169694FCEA60D10A591C355C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_36E7ABACAC7BE8FCFE94D10A591C409B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract_B556A374169694FCEA60D10A591C355C" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_36E7ABACAC7BE8FCFE94D10A591C409B" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_DilutivePotentialCommonSharesAbstract" xlink:label="loc_ubnt_DilutivePotentialCommonSharesAbstract_F4F3880EBE373707DE30D10A591C0A93" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract_B556A374169694FCEA60D10A591C355C" xlink:to="loc_ubnt_DilutivePotentialCommonSharesAbstract_F4F3880EBE373707DE30D10A591C0A93" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_5894BFD1E72F7526F812D10A591C09B6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ubnt_DilutivePotentialCommonSharesAbstract_F4F3880EBE373707DE30D10A591C0A93" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_5894BFD1E72F7526F812D10A591C09B6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_968F200A57CC3D2CCC1BD10A591D15D4" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_5B2CD7F4906976EAE183D10A591B7A1A" xlink:to="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_968F200A57CC3D2CCC1BD10A591D15D4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EarningsPerShareBasicAndDilutedAbstract" xlink:label="loc_us-gaap_EarningsPerShareBasicAndDilutedAbstract_11F0F8ACD3727B540AC7D10A591DDA9A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_5B2CD7F4906976EAE183D10A591B7A1A" xlink:to="loc_us-gaap_EarningsPerShareBasicAndDilutedAbstract_11F0F8ACD3727B540AC7D10A591DDA9A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EarningsPerShareBasic" xlink:label="loc_us-gaap_EarningsPerShareBasic_6E2A22B03E9F5C063A48D10A591D07A4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicAndDilutedAbstract_11F0F8ACD3727B540AC7D10A591DDA9A" xlink:to="loc_us-gaap_EarningsPerShareBasic_6E2A22B03E9F5C063A48D10A591D07A4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EarningsPerShareDiluted" xlink:label="loc_us-gaap_EarningsPerShareDiluted_38EB585EDB4EFF415E26D10A591D864B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicAndDilutedAbstract_11F0F8ACD3727B540AC7D10A591DDA9A" xlink:to="loc_us-gaap_EarningsPerShareDiluted_38EB585EDB4EFF415E26D10A591D864B" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ubnt.com/role/EarningsPerShareTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/FairValueOfFinancialInstruments" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/FairValueOfFinancialInstrumentsContinuousLossPositionDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/FairValueOfFinancialInstrumentsDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_C096D3D8DCB4BBD22BA3EAC7CC673C72" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_88832F03630F678726BEEAC7CC664BF8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_C096D3D8DCB4BBD22BA3EAC7CC673C72" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_88832F03630F678726BEEAC7CC664BF8" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_012ED6C6AFCD01A7046AEAC7CC6609BD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_88832F03630F678726BEEAC7CC664BF8" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_012ED6C6AFCD01A7046AEAC7CC6609BD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_62926B1943928C576378EAC7CC67064D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_012ED6C6AFCD01A7046AEAC7CC6609BD" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_62926B1943928C576378EAC7CC67064D_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_62926B1943928C576378EAC7CC67064D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_012ED6C6AFCD01A7046AEAC7CC6609BD" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_62926B1943928C576378EAC7CC67064D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueInputsLevel2Member" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_A295C429110C590E1DACEAC7CC673418" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_62926B1943928C576378EAC7CC67064D" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_A295C429110C590E1DACEAC7CC673418" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentFairValue" xlink:label="loc_us-gaap_DebtInstrumentFairValue_19AF737ABAE6632EB18AEAC7CC684441" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_C096D3D8DCB4BBD22BA3EAC7CC673C72" xlink:to="loc_us-gaap_DebtInstrumentFairValue_19AF737ABAE6632EB18AEAC7CC684441" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ubnt.com/role/FairValueOfFinancialInstrumentsScheduleOfFinancialInstrumentsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MarketableSecuritiesLineItems" xlink:label="loc_us-gaap_MarketableSecuritiesLineItems_DE3F80D6C36992EA3D09E9FFD94CCF2D" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MarketableSecuritiesTable" xlink:label="loc_us-gaap_MarketableSecuritiesTable_573C6ABD9073A40EAD63E9FFD948D684" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_MarketableSecuritiesLineItems_DE3F80D6C36992EA3D09E9FFD94CCF2D" xlink:to="loc_us-gaap_MarketableSecuritiesTable_573C6ABD9073A40EAD63E9FFD948D684" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByMeasurementFrequencyAxis" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_934CCDC2EBE138DEA994E9FFD949AB70" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_MarketableSecuritiesTable_573C6ABD9073A40EAD63E9FFD948D684" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_934CCDC2EBE138DEA994E9FFD949AB70" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_0CAEBBB9C1E47342AFCAE9FFD949F62B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_934CCDC2EBE138DEA994E9FFD949AB70" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_0CAEBBB9C1E47342AFCAE9FFD949F62B_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_0CAEBBB9C1E47342AFCAE9FFD949F62B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_934CCDC2EBE138DEA994E9FFD949AB70" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_0CAEBBB9C1E47342AFCAE9FFD949F62B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsRecurringMember" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_AAFD8C7624794EE43C7CE9FFD94915F0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_0CAEBBB9C1E47342AFCAE9FFD949F62B" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_AAFD8C7624794EE43C7CE9FFD94915F0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="loc_us-gaap_FinancialInstrumentAxis_0F05BEA922397EA8CAABE9FFD94ADEAF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_MarketableSecuritiesTable_573C6ABD9073A40EAD63E9FFD948D684" xlink:to="loc_us-gaap_FinancialInstrumentAxis_0F05BEA922397EA8CAABE9FFD94ADEAF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_C03457C971DFA2F84BD5E9FFD94AF38F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_0F05BEA922397EA8CAABE9FFD94ADEAF" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_C03457C971DFA2F84BD5E9FFD94AF38F_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_C03457C971DFA2F84BD5E9FFD94AF38F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_0F05BEA922397EA8CAABE9FFD94ADEAF" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_C03457C971DFA2F84BD5E9FFD94AF38F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MoneyMarketFundsMember" xlink:label="loc_us-gaap_MoneyMarketFundsMember_FF40B8BC960755718C8BE9FFD94A7918" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_C03457C971DFA2F84BD5E9FFD94AF38F" xlink:to="loc_us-gaap_MoneyMarketFundsMember_FF40B8BC960755718C8BE9FFD94A7918" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommercialPaperMember" xlink:label="loc_us-gaap_CommercialPaperMember_7F3D1CDB954BAD725150E9FFD94A6639" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_C03457C971DFA2F84BD5E9FFD94AF38F" xlink:to="loc_us-gaap_CommercialPaperMember_7F3D1CDB954BAD725150E9FFD94A6639" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CorporateDebtSecuritiesMember" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_99AB8E52666FF0F18C1EE9FFD94B0C75" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_C03457C971DFA2F84BD5E9FFD94AF38F" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_99AB8E52666FF0F18C1EE9FFD94B0C75" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USGovernmentAgenciesDebtSecuritiesMember" xlink:label="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_C40A0F1E8CFF48126F4DE9FFD94B9BF3" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_C03457C971DFA2F84BD5E9FFD94AF38F" xlink:to="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_C40A0F1E8CFF48126F4DE9FFD94B9BF3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USTreasuryBondSecuritiesMember" xlink:label="loc_us-gaap_USTreasuryBondSecuritiesMember_E2BC8CA5CFC2EC5456BDE9FFD94BA0C6" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_C03457C971DFA2F84BD5E9FFD94AF38F" xlink:to="loc_us-gaap_USTreasuryBondSecuritiesMember_E2BC8CA5CFC2EC5456BDE9FFD94BA0C6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_F785164885583ED1CAB5E9FFD94B2F01" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_MarketableSecuritiesTable_573C6ABD9073A40EAD63E9FFD948D684" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_F785164885583ED1CAB5E9FFD94B2F01" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_543A692EBC0E85CC3367E9FFD94BA14B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_F785164885583ED1CAB5E9FFD94B2F01" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_543A692EBC0E85CC3367E9FFD94BA14B_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_543A692EBC0E85CC3367E9FFD94BA14B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_F785164885583ED1CAB5E9FFD94B2F01" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_543A692EBC0E85CC3367E9FFD94BA14B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueInputsLevel1Member" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_0C54EC3777F694524BB4E9FFD94CFB08" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_543A692EBC0E85CC3367E9FFD94BA14B" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_0C54EC3777F694524BB4E9FFD94CFB08" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueInputsLevel2Member" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_0AFA5F396B2907B0FE8BE9FFD94C7D24" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_543A692EBC0E85CC3367E9FFD94BA14B" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_0AFA5F396B2907B0FE8BE9FFD94C7D24" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_A486FA05FE6F5426B815E9FFD94C2537" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MarketableSecuritiesLineItems_DE3F80D6C36992EA3D09E9FFD94CCF2D" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_A486FA05FE6F5426B815E9FFD94C2537" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesGrossUnrealizedGain" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesGrossUnrealizedGain_731EBE4763EF386CDAA2E9FFD94D0527" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MarketableSecuritiesLineItems_DE3F80D6C36992EA3D09E9FFD94CCF2D" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesGrossUnrealizedGain_731EBE4763EF386CDAA2E9FFD94D0527" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesGrossUnrealizedLoss" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesGrossUnrealizedLoss_9610E942606C28E05171E9FFD94D2CA6" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MarketableSecuritiesLineItems_DE3F80D6C36992EA3D09E9FFD94CCF2D" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesGrossUnrealizedLoss_9610E942606C28E05171E9FFD94D2CA6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_69CC6F8E86B17E0364F2E9FFD94D83DE" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MarketableSecuritiesLineItems_DE3F80D6C36992EA3D09E9FFD94CCF2D" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_69CC6F8E86B17E0364F2E9FFD94D83DE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_28467E7EE0CE568281FAE9FFD94DAD0B" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MarketableSecuritiesLineItems_DE3F80D6C36992EA3D09E9FFD94CCF2D" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_28467E7EE0CE568281FAE9FFD94DAD0B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_C77B16F699772CA75DB8E9FFD94D3006" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MarketableSecuritiesLineItems_DE3F80D6C36992EA3D09E9FFD94CCF2D" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_C77B16F699772CA75DB8E9FFD94D3006" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecuritiesNoncurrent" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesNoncurrent_1E940FB4DF126E732837E9FFD94DB1EC" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MarketableSecuritiesLineItems_DE3F80D6C36992EA3D09E9FFD94CCF2D" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesNoncurrent_1E940FB4DF126E732837E9FFD94DB1EC" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ubnt.com/role/FairValueOfFinancialInstrumentsScheduleOfInvestmentSecurityByContractMaturityDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/FairValueOfFinancialInstrumentsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/IncomeTaxes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/IncomeTaxesDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SignificantChangeInUnrecognizedTaxBenefitsIsReasonablyPossibleLineItems" xlink:label="loc_us-gaap_SignificantChangeInUnrecognizedTaxBenefitsIsReasonablyPossibleLineItems_A650B9F1DDE410FC7A35E9FFD6FCF356" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SignificantChangeInUnrecognizedTaxBenefitsIsReasonablyPossibleTable" xlink:label="loc_us-gaap_SignificantChangeInUnrecognizedTaxBenefitsIsReasonablyPossibleTable_62902E345A20A3591110E9FFD6FA2ACD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SignificantChangeInUnrecognizedTaxBenefitsIsReasonablyPossibleLineItems_A650B9F1DDE410FC7A35E9FFD6FCF356" xlink:to="loc_us-gaap_SignificantChangeInUnrecognizedTaxBenefitsIsReasonablyPossibleTable_62902E345A20A3591110E9FFD6FA2ACD" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxAuthorityAxis" xlink:label="loc_us-gaap_IncomeTaxAuthorityAxis_07871C4203F1A22A723DEA4030A59A83" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SignificantChangeInUnrecognizedTaxBenefitsIsReasonablyPossibleTable_62902E345A20A3591110E9FFD6FA2ACD" xlink:to="loc_us-gaap_IncomeTaxAuthorityAxis_07871C4203F1A22A723DEA4030A59A83" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_F2834B1FDFA300059208EA414966D695_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_07871C4203F1A22A723DEA4030A59A83" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_F2834B1FDFA300059208EA414966D695_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_F2834B1FDFA300059208EA414966D695" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_07871C4203F1A22A723DEA4030A59A83" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_F2834B1FDFA300059208EA414966D695" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InternalRevenueServiceIRSMember" xlink:label="loc_us-gaap_InternalRevenueServiceIRSMember_7DA2F397D1E7F7793FA8EA403197992A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_F2834B1FDFA300059208EA414966D695" xlink:to="loc_us-gaap_InternalRevenueServiceIRSMember_7DA2F397D1E7F7793FA8EA403197992A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ReasonablyPossibleSignificantChangeInUnrecognizedTaxBenefitsByItemAxis" xlink:label="loc_us-gaap_ReasonablyPossibleSignificantChangeInUnrecognizedTaxBenefitsByItemAxis_7EC2F2B006E05991C939E9FFD6FBB5CE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SignificantChangeInUnrecognizedTaxBenefitsIsReasonablyPossibleTable_62902E345A20A3591110E9FFD6FA2ACD" xlink:to="loc_us-gaap_ReasonablyPossibleSignificantChangeInUnrecognizedTaxBenefitsByItemAxis_7EC2F2B006E05991C939E9FFD6FBB5CE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SignificantChangeInUnrecognizedTaxBenefitsIsReasonablyPossibleNatureOfUncertaintyDomain" xlink:label="loc_us-gaap_SignificantChangeInUnrecognizedTaxBenefitsIsReasonablyPossibleNatureOfUncertaintyDomain_E7612BF6CC726249D44BE9FFD6FB0441_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ReasonablyPossibleSignificantChangeInUnrecognizedTaxBenefitsByItemAxis_7EC2F2B006E05991C939E9FFD6FBB5CE" xlink:to="loc_us-gaap_SignificantChangeInUnrecognizedTaxBenefitsIsReasonablyPossibleNatureOfUncertaintyDomain_E7612BF6CC726249D44BE9FFD6FB0441_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SignificantChangeInUnrecognizedTaxBenefitsIsReasonablyPossibleNatureOfUncertaintyDomain" xlink:label="loc_us-gaap_SignificantChangeInUnrecognizedTaxBenefitsIsReasonablyPossibleNatureOfUncertaintyDomain_E7612BF6CC726249D44BE9FFD6FB0441" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ReasonablyPossibleSignificantChangeInUnrecognizedTaxBenefitsByItemAxis_7EC2F2B006E05991C939E9FFD6FBB5CE" xlink:to="loc_us-gaap_SignificantChangeInUnrecognizedTaxBenefitsIsReasonablyPossibleNatureOfUncertaintyDomain_E7612BF6CC726249D44BE9FFD6FB0441" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_SettlementWithTaxingAuthorityofStatuteLapsesMember" xlink:label="loc_ubnt_SettlementWithTaxingAuthorityofStatuteLapsesMember_92FEF498B4B9B973A9B0EA40313156CE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SignificantChangeInUnrecognizedTaxBenefitsIsReasonablyPossibleNatureOfUncertaintyDomain_E7612BF6CC726249D44BE9FFD6FB0441" xlink:to="loc_ubnt_SettlementWithTaxingAuthorityofStatuteLapsesMember_92FEF498B4B9B973A9B0EA40313156CE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DecreaseInUnrecognizedTaxBenefitsIsReasonablyPossible" xlink:label="loc_us-gaap_DecreaseInUnrecognizedTaxBenefitsIsReasonablyPossible_400C64D17B36F5803F76E9FFD6FCE343" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SignificantChangeInUnrecognizedTaxBenefitsIsReasonablyPossibleLineItems_A650B9F1DDE410FC7A35E9FFD6FCF356" xlink:to="loc_us-gaap_DecreaseInUnrecognizedTaxBenefitsIsReasonablyPossible_400C64D17B36F5803F76E9FFD6FCE343" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LossContingencyEstimateOfPossibleLoss" xlink:label="loc_us-gaap_LossContingencyEstimateOfPossibleLoss_9CED5440597F1BC1F9FBEA402F618D07" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SignificantChangeInUnrecognizedTaxBenefitsIsReasonablyPossibleLineItems_A650B9F1DDE410FC7A35E9FFD6FCF356" xlink:to="loc_us-gaap_LossContingencyEstimateOfPossibleLoss_9CED5440597F1BC1F9FBEA402F618D07" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ubnt.com/role/RelatedPartyTransactionsAndCertainOtherTransactions" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/RelatedPartyTransactionsAndCertainOtherTransactionsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RelatedPartyTransactionLineItems" xlink:label="loc_us-gaap_RelatedPartyTransactionLineItems_041CED60D57D32FBE65E1CBF86830E84" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable" xlink:label="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_F62D7F9DF34A938814A11CBF86805FD2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_041CED60D57D32FBE65E1CBF86830E84" xlink:to="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_F62D7F9DF34A938814A11CBF86805FD2" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_DAB674BA92CF0AB0C7231CBF86811F95" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_F62D7F9DF34A938814A11CBF86805FD2" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_DAB674BA92CF0AB0C7231CBF86811F95" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_DE63086714D8DA7F4C0C1CBF86811829_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_DAB674BA92CF0AB0C7231CBF86811F95" xlink:to="loc_us-gaap_RelatedPartyDomain_DE63086714D8DA7F4C0C1CBF86811829_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_DE63086714D8DA7F4C0C1CBF86811829" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_DAB674BA92CF0AB0C7231CBF86811F95" xlink:to="loc_us-gaap_RelatedPartyDomain_DE63086714D8DA7F4C0C1CBF86811829" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ChiefExecutiveOfficerMember" xlink:label="loc_us-gaap_ChiefExecutiveOfficerMember_36F175BF1A69105335FE1CBF8681D5A4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_DE63086714D8DA7F4C0C1CBF86811829" xlink:to="loc_us-gaap_ChiefExecutiveOfficerMember_36F175BF1A69105335FE1CBF8681D5A4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_7CF6DCAC610FD2E7D2AC1CBF8682153F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_F62D7F9DF34A938814A11CBF86805FD2" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_7CF6DCAC610FD2E7D2AC1CBF8682153F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_71EF02B3F999316AFC1B1CBF8682CC76_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_7CF6DCAC610FD2E7D2AC1CBF8682153F" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_71EF02B3F999316AFC1B1CBF8682CC76_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_71EF02B3F999316AFC1B1CBF8682CC76" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_7CF6DCAC610FD2E7D2AC1CBF8682153F" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_71EF02B3F999316AFC1B1CBF8682CC76" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SellingGeneralAndAdministrativeExpensesMember" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_BED7CBB08DB3EE6B576E1CBF8682EA36" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_71EF02B3F999316AFC1B1CBF8682CC76" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_BED7CBB08DB3EE6B576E1CBF8682EA36" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RelatedPartyTransactionAxis" xlink:label="loc_us-gaap_RelatedPartyTransactionAxis_49148E9D5FA58BF4B95D1CBF8682D879" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_F62D7F9DF34A938814A11CBF86805FD2" xlink:to="loc_us-gaap_RelatedPartyTransactionAxis_49148E9D5FA58BF4B95D1CBF8682D879" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RelatedPartyTransactionDomain" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_FF881BF5CBBD04AB168C1CBF8682D7BD_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_49148E9D5FA58BF4B95D1CBF8682D879" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_FF881BF5CBBD04AB168C1CBF8682D7BD_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RelatedPartyTransactionDomain" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_FF881BF5CBBD04AB168C1CBF8682D7BD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_49148E9D5FA58BF4B95D1CBF8682D879" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_FF881BF5CBBD04AB168C1CBF8682D7BD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LeaseAgreementsMember" xlink:label="loc_us-gaap_LeaseAgreementsMember_15EF4C3AF2A2283B61841CBF8683C221" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_FF881BF5CBBD04AB168C1CBF8682D7BD" xlink:to="loc_us-gaap_LeaseAgreementsMember_15EF4C3AF2A2283B61841CBF8683C221" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_AircraftLeasingHourlyRate" xlink:label="loc_ubnt_AircraftLeasingHourlyRate_E245C598ABE33ADD4F211CBF8683AE2A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_041CED60D57D32FBE65E1CBF86830E84" xlink:to="loc_ubnt_AircraftLeasingHourlyRate_E245C598ABE33ADD4F211CBF8683AE2A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AircraftRental" xlink:label="loc_us-gaap_AircraftRental_0899C3C8A57791A924221CBF868493A0" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_041CED60D57D32FBE65E1CBF86830E84" xlink:to="loc_us-gaap_AircraftRental_0899C3C8A57791A924221CBF868493A0" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ubnt.com/role/Revenues" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/RevenuesDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/SegmentInformationRevenuesByGeographyAndSignificantCustomers" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/SegmentInformationRevenuesByGeographyAndSignificantCustomersAdditionalInformationDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/SegmentInformationRevenuesByGeographyAndSignificantCustomersPercentageOfRevenuesAccountsReceivableDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EntityWideRevenueMajorCustomerLineItems" xlink:label="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_916D6CBA7EE1A241A9F2D6003F0025B2" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable" xlink:label="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_46AF05E9EB73968FF850D6003EF6777F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_916D6CBA7EE1A241A9F2D6003F0025B2" xlink:to="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_46AF05E9EB73968FF850D6003EF6777F" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_C7276DAD3705C31C8B41D6003EF63144" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_46AF05E9EB73968FF850D6003EF6777F" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_C7276DAD3705C31C8B41D6003EF63144" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_7179ACDB97F484BDC1EED6003EF66665_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_C7276DAD3705C31C8B41D6003EF63144" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_7179ACDB97F484BDC1EED6003EF66665_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_7179ACDB97F484BDC1EED6003EF66665" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_C7276DAD3705C31C8B41D6003EF63144" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_7179ACDB97F484BDC1EED6003EF66665" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SalesRevenueNetMember" xlink:label="loc_us-gaap_SalesRevenueNetMember_F6065845CA7BCAF94A4DD6003EF661A8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_7179ACDB97F484BDC1EED6003EF66665" xlink:to="loc_us-gaap_SalesRevenueNetMember_F6065845CA7BCAF94A4DD6003EF661A8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountsReceivableMember" xlink:label="loc_us-gaap_AccountsReceivableMember_022499273CA75985DAB9D6003EF7AD77" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_7179ACDB97F484BDC1EED6003EF66665" xlink:to="loc_us-gaap_AccountsReceivableMember_022499273CA75985DAB9D6003EF7AD77" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MajorCustomersAxis" xlink:label="loc_srt_MajorCustomersAxis_480BF986357028F20C61D6003EF7D89F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_46AF05E9EB73968FF850D6003EF6777F" xlink:to="loc_srt_MajorCustomersAxis_480BF986357028F20C61D6003EF7D89F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_NameOfMajorCustomerDomain" xlink:label="loc_srt_NameOfMajorCustomerDomain_96D6E6674AF740D0A2BFD6003EF7F4D9_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MajorCustomersAxis_480BF986357028F20C61D6003EF7D89F" xlink:to="loc_srt_NameOfMajorCustomerDomain_96D6E6674AF740D0A2BFD6003EF7F4D9_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_NameOfMajorCustomerDomain" xlink:label="loc_srt_NameOfMajorCustomerDomain_96D6E6674AF740D0A2BFD6003EF7F4D9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MajorCustomersAxis_480BF986357028F20C61D6003EF7D89F" xlink:to="loc_srt_NameOfMajorCustomerDomain_96D6E6674AF740D0A2BFD6003EF7F4D9" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_CustomerAMember" xlink:label="loc_ubnt_CustomerAMember_9E76A67D5117BF32D8FBD6003EF804A9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_96D6E6674AF740D0A2BFD6003EF7F4D9" xlink:to="loc_ubnt_CustomerAMember_9E76A67D5117BF32D8FBD6003EF804A9" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_CustomerBMember" xlink:label="loc_ubnt_CustomerBMember_AF09F1A6E26E7470628BD6003EFF7F3C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_96D6E6674AF740D0A2BFD6003EF7F4D9" xlink:to="loc_ubnt_CustomerBMember_AF09F1A6E26E7470628BD6003EFF7F3C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskPercentage1" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_AEE464EBDF1FB566647FD6003F004CA2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_916D6CBA7EE1A241A9F2D6003F0025B2" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_AEE464EBDF1FB566647FD6003F004CA2" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ubnt.com/role/SegmentInformationRevenuesByGeographyAndSignificantCustomersRevenuesByGeographyDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_59B0BC231BC4CC1BC855D6003F1A8B12" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_B514FCFBB9FAB751E3F5D6003F11894E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_59B0BC231BC4CC1BC855D6003F1A8B12" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_B514FCFBB9FAB751E3F5D6003F11894E" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidationItemsAxis" xlink:label="loc_srt_ConsolidationItemsAxis_1DDB5C4F714F2BFAAF5FD6003F12D027" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_B514FCFBB9FAB751E3F5D6003F11894E" xlink:to="loc_srt_ConsolidationItemsAxis_1DDB5C4F714F2BFAAF5FD6003F12D027" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_B75826CAE5C96AE117C4D6003F12EF8E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_1DDB5C4F714F2BFAAF5FD6003F12D027" xlink:to="loc_srt_ConsolidationItemsDomain_B75826CAE5C96AE117C4D6003F12EF8E_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_B75826CAE5C96AE117C4D6003F12EF8E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_1DDB5C4F714F2BFAAF5FD6003F12D027" xlink:to="loc_srt_ConsolidationItemsDomain_B75826CAE5C96AE117C4D6003F12EF8E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ReportableGeographicalComponentsMember" xlink:label="loc_srt_ReportableGeographicalComponentsMember_F0EE6FBA63D9172D9CCED6003F13C392" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_B75826CAE5C96AE117C4D6003F12EF8E" xlink:to="loc_srt_ReportableGeographicalComponentsMember_F0EE6FBA63D9172D9CCED6003F13C392" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_StatementGeographicalAxis" xlink:label="loc_srt_StatementGeographicalAxis_CEDF45938130223C03A3D6003F139D17" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_B514FCFBB9FAB751E3F5D6003F11894E" xlink:to="loc_srt_StatementGeographicalAxis_CEDF45938130223C03A3D6003F139D17" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_566F3BD1643DF8902549D6003F13745A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_CEDF45938130223C03A3D6003F139D17" xlink:to="loc_srt_SegmentGeographicalDomain_566F3BD1643DF8902549D6003F13745A_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_566F3BD1643DF8902549D6003F13745A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_CEDF45938130223C03A3D6003F139D17" xlink:to="loc_srt_SegmentGeographicalDomain_566F3BD1643DF8902549D6003F13745A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_NorthAmericaMember" xlink:label="loc_srt_NorthAmericaMember_29C125E189EA48D143E3D6003F135935" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_566F3BD1643DF8902549D6003F13745A" xlink:to="loc_srt_NorthAmericaMember_29C125E189EA48D143E3D6003F135935" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_SouthAmericaMember" xlink:label="loc_srt_SouthAmericaMember_AA67214A4EE96E56495CD6003F19DEB2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_566F3BD1643DF8902549D6003F13745A" xlink:to="loc_srt_SouthAmericaMember_AA67214A4EE96E56495CD6003F19DEB2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EMEAMember" xlink:label="loc_us-gaap_EMEAMember_9BBE4C665D179D2F4187D6003F195224" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_566F3BD1643DF8902549D6003F13745A" xlink:to="loc_us-gaap_EMEAMember_9BBE4C665D179D2F4187D6003F195224" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_AsiaPacificMember" xlink:label="loc_srt_AsiaPacificMember_2C580E85B2A2C8C6F78CD6003F19B53A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_566F3BD1643DF8902549D6003F13745A" xlink:to="loc_srt_AsiaPacificMember_2C580E85B2A2C8C6F78CD6003F19B53A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_US" xlink:label="loc_country_US_220A958C4F48BE8CAD85D6003F1A5341" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_566F3BD1643DF8902549D6003F13745A" xlink:to="loc_country_US_220A958C4F48BE8CAD85D6003F1A5341" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_E8260F7B8F4FC022AC9BD6003F1AB753" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_59B0BC231BC4CC1BC855D6003F1A8B12" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_E8260F7B8F4FC022AC9BD6003F1AB753" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskPercentage1" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_9043AFA0A5351F61ABE9D6003F1A21A7" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_59B0BC231BC4CC1BC855D6003F1A8B12" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_9043AFA0A5351F61ABE9D6003F1A21A7" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ubnt.com/role/SegmentInformationRevenuesByGeographyAndSignificantCustomersRevenuesByProductDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_5D670DF2555B5625DCD53B51868924B5" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_450FA0A9DC29093994573B518689BFA1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_5D670DF2555B5625DCD53B51868924B5" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_450FA0A9DC29093994573B518689BFA1" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsegmentsAxis" xlink:label="loc_us-gaap_SubsegmentsAxis_44130515FB5F27D2419D3B5186898149" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_450FA0A9DC29093994573B518689BFA1" xlink:to="loc_us-gaap_SubsegmentsAxis_44130515FB5F27D2419D3B5186898149" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsegmentsDomain" xlink:label="loc_us-gaap_SubsegmentsDomain_39AA0D94D8846DCAB1583B51868938CB_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsegmentsAxis_44130515FB5F27D2419D3B5186898149" xlink:to="loc_us-gaap_SubsegmentsDomain_39AA0D94D8846DCAB1583B51868938CB_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsegmentsDomain" xlink:label="loc_us-gaap_SubsegmentsDomain_39AA0D94D8846DCAB1583B51868938CB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsegmentsAxis_44130515FB5F27D2419D3B5186898149" xlink:to="loc_us-gaap_SubsegmentsDomain_39AA0D94D8846DCAB1583B51868938CB" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_ServiceProviderTechnologyMember" xlink:label="loc_ubnt_ServiceProviderTechnologyMember_B9039A7AA51C573C2F893B5186896642" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsegmentsDomain_39AA0D94D8846DCAB1583B51868938CB" xlink:to="loc_ubnt_ServiceProviderTechnologyMember_B9039A7AA51C573C2F893B5186896642" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_EnterpriseTechnologyMember" xlink:label="loc_ubnt_EnterpriseTechnologyMember_16B0CC770FA3FC85B3C13B518689FF47" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsegmentsDomain_39AA0D94D8846DCAB1583B51868938CB" xlink:to="loc_ubnt_EnterpriseTechnologyMember_16B0CC770FA3FC85B3C13B518689FF47" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_3597B5BFF818CDAEF47F3B5186890B7F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_450FA0A9DC29093994573B518689BFA1" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_3597B5BFF818CDAEF47F3B5186890B7F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_7B4577391FBB7D3DE08B3B518689E6D4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_3597B5BFF818CDAEF47F3B5186890B7F" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_7B4577391FBB7D3DE08B3B518689E6D4_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_7B4577391FBB7D3DE08B3B518689E6D4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_3597B5BFF818CDAEF47F3B5186890B7F" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_7B4577391FBB7D3DE08B3B518689E6D4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SalesRevenueNetMember" xlink:label="loc_us-gaap_SalesRevenueNetMember_F09D795BDB6AAE4E59833B518689BE37" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_7B4577391FBB7D3DE08B3B518689E6D4" xlink:to="loc_us-gaap_SalesRevenueNetMember_F09D795BDB6AAE4E59833B518689BE37" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_B640B3A85A4CEF0F83813B5E110D7DBA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_5D670DF2555B5625DCD53B51868924B5" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_B640B3A85A4CEF0F83813B5E110D7DBA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ConcentrationRiskPercentage1" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_174F890280B4969C4B663B51868989DD" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_5D670DF2555B5625DCD53B51868924B5" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_174F890280B4969C4B663B51868989DD" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ubnt.com/role/SegmentInformationRevenuesByGeographyAndSignificantCustomersTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/StockBasedCompensation" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/StockBasedCompensationAdditionalInformationDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_3B89804DE02C155D27903153A38D000A" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_78C00C050F660C48335C3153A38DA56A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_3B89804DE02C155D27903153A38D000A" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_78C00C050F660C48335C3153A38DA56A" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_37A442F95E0E2C56FE223153A38DFCF2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_78C00C050F660C48335C3153A38DA56A" xlink:to="loc_us-gaap_AwardTypeAxis_37A442F95E0E2C56FE223153A38DFCF2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ADDA4CBA6A5BE28B2C2B3153A38D6F72_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_37A442F95E0E2C56FE223153A38DFCF2" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ADDA4CBA6A5BE28B2C2B3153A38D6F72_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ADDA4CBA6A5BE28B2C2B3153A38D6F72" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_37A442F95E0E2C56FE223153A38DFCF2" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ADDA4CBA6A5BE28B2C2B3153A38D6F72" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaap_EmployeeStockOptionMember_FDFF3BE9FB75213D98013153A38DCEFA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ADDA4CBA6A5BE28B2C2B3153A38D6F72" xlink:to="loc_us-gaap_EmployeeStockOptionMember_FDFF3BE9FB75213D98013153A38DCEFA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_4CB4EC1A8594519560C83153A38DD16A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ADDA4CBA6A5BE28B2C2B3153A38D6F72" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_4CB4EC1A8594519560C83153A38DD16A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockCapitalSharesReservedForFutureIssuance" xlink:label="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_E68DD04780240DA5732B318903AAD8E9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_3B89804DE02C155D27903153A38D000A" xlink:to="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_E68DD04780240DA5732B318903AAD8E9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue_9470E2A12A0D39815C013153A39D5AAB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_3B89804DE02C155D27903153A38D000A" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue_9470E2A12A0D39815C013153A39D5AAB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedStockOptions" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedStockOptions_5834FE29F9895ED7FAD93153A39D8839" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_3B89804DE02C155D27903153A38D000A" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedStockOptions_5834FE29F9895ED7FAD93153A39D8839" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionVestedInPeriodIntrinsicValue" xlink:label="loc_ubnt_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionVestedInPeriodIntrinsicValue_37461F44921E1B41C39D3153A39D0FED" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_3B89804DE02C155D27903153A38D000A" xlink:to="loc_ubnt_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionVestedInPeriodIntrinsicValue_37461F44921E1B41C39D3153A39D0FED" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueOutstanding" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueOutstanding_F6FFF616AB2B3A108F163153A39D143B" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_3B89804DE02C155D27903153A38D000A" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueOutstanding_F6FFF616AB2B3A108F163153A39D143B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions_DF14B38E6F6A70597BFF31942389A910" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_3B89804DE02C155D27903153A38D000A" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions_DF14B38E6F6A70597BFF31942389A910" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_182460A4CF1D5AD724D83153A39D409F" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_3B89804DE02C155D27903153A38D000A" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_182460A4CF1D5AD724D83153A39D409F" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ubnt.com/role/StockBasedCompensationOptionActivityForCompanysStockIncentivePlansDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/StockBasedCompensationStockBasedCompensationExpenseDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_B41833E4E6CD57ABD6461CBF8611E15A" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable" xlink:label="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_D819BE3D928F9D5206EE1CBF860F7201" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_B41833E4E6CD57ABD6461CBF8611E15A" xlink:to="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_D819BE3D928F9D5206EE1CBF860F7201" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_F9C23E7724EF503B6C021CBF8610CA8B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_D819BE3D928F9D5206EE1CBF860F7201" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_F9C23E7724EF503B6C021CBF8610CA8B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_D1ED7BCAD7F1F20DE7701CBF8610FFE0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_F9C23E7724EF503B6C021CBF8610CA8B" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_D1ED7BCAD7F1F20DE7701CBF8610FFE0_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_D1ED7BCAD7F1F20DE7701CBF8610FFE0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_F9C23E7724EF503B6C021CBF8610CA8B" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_D1ED7BCAD7F1F20DE7701CBF8610FFE0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CostOfSalesMember" xlink:label="loc_us-gaap_CostOfSalesMember_BCD222AC6943E2B20BA71CBF86105829" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_D1ED7BCAD7F1F20DE7701CBF8610FFE0" xlink:to="loc_us-gaap_CostOfSalesMember_BCD222AC6943E2B20BA71CBF86105829" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ResearchAndDevelopmentExpenseMember" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpenseMember_E4161543C22EC2C3DB471CBF86117AB4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_D1ED7BCAD7F1F20DE7701CBF8610FFE0" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpenseMember_E4161543C22EC2C3DB471CBF86117AB4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SellingGeneralAndAdministrativeExpensesMember" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_A87C6E0C741B5B9B16DB1CBF861188BF" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_D1ED7BCAD7F1F20DE7701CBF8610FFE0" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_A87C6E0C741B5B9B16DB1CBF861188BF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_85010089E80D2CD32B241CBF8611B8CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_B41833E4E6CD57ABD6461CBF8611E15A" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_85010089E80D2CD32B241CBF8611B8CD" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ubnt.com/role/StockBasedCompensationSummaryOfRsuActivityDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_75A8F73B84037207FAF71CBF871E27A3" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_AA6B3A92D3E2A69F92331CBF871D63DB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_75A8F73B84037207FAF71CBF871E27A3" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_AA6B3A92D3E2A69F92331CBF871D63DB" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_1C70B3B9052B5C8659221CBF871D63F2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_AA6B3A92D3E2A69F92331CBF871D63DB" xlink:to="loc_us-gaap_AwardTypeAxis_1C70B3B9052B5C8659221CBF871D63F2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_46D69E37EFCFB70469171CBF871DE546_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_1C70B3B9052B5C8659221CBF871D63F2" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_46D69E37EFCFB70469171CBF871DE546_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_46D69E37EFCFB70469171CBF871DE546" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_1C70B3B9052B5C8659221CBF871D63F2" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_46D69E37EFCFB70469171CBF871DE546" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_FB02D7CE5A5A8A0461751CBF871E81B4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_46D69E37EFCFB70469171CBF871DE546" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_FB02D7CE5A5A8A0461751CBF871E81B4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_E0FF4D8C1D55487677231CBF871E9590" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_75A8F73B84037207FAF71CBF871E27A3" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_E0FF4D8C1D55487677231CBF871E9590" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_9BE8601913E8E23162E61CBF871E3C42" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_E0FF4D8C1D55487677231CBF871E9590" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_9BE8601913E8E23162E61CBF871E3C42" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_420291C1B9E2618534981CBF871F1580" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_E0FF4D8C1D55487677231CBF871E9590" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_420291C1B9E2618534981CBF871F1580" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_29458C1612E49C61D6671CBF871F8941" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_E0FF4D8C1D55487677231CBF871E9590" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_29458C1612E49C61D6671CBF871F8941" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_449D0DDC7BEE0D6386A81CBF871FE6FD" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_E0FF4D8C1D55487677231CBF871E9590" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_449D0DDC7BEE0D6386A81CBF871FE6FD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_D5CDCC6DBC62E06173771CBF871FC50F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_75A8F73B84037207FAF71CBF871E27A3" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_D5CDCC6DBC62E06173771CBF871FC50F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_6C3944F2ACFEE366A1C11CBF87207FF3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_D5CDCC6DBC62E06173771CBF871FC50F" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_6C3944F2ACFEE366A1C11CBF87207FF3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_2A3447B1C0EF37148E8C1CBF872046A4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_D5CDCC6DBC62E06173771CBF871FC50F" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_2A3447B1C0EF37148E8C1CBF872046A4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_05AC40CEBEB1EFB7B4741CBF87209B73" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_D5CDCC6DBC62E06173771CBF871FC50F" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_05AC40CEBEB1EFB7B4741CBF87209B73" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_5FC08A4648F797FE986E1CBF8720EDB7" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_D5CDCC6DBC62E06173771CBF871FC50F" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_5FC08A4648F797FE986E1CBF8720EDB7" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ubnt.com/role/StockBasedCompensationTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/SubsequentEvents" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/SubsequentEventsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RepurchaseAgreementCounterpartyLineItems" xlink:label="loc_us-gaap_RepurchaseAgreementCounterpartyLineItems_94CF62123BDC9ADA6D19F48784213D09" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfRepurchaseAgreementCounterpartyTable" xlink:label="loc_us-gaap_ScheduleOfRepurchaseAgreementCounterpartyTable_0C54F687423D27853643F487841B52CF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RepurchaseAgreementCounterpartyLineItems_94CF62123BDC9ADA6D19F48784213D09" xlink:to="loc_us-gaap_ScheduleOfRepurchaseAgreementCounterpartyTable_0C54F687423D27853643F487841B52CF" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeAxis" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_B16A6126166DBBE104ACF487841C69E4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRepurchaseAgreementCounterpartyTable_0C54F687423D27853643F487841B52CF" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_B16A6126166DBBE104ACF487841C69E4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_6AB6CF679E86455C0335F487841CA133_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_B16A6126166DBBE104ACF487841C69E4" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_6AB6CF679E86455C0335F487841CA133_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_6AB6CF679E86455C0335F487841CA133" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_B16A6126166DBBE104ACF487841C69E4" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_6AB6CF679E86455C0335F487841CA133" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SubsequentEventMember" xlink:label="loc_us-gaap_SubsequentEventMember_5ECF7196C1D850298614F487841D9F8E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_6AB6CF679E86455C0335F487841CA133" xlink:to="loc_us-gaap_SubsequentEventMember_5ECF7196C1D850298614F487841D9F8E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareRepurchaseProgramAxis" xlink:label="loc_us-gaap_ShareRepurchaseProgramAxis_42C8E2E62EBE4069FD9AF487841DA434" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRepurchaseAgreementCounterpartyTable_0C54F687423D27853643F487841B52CF" xlink:to="loc_us-gaap_ShareRepurchaseProgramAxis_42C8E2E62EBE4069FD9AF487841DA434" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareRepurchaseProgramDomain" xlink:label="loc_us-gaap_ShareRepurchaseProgramDomain_D6B5C0C356CB261009C9F487841D1AE5_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ShareRepurchaseProgramAxis_42C8E2E62EBE4069FD9AF487841DA434" xlink:to="loc_us-gaap_ShareRepurchaseProgramDomain_D6B5C0C356CB261009C9F487841D1AE5_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareRepurchaseProgramDomain" xlink:label="loc_us-gaap_ShareRepurchaseProgramDomain_D6B5C0C356CB261009C9F487841D1AE5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ShareRepurchaseProgramAxis_42C8E2E62EBE4069FD9AF487841DA434" xlink:to="loc_us-gaap_ShareRepurchaseProgramDomain_D6B5C0C356CB261009C9F487841D1AE5" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_MayRepurchaseProgramMember" xlink:label="loc_ubnt_MayRepurchaseProgramMember_E502325C28220ACA9D2DF487841ECF70" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareRepurchaseProgramDomain_D6B5C0C356CB261009C9F487841D1AE5" xlink:to="loc_ubnt_MayRepurchaseProgramMember_E502325C28220ACA9D2DF487841ECF70" xlink:type="arc" />
    <link:loc xlink:href="ubnt-20180930.xsd#ubnt_NovemberRepurchaseProgramMember" xlink:label="loc_ubnt_NovemberRepurchaseProgramMember_9E9B0CC9A2D4B62F5F1CF487841E6AB9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareRepurchaseProgramDomain_D6B5C0C356CB261009C9F487841D1AE5" xlink:to="loc_ubnt_NovemberRepurchaseProgramMember_9E9B0CC9A2D4B62F5F1CF487841E6AB9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_A0911BF1C5EE607BA97DF487841EFD16" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRepurchaseAgreementCounterpartyTable_0C54F687423D27853643F487841B52CF" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_A0911BF1C5EE607BA97DF487841EFD16" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_699FEA6FC72462CFCBEFF487841F2FF8_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_A0911BF1C5EE607BA97DF487841EFD16" xlink:to="loc_us-gaap_EquityComponentDomain_699FEA6FC72462CFCBEFF487841F2FF8_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_699FEA6FC72462CFCBEFF487841F2FF8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_A0911BF1C5EE607BA97DF487841EFD16" xlink:to="loc_us-gaap_EquityComponentDomain_699FEA6FC72462CFCBEFF487841F2FF8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockMember" xlink:label="loc_us-gaap_CommonStockMember_8EC1FF17A252378B313AF487841F269B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_699FEA6FC72462CFCBEFF487841F2FF8" xlink:to="loc_us-gaap_CommonStockMember_8EC1FF17A252378B313AF487841F269B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementScenarioAxis" xlink:label="loc_us-gaap_StatementScenarioAxis_AD4DA1560F0D48449705F4878420D076" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRepurchaseAgreementCounterpartyTable_0C54F687423D27853643F487841B52CF" xlink:to="loc_us-gaap_StatementScenarioAxis_AD4DA1560F0D48449705F4878420D076" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain" xlink:label="loc_us-gaap_ScenarioUnspecifiedDomain_18084BB69EA52CFC2659F4878420F823_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementScenarioAxis_AD4DA1560F0D48449705F4878420D076" xlink:to="loc_us-gaap_ScenarioUnspecifiedDomain_18084BB69EA52CFC2659F4878420F823_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain" xlink:label="loc_us-gaap_ScenarioUnspecifiedDomain_18084BB69EA52CFC2659F4878420F823" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementScenarioAxis_AD4DA1560F0D48449705F4878420D076" xlink:to="loc_us-gaap_ScenarioUnspecifiedDomain_18084BB69EA52CFC2659F4878420F823" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScenarioForecastMember" xlink:label="loc_us-gaap_ScenarioForecastMember_C63D93726D487B612852F48784216EFD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScenarioUnspecifiedDomain_18084BB69EA52CFC2659F4878420F823" xlink:to="loc_us-gaap_ScenarioForecastMember_C63D93726D487B612852F48784216EFD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockRepurchaseProgramAuthorizedAmount1" xlink:label="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_84EECFF6662115E5F955F48784211657" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RepurchaseAgreementCounterpartyLineItems_94CF62123BDC9ADA6D19F48784213D09" xlink:to="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_84EECFF6662115E5F955F48784211657" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockRepurchasedAndRetiredDuringPeriodShares" xlink:label="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_3F7675C81C7A06173723F4878422ECDA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RepurchaseAgreementCounterpartyLineItems_94CF62123BDC9ADA6D19F48784213D09" xlink:to="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_3F7675C81C7A06173723F4878422ECDA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TreasuryStockAcquiredAverageCostPerShare" xlink:label="loc_us-gaap_TreasuryStockAcquiredAverageCostPerShare_DDFD5A6DDDDFCECD225EF487842294D0" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RepurchaseAgreementCounterpartyLineItems_94CF62123BDC9ADA6D19F48784213D09" xlink:to="loc_us-gaap_TreasuryStockAcquiredAverageCostPerShare_DDFD5A6DDDDFCECD225EF487842294D0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockRepurchasedAndRetiredDuringPeriodValue" xlink:label="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodValue_0518CA360BC31732E8EAF48784232532" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RepurchaseAgreementCounterpartyLineItems_94CF62123BDC9ADA6D19F48784213D09" xlink:to="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodValue_0518CA360BC31732E8EAF48784232532" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1" xlink:label="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_7688599852F1183A95AFF48784239DA0" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RepurchaseAgreementCounterpartyLineItems_94CF62123BDC9ADA6D19F48784213D09" xlink:to="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_7688599852F1183A95AFF48784239DA0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockDividendsPerShareDeclared" xlink:label="loc_us-gaap_CommonStockDividendsPerShareDeclared_2164B0841A695B3E23A4F4878423DF99" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RepurchaseAgreementCounterpartyLineItems_94CF62123BDC9ADA6D19F48784213D09" xlink:to="loc_us-gaap_CommonStockDividendsPerShareDeclared_2164B0841A695B3E23A4F4878423DF99" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.ubnt.com/role/SummaryOfSignificantAccountingPolicies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.ubnt.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="extended" />
</link:linkbase>
