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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2023 Workiva-->
<!--r:9958673b-1748-455e-b13e-7a5be198bb63,g:766358ac-236a-41eb-a781-fd3cb9119b73-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member"/>
  <link:roleRef roleURI="http://www.halozyme.com/role/CondensedConsolidatedStatementsofIncomeUnaudited" xlink:type="simple" xlink:href="halo-20230630.xsd#CondensedConsolidatedStatementsofIncomeUnaudited"/>
  <link:definitionLink xlink:role="http://www.halozyme.com/role/CondensedConsolidatedStatementsofIncomeUnaudited" xlink:type="extended" id="i7555ed119a17472b874610c467f52c5e_CondensedConsolidatedStatementsofIncomeUnaudited">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_1d8316d9-eb63-42d2-bb1c-8b2e2a1fbd58" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenuesAbstract_f5b2a524-9f13-4781-8fdf-eab533c51449" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenuesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_1d8316d9-eb63-42d2-bb1c-8b2e2a1fbd58" xlink:to="loc_us-gaap_RevenuesAbstract_f5b2a524-9f13-4781-8fdf-eab533c51449" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_f73a4f39-16db-4bc1-8ad7-dc960c222657" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesAbstract_f5b2a524-9f13-4781-8fdf-eab533c51449" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_f73a4f39-16db-4bc1-8ad7-dc960c222657" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpensesAbstract_c1518a02-fbc8-4283-96fd-32f8e5f8b028" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CostsAndExpensesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_1d8316d9-eb63-42d2-bb1c-8b2e2a1fbd58" xlink:to="loc_us-gaap_CostsAndExpensesAbstract_c1518a02-fbc8-4283-96fd-32f8e5f8b028" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_5d77e379-e4d1-4060-b0b7-37611f6d399b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CostOfGoodsAndServicesSold"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostsAndExpensesAbstract_c1518a02-fbc8-4283-96fd-32f8e5f8b028" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_5d77e379-e4d1-4060-b0b7-37611f6d399b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_74e7fa98-fd16-4701-be2b-9347711f1e05" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AmortizationOfIntangibleAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostsAndExpensesAbstract_c1518a02-fbc8-4283-96fd-32f8e5f8b028" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_74e7fa98-fd16-4701-be2b-9347711f1e05" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_1df2cac5-2dbb-4cbe-95eb-b00348d3786e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ResearchAndDevelopmentExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostsAndExpensesAbstract_c1518a02-fbc8-4283-96fd-32f8e5f8b028" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_1df2cac5-2dbb-4cbe-95eb-b00348d3786e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_10fb2aca-6ea6-4e17-9579-1564d0267608" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SellingGeneralAndAdministrativeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostsAndExpensesAbstract_c1518a02-fbc8-4283-96fd-32f8e5f8b028" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_10fb2aca-6ea6-4e17-9579-1564d0267608" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_5b2f51ad-eafc-41dc-b50f-138f9eb37634" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CostsAndExpenses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostsAndExpensesAbstract_c1518a02-fbc8-4283-96fd-32f8e5f8b028" xlink:to="loc_us-gaap_CostsAndExpenses_5b2f51ad-eafc-41dc-b50f-138f9eb37634" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_230bea0e-0316-44f9-bb33-ea78434de655" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_1d8316d9-eb63-42d2-bb1c-8b2e2a1fbd58" xlink:to="loc_us-gaap_OperatingIncomeLoss_230bea0e-0316-44f9-bb33-ea78434de655" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherIncomeAndExpensesAbstract_0c06f685-41ae-4633-bfd6-f96dbf59fe54" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherIncomeAndExpensesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_1d8316d9-eb63-42d2-bb1c-8b2e2a1fbd58" xlink:to="loc_us-gaap_OtherIncomeAndExpensesAbstract_0c06f685-41ae-4633-bfd6-f96dbf59fe54" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_107484f6-180c-45f7-854d-c3cef31fa4a3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherIncomeAndExpensesAbstract_0c06f685-41ae-4633-bfd6-f96dbf59fe54" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_107484f6-180c-45f7-854d-c3cef31fa4a3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_0f08745d-fe8d-46c0-af59-d19b2f130a35" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherIncomeAndExpensesAbstract_0c06f685-41ae-4633-bfd6-f96dbf59fe54" xlink:to="loc_us-gaap_InterestExpense_0f08745d-fe8d-46c0-af59-d19b2f130a35" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_f1a9a1d1-8465-457b-add3-461770968d4c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_1d8316d9-eb63-42d2-bb1c-8b2e2a1fbd58" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_f1a9a1d1-8465-457b-add3-461770968d4c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_bbf39573-dad5-4010-8532-71e4d6304663" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_1d8316d9-eb63-42d2-bb1c-8b2e2a1fbd58" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_bbf39573-dad5-4010-8532-71e4d6304663" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_3f112111-da34-4980-88f3-0b9106b08289" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_1d8316d9-eb63-42d2-bb1c-8b2e2a1fbd58" xlink:to="loc_us-gaap_NetIncomeLoss_3f112111-da34-4980-88f3-0b9106b08289" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareAbstract_81bff2cf-0d58-423c-a5f8-4b379cf8af51" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EarningsPerShareAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_1d8316d9-eb63-42d2-bb1c-8b2e2a1fbd58" xlink:to="loc_us-gaap_EarningsPerShareAbstract_81bff2cf-0d58-423c-a5f8-4b379cf8af51" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasic_c2ffe71d-d691-47f8-949b-65ef2434347c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EarningsPerShareBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareAbstract_81bff2cf-0d58-423c-a5f8-4b379cf8af51" xlink:to="loc_us-gaap_EarningsPerShareBasic_c2ffe71d-d691-47f8-949b-65ef2434347c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDiluted_717194b2-e703-4e27-891a-ce0d16fbbcfd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EarningsPerShareDiluted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareAbstract_81bff2cf-0d58-423c-a5f8-4b379cf8af51" xlink:to="loc_us-gaap_EarningsPerShareDiluted_717194b2-e703-4e27-891a-ce0d16fbbcfd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingDilutedDisclosureItemsAbstract_e840c2f1-d749-41c5-b590-973c02c90d4e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingDilutedDisclosureItemsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_1d8316d9-eb63-42d2-bb1c-8b2e2a1fbd58" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingDilutedDisclosureItemsAbstract_e840c2f1-d749-41c5-b590-973c02c90d4e" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_8b279db9-d9b0-4c51-98cd-d21415e32eec" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingDilutedDisclosureItemsAbstract_e840c2f1-d749-41c5-b590-973c02c90d4e" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_8b279db9-d9b0-4c51-98cd-d21415e32eec" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_1f1ee10b-f0c0-442f-a63d-a1bab530f671" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingDilutedDisclosureItemsAbstract_e840c2f1-d749-41c5-b590-973c02c90d4e" xlink:to="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_1f1ee10b-f0c0-442f-a63d-a1bab530f671" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_fce6bed2-9599-490a-bfec-f7f681ed79bb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_1d8316d9-eb63-42d2-bb1c-8b2e2a1fbd58" xlink:to="loc_us-gaap_StatementTable_fce6bed2-9599-490a-bfec-f7f681ed79bb" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_253c78a6-51be-4130-8fa5-2caa9150bd09" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_fce6bed2-9599-490a-bfec-f7f681ed79bb" xlink:to="loc_srt_ProductOrServiceAxis_253c78a6-51be-4130-8fa5-2caa9150bd09" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_253c78a6-51be-4130-8fa5-2caa9150bd09_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_253c78a6-51be-4130-8fa5-2caa9150bd09" xlink:to="loc_srt_ProductsAndServicesDomain_253c78a6-51be-4130-8fa5-2caa9150bd09_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_d803fae7-d7f2-4968-9be6-4eaf10401362" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_253c78a6-51be-4130-8fa5-2caa9150bd09" xlink:to="loc_srt_ProductsAndServicesDomain_d803fae7-d7f2-4968-9be6-4eaf10401362" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RoyaltyMember_92f91e3a-f5b8-442b-8828-f8d2ec53230d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RoyaltyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_d803fae7-d7f2-4968-9be6-4eaf10401362" xlink:to="loc_us-gaap_RoyaltyMember_92f91e3a-f5b8-442b-8828-f8d2ec53230d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProductMember_657cafd6-2655-45e0-b671-7332e07d1246" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProductMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_d803fae7-d7f2-4968-9be6-4eaf10401362" xlink:to="loc_us-gaap_ProductMember_657cafd6-2655-45e0-b671-7332e07d1246" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_CollaborativeAgreementsMember_eb80a426-47be-4c98-9fa2-b3634adad47a" xlink:href="halo-20230630.xsd#halo_CollaborativeAgreementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_d803fae7-d7f2-4968-9be6-4eaf10401362" xlink:to="loc_halo_CollaborativeAgreementsMember_eb80a426-47be-4c98-9fa2-b3634adad47a" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.halozyme.com/role/CondensedConsolidatedStatementsofStockholdersEquityUnaudited" xlink:type="simple" xlink:href="halo-20230630.xsd#CondensedConsolidatedStatementsofStockholdersEquityUnaudited"/>
  <link:definitionLink xlink:role="http://www.halozyme.com/role/CondensedConsolidatedStatementsofStockholdersEquityUnaudited" xlink:type="extended" id="i286f98946c67498383eb799085061413_CondensedConsolidatedStatementsofStockholdersEquityUnaudited">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_61e0364e-883f-47da-814b-1a8ae27f2869" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_001c5e2a-38f8-4808-86a0-708deca6e51c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_61e0364e-883f-47da-814b-1a8ae27f2869" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_001c5e2a-38f8-4808-86a0-708deca6e51c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharesOutstanding_0f072193-6c5c-42d2-b1bd-ca97941541fc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_001c5e2a-38f8-4808-86a0-708deca6e51c" xlink:to="loc_us-gaap_SharesOutstanding_0f072193-6c5c-42d2-b1bd-ca97941541fc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_9bc38d3d-7273-4431-85e0-0aa118342156" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_001c5e2a-38f8-4808-86a0-708deca6e51c" xlink:to="loc_us-gaap_StockholdersEquity_9bc38d3d-7273-4431-85e0-0aa118342156" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_15e256da-4cc1-4f24-8058-9a4b4dc0876f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_001c5e2a-38f8-4808-86a0-708deca6e51c" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_15e256da-4cc1-4f24-8058-9a4b4dc0876f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesConversionOfConvertibleSecurities_204947df-78f7-4cc2-95c5-cd283581d713" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockIssuedDuringPeriodSharesConversionOfConvertibleSecurities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_001c5e2a-38f8-4808-86a0-708deca6e51c" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesConversionOfConvertibleSecurities_204947df-78f7-4cc2-95c5-cd283581d713" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueConversionOfConvertibleSecurities_24f721b0-701d-48c0-8b7b-9020de693038" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockIssuedDuringPeriodValueConversionOfConvertibleSecurities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_001c5e2a-38f8-4808-86a0-708deca6e51c" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueConversionOfConvertibleSecurities_24f721b0-701d-48c0-8b7b-9020de693038" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation_7dbeb4bb-6507-42b6-9730-e26162c63241" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_001c5e2a-38f8-4808-86a0-708deca6e51c" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation_7dbeb4bb-6507-42b6-9730-e26162c63241" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_d7828b53-fd75-42d3-ad64-5ae6f5e2cea2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_001c5e2a-38f8-4808-86a0-708deca6e51c" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_d7828b53-fd75-42d3-ad64-5ae6f5e2cea2" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_44e8fe25-127c-45a2-9a26-cf33bfeb3e2c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockRepurchasedAndRetiredDuringPeriodShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_001c5e2a-38f8-4808-86a0-708deca6e51c" xlink:to="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_44e8fe25-127c-45a2-9a26-cf33bfeb3e2c" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodValue_44590668-fcc5-43fa-b7a6-9526838fe847" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockRepurchasedAndRetiredDuringPeriodValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_001c5e2a-38f8-4808-86a0-708deca6e51c" xlink:to="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodValue_44590668-fcc5-43fa-b7a6-9526838fe847" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_32db5339-ff8e-435e-b139-9ad375649a63" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_001c5e2a-38f8-4808-86a0-708deca6e51c" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_32db5339-ff8e-435e-b139-9ad375649a63" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_b690788d-6cd6-4a73-97f8-573c0d555047" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_001c5e2a-38f8-4808-86a0-708deca6e51c" xlink:to="loc_us-gaap_NetIncomeLoss_b690788d-6cd6-4a73-97f8-573c0d555047" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharesOutstanding_8f076fe7-7815-42ad-9bd8-9482836033e2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_02c49411-dadb-488b-b34a-759c707b069b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_cf834fd5-53d4-48c1-b002-c7e3f132bea8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_61e0364e-883f-47da-814b-1a8ae27f2869" xlink:to="loc_us-gaap_StatementTable_cf834fd5-53d4-48c1-b002-c7e3f132bea8" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_27c519ba-9877-4f41-88fe-6c0785bee024" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_cf834fd5-53d4-48c1-b002-c7e3f132bea8" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_27c519ba-9877-4f41-88fe-6c0785bee024" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_27c519ba-9877-4f41-88fe-6c0785bee024_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_27c519ba-9877-4f41-88fe-6c0785bee024" xlink:to="loc_us-gaap_EquityComponentDomain_27c519ba-9877-4f41-88fe-6c0785bee024_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_f42d7558-81c5-49ff-9731-d97c5a52c187" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_27c519ba-9877-4f41-88fe-6c0785bee024" xlink:to="loc_us-gaap_EquityComponentDomain_f42d7558-81c5-49ff-9731-d97c5a52c187" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_b91e2628-c520-45c9-a3fd-707d3d41087d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_f42d7558-81c5-49ff-9731-d97c5a52c187" xlink:to="loc_us-gaap_CommonStockMember_b91e2628-c520-45c9-a3fd-707d3d41087d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_e8fe9c51-4e5a-47bb-8985-401c7daa2255" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_f42d7558-81c5-49ff-9731-d97c5a52c187" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_e8fe9c51-4e5a-47bb-8985-401c7daa2255" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_a18f4d35-f8f9-495e-bb7c-65cdf545c92e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_f42d7558-81c5-49ff-9731-d97c5a52c187" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_a18f4d35-f8f9-495e-bb7c-65cdf545c92e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_15a97543-e089-44ad-986b-7658a16e3282" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_f42d7558-81c5-49ff-9731-d97c5a52c187" xlink:to="loc_us-gaap_RetainedEarningsMember_15a97543-e089-44ad-986b-7658a16e3282" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.halozyme.com/role/OrganizationandBusinessDetails" xlink:type="simple" xlink:href="halo-20230630.xsd#OrganizationandBusinessDetails"/>
  <link:definitionLink xlink:role="http://www.halozyme.com/role/OrganizationandBusinessDetails" xlink:type="extended" id="i475194845dcc45da844cd0ce1a923998_OrganizationandBusinessDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_0d73d286-4a87-4bfe-a94f-68a5aeba1e01" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_RoyaltiesReceivedNumberOfCollaborators_0b1554a4-6e8e-4ebc-8b12-d2ae539ce6f6" xlink:href="halo-20230630.xsd#halo_RoyaltiesReceivedNumberOfCollaborators"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_0d73d286-4a87-4bfe-a94f-68a5aeba1e01" xlink:to="loc_halo_RoyaltiesReceivedNumberOfCollaborators_0b1554a4-6e8e-4ebc-8b12-d2ae539ce6f6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_RoyaltiesReceivedNumberOfProductsSold_7385330c-423d-4cac-a107-cad49c58d117" xlink:href="halo-20230630.xsd#halo_RoyaltiesReceivedNumberOfProductsSold"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_0d73d286-4a87-4bfe-a94f-68a5aeba1e01" xlink:to="loc_halo_RoyaltiesReceivedNumberOfProductsSold_7385330c-423d-4cac-a107-cad49c58d117" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfCollaborativeArrangementsAndNoncollaborativeArrangementTransactionsTable_30f6404f-97be-4984-9a2e-d9b34804a016" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfCollaborativeArrangementsAndNoncollaborativeArrangementTransactionsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_0d73d286-4a87-4bfe-a94f-68a5aeba1e01" xlink:to="loc_us-gaap_ScheduleOfCollaborativeArrangementsAndNoncollaborativeArrangementTransactionsTable_30f6404f-97be-4984-9a2e-d9b34804a016" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CounterpartyNameAxis_e43a94fa-459c-4afe-8ae5-5b83e4800ac9" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_CounterpartyNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfCollaborativeArrangementsAndNoncollaborativeArrangementTransactionsTable_30f6404f-97be-4984-9a2e-d9b34804a016" xlink:to="loc_srt_CounterpartyNameAxis_e43a94fa-459c-4afe-8ae5-5b83e4800ac9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RepurchaseAgreementCounterpartyNameDomain_e43a94fa-459c-4afe-8ae5-5b83e4800ac9_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RepurchaseAgreementCounterpartyNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CounterpartyNameAxis_e43a94fa-459c-4afe-8ae5-5b83e4800ac9" xlink:to="loc_srt_RepurchaseAgreementCounterpartyNameDomain_e43a94fa-459c-4afe-8ae5-5b83e4800ac9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RepurchaseAgreementCounterpartyNameDomain_20c01037-308c-4b09-8354-a0d310732359" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RepurchaseAgreementCounterpartyNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CounterpartyNameAxis_e43a94fa-459c-4afe-8ae5-5b83e4800ac9" xlink:to="loc_srt_RepurchaseAgreementCounterpartyNameDomain_20c01037-308c-4b09-8354-a0d310732359" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_TakedaMember_6ecd5a89-5e7b-4e7d-beec-e6df1fc9d702" xlink:href="halo-20230630.xsd#halo_TakedaMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RepurchaseAgreementCounterpartyNameDomain_20c01037-308c-4b09-8354-a0d310732359" xlink:to="loc_halo_TakedaMember_6ecd5a89-5e7b-4e7d-beec-e6df1fc9d702" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_RocheMember_516b506c-8d57-4e84-b1f4-7ad4f9c24565" xlink:href="halo-20230630.xsd#halo_RocheMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RepurchaseAgreementCounterpartyNameDomain_20c01037-308c-4b09-8354-a0d310732359" xlink:to="loc_halo_RocheMember_516b506c-8d57-4e84-b1f4-7ad4f9c24565" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_JanssenMember_7aeca9a8-e2f1-4cd2-a119-16b58098805d" xlink:href="halo-20230630.xsd#halo_JanssenMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RepurchaseAgreementCounterpartyNameDomain_20c01037-308c-4b09-8354-a0d310732359" xlink:to="loc_halo_JanssenMember_7aeca9a8-e2f1-4cd2-a119-16b58098805d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_ArgenxMember_dbb251ed-3309-489e-9c2e-e3c48270eca5" xlink:href="halo-20230630.xsd#halo_ArgenxMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RepurchaseAgreementCounterpartyNameDomain_20c01037-308c-4b09-8354-a0d310732359" xlink:to="loc_halo_ArgenxMember_dbb251ed-3309-489e-9c2e-e3c48270eca5" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.halozyme.com/role/SummaryofSignificantAccountingPoliciesLeasesDetails" xlink:type="simple" xlink:href="halo-20230630.xsd#SummaryofSignificantAccountingPoliciesLeasesDetails"/>
  <link:definitionLink xlink:role="http://www.halozyme.com/role/SummaryofSignificantAccountingPoliciesLeasesDetails" xlink:type="extended" id="if48bd484adf14c38a085d56a837fcf02_SummaryofSignificantAccountingPoliciesLeasesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeLeaseDescriptionLineItems_741c4f86-dfcf-417d-9b01-4968a3099728" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeLeaseDescriptionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseTermOfContract_e4edb7eb-f5b3-4681-876e-ebe3456e842f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseTermOfContract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_741c4f86-dfcf-417d-9b01-4968a3099728" xlink:to="loc_us-gaap_LesseeOperatingLeaseTermOfContract_e4edb7eb-f5b3-4681-876e-ebe3456e842f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeLeaseDescriptionTable_a6a920b9-c12c-4592-8ea1-d412d23fef6c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeLeaseDescriptionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_741c4f86-dfcf-417d-9b01-4968a3099728" xlink:to="loc_us-gaap_LesseeLeaseDescriptionTable_a6a920b9-c12c-4592-8ea1-d412d23fef6c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_913d939b-a817-4669-a3a6-79a0a91d963b" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LesseeLeaseDescriptionTable_a6a920b9-c12c-4592-8ea1-d412d23fef6c" xlink:to="loc_srt_RangeAxis_913d939b-a817-4669-a3a6-79a0a91d963b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_913d939b-a817-4669-a3a6-79a0a91d963b_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_913d939b-a817-4669-a3a6-79a0a91d963b" xlink:to="loc_srt_RangeMember_913d939b-a817-4669-a3a6-79a0a91d963b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_fa667fbf-1de3-4171-a976-93c7f8d031bb" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_913d939b-a817-4669-a3a6-79a0a91d963b" xlink:to="loc_srt_RangeMember_fa667fbf-1de3-4171-a976-93c7f8d031bb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_e6950fba-872a-4e33-ac1d-b6c049f4cb86" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_fa667fbf-1de3-4171-a976-93c7f8d031bb" xlink:to="loc_srt_MinimumMember_e6950fba-872a-4e33-ac1d-b6c049f4cb86" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_d6a971d8-ca9e-4255-96cd-553d37fee947" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_fa667fbf-1de3-4171-a976-93c7f8d031bb" xlink:to="loc_srt_MaximumMember_d6a971d8-ca9e-4255-96cd-553d37fee947" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.halozyme.com/role/SummaryofSignificantAccountingPoliciesCashFlowHedgesCurrencyRisksDetails" xlink:type="simple" xlink:href="halo-20230630.xsd#SummaryofSignificantAccountingPoliciesCashFlowHedgesCurrencyRisksDetails"/>
  <link:definitionLink xlink:role="http://www.halozyme.com/role/SummaryofSignificantAccountingPoliciesCashFlowHedgesCurrencyRisksDetails" xlink:type="extended" id="ie1a6ad0fa40b4f99992c03a6579defb6_SummaryofSignificantAccountingPoliciesCashFlowHedgesCurrencyRisksDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLineItems_a2c09b5d-3e4a-4f65-8acd-d2c6a018819c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTermOfContract_713f8e73-e204-4e16-bf88-4247e693e751" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeTermOfContract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_a2c09b5d-3e4a-4f65-8acd-d2c6a018819c" xlink:to="loc_us-gaap_DerivativeTermOfContract_713f8e73-e204-4e16-bf88-4247e693e751" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTable_6acacb04-60e0-44e8-8336-bbf2b55f0414" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_a2c09b5d-3e4a-4f65-8acd-d2c6a018819c" xlink:to="loc_us-gaap_DerivativeTable_6acacb04-60e0-44e8-8336-bbf2b55f0414" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_f9a35800-88d9-4f7f-9aca-74ec028ab753" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_6acacb04-60e0-44e8-8336-bbf2b55f0414" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_f9a35800-88d9-4f7f-9aca-74ec028ab753" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_f9a35800-88d9-4f7f-9aca-74ec028ab753_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_f9a35800-88d9-4f7f-9aca-74ec028ab753" xlink:to="loc_us-gaap_HedgingRelationshipDomain_f9a35800-88d9-4f7f-9aca-74ec028ab753_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_5c5702cf-3777-476a-9977-ec444918e153" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_f9a35800-88d9-4f7f-9aca-74ec028ab753" xlink:to="loc_us-gaap_HedgingRelationshipDomain_5c5702cf-3777-476a-9977-ec444918e153" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashFlowHedgingMember_fb43118e-68b7-4d2e-87c8-1f9ca8d14c9f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashFlowHedgingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_5c5702cf-3777-476a-9977-ec444918e153" xlink:to="loc_us-gaap_CashFlowHedgingMember_fb43118e-68b7-4d2e-87c8-1f9ca8d14c9f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_249b4f82-3409-4d70-8856-d161c817a5cc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_6acacb04-60e0-44e8-8336-bbf2b55f0414" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_249b4f82-3409-4d70-8856-d161c817a5cc" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_249b4f82-3409-4d70-8856-d161c817a5cc_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_249b4f82-3409-4d70-8856-d161c817a5cc" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_249b4f82-3409-4d70-8856-d161c817a5cc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_0081cedd-4adc-4f15-a53f-a4be9c9b7ffb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_249b4f82-3409-4d70-8856-d161c817a5cc" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_0081cedd-4adc-4f15-a53f-a4be9c9b7ffb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeForwardMember_52ab28a7-c2a7-4ac1-9e9c-a6807e99f9a8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ForeignExchangeForwardMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_0081cedd-4adc-4f15-a53f-a4be9c9b7ffb" xlink:to="loc_us-gaap_ForeignExchangeForwardMember_52ab28a7-c2a7-4ac1-9e9c-a6807e99f9a8" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.halozyme.com/role/BusinessCombinationNarrativeDetails" xlink:type="simple" xlink:href="halo-20230630.xsd#BusinessCombinationNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.halozyme.com/role/BusinessCombinationNarrativeDetails" xlink:type="extended" id="ifc97feb64a684605bae0c3f3e7927f5f_BusinessCombinationNarrativeDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_62354463-f771-4d77-80ee-34b4734fe8d6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_1fd80894-2bcd-406f-bb0d-772f98d3236f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationConsiderationTransferred1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_62354463-f771-4d77-80ee-34b4734fe8d6" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferred1_1fd80894-2bcd-406f-bb0d-772f98d3236f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuableCashPaidPerAcquireeShare_d49c9bc4-c356-4641-b007-87bb04f3a911" xlink:href="halo-20230630.xsd#halo_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuableCashPaidPerAcquireeShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_62354463-f771-4d77-80ee-34b4734fe8d6" xlink:to="loc_halo_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuableCashPaidPerAcquireeShare_d49c9bc4-c356-4641-b007-87bb04f3a911" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_0ef9bc28-6027-448a-9ba9-a089b40d138c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GoodwillPurchaseAccountingAdjustments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_62354463-f771-4d77-80ee-34b4734fe8d6" xlink:to="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_0ef9bc28-6027-448a-9ba9-a089b40d138c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentAccruedExpense_a5b09e87-f573-4d5a-98b2-b9a83a7cd0a7" xlink:href="halo-20230630.xsd#halo_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentAccruedExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_62354463-f771-4d77-80ee-34b4734fe8d6" xlink:to="loc_halo_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentAccruedExpense_a5b09e87-f573-4d5a-98b2-b9a83a7cd0a7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentDeferredTaxLiabilitiesNet_a1087037-bf88-4b78-b216-15615dc61010" xlink:href="halo-20230630.xsd#halo_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentDeferredTaxLiabilitiesNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_62354463-f771-4d77-80ee-34b4734fe8d6" xlink:to="loc_halo_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentDeferredTaxLiabilitiesNet_a1087037-bf88-4b78-b216-15615dc61010" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentAccountsReceivable_c94a0ba9-6b22-4958-b684-9bfe1e40c9d2" xlink:href="halo-20230630.xsd#halo_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentAccountsReceivable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_62354463-f771-4d77-80ee-34b4734fe8d6" xlink:to="loc_halo_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentAccountsReceivable_c94a0ba9-6b22-4958-b684-9bfe1e40c9d2" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationProFormaInformationRevenueOfAcquireeSinceAcquisitionDateActual_b791d3ca-6aee-4386-85b6-95de492f90bd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationProFormaInformationRevenueOfAcquireeSinceAcquisitionDateActual"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_62354463-f771-4d77-80ee-34b4734fe8d6" xlink:to="loc_us-gaap_BusinessCombinationProFormaInformationRevenueOfAcquireeSinceAcquisitionDateActual_b791d3ca-6aee-4386-85b6-95de492f90bd" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationProFormaInformationEarningsOrLossOfAcquireeSinceAcquisitionDateActual_439fc259-b7c9-4e20-a56e-5a10ee05d2d6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationProFormaInformationEarningsOrLossOfAcquireeSinceAcquisitionDateActual"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_62354463-f771-4d77-80ee-34b4734fe8d6" xlink:to="loc_us-gaap_BusinessCombinationProFormaInformationEarningsOrLossOfAcquireeSinceAcquisitionDateActual_439fc259-b7c9-4e20-a56e-5a10ee05d2d6" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_8c570e00-6de5-4dad-aa7e-ef8aad214eff" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_62354463-f771-4d77-80ee-34b4734fe8d6" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_8c570e00-6de5-4dad-aa7e-ef8aad214eff" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_ca48aedd-e2db-4840-9fa4-beab65e281a3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_8c570e00-6de5-4dad-aa7e-ef8aad214eff" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_ca48aedd-e2db-4840-9fa4-beab65e281a3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_ca48aedd-e2db-4840-9fa4-beab65e281a3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_ca48aedd-e2db-4840-9fa4-beab65e281a3" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_ca48aedd-e2db-4840-9fa4-beab65e281a3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_e41a0902-a435-4165-a3f5-8a9d0bb77526" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_ca48aedd-e2db-4840-9fa4-beab65e281a3" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_e41a0902-a435-4165-a3f5-8a9d0bb77526" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_AntaresPharmaIncMember_734dd80b-d19a-4d6a-9985-c66b99e77fe4" xlink:href="halo-20230630.xsd#halo_AntaresPharmaIncMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_e41a0902-a435-4165-a3f5-8a9d0bb77526" xlink:to="loc_halo_AntaresPharmaIncMember_734dd80b-d19a-4d6a-9985-c66b99e77fe4" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.halozyme.com/role/BusinessCombinationUnauditedProFormaInformationDetails" xlink:type="simple" xlink:href="halo-20230630.xsd#BusinessCombinationUnauditedProFormaInformationDetails"/>
  <link:definitionLink xlink:role="http://www.halozyme.com/role/BusinessCombinationUnauditedProFormaInformationDetails" xlink:type="extended" id="ib2b5270e59e04ca992e0c0eadb45d300_BusinessCombinationUnauditedProFormaInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_bb5238b9-9a41-4f10-bd89-088d00c0a489" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionsProFormaRevenue_154bd4b8-666c-465a-a688-5f2bac61da29" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionsProFormaRevenue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_bb5238b9-9a41-4f10-bd89-088d00c0a489" xlink:to="loc_us-gaap_BusinessAcquisitionsProFormaRevenue_154bd4b8-666c-465a-a688-5f2bac61da29" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss_77596048-5016-4570-8512-be0f82cea73c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_bb5238b9-9a41-4f10-bd89-088d00c0a489" xlink:to="loc_us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss_77596048-5016-4570-8512-be0f82cea73c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_b73cd6e3-edee-4378-88ed-9be582a2b18f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_bb5238b9-9a41-4f10-bd89-088d00c0a489" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_b73cd6e3-edee-4378-88ed-9be582a2b18f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_b6436c94-6b8a-46df-b5ad-4bd6db628acd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_b73cd6e3-edee-4378-88ed-9be582a2b18f" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_b6436c94-6b8a-46df-b5ad-4bd6db628acd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_b6436c94-6b8a-46df-b5ad-4bd6db628acd_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_b6436c94-6b8a-46df-b5ad-4bd6db628acd" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_b6436c94-6b8a-46df-b5ad-4bd6db628acd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_a2077399-05ed-42b0-a8a0-44a35b1e6aaa" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_b6436c94-6b8a-46df-b5ad-4bd6db628acd" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_a2077399-05ed-42b0-a8a0-44a35b1e6aaa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_AntaresPharmaIncMember_6bcc263d-6247-4641-9aa9-73cea10b99b2" xlink:href="halo-20230630.xsd#halo_AntaresPharmaIncMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_a2077399-05ed-42b0-a8a0-44a35b1e6aaa" xlink:to="loc_halo_AntaresPharmaIncMember_6bcc263d-6247-4641-9aa9-73cea10b99b2" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.halozyme.com/role/FairValueMeasurementComponentsofAvailableforsaleMarketableSecuritiesDetails" xlink:type="simple" xlink:href="halo-20230630.xsd#FairValueMeasurementComponentsofAvailableforsaleMarketableSecuritiesDetails"/>
  <link:definitionLink xlink:role="http://www.halozyme.com/role/FairValueMeasurementComponentsofAvailableforsaleMarketableSecuritiesDetails" xlink:type="extended" id="i6314df545de84e0394a430e4ae8245e9_FairValueMeasurementComponentsofAvailableforsaleMarketableSecuritiesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_de2e177f-2d54-42da-8fcf-892f57ffd297" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_6dc6adc4-f0ba-4db7-bd12-67c8cd195889" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_de2e177f-2d54-42da-8fcf-892f57ffd297" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_6dc6adc4-f0ba-4db7-bd12-67c8cd195889" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_51d3154f-6994-4539-a88e-b044625fc733" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_de2e177f-2d54-42da-8fcf-892f57ffd297" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_51d3154f-6994-4539-a88e-b044625fc733" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_40191129-62f5-44d2-9e1d-e191bcef100c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_de2e177f-2d54-42da-8fcf-892f57ffd297" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_40191129-62f5-44d2-9e1d-e191bcef100c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_78a727d7-cd46-4333-9caf-e4bd34e861e2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_de2e177f-2d54-42da-8fcf-892f57ffd297" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_78a727d7-cd46-4333-9caf-e4bd34e861e2" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_50a1571e-506e-4767-959b-240d250b0dde" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_de2e177f-2d54-42da-8fcf-892f57ffd297" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_50a1571e-506e-4767-959b-240d250b0dde" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_a1ebe541-435d-489f-bd3d-c29237106a19" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_50a1571e-506e-4767-959b-240d250b0dde" xlink:to="loc_us-gaap_FinancialInstrumentAxis_a1ebe541-435d-489f-bd3d-c29237106a19" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_a1ebe541-435d-489f-bd3d-c29237106a19_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_a1ebe541-435d-489f-bd3d-c29237106a19" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_a1ebe541-435d-489f-bd3d-c29237106a19_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_60bc7429-7746-418e-8b20-0c6273fa3382" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_a1ebe541-435d-489f-bd3d-c29237106a19" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_60bc7429-7746-418e-8b20-0c6273fa3382" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetBackedSecuritiesMember_5db84964-e75f-4590-a40f-f9346f2b56be" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AssetBackedSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_60bc7429-7746-418e-8b20-0c6273fa3382" xlink:to="loc_us-gaap_AssetBackedSecuritiesMember_5db84964-e75f-4590-a40f-f9346f2b56be" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_a70fcf94-40b6-497f-b1d6-5d1d15d76fc0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CorporateDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_60bc7429-7746-418e-8b20-0c6273fa3382" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_a70fcf94-40b6-497f-b1d6-5d1d15d76fc0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USTreasurySecuritiesMember_64109e4f-6c3e-4b15-8127-6d4ebfdcc3e5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_USTreasurySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_60bc7429-7746-418e-8b20-0c6273fa3382" xlink:to="loc_us-gaap_USTreasurySecuritiesMember_64109e4f-6c3e-4b15-8127-6d4ebfdcc3e5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AgencySecuritiesMember_d1d3bb07-3bf3-46f4-8cd7-a2a5d6ab7d6b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AgencySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_60bc7429-7746-418e-8b20-0c6273fa3382" xlink:to="loc_us-gaap_AgencySecuritiesMember_d1d3bb07-3bf3-46f4-8cd7-a2a5d6ab7d6b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPaperMember_1e062f50-9a38-4815-a9df-34150a988ea7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommercialPaperMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_60bc7429-7746-418e-8b20-0c6273fa3382" xlink:to="loc_us-gaap_CommercialPaperMember_1e062f50-9a38-4815-a9df-34150a988ea7" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.halozyme.com/role/FairValueMeasurementNarrativeDetails" xlink:type="simple" xlink:href="halo-20230630.xsd#FairValueMeasurementNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.halozyme.com/role/FairValueMeasurementNarrativeDetails" xlink:type="extended" id="id4e3adacce44425cb130ae1da3784063_FairValueMeasurementNarrativeDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_9b86d224-d50d-448e-8d14-3415a938208a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionNumberOfPositions_0fab17ae-8a58-4a47-8500-e9919df13112" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionNumberOfPositions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_9b86d224-d50d-448e-8d14-3415a938208a" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionNumberOfPositions_0fab17ae-8a58-4a47-8500-e9919df13112" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_156a9e75-a29b-4e82-82ad-346b166aba03" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_9b86d224-d50d-448e-8d14-3415a938208a" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_156a9e75-a29b-4e82-82ad-346b166aba03" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_46603122-bdb9-4ab7-acc6-e1a15b219402" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_9b86d224-d50d-448e-8d14-3415a938208a" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_46603122-bdb9-4ab7-acc6-e1a15b219402" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostAllowanceForCreditLossExcludingAccruedInterest_f3286f17-a1fd-44f1-93ca-6570aecda4b0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_9b86d224-d50d-448e-8d14-3415a938208a" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostAllowanceForCreditLossExcludingAccruedInterest_f3286f17-a1fd-44f1-93ca-6570aecda4b0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_bd5e53e1-1dc6-495b-b5f4-6342b909b096" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_9b86d224-d50d-448e-8d14-3415a938208a" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_bd5e53e1-1dc6-495b-b5f4-6342b909b096" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_df18f2a1-8816-4067-a238-960e05971f4f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationContingentConsiderationLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_9b86d224-d50d-448e-8d14-3415a938208a" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_df18f2a1-8816-4067-a238-960e05971f4f" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiabilityCurrent_9850724c-82f2-43a3-81c8-8163dd5d6106" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationContingentConsiderationLiabilityCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_9b86d224-d50d-448e-8d14-3415a938208a" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiabilityCurrent_9850724c-82f2-43a3-81c8-8163dd5d6106" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByBalanceSheetGroupingTable_68af77d2-0860-48e5-9b9e-9797912fa72d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueByBalanceSheetGroupingTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_9b86d224-d50d-448e-8d14-3415a938208a" xlink:to="loc_us-gaap_FairValueByBalanceSheetGroupingTable_68af77d2-0860-48e5-9b9e-9797912fa72d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_9a632d4b-e2eb-485c-8255-2add6c8dc4c7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_68af77d2-0860-48e5-9b9e-9797912fa72d" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_9a632d4b-e2eb-485c-8255-2add6c8dc4c7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_9a632d4b-e2eb-485c-8255-2add6c8dc4c7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_9a632d4b-e2eb-485c-8255-2add6c8dc4c7" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_9a632d4b-e2eb-485c-8255-2add6c8dc4c7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5f695302-b20b-4a2d-8ff6-c12aa945729e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_9a632d4b-e2eb-485c-8255-2add6c8dc4c7" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5f695302-b20b-4a2d-8ff6-c12aa945729e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_35a8b1a7-4e94-40d7-8f13-60ad80967b7c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5f695302-b20b-4a2d-8ff6-c12aa945729e" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_35a8b1a7-4e94-40d7-8f13-60ad80967b7c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_1e74a559-4098-4f5e-aa54-06ac9e884fb3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_68af77d2-0860-48e5-9b9e-9797912fa72d" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_1e74a559-4098-4f5e-aa54-06ac9e884fb3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1e74a559-4098-4f5e-aa54-06ac9e884fb3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_1e74a559-4098-4f5e-aa54-06ac9e884fb3" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1e74a559-4098-4f5e-aa54-06ac9e884fb3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_57f31cee-aa6d-426b-b37b-ddda84088bd8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_1e74a559-4098-4f5e-aa54-06ac9e884fb3" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_57f31cee-aa6d-426b-b37b-ddda84088bd8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_AntaresPharmaIncMember_3e27dd26-ac69-4849-b735-63c004110bd5" xlink:href="halo-20230630.xsd#halo_AntaresPharmaIncMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_57f31cee-aa6d-426b-b37b-ddda84088bd8" xlink:to="loc_halo_AntaresPharmaIncMember_3e27dd26-ac69-4849-b735-63c004110bd5" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.halozyme.com/role/FairValueMeasurementAssetsMeasuredatFairValueonaRecurringBasisDetails" xlink:type="simple" xlink:href="halo-20230630.xsd#FairValueMeasurementAssetsMeasuredatFairValueonaRecurringBasisDetails"/>
  <link:definitionLink xlink:role="http://www.halozyme.com/role/FairValueMeasurementAssetsMeasuredatFairValueonaRecurringBasisDetails" xlink:type="extended" id="i7caca6520c30407eaa4dee3d04dd9fa7_FairValueMeasurementAssetsMeasuredatFairValueonaRecurringBasisDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_72ad7d89-edf0-4d8f-a7b2-a8a8f99c5ee2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_492e3fac-d031-4945-9c21-08408027102e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_72ad7d89-edf0-4d8f-a7b2-a8a8f99c5ee2" xlink:to="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_492e3fac-d031-4945-9c21-08408027102e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_ceaf016d-5213-41ed-9afc-9b8d7bde9121" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_492e3fac-d031-4945-9c21-08408027102e" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_ceaf016d-5213-41ed-9afc-9b8d7bde9121" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_d238c58c-32ea-4089-b5c4-5d2b4ca8aba2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_492e3fac-d031-4945-9c21-08408027102e" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_d238c58c-32ea-4089-b5c4-5d2b4ca8aba2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_9f23af9d-8c84-45b0-be95-8adbc024f5e4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_492e3fac-d031-4945-9c21-08408027102e" xlink:to="loc_us-gaap_DerivativeAssets_9f23af9d-8c84-45b0-be95-8adbc024f5e4" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_bd9f51f4-c3cf-45e7-a762-1dc0cb4ae1e5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract_492e3fac-d031-4945-9c21-08408027102e" xlink:to="loc_us-gaap_AssetsFairValueDisclosure_bd9f51f4-c3cf-45e7-a762-1dc0cb4ae1e5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract_983de2d5-bcb4-4ad2-bed2-d1ed548f5217" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_72ad7d89-edf0-4d8f-a7b2-a8a8f99c5ee2" xlink:to="loc_us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract_983de2d5-bcb4-4ad2-bed2-d1ed548f5217" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_1982a982-c13d-43ad-b738-cb1b1f5b2bd7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract_983de2d5-bcb4-4ad2-bed2-d1ed548f5217" xlink:to="loc_us-gaap_DerivativeLiabilities_1982a982-c13d-43ad-b738-cb1b1f5b2bd7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetsCurrent_b13b02fa-5262-4a21-95f2-052b660ce853" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeAssetsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract_983de2d5-bcb4-4ad2-bed2-d1ed548f5217" xlink:to="loc_us-gaap_DerivativeAssetsCurrent_b13b02fa-5262-4a21-95f2-052b660ce853" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilitiesCurrent_bceb7fb4-9191-452c-ba8a-10ddc40ce02e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeLiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract_983de2d5-bcb4-4ad2-bed2-d1ed548f5217" xlink:to="loc_us-gaap_DerivativeLiabilitiesCurrent_bceb7fb4-9191-452c-ba8a-10ddc40ce02e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilitiesNoncurrent_be2b7adb-99ad-4b52-a4c2-cbedf6e06b4d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeLiabilitiesNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract_983de2d5-bcb4-4ad2-bed2-d1ed548f5217" xlink:to="loc_us-gaap_DerivativeLiabilitiesNoncurrent_be2b7adb-99ad-4b52-a4c2-cbedf6e06b4d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetStatementOfFinancialPositionExtensibleEnumeration_caab396c-1a8b-4b08-b137-df7e483e9a7c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeAssetStatementOfFinancialPositionExtensibleEnumeration"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_72ad7d89-edf0-4d8f-a7b2-a8a8f99c5ee2" xlink:to="loc_us-gaap_DerivativeAssetStatementOfFinancialPositionExtensibleEnumeration_caab396c-1a8b-4b08-b137-df7e483e9a7c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityCurrentStatementOfFinancialPositionExtensibleEnumeration_78526f35-3516-45d0-9633-f0f3fbd45c6c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeLiabilityCurrentStatementOfFinancialPositionExtensibleEnumeration"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_72ad7d89-edf0-4d8f-a7b2-a8a8f99c5ee2" xlink:to="loc_us-gaap_DerivativeLiabilityCurrentStatementOfFinancialPositionExtensibleEnumeration_78526f35-3516-45d0-9633-f0f3fbd45c6c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityNoncurrentStatementOfFinancialPositionExtensibleEnumeration_6b4d8b02-bed1-4ec1-9432-5b98cb8972cb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeLiabilityNoncurrentStatementOfFinancialPositionExtensibleEnumeration"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_72ad7d89-edf0-4d8f-a7b2-a8a8f99c5ee2" xlink:to="loc_us-gaap_DerivativeLiabilityNoncurrentStatementOfFinancialPositionExtensibleEnumeration_6b4d8b02-bed1-4ec1-9432-5b98cb8972cb" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByBalanceSheetGroupingTable_198dae1a-db12-4492-a2da-d12baff0f6ac" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueByBalanceSheetGroupingTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_72ad7d89-edf0-4d8f-a7b2-a8a8f99c5ee2" xlink:to="loc_us-gaap_FairValueByBalanceSheetGroupingTable_198dae1a-db12-4492-a2da-d12baff0f6ac" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_cd0cc745-2ce1-453e-9a01-0e5af87b90cd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_198dae1a-db12-4492-a2da-d12baff0f6ac" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_cd0cc745-2ce1-453e-9a01-0e5af87b90cd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_cd0cc745-2ce1-453e-9a01-0e5af87b90cd_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_cd0cc745-2ce1-453e-9a01-0e5af87b90cd" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_cd0cc745-2ce1-453e-9a01-0e5af87b90cd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_ccb7c139-d7a9-445f-9210-1ff5ee221d7e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_cd0cc745-2ce1-453e-9a01-0e5af87b90cd" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_ccb7c139-d7a9-445f-9210-1ff5ee221d7e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_2da8154a-9400-4819-8561-b7b6d7d1daa2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_ccb7c139-d7a9-445f-9210-1ff5ee221d7e" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_2da8154a-9400-4819-8561-b7b6d7d1daa2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_2d2ba3cd-c607-4d7b-ad6f-226bac3a501d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_ccb7c139-d7a9-445f-9210-1ff5ee221d7e" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_2d2ba3cd-c607-4d7b-ad6f-226bac3a501d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_b6079159-4afa-4d90-9154-b5fe34e04345" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_ccb7c139-d7a9-445f-9210-1ff5ee221d7e" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_b6079159-4afa-4d90-9154-b5fe34e04345" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAxis_65849f00-f275-4b84-9fba-586d53cf7bf1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashAndCashEquivalentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_198dae1a-db12-4492-a2da-d12baff0f6ac" xlink:to="loc_us-gaap_CashAndCashEquivalentsAxis_65849f00-f275-4b84-9fba-586d53cf7bf1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_65849f00-f275-4b84-9fba-586d53cf7bf1_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CashAndCashEquivalentsAxis_65849f00-f275-4b84-9fba-586d53cf7bf1" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_65849f00-f275-4b84-9fba-586d53cf7bf1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_6a41c01d-9d9c-4abf-8fd4-80c4dee810ed" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CashAndCashEquivalentsAxis_65849f00-f275-4b84-9fba-586d53cf7bf1" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_6a41c01d-9d9c-4abf-8fd4-80c4dee810ed" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MoneyMarketFundsMember_d970512d-1a2a-47fb-82a6-e7bee73d5062" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_MoneyMarketFundsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_6a41c01d-9d9c-4abf-8fd4-80c4dee810ed" xlink:to="loc_us-gaap_MoneyMarketFundsMember_d970512d-1a2a-47fb-82a6-e7bee73d5062" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_f8fd0b55-a42e-48ad-a58d-cd9f9bd907cf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_198dae1a-db12-4492-a2da-d12baff0f6ac" xlink:to="loc_us-gaap_FinancialInstrumentAxis_f8fd0b55-a42e-48ad-a58d-cd9f9bd907cf" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_f8fd0b55-a42e-48ad-a58d-cd9f9bd907cf_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_f8fd0b55-a42e-48ad-a58d-cd9f9bd907cf" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_f8fd0b55-a42e-48ad-a58d-cd9f9bd907cf_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_29c749a9-d2f4-4c46-9101-5dc6fbd3cf75" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_f8fd0b55-a42e-48ad-a58d-cd9f9bd907cf" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_29c749a9-d2f4-4c46-9101-5dc6fbd3cf75" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetBackedSecuritiesMember_1356c715-9209-4237-97fb-6537c601f6b0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AssetBackedSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_29c749a9-d2f4-4c46-9101-5dc6fbd3cf75" xlink:to="loc_us-gaap_AssetBackedSecuritiesMember_1356c715-9209-4237-97fb-6537c601f6b0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_f28c2c75-e81a-4103-ba7f-2fd7158b377f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CorporateDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_29c749a9-d2f4-4c46-9101-5dc6fbd3cf75" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_f28c2c75-e81a-4103-ba7f-2fd7158b377f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USTreasurySecuritiesMember_3d235e7c-4792-4a21-aa85-ad093dce407d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_USTreasurySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_29c749a9-d2f4-4c46-9101-5dc6fbd3cf75" xlink:to="loc_us-gaap_USTreasurySecuritiesMember_3d235e7c-4792-4a21-aa85-ad093dce407d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AgencySecuritiesMember_29f84297-01cb-4c50-9270-64e899a27d01" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AgencySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_29c749a9-d2f4-4c46-9101-5dc6fbd3cf75" xlink:to="loc_us-gaap_AgencySecuritiesMember_29f84297-01cb-4c50-9270-64e899a27d01" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPaperMember_a7500592-9333-4703-afd8-8cbda023bdeb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommercialPaperMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_29c749a9-d2f4-4c46-9101-5dc6fbd3cf75" xlink:to="loc_us-gaap_CommercialPaperMember_a7500592-9333-4703-afd8-8cbda023bdeb" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_0ac62e93-5d4c-4bf6-911a-efebbde27bbf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_198dae1a-db12-4492-a2da-d12baff0f6ac" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_0ac62e93-5d4c-4bf6-911a-efebbde27bbf" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_0ac62e93-5d4c-4bf6-911a-efebbde27bbf_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_0ac62e93-5d4c-4bf6-911a-efebbde27bbf" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_0ac62e93-5d4c-4bf6-911a-efebbde27bbf_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_2fe7f61c-47aa-44d9-9689-00bd4b576ada" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_0ac62e93-5d4c-4bf6-911a-efebbde27bbf" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_2fe7f61c-47aa-44d9-9689-00bd4b576ada" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeForwardMember_debe962b-c07a-415b-9d46-122d07da47a4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ForeignExchangeForwardMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_2fe7f61c-47aa-44d9-9689-00bd4b576ada" xlink:to="loc_us-gaap_ForeignExchangeForwardMember_debe962b-c07a-415b-9d46-122d07da47a4" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.halozyme.com/role/RevenueDisaggregatedRevenuesDetails" xlink:type="simple" xlink:href="halo-20230630.xsd#RevenueDisaggregatedRevenuesDetails"/>
  <link:definitionLink xlink:role="http://www.halozyme.com/role/RevenueDisaggregatedRevenuesDetails" xlink:type="extended" id="i71ed679c28df4f4bbebd81b40abef15f_RevenueDisaggregatedRevenuesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_9386f8b5-b1d1-4de1-917b-ade98367e465" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_c194a509-cbe8-462c-a048-5760164b6cfd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_9386f8b5-b1d1-4de1-917b-ade98367e465" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_c194a509-cbe8-462c-a048-5760164b6cfd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_daa9d6f7-2e12-485a-ad75-0186480bc499" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_9386f8b5-b1d1-4de1-917b-ade98367e465" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_daa9d6f7-2e12-485a-ad75-0186480bc499" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_4751bc2b-a7c6-41d8-9abe-06b1ed63b0f3" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_daa9d6f7-2e12-485a-ad75-0186480bc499" xlink:to="loc_srt_ProductOrServiceAxis_4751bc2b-a7c6-41d8-9abe-06b1ed63b0f3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_4751bc2b-a7c6-41d8-9abe-06b1ed63b0f3_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_4751bc2b-a7c6-41d8-9abe-06b1ed63b0f3" xlink:to="loc_srt_ProductsAndServicesDomain_4751bc2b-a7c6-41d8-9abe-06b1ed63b0f3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_40b0a056-f681-46d9-907e-46a17cdbf8b6" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_4751bc2b-a7c6-41d8-9abe-06b1ed63b0f3" xlink:to="loc_srt_ProductsAndServicesDomain_40b0a056-f681-46d9-907e-46a17cdbf8b6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RoyaltyMember_c2cf6609-255e-4204-9300-ad283cb25008" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RoyaltyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_40b0a056-f681-46d9-907e-46a17cdbf8b6" xlink:to="loc_us-gaap_RoyaltyMember_c2cf6609-255e-4204-9300-ad283cb25008" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProductMember_4770e702-b8c4-46de-b8d2-c21da4cf7a06" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProductMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_40b0a056-f681-46d9-907e-46a17cdbf8b6" xlink:to="loc_us-gaap_ProductMember_4770e702-b8c4-46de-b8d2-c21da4cf7a06" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_BulkrHuPH20Member_982238ee-8606-4c90-bc01-3a96567ffbe2" xlink:href="halo-20230630.xsd#halo_BulkrHuPH20Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ProductMember_4770e702-b8c4-46de-b8d2-c21da4cf7a06" xlink:to="loc_halo_BulkrHuPH20Member_982238ee-8606-4c90-bc01-3a96567ffbe2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_ProprietaryProductsSalesMember_c4528bfa-33d4-4c5c-86cf-8d98690bfd05" xlink:href="halo-20230630.xsd#halo_ProprietaryProductsSalesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ProductMember_4770e702-b8c4-46de-b8d2-c21da4cf7a06" xlink:to="loc_halo_ProprietaryProductsSalesMember_c4528bfa-33d4-4c5c-86cf-8d98690bfd05" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_DevicePartneredProductsMember_5940b0a5-2bae-4161-ad5d-6837d56bcff1" xlink:href="halo-20230630.xsd#halo_DevicePartneredProductsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ProductMember_4770e702-b8c4-46de-b8d2-c21da4cf7a06" xlink:to="loc_halo_DevicePartneredProductsMember_5940b0a5-2bae-4161-ad5d-6837d56bcff1" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_CollaborativeAgreementsMember_73fcc45a-c235-4287-95bc-a31d32c9d96b" xlink:href="halo-20230630.xsd#halo_CollaborativeAgreementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_40b0a056-f681-46d9-907e-46a17cdbf8b6" xlink:to="loc_halo_CollaborativeAgreementsMember_73fcc45a-c235-4287-95bc-a31d32c9d96b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_UpfrontfeesMember_579f212b-a9f2-4b4b-8f41-0596388ac211" xlink:href="halo-20230630.xsd#halo_UpfrontfeesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_halo_CollaborativeAgreementsMember_73fcc45a-c235-4287-95bc-a31d32c9d96b" xlink:to="loc_halo_UpfrontfeesMember_579f212b-a9f2-4b4b-8f41-0596388ac211" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_EventBasedDevelopmentAndRegulatoryMilestoneAndOtherFeesMember_8b563925-a54f-41cb-912c-0125fdada718" xlink:href="halo-20230630.xsd#halo_EventBasedDevelopmentAndRegulatoryMilestoneAndOtherFeesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_halo_CollaborativeAgreementsMember_73fcc45a-c235-4287-95bc-a31d32c9d96b" xlink:to="loc_halo_EventBasedDevelopmentAndRegulatoryMilestoneAndOtherFeesMember_8b563925-a54f-41cb-912c-0125fdada718" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_DeviceLicensingAndDevelopmentMember_3ca206fc-83ad-4835-b9ff-aa21b1a353a3" xlink:href="halo-20230630.xsd#halo_DeviceLicensingAndDevelopmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_halo_CollaborativeAgreementsMember_73fcc45a-c235-4287-95bc-a31d32c9d96b" xlink:to="loc_halo_DeviceLicensingAndDevelopmentMember_3ca206fc-83ad-4835-b9ff-aa21b1a353a3" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.halozyme.com/role/RevenueNarrativeDetails" xlink:type="simple" xlink:href="halo-20230630.xsd#RevenueNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.halozyme.com/role/RevenueNarrativeDetails" xlink:type="extended" id="i9aa68b4772a84999b5cb26577be11f1f_RevenueNarrativeDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_5d0e7e1d-c941-460f-9aa2-513c94208c24" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerPerformanceObligationSatisfiedInPreviousPeriod_13626d90-6396-40d3-abf7-7afc3e5b0e74" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContractWithCustomerPerformanceObligationSatisfiedInPreviousPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_5d0e7e1d-c941-460f-9aa2-513c94208c24" xlink:to="loc_us-gaap_ContractWithCustomerPerformanceObligationSatisfiedInPreviousPeriod_13626d90-6396-40d3-abf7-7afc3e5b0e74" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityChangeInTimeframePerformanceObligationSatisfiedRevenueRecognized_cf0e007b-8794-4ec0-95bf-f1c2d9d6a4d7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContractWithCustomerLiabilityChangeInTimeframePerformanceObligationSatisfiedRevenueRecognized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_5d0e7e1d-c941-460f-9aa2-513c94208c24" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityChangeInTimeframePerformanceObligationSatisfiedRevenueRecognized_cf0e007b-8794-4ec0-95bf-f1c2d9d6a4d7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityRevenueRecognized_06fa338e-184e-4fa4-9b63-79fbe43f8ea7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContractWithCustomerLiabilityRevenueRecognized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_5d0e7e1d-c941-460f-9aa2-513c94208c24" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityRevenueRecognized_06fa338e-184e-4fa4-9b63-79fbe43f8ea7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_58006b3b-cbb8-4a96-9cf6-12153a317ae9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueRemainingPerformanceObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_5d0e7e1d-c941-460f-9aa2-513c94208c24" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_58006b3b-cbb8-4a96-9cf6-12153a317ae9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_RevenueRemainingPerformanceObligationsUnfulfilledProductPurchaseOrdersAmount_43d432e9-8081-4b46-9be8-bd72ee9770c8" xlink:href="halo-20230630.xsd#halo_RevenueRemainingPerformanceObligationsUnfulfilledProductPurchaseOrdersAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_5d0e7e1d-c941-460f-9aa2-513c94208c24" xlink:to="loc_halo_RevenueRemainingPerformanceObligationsUnfulfilledProductPurchaseOrdersAmount_43d432e9-8081-4b46-9be8-bd72ee9770c8" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiability_46a9c63a-2f03-474b-ad21-e18363ac092a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContractWithCustomerLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_5d0e7e1d-c941-460f-9aa2-513c94208c24" xlink:to="loc_us-gaap_ContractWithCustomerLiability_46a9c63a-2f03-474b-ad21-e18363ac092a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_2ae63cba-36fb-4bd1-a253-c0b84fe9dc1d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_5d0e7e1d-c941-460f-9aa2-513c94208c24" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_2ae63cba-36fb-4bd1-a253-c0b84fe9dc1d" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerAssetNetCurrent_002aadaa-3aec-4810-b15d-3f5065dc8a36" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContractWithCustomerAssetNetCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_5d0e7e1d-c941-460f-9aa2-513c94208c24" xlink:to="loc_us-gaap_ContractWithCustomerAssetNetCurrent_002aadaa-3aec-4810-b15d-3f5065dc8a36" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_777c1e7b-cce9-4809-9dd8-0304dac5c962" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_5d0e7e1d-c941-460f-9aa2-513c94208c24" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_777c1e7b-cce9-4809-9dd8-0304dac5c962" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_b3a356ce-9ea4-4362-a557-a0bf2909eb4e" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_777c1e7b-cce9-4809-9dd8-0304dac5c962" xlink:to="loc_srt_ProductOrServiceAxis_b3a356ce-9ea4-4362-a557-a0bf2909eb4e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_b3a356ce-9ea4-4362-a557-a0bf2909eb4e_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_b3a356ce-9ea4-4362-a557-a0bf2909eb4e" xlink:to="loc_srt_ProductsAndServicesDomain_b3a356ce-9ea4-4362-a557-a0bf2909eb4e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_35e008a0-d43e-4428-a6ab-590bd85f304f" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_b3a356ce-9ea4-4362-a557-a0bf2909eb4e" xlink:to="loc_srt_ProductsAndServicesDomain_35e008a0-d43e-4428-a6ab-590bd85f304f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_LicenseFeesAndEventBasedMember_3fc6b7a8-7600-4ed7-a0ad-c473c75f91a0" xlink:href="halo-20230630.xsd#halo_LicenseFeesAndEventBasedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_35e008a0-d43e-4428-a6ab-590bd85f304f" xlink:to="loc_halo_LicenseFeesAndEventBasedMember_3fc6b7a8-7600-4ed7-a0ad-c473c75f91a0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProductMember_cb323f96-cbff-44b9-8201-fb5a3454c8f7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProductMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_35e008a0-d43e-4428-a6ab-590bd85f304f" xlink:to="loc_us-gaap_ProductMember_cb323f96-cbff-44b9-8201-fb5a3454c8f7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfArrangementAxis_53373b81-3f50-456b-9fe2-f2596d0dbacb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TypeOfArrangementAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_777c1e7b-cce9-4809-9dd8-0304dac5c962" xlink:to="loc_us-gaap_TypeOfArrangementAxis_53373b81-3f50-456b-9fe2-f2596d0dbacb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_53373b81-3f50-456b-9fe2-f2596d0dbacb_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TypeOfArrangementAxis_53373b81-3f50-456b-9fe2-f2596d0dbacb" xlink:to="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_53373b81-3f50-456b-9fe2-f2596d0dbacb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_8ce1b78e-7fb7-4b3e-8e8b-3c41445cb815" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TypeOfArrangementAxis_53373b81-3f50-456b-9fe2-f2596d0dbacb" xlink:to="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_8ce1b78e-7fb7-4b3e-8e8b-3c41445cb815" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_OthercollaboratorsMember_884fdd43-eba3-4d2c-a8ca-a5b9e2dcb168" xlink:href="halo-20230630.xsd#halo_OthercollaboratorsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_8ce1b78e-7fb7-4b3e-8e8b-3c41445cb815" xlink:to="loc_halo_OthercollaboratorsMember_884fdd43-eba3-4d2c-a8ca-a5b9e2dcb168" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_efde2f7e-2ffd-4cb9-adee-a5451e49c475" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_777c1e7b-cce9-4809-9dd8-0304dac5c962" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_efde2f7e-2ffd-4cb9-adee-a5451e49c475" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.halozyme.com/role/RevenueNarrativeDetails_1" xlink:type="simple" xlink:href="halo-20230630.xsd#RevenueNarrativeDetails_1"/>
  <link:definitionLink xlink:role="http://www.halozyme.com/role/RevenueNarrativeDetails_1" xlink:type="extended" id="ib23ad93992934395a63aa5cfe4fb6525_RevenueNarrativeDetails_1">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_5d0e7e1d-c941-460f-9aa2-513c94208c24" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerPerformanceObligationSatisfiedInPreviousPeriod_13626d90-6396-40d3-abf7-7afc3e5b0e74" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContractWithCustomerPerformanceObligationSatisfiedInPreviousPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_5d0e7e1d-c941-460f-9aa2-513c94208c24" xlink:to="loc_us-gaap_ContractWithCustomerPerformanceObligationSatisfiedInPreviousPeriod_13626d90-6396-40d3-abf7-7afc3e5b0e74" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityChangeInTimeframePerformanceObligationSatisfiedRevenueRecognized_cf0e007b-8794-4ec0-95bf-f1c2d9d6a4d7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContractWithCustomerLiabilityChangeInTimeframePerformanceObligationSatisfiedRevenueRecognized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_5d0e7e1d-c941-460f-9aa2-513c94208c24" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityChangeInTimeframePerformanceObligationSatisfiedRevenueRecognized_cf0e007b-8794-4ec0-95bf-f1c2d9d6a4d7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityRevenueRecognized_06fa338e-184e-4fa4-9b63-79fbe43f8ea7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContractWithCustomerLiabilityRevenueRecognized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_5d0e7e1d-c941-460f-9aa2-513c94208c24" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityRevenueRecognized_06fa338e-184e-4fa4-9b63-79fbe43f8ea7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_58006b3b-cbb8-4a96-9cf6-12153a317ae9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueRemainingPerformanceObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_5d0e7e1d-c941-460f-9aa2-513c94208c24" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_58006b3b-cbb8-4a96-9cf6-12153a317ae9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_RevenueRemainingPerformanceObligationsUnfulfilledProductPurchaseOrdersAmount_43d432e9-8081-4b46-9be8-bd72ee9770c8" xlink:href="halo-20230630.xsd#halo_RevenueRemainingPerformanceObligationsUnfulfilledProductPurchaseOrdersAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_5d0e7e1d-c941-460f-9aa2-513c94208c24" xlink:to="loc_halo_RevenueRemainingPerformanceObligationsUnfulfilledProductPurchaseOrdersAmount_43d432e9-8081-4b46-9be8-bd72ee9770c8" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiability_46a9c63a-2f03-474b-ad21-e18363ac092a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContractWithCustomerLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_5d0e7e1d-c941-460f-9aa2-513c94208c24" xlink:to="loc_us-gaap_ContractWithCustomerLiability_46a9c63a-2f03-474b-ad21-e18363ac092a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_2ae63cba-36fb-4bd1-a253-c0b84fe9dc1d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_5d0e7e1d-c941-460f-9aa2-513c94208c24" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_2ae63cba-36fb-4bd1-a253-c0b84fe9dc1d" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerAssetNetCurrent_002aadaa-3aec-4810-b15d-3f5065dc8a36" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContractWithCustomerAssetNetCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_5d0e7e1d-c941-460f-9aa2-513c94208c24" xlink:to="loc_us-gaap_ContractWithCustomerAssetNetCurrent_002aadaa-3aec-4810-b15d-3f5065dc8a36" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_777c1e7b-cce9-4809-9dd8-0304dac5c962" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_5d0e7e1d-c941-460f-9aa2-513c94208c24" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_777c1e7b-cce9-4809-9dd8-0304dac5c962" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_b3a356ce-9ea4-4362-a557-a0bf2909eb4e" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_777c1e7b-cce9-4809-9dd8-0304dac5c962" xlink:to="loc_srt_ProductOrServiceAxis_b3a356ce-9ea4-4362-a557-a0bf2909eb4e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_b3a356ce-9ea4-4362-a557-a0bf2909eb4e_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_b3a356ce-9ea4-4362-a557-a0bf2909eb4e" xlink:to="loc_srt_ProductsAndServicesDomain_b3a356ce-9ea4-4362-a557-a0bf2909eb4e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_35e008a0-d43e-4428-a6ab-590bd85f304f" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_b3a356ce-9ea4-4362-a557-a0bf2909eb4e" xlink:to="loc_srt_ProductsAndServicesDomain_35e008a0-d43e-4428-a6ab-590bd85f304f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_LicenseFeesAndEventBasedMember_3fc6b7a8-7600-4ed7-a0ad-c473c75f91a0" xlink:href="halo-20230630.xsd#halo_LicenseFeesAndEventBasedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_35e008a0-d43e-4428-a6ab-590bd85f304f" xlink:to="loc_halo_LicenseFeesAndEventBasedMember_3fc6b7a8-7600-4ed7-a0ad-c473c75f91a0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProductMember_cb323f96-cbff-44b9-8201-fb5a3454c8f7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProductMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_35e008a0-d43e-4428-a6ab-590bd85f304f" xlink:to="loc_us-gaap_ProductMember_cb323f96-cbff-44b9-8201-fb5a3454c8f7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfArrangementAxis_53373b81-3f50-456b-9fe2-f2596d0dbacb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TypeOfArrangementAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_777c1e7b-cce9-4809-9dd8-0304dac5c962" xlink:to="loc_us-gaap_TypeOfArrangementAxis_53373b81-3f50-456b-9fe2-f2596d0dbacb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_53373b81-3f50-456b-9fe2-f2596d0dbacb_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TypeOfArrangementAxis_53373b81-3f50-456b-9fe2-f2596d0dbacb" xlink:to="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_53373b81-3f50-456b-9fe2-f2596d0dbacb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_8ce1b78e-7fb7-4b3e-8e8b-3c41445cb815" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TypeOfArrangementAxis_53373b81-3f50-456b-9fe2-f2596d0dbacb" xlink:to="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_8ce1b78e-7fb7-4b3e-8e8b-3c41445cb815" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_OthercollaboratorsMember_884fdd43-eba3-4d2c-a8ca-a5b9e2dcb168" xlink:href="halo-20230630.xsd#halo_OthercollaboratorsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_8ce1b78e-7fb7-4b3e-8e8b-3c41445cb815" xlink:to="loc_halo_OthercollaboratorsMember_884fdd43-eba3-4d2c-a8ca-a5b9e2dcb168" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.halozyme.com/role/CertainBalanceSheetItemsAccountsReceivablenetDetails" xlink:type="simple" xlink:href="halo-20230630.xsd#CertainBalanceSheetItemsAccountsReceivablenetDetails"/>
  <link:definitionLink xlink:role="http://www.halozyme.com/role/CertainBalanceSheetItemsAccountsReceivablenetDetails" xlink:type="extended" id="ie9ec1256c0ef41659ddd09138f983fb2_CertainBalanceSheetItemsAccountsReceivablenetDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_db1d4952-db03-466b-8614-86f3eb526eb2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccountsNotesAndLoansReceivableLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableGrossCurrent_7d9a8d9b-ed95-4ebe-8eb3-9c08ecc0cfa3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccountsReceivableGrossCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_db1d4952-db03-466b-8614-86f3eb526eb2" xlink:to="loc_us-gaap_AccountsReceivableGrossCurrent_7d9a8d9b-ed95-4ebe-8eb3-9c08ecc0cfa3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherReceivables_b62f4ded-a3b2-404a-89a3-8844dd5fbae1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherReceivables"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_db1d4952-db03-466b-8614-86f3eb526eb2" xlink:to="loc_us-gaap_OtherReceivables_b62f4ded-a3b2-404a-89a3-8844dd5fbae1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerAssetGrossCurrent_5341606d-b5a0-4aea-ac9b-8c55d8d66a4c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContractWithCustomerAssetGrossCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_db1d4952-db03-466b-8614-86f3eb526eb2" xlink:to="loc_us-gaap_ContractWithCustomerAssetGrossCurrent_5341606d-b5a0-4aea-ac9b-8c55d8d66a4c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_AccountsReceivableAndContractWithCustomerAssetBeforeAllowanceForCreditLossCurrent_f8df1609-1463-421a-9393-bdad5cfbd2c1" xlink:href="halo-20230630.xsd#halo_AccountsReceivableAndContractWithCustomerAssetBeforeAllowanceForCreditLossCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_db1d4952-db03-466b-8614-86f3eb526eb2" xlink:to="loc_halo_AccountsReceivableAndContractWithCustomerAssetBeforeAllowanceForCreditLossCurrent_f8df1609-1463-421a-9393-bdad5cfbd2c1" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_AccountsReceivableAndContractWithCustomerAssetAllowanceForCreditLossCurrent_e55d1408-7368-4f90-b378-8410fb5ffdd2" xlink:href="halo-20230630.xsd#halo_AccountsReceivableAndContractWithCustomerAssetAllowanceForCreditLossCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_db1d4952-db03-466b-8614-86f3eb526eb2" xlink:to="loc_halo_AccountsReceivableAndContractWithCustomerAssetAllowanceForCreditLossCurrent_e55d1408-7368-4f90-b378-8410fb5ffdd2" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_AccountsReceivableAndContractWithCustomerAssetAfterAllowanceForCreditLossCurrent_f5691615-16a5-4c15-acb6-618ac1d75982" xlink:href="halo-20230630.xsd#halo_AccountsReceivableAndContractWithCustomerAssetAfterAllowanceForCreditLossCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_db1d4952-db03-466b-8614-86f3eb526eb2" xlink:to="loc_halo_AccountsReceivableAndContractWithCustomerAssetAfterAllowanceForCreditLossCurrent_f5691615-16a5-4c15-acb6-618ac1d75982" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_e87ce712-d2b8-4097-9d1c-78a21de7a434" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_db1d4952-db03-466b-8614-86f3eb526eb2" xlink:to="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_e87ce712-d2b8-4097-9d1c-78a21de7a434" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_ee402973-6658-4fa9-96ff-e04a95445e56" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_e87ce712-d2b8-4097-9d1c-78a21de7a434" xlink:to="loc_srt_ProductOrServiceAxis_ee402973-6658-4fa9-96ff-e04a95445e56" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_ee402973-6658-4fa9-96ff-e04a95445e56_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_ee402973-6658-4fa9-96ff-e04a95445e56" xlink:to="loc_srt_ProductsAndServicesDomain_ee402973-6658-4fa9-96ff-e04a95445e56_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_2a047192-bde0-4c1c-bdbe-44db57484a73" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_ee402973-6658-4fa9-96ff-e04a95445e56" xlink:to="loc_srt_ProductsAndServicesDomain_2a047192-bde0-4c1c-bdbe-44db57484a73" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_DevicePartneredProductsMember_2f1b525d-2a2b-43c4-aefc-9e2bb9a57ced" xlink:href="halo-20230630.xsd#halo_DevicePartneredProductsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_2a047192-bde0-4c1c-bdbe-44db57484a73" xlink:to="loc_halo_DevicePartneredProductsMember_2f1b525d-2a2b-43c4-aefc-9e2bb9a57ced" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_CollaborativeAgreementsMember_ab92da1f-28f3-4b61-889a-050c81de3f7c" xlink:href="halo-20230630.xsd#halo_CollaborativeAgreementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_2a047192-bde0-4c1c-bdbe-44db57484a73" xlink:to="loc_halo_CollaborativeAgreementsMember_ab92da1f-28f3-4b61-889a-050c81de3f7c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RoyaltyMember_d1c74cfa-8a93-4780-9b47-196fd6307b5c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RoyaltyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_2a047192-bde0-4c1c-bdbe-44db57484a73" xlink:to="loc_us-gaap_RoyaltyMember_d1c74cfa-8a93-4780-9b47-196fd6307b5c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_ProductSalesOtherMember_a9424400-4627-4a9e-a7a1-4834690e2c11" xlink:href="halo-20230630.xsd#halo_ProductSalesOtherMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_2a047192-bde0-4c1c-bdbe-44db57484a73" xlink:to="loc_halo_ProductSalesOtherMember_a9424400-4627-4a9e-a7a1-4834690e2c11" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.halozyme.com/role/CertainBalanceSheetItemsPrepaidExpensesandOtherAssetsDetails" xlink:type="simple" xlink:href="halo-20230630.xsd#CertainBalanceSheetItemsPrepaidExpensesandOtherAssetsDetails"/>
  <link:definitionLink xlink:role="http://www.halozyme.com/role/CertainBalanceSheetItemsPrepaidExpensesandOtherAssetsDetails" xlink:type="extended" id="i7f231ec6549d49318f8d99af11e9fe42_CertainBalanceSheetItemsPrepaidExpensesandOtherAssetsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_42b35f12-2367-4f1d-8048-1be1a6f8a916" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseCurrent_a0d9c318-92df-4274-b8a8-f61f9ad4bca9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PrepaidExpenseCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_42b35f12-2367-4f1d-8048-1be1a6f8a916" xlink:to="loc_us-gaap_PrepaidExpenseCurrent_a0d9c318-92df-4274-b8a8-f61f9ad4bca9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPrepaidExpenseCurrent_85e463f6-a989-4707-97cd-2db02ddc876a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherPrepaidExpenseCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_42b35f12-2367-4f1d-8048-1be1a6f8a916" xlink:to="loc_us-gaap_OtherPrepaidExpenseCurrent_85e463f6-a989-4707-97cd-2db02ddc876a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_da3c46c0-8341-4b98-8e6a-352228393190" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_42b35f12-2367-4f1d-8048-1be1a6f8a916" xlink:to="loc_us-gaap_OtherAssets_da3c46c0-8341-4b98-8e6a-352228393190" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssets_4d22f89d-627d-4b58-b5ac-708d446d279d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PrepaidExpenseAndOtherAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_42b35f12-2367-4f1d-8048-1be1a6f8a916" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssets_4d22f89d-627d-4b58-b5ac-708d446d279d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsNoncurrent_04cf5d43-2c20-4962-8011-adbf5f1c4811" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PrepaidExpenseAndOtherAssetsNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_42b35f12-2367-4f1d-8048-1be1a6f8a916" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsNoncurrent_04cf5d43-2c20-4962-8011-adbf5f1c4811" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_8a907a1c-2a09-41c6-b043-0c001f00f8f2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_42b35f12-2367-4f1d-8048-1be1a6f8a916" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_8a907a1c-2a09-41c6-b043-0c001f00f8f2" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_143b8155-881f-47e2-9f98-1dd536f121ed" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_42b35f12-2367-4f1d-8048-1be1a6f8a916" xlink:to="loc_us-gaap_StatementTable_143b8155-881f-47e2-9f98-1dd536f121ed" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_66dcf873-a2f4-4263-82e3-36132c1f769d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_143b8155-881f-47e2-9f98-1dd536f121ed" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_66dcf873-a2f4-4263-82e3-36132c1f769d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_66dcf873-a2f4-4263-82e3-36132c1f769d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_66dcf873-a2f4-4263-82e3-36132c1f769d" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_66dcf873-a2f4-4263-82e3-36132c1f769d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_9f572986-30ac-4ecb-9373-ac72347ade40" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_66dcf873-a2f4-4263-82e3-36132c1f769d" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_9f572986-30ac-4ecb-9373-ac72347ade40" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_ComputerAndOfficeEquipmentMember_7f6b4f09-c843-4bd5-98eb-41bbb13eb99a" xlink:href="halo-20230630.xsd#halo_ComputerAndOfficeEquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_9f572986-30ac-4ecb-9373-ac72347ade40" xlink:to="loc_halo_ComputerAndOfficeEquipmentMember_7f6b4f09-c843-4bd5-98eb-41bbb13eb99a" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.halozyme.com/role/CertainBalanceSheetItemsPropertyandEquipmentnetDetails" xlink:type="simple" xlink:href="halo-20230630.xsd#CertainBalanceSheetItemsPropertyandEquipmentnetDetails"/>
  <link:definitionLink xlink:role="http://www.halozyme.com/role/CertainBalanceSheetItemsPropertyandEquipmentnetDetails" xlink:type="extended" id="i330843a28eca4937af138da96bf7e934_CertainBalanceSheetItemsPropertyandEquipmentnetDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_572b534b-dfa1-42da-92be-90649c4205ad" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_c7a443d4-9453-4339-8b59-0fd52ce35fc1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_572b534b-dfa1-42da-92be-90649c4205ad" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_c7a443d4-9453-4339-8b59-0fd52ce35fc1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_7f2baf2b-6559-48e9-b85f-6bab006c14cc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_572b534b-dfa1-42da-92be-90649c4205ad" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_7f2baf2b-6559-48e9-b85f-6bab006c14cc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_8d89c942-c0d1-4ee9-96ab-cea46a943bd1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_572b534b-dfa1-42da-92be-90649c4205ad" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_8d89c942-c0d1-4ee9-96ab-cea46a943bd1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_98fb15d5-0876-46ca-877e-cf2d658af378" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_572b534b-dfa1-42da-92be-90649c4205ad" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_98fb15d5-0876-46ca-877e-cf2d658af378" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_PropertyPlantAndEquipmentAndOperatingLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_6ebc6de9-a4a5-451b-8fdf-4bb4c053109d" xlink:href="halo-20230630.xsd#halo_PropertyPlantAndEquipmentAndOperatingLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_572b534b-dfa1-42da-92be-90649c4205ad" xlink:to="loc_halo_PropertyPlantAndEquipmentAndOperatingLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_6ebc6de9-a4a5-451b-8fdf-4bb4c053109d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_b3c11ae8-f6c8-4d0d-8eed-cf58004ac7fb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_572b534b-dfa1-42da-92be-90649c4205ad" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_b3c11ae8-f6c8-4d0d-8eed-cf58004ac7fb" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAssetAmortizationExpense_cecf3d06-1025-4ffe-be0f-ae4f34c801a3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLeaseRightOfUseAssetAmortizationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_572b534b-dfa1-42da-92be-90649c4205ad" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAssetAmortizationExpense_cecf3d06-1025-4ffe-be0f-ae4f34c801a3" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_c4b51884-2d92-46b6-b065-86a621b83ce6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_572b534b-dfa1-42da-92be-90649c4205ad" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_c4b51884-2d92-46b6-b065-86a621b83ce6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_81d0e375-2c17-4073-b770-5d1d2b616927" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_c4b51884-2d92-46b6-b065-86a621b83ce6" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_81d0e375-2c17-4073-b770-5d1d2b616927" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_81d0e375-2c17-4073-b770-5d1d2b616927_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_81d0e375-2c17-4073-b770-5d1d2b616927" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_81d0e375-2c17-4073-b770-5d1d2b616927_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_d677783b-4099-446e-b0ac-24e774d3e311" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_81d0e375-2c17-4073-b770-5d1d2b616927" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_d677783b-4099-446e-b0ac-24e774d3e311" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_ResearchEquipmentMember_df7c513a-2685-4faf-8766-6080c127483e" xlink:href="halo-20230630.xsd#halo_ResearchEquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_d677783b-4099-446e-b0ac-24e774d3e311" xlink:to="loc_halo_ResearchEquipmentMember_df7c513a-2685-4faf-8766-6080c127483e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_ManufacturingEquipmentMember_af086498-0324-4cce-b600-0651ed9bb78d" xlink:href="halo-20230630.xsd#halo_ManufacturingEquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_d677783b-4099-446e-b0ac-24e774d3e311" xlink:to="loc_halo_ManufacturingEquipmentMember_af086498-0324-4cce-b600-0651ed9bb78d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_ComputerAndOfficeEquipmentMember_5dde8f9c-22b0-4529-8d26-a9e8c2d87191" xlink:href="halo-20230630.xsd#halo_ComputerAndOfficeEquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_d677783b-4099-446e-b0ac-24e774d3e311" xlink:to="loc_halo_ComputerAndOfficeEquipmentMember_5dde8f9c-22b0-4529-8d26-a9e8c2d87191" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseholdImprovementsMember_e459a19b-1915-494d-9d8f-06482c2d8a6c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LeaseholdImprovementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_d677783b-4099-446e-b0ac-24e774d3e311" xlink:to="loc_us-gaap_LeaseholdImprovementsMember_e459a19b-1915-494d-9d8f-06482c2d8a6c" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.halozyme.com/role/GoodwillandIntangibleAssetsAdditionalDetails" xlink:type="simple" xlink:href="halo-20230630.xsd#GoodwillandIntangibleAssetsAdditionalDetails"/>
  <link:definitionLink xlink:role="http://www.halozyme.com/role/GoodwillandIntangibleAssetsAdditionalDetails" xlink:type="extended" id="i9a9473bf9b374eb0925bc1d09374936f_GoodwillandIntangibleAssetsAdditionalDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_d4e2fe83-0930-4f00-acf8-ecaf9e7cba2b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife_802d5f82-a728-41f9-98e0-ddb63e7c631a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_d4e2fe83-0930-4f00-acf8-ecaf9e7cba2b" xlink:to="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife_802d5f82-a728-41f9-98e0-ddb63e7c631a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_9cda1c1f-33e9-44ac-9216-a6396d6d4981" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_d4e2fe83-0930-4f00-acf8-ecaf9e7cba2b" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_9cda1c1f-33e9-44ac-9216-a6396d6d4981" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_0e8d2a88-a85d-4cd6-b63f-c2ea47e0d2a2" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_9cda1c1f-33e9-44ac-9216-a6396d6d4981" xlink:to="loc_srt_RangeAxis_0e8d2a88-a85d-4cd6-b63f-c2ea47e0d2a2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_0e8d2a88-a85d-4cd6-b63f-c2ea47e0d2a2_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_0e8d2a88-a85d-4cd6-b63f-c2ea47e0d2a2" xlink:to="loc_srt_RangeMember_0e8d2a88-a85d-4cd6-b63f-c2ea47e0d2a2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_108cec53-6790-4efc-8714-5e3e4d9e016b" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_0e8d2a88-a85d-4cd6-b63f-c2ea47e0d2a2" xlink:to="loc_srt_RangeMember_108cec53-6790-4efc-8714-5e3e4d9e016b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_41f21aa7-3777-49a0-a37b-c67f82788647" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_108cec53-6790-4efc-8714-5e3e4d9e016b" xlink:to="loc_srt_MinimumMember_41f21aa7-3777-49a0-a37b-c67f82788647" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_76568450-9c5d-497b-bb7d-2b4e84c86782" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_108cec53-6790-4efc-8714-5e3e4d9e016b" xlink:to="loc_srt_MaximumMember_76568450-9c5d-497b-bb7d-2b4e84c86782" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.halozyme.com/role/GoodwillandIntangibleAssetsIntangibleAssetsDetails" xlink:type="simple" xlink:href="halo-20230630.xsd#GoodwillandIntangibleAssetsIntangibleAssetsDetails"/>
  <link:definitionLink xlink:role="http://www.halozyme.com/role/GoodwillandIntangibleAssetsIntangibleAssetsDetails" xlink:type="extended" id="ia355410694764a6ebd6b3c65de9a4845_GoodwillandIntangibleAssetsIntangibleAssetsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_ce49e416-6e2b-462e-933c-82d75a515a3e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife_29e4fa01-f253-4a5f-a6d2-fa858f3ee0d1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_ce49e416-6e2b-462e-933c-82d75a515a3e" xlink:to="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife_29e4fa01-f253-4a5f-a6d2-fa858f3ee0d1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_126dcf2e-0045-41f2-a21f-ff09bd7072e1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_ce49e416-6e2b-462e-933c-82d75a515a3e" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_126dcf2e-0045-41f2-a21f-ff09bd7072e1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_771d6d68-ee2a-4473-9486-b9186cffad92" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_ce49e416-6e2b-462e-933c-82d75a515a3e" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_771d6d68-ee2a-4473-9486-b9186cffad92" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_416263ea-4808-4ac8-9873-f4cef9222b46" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_ce49e416-6e2b-462e-933c-82d75a515a3e" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_416263ea-4808-4ac8-9873-f4cef9222b46" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_a02ebe8a-b056-4b3a-b231-d83d63b386f0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_ce49e416-6e2b-462e-933c-82d75a515a3e" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_a02ebe8a-b056-4b3a-b231-d83d63b386f0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_83588869-f52b-44c5-b6e1-dd2f14601014" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_ce49e416-6e2b-462e-933c-82d75a515a3e" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_83588869-f52b-44c5-b6e1-dd2f14601014" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_89ad41f6-2ea2-405c-aff6-485abc778605" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_ce49e416-6e2b-462e-933c-82d75a515a3e" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_89ad41f6-2ea2-405c-aff6-485abc778605" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_cf2b7a28-98e5-40f1-9f38-e00bd1de4832" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_89ad41f6-2ea2-405c-aff6-485abc778605" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_cf2b7a28-98e5-40f1-9f38-e00bd1de4832" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_cf2b7a28-98e5-40f1-9f38-e00bd1de4832_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_cf2b7a28-98e5-40f1-9f38-e00bd1de4832" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_cf2b7a28-98e5-40f1-9f38-e00bd1de4832_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_3b48f860-dad2-4ea5-89cb-b6ff4798b91e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_cf2b7a28-98e5-40f1-9f38-e00bd1de4832" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_3b48f860-dad2-4ea5-89cb-b6ff4798b91e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_AutoInjectorTechnologyPlatformMember_f53819c2-6748-4cdc-aa15-a480842d4c55" xlink:href="halo-20230630.xsd#halo_AutoInjectorTechnologyPlatformMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_3b48f860-dad2-4ea5-89cb-b6ff4798b91e" xlink:to="loc_halo_AutoInjectorTechnologyPlatformMember_f53819c2-6748-4cdc-aa15-a480842d4c55" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_XYOSTEDProprietaryProductMember_aa15a0b5-bf91-4e5b-bf24-7d604cfabf72" xlink:href="halo-20230630.xsd#halo_XYOSTEDProprietaryProductMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_3b48f860-dad2-4ea5-89cb-b6ff4798b91e" xlink:to="loc_halo_XYOSTEDProprietaryProductMember_aa15a0b5-bf91-4e5b-bf24-7d604cfabf72" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_TLANDOProductRightsMember_2ea7f465-56e0-4651-959b-f0e0a999fac1" xlink:href="halo-20230630.xsd#halo_TLANDOProductRightsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_3b48f860-dad2-4ea5-89cb-b6ff4798b91e" xlink:to="loc_halo_TLANDOProductRightsMember_2ea7f465-56e0-4651-959b-f0e0a999fac1" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.halozyme.com/role/LongTermDebtNetNarrativeDetails" xlink:type="simple" xlink:href="halo-20230630.xsd#LongTermDebtNetNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.halozyme.com/role/LongTermDebtNetNarrativeDetails" xlink:type="extended" id="i787573e225fd4c5f984a059262ef1d36_LongTermDebtNetNarrativeDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_32743605-bdd2-4866-aa6b-bf749416cdad" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_c3e0dc5f-a5a2-4dff-8ce6-9b317bc1a69f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_32743605-bdd2-4866-aa6b-bf749416cdad" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_c3e0dc5f-a5a2-4dff-8ce6-9b317bc1a69f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_287086ed-3566-45eb-8df4-45fb036a0746" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_32743605-bdd2-4866-aa6b-bf749416cdad" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_287086ed-3566-45eb-8df4-45fb036a0746" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFeeAmount_925c5bda-cf24-44cb-bcfc-c299a99eb3d4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentFeeAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_32743605-bdd2-4866-aa6b-bf749416cdad" xlink:to="loc_us-gaap_DebtInstrumentFeeAmount_925c5bda-cf24-44cb-bcfc-c299a99eb3d4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromConvertibleDebt_261bb448-a195-457f-b3aa-f524784029e9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromConvertibleDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_32743605-bdd2-4866-aa6b-bf749416cdad" xlink:to="loc_us-gaap_ProceedsFromConvertibleDebt_261bb448-a195-457f-b3aa-f524784029e9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_4ad26f6a-5cdb-4b0c-876e-3f3c696add50" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsOfDebtIssuanceCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_32743605-bdd2-4866-aa6b-bf749416cdad" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_4ad26f6a-5cdb-4b0c-876e-3f3c696add50" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleThresholdPercentageOfStockPriceTrigger_6005bcbf-7dfb-4f05-a7c0-d7acb8660add" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentConvertibleThresholdPercentageOfStockPriceTrigger"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_32743605-bdd2-4866-aa6b-bf749416cdad" xlink:to="loc_us-gaap_DebtInstrumentConvertibleThresholdPercentageOfStockPriceTrigger_6005bcbf-7dfb-4f05-a7c0-d7acb8660add" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleThresholdTradingDays_47cb80e0-e999-4a7e-80af-e13c7e928e17" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentConvertibleThresholdTradingDays"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_32743605-bdd2-4866-aa6b-bf749416cdad" xlink:to="loc_us-gaap_DebtInstrumentConvertibleThresholdTradingDays_47cb80e0-e999-4a7e-80af-e13c7e928e17" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleThresholdConsecutiveTradingDays1_e186e9e4-cc3c-4161-b16f-01b48ff37347" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentConvertibleThresholdConsecutiveTradingDays1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_32743605-bdd2-4866-aa6b-bf749416cdad" xlink:to="loc_us-gaap_DebtInstrumentConvertibleThresholdConsecutiveTradingDays1_e186e9e4-cc3c-4161-b16f-01b48ff37347" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_DebtInstrumentConvertibleThresholdConsecutiveBusinessDays_c411f07a-e240-4dc9-a184-8799218a4deb" xlink:href="halo-20230630.xsd#halo_DebtInstrumentConvertibleThresholdConsecutiveBusinessDays"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_32743605-bdd2-4866-aa6b-bf749416cdad" xlink:to="loc_halo_DebtInstrumentConvertibleThresholdConsecutiveBusinessDays_c411f07a-e240-4dc9-a184-8799218a4deb" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleConversionRatio1_ab72f512-9d0e-4fda-ab60-8b43f450f4b0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentConvertibleConversionRatio1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_32743605-bdd2-4866-aa6b-bf749416cdad" xlink:to="loc_us-gaap_DebtInstrumentConvertibleConversionRatio1_ab72f512-9d0e-4fda-ab60-8b43f450f4b0" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleConversionPrice1_1f807015-7454-4387-a8aa-b05bd14f3e57" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentConvertibleConversionPrice1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_32743605-bdd2-4866-aa6b-bf749416cdad" xlink:to="loc_us-gaap_DebtInstrumentConvertibleConversionPrice1_1f807015-7454-4387-a8aa-b05bd14f3e57" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_DebtInstrumentCapCallTransactionCapPricePerShare_7a671e29-c18c-4ba0-9a9c-a40d4dca3809" xlink:href="halo-20230630.xsd#halo_DebtInstrumentCapCallTransactionCapPricePerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_32743605-bdd2-4866-aa6b-bf749416cdad" xlink:to="loc_halo_DebtInstrumentCapCallTransactionCapPricePerShare_7a671e29-c18c-4ba0-9a9c-a40d4dca3809" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_SaleOfStockPremiumOverLastReportedSalePricePercentage_0f746d19-ca21-4a0d-9ec9-d6e419861fc3" xlink:href="halo-20230630.xsd#halo_SaleOfStockPremiumOverLastReportedSalePricePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_32743605-bdd2-4866-aa6b-bf749416cdad" xlink:to="loc_halo_SaleOfStockPremiumOverLastReportedSalePricePercentage_0f746d19-ca21-4a0d-9ec9-d6e419861fc3" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleOfStockPricePerShare_fa26cac3-9f5b-40bb-86dd-c44367acfdf2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SaleOfStockPricePerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_32743605-bdd2-4866-aa6b-bf749416cdad" xlink:to="loc_us-gaap_SaleOfStockPricePerShare_fa26cac3-9f5b-40bb-86dd-c44367acfdf2" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_PaymentForCappedCallTransactions_28a3cf47-1f7c-48b4-85a1-076c0ac11bd8" xlink:href="halo-20230630.xsd#halo_PaymentForCappedCallTransactions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_32743605-bdd2-4866-aa6b-bf749416cdad" xlink:to="loc_halo_PaymentForCappedCallTransactions_28a3cf47-1f7c-48b4-85a1-076c0ac11bd8" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtConversionConvertedInstrumentAmount1_aa170567-c598-4fb3-80d6-f56e23171d60" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtConversionConvertedInstrumentAmount1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_32743605-bdd2-4866-aa6b-bf749416cdad" xlink:to="loc_us-gaap_DebtConversionConvertedInstrumentAmount1_aa170567-c598-4fb3-80d6-f56e23171d60" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfConvertibleDebt_b9aa8547-270c-4ccf-b94b-24449b9531c4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RepaymentsOfConvertibleDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_32743605-bdd2-4866-aa6b-bf749416cdad" xlink:to="loc_us-gaap_RepaymentsOfConvertibleDebt_b9aa8547-270c-4ccf-b94b-24449b9531c4" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtConversionConvertedInstrumentSharesIssued1_aa491c1b-4279-44b4-93d4-d224c90a779f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtConversionConvertedInstrumentSharesIssued1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_32743605-bdd2-4866-aa6b-bf749416cdad" xlink:to="loc_us-gaap_DebtConversionConvertedInstrumentSharesIssued1_aa491c1b-4279-44b4-93d4-d224c90a779f" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InducedConversionOfConvertibleDebtExpense_10dd57fa-0e32-4be3-8662-87558b011620" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InducedConversionOfConvertibleDebtExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_32743605-bdd2-4866-aa6b-bf749416cdad" xlink:to="loc_us-gaap_InducedConversionOfConvertibleDebtExpense_10dd57fa-0e32-4be3-8662-87558b011620" xlink:type="arc" order="18"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_785e18ea-a105-4a31-af69-37f246365f44" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_32743605-bdd2-4866-aa6b-bf749416cdad" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_785e18ea-a105-4a31-af69-37f246365f44" xlink:type="arc" order="19"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLongTermLinesOfCredit_2ea020e4-e9ad-44a8-afdd-acc771d83a7d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromLongTermLinesOfCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_32743605-bdd2-4866-aa6b-bf749416cdad" xlink:to="loc_us-gaap_ProceedsFromLongTermLinesOfCredit_2ea020e4-e9ad-44a8-afdd-acc771d83a7d" xlink:type="arc" order="20"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_28aa8a1a-0f0a-43fb-ac4a-faeb618bbaef" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_32743605-bdd2-4866-aa6b-bf749416cdad" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_28aa8a1a-0f0a-43fb-ac4a-faeb618bbaef" xlink:type="arc" order="21"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityCommitmentFeePercentage_13760ee4-7bb9-425a-8d35-bc94074ffa0f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LineOfCreditFacilityCommitmentFeePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_32743605-bdd2-4866-aa6b-bf749416cdad" xlink:to="loc_us-gaap_LineOfCreditFacilityCommitmentFeePercentage_13760ee4-7bb9-425a-8d35-bc94074ffa0f" xlink:type="arc" order="22"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsGross_14631fb8-30ef-4cd5-bcf5-9a3d88bcc2cb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredFinanceCostsGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_32743605-bdd2-4866-aa6b-bf749416cdad" xlink:to="loc_us-gaap_DeferredFinanceCostsGross_14631fb8-30ef-4cd5-bcf5-9a3d88bcc2cb" xlink:type="arc" order="23"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_da112980-1658-4f54-8cd8-00b605fb74c3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_32743605-bdd2-4866-aa6b-bf749416cdad" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_da112980-1658-4f54-8cd8-00b605fb74c3" xlink:type="arc" order="24"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_a3a4d5fa-8c58-4481-9d5c-8635ed4cd83b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_32743605-bdd2-4866-aa6b-bf749416cdad" xlink:to="loc_us-gaap_DebtInstrumentTable_a3a4d5fa-8c58-4481-9d5c-8635ed4cd83b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_2bab9db6-f897-490b-b6e1-f8da5403e9b9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_a3a4d5fa-8c58-4481-9d5c-8635ed4cd83b" xlink:to="loc_us-gaap_DebtInstrumentAxis_2bab9db6-f897-490b-b6e1-f8da5403e9b9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_2bab9db6-f897-490b-b6e1-f8da5403e9b9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_2bab9db6-f897-490b-b6e1-f8da5403e9b9" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_2bab9db6-f897-490b-b6e1-f8da5403e9b9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_25eddeb9-ba43-44a7-9bc0-b0a9bd097558" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_2bab9db6-f897-490b-b6e1-f8da5403e9b9" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_25eddeb9-ba43-44a7-9bc0-b0a9bd097558" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_A100ConvertibleSeniorNotesDue2028Member_8cae68e7-9814-41fd-a408-b472672ca1ba" xlink:href="halo-20230630.xsd#halo_A100ConvertibleSeniorNotesDue2028Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_25eddeb9-ba43-44a7-9bc0-b0a9bd097558" xlink:to="loc_halo_A100ConvertibleSeniorNotesDue2028Member_8cae68e7-9814-41fd-a408-b472672ca1ba" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_A025ConvertibleSeniorNotesDue2027Member_9f14d092-0da5-444d-981a-4c176cca5117" xlink:href="halo-20230630.xsd#halo_A025ConvertibleSeniorNotesDue2027Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_25eddeb9-ba43-44a7-9bc0-b0a9bd097558" xlink:to="loc_halo_A025ConvertibleSeniorNotesDue2027Member_9f14d092-0da5-444d-981a-4c176cca5117" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_A1.25ConvertibleSeniorNotesdue2024Member_4871428e-8f52-44a3-bc79-23eb2bc5d97e" xlink:href="halo-20230630.xsd#halo_A1.25ConvertibleSeniorNotesdue2024Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_25eddeb9-ba43-44a7-9bc0-b0a9bd097558" xlink:to="loc_halo_A1.25ConvertibleSeniorNotesdue2024Member_4871428e-8f52-44a3-bc79-23eb2bc5d97e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_CreditAgreementMember_3d7a027b-be40-4334-aa04-7e237a28c17c" xlink:href="halo-20230630.xsd#halo_CreditAgreementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_25eddeb9-ba43-44a7-9bc0-b0a9bd097558" xlink:to="loc_halo_CreditAgreementMember_3d7a027b-be40-4334-aa04-7e237a28c17c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_b22475af-1263-4898-8a32-d34a1ece19ca" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_a3a4d5fa-8c58-4481-9d5c-8635ed4cd83b" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_b22475af-1263-4898-8a32-d34a1ece19ca" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_b22475af-1263-4898-8a32-d34a1ece19ca_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_b22475af-1263-4898-8a32-d34a1ece19ca" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_b22475af-1263-4898-8a32-d34a1ece19ca_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_a406e7ab-95b0-47b6-a0c5-92dc2071e162" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_b22475af-1263-4898-8a32-d34a1ece19ca" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_a406e7ab-95b0-47b6-a0c5-92dc2071e162" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtMember_af544ba4-1e12-4036-b261-decd14c0c859" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConvertibleDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_a406e7ab-95b0-47b6-a0c5-92dc2071e162" xlink:to="loc_us-gaap_ConvertibleDebtMember_af544ba4-1e12-4036-b261-decd14c0c859" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_A025ConvertibleSeniorNotesDue2027Member_cb8cd62b-9e4a-46d3-bbf4-0d22b5a38e73" xlink:href="halo-20230630.xsd#halo_A025ConvertibleSeniorNotesDue2027Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_a406e7ab-95b0-47b6-a0c5-92dc2071e162" xlink:to="loc_halo_A025ConvertibleSeniorNotesDue2027Member_cb8cd62b-9e4a-46d3-bbf4-0d22b5a38e73" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_TermLoanFacilityMember_db114fcb-853a-4da8-a205-2416671fbf56" xlink:href="halo-20230630.xsd#halo_TermLoanFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_a406e7ab-95b0-47b6-a0c5-92dc2071e162" xlink:to="loc_halo_TermLoanFacilityMember_db114fcb-853a-4da8-a205-2416671fbf56" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPeriodAxis_092b5f31-b6a0-49c7-a998-87136d5a7c0d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentRedemptionPeriodAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_a3a4d5fa-8c58-4481-9d5c-8635ed4cd83b" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPeriodAxis_092b5f31-b6a0-49c7-a998-87136d5a7c0d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPeriodDomain_092b5f31-b6a0-49c7-a998-87136d5a7c0d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentRedemptionPeriodDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentRedemptionPeriodAxis_092b5f31-b6a0-49c7-a998-87136d5a7c0d" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPeriodDomain_092b5f31-b6a0-49c7-a998-87136d5a7c0d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPeriodDomain_a187f36d-274c-42b8-8b5d-7dfc5bf1ec5f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentRedemptionPeriodDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentRedemptionPeriodAxis_092b5f31-b6a0-49c7-a998-87136d5a7c0d" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPeriodDomain_a187f36d-274c-42b8-8b5d-7dfc5bf1ec5f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPeriodOneMember_182b252c-0776-4640-8b27-df68014ee21a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentRedemptionPeriodOneMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentRedemptionPeriodDomain_a187f36d-274c-42b8-8b5d-7dfc5bf1ec5f" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPeriodOneMember_182b252c-0776-4640-8b27-df68014ee21a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPeriodTwoMember_7e114deb-aa87-4fcf-9f7d-b66dcb08acdf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentRedemptionPeriodTwoMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentRedemptionPeriodDomain_a187f36d-274c-42b8-8b5d-7dfc5bf1ec5f" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPeriodTwoMember_7e114deb-aa87-4fcf-9f7d-b66dcb08acdf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateAxis_5d882e26-842f-4b49-97d1-2c448fa970e3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_VariableRateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_a3a4d5fa-8c58-4481-9d5c-8635ed4cd83b" xlink:to="loc_us-gaap_VariableRateAxis_5d882e26-842f-4b49-97d1-2c448fa970e3" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_5d882e26-842f-4b49-97d1-2c448fa970e3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_5d882e26-842f-4b49-97d1-2c448fa970e3" xlink:to="loc_us-gaap_VariableRateDomain_5d882e26-842f-4b49-97d1-2c448fa970e3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_197df9e9-d158-4927-976b-3b6d39ebad20" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_5d882e26-842f-4b49-97d1-2c448fa970e3" xlink:to="loc_us-gaap_VariableRateDomain_197df9e9-d158-4927-976b-3b6d39ebad20" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember_cdd7fd89-55a6-4a40-981e-95ae4723172c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_197df9e9-d158-4927-976b-3b6d39ebad20" xlink:to="loc_us-gaap_SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember_cdd7fd89-55a6-4a40-981e-95ae4723172c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalFundsEffectiveSwapRateMember_150b9a37-5ce2-4d58-85d9-44450d1de84a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FederalFundsEffectiveSwapRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_197df9e9-d158-4927-976b-3b6d39ebad20" xlink:to="loc_us-gaap_FederalFundsEffectiveSwapRateMember_150b9a37-5ce2-4d58-85d9-44450d1de84a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BaseRateMember_0381d991-807a-4a40-9e55-33563be3890b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BaseRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_197df9e9-d158-4927-976b-3b6d39ebad20" xlink:to="loc_us-gaap_BaseRateMember_0381d991-807a-4a40-9e55-33563be3890b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_3f434f2f-a06e-46d5-bce9-2a410ed2343f" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_a3a4d5fa-8c58-4481-9d5c-8635ed4cd83b" xlink:to="loc_srt_RangeAxis_3f434f2f-a06e-46d5-bce9-2a410ed2343f" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_3f434f2f-a06e-46d5-bce9-2a410ed2343f_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_3f434f2f-a06e-46d5-bce9-2a410ed2343f" xlink:to="loc_srt_RangeMember_3f434f2f-a06e-46d5-bce9-2a410ed2343f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_acf1ee28-f195-490d-9f07-5aab3ace3d34" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_3f434f2f-a06e-46d5-bce9-2a410ed2343f" xlink:to="loc_srt_RangeMember_acf1ee28-f195-490d-9f07-5aab3ace3d34" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_ce5154e6-eb78-421f-a935-55c8e74ed9a2" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_acf1ee28-f195-490d-9f07-5aab3ace3d34" xlink:to="loc_srt_MinimumMember_ce5154e6-eb78-421f-a935-55c8e74ed9a2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_ae2b7b88-d893-42c0-9ba4-cd689cdd273b" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_acf1ee28-f195-490d-9f07-5aab3ace3d34" xlink:to="loc_srt_MaximumMember_ae2b7b88-d893-42c0-9ba4-cd689cdd273b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_fea7b2b6-1413-4ef0-b378-fad4786908ae" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_a3a4d5fa-8c58-4481-9d5c-8635ed4cd83b" xlink:to="loc_us-gaap_CreditFacilityAxis_fea7b2b6-1413-4ef0-b378-fad4786908ae" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_fea7b2b6-1413-4ef0-b378-fad4786908ae_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_fea7b2b6-1413-4ef0-b378-fad4786908ae" xlink:to="loc_us-gaap_CreditFacilityDomain_fea7b2b6-1413-4ef0-b378-fad4786908ae_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_384dd464-2119-4635-bc97-6069f90c3cce" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_fea7b2b6-1413-4ef0-b378-fad4786908ae" xlink:to="loc_us-gaap_CreditFacilityDomain_384dd464-2119-4635-bc97-6069f90c3cce" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_de9d86f2-ee97-45d6-befb-8c157a5a1818" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_384dd464-2119-4635-bc97-6069f90c3cce" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_de9d86f2-ee97-45d6-befb-8c157a5a1818" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_853a0d01-7323-4646-8ee3-38d7f0db3916" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_a3a4d5fa-8c58-4481-9d5c-8635ed4cd83b" xlink:to="loc_us-gaap_StatementClassOfStockAxis_853a0d01-7323-4646-8ee3-38d7f0db3916" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_853a0d01-7323-4646-8ee3-38d7f0db3916_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_853a0d01-7323-4646-8ee3-38d7f0db3916" xlink:to="loc_us-gaap_ClassOfStockDomain_853a0d01-7323-4646-8ee3-38d7f0db3916_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_16dbbc0a-fc51-470b-b649-213c5d8f5bdd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_853a0d01-7323-4646-8ee3-38d7f0db3916" xlink:to="loc_us-gaap_ClassOfStockDomain_16dbbc0a-fc51-470b-b649-213c5d8f5bdd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_d700694b-639c-4e03-9956-f6132aa1d9b8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_16dbbc0a-fc51-470b-b649-213c5d8f5bdd" xlink:to="loc_us-gaap_CommonStockMember_d700694b-639c-4e03-9956-f6132aa1d9b8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_AnnualInterestPaymentPeriodAxis_c9068527-544f-4994-8cc4-e7f74f7bf30c" xlink:href="halo-20230630.xsd#halo_AnnualInterestPaymentPeriodAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_a3a4d5fa-8c58-4481-9d5c-8635ed4cd83b" xlink:to="loc_halo_AnnualInterestPaymentPeriodAxis_c9068527-544f-4994-8cc4-e7f74f7bf30c" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_AnnualInterestPaymentPeriodDomain_c9068527-544f-4994-8cc4-e7f74f7bf30c_default" xlink:href="halo-20230630.xsd#halo_AnnualInterestPaymentPeriodDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_halo_AnnualInterestPaymentPeriodAxis_c9068527-544f-4994-8cc4-e7f74f7bf30c" xlink:to="loc_halo_AnnualInterestPaymentPeriodDomain_c9068527-544f-4994-8cc4-e7f74f7bf30c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_AnnualInterestPaymentPeriodDomain_7eaca691-2525-425e-b230-28d3a6967aa2" xlink:href="halo-20230630.xsd#halo_AnnualInterestPaymentPeriodDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_halo_AnnualInterestPaymentPeriodAxis_c9068527-544f-4994-8cc4-e7f74f7bf30c" xlink:to="loc_halo_AnnualInterestPaymentPeriodDomain_7eaca691-2525-425e-b230-28d3a6967aa2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_DebtInstrumentInterestPeriodOneMember_5e9f04b6-dd13-45b6-b86b-b29f71797783" xlink:href="halo-20230630.xsd#halo_DebtInstrumentInterestPeriodOneMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_halo_AnnualInterestPaymentPeriodDomain_7eaca691-2525-425e-b230-28d3a6967aa2" xlink:to="loc_halo_DebtInstrumentInterestPeriodOneMember_5e9f04b6-dd13-45b6-b86b-b29f71797783" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_DebtInstrumentInterestPeriodTwoMember_52cd0f5b-cc60-4fb5-939d-58bb33349931" xlink:href="halo-20230630.xsd#halo_DebtInstrumentInterestPeriodTwoMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_halo_AnnualInterestPaymentPeriodDomain_7eaca691-2525-425e-b230-28d3a6967aa2" xlink:to="loc_halo_DebtInstrumentInterestPeriodTwoMember_52cd0f5b-cc60-4fb5-939d-58bb33349931" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_DebtInstrumentInterestPeriodThreeMember_df259969-0d62-4086-876b-1a4d22b67453" xlink:href="halo-20230630.xsd#halo_DebtInstrumentInterestPeriodThreeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_halo_AnnualInterestPaymentPeriodDomain_7eaca691-2525-425e-b230-28d3a6967aa2" xlink:to="loc_halo_DebtInstrumentInterestPeriodThreeMember_df259969-0d62-4086-876b-1a4d22b67453" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_DebtInstrumentInterestPeriodFourMember_b5660dc6-ef4e-4162-a9d9-05f194f6f0d2" xlink:href="halo-20230630.xsd#halo_DebtInstrumentInterestPeriodFourMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_halo_AnnualInterestPaymentPeriodDomain_7eaca691-2525-425e-b230-28d3a6967aa2" xlink:to="loc_halo_DebtInstrumentInterestPeriodFourMember_b5660dc6-ef4e-4162-a9d9-05f194f6f0d2" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_VariableRateComponentAxis_3558343d-4a09-4a71-b920-be9c3d7abe82" xlink:href="halo-20230630.xsd#halo_VariableRateComponentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_a3a4d5fa-8c58-4481-9d5c-8635ed4cd83b" xlink:to="loc_halo_VariableRateComponentAxis_3558343d-4a09-4a71-b920-be9c3d7abe82" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_VariableRateComponentDomain_3558343d-4a09-4a71-b920-be9c3d7abe82_default" xlink:href="halo-20230630.xsd#halo_VariableRateComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_halo_VariableRateComponentAxis_3558343d-4a09-4a71-b920-be9c3d7abe82" xlink:to="loc_halo_VariableRateComponentDomain_3558343d-4a09-4a71-b920-be9c3d7abe82_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_VariableRateComponentDomain_13b886fb-9b73-4cd9-9fa3-ff703fd96cc3" xlink:href="halo-20230630.xsd#halo_VariableRateComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_halo_VariableRateComponentAxis_3558343d-4a09-4a71-b920-be9c3d7abe82" xlink:to="loc_halo_VariableRateComponentDomain_13b886fb-9b73-4cd9-9fa3-ff703fd96cc3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_VariableRateComponentOneMember_505cca4c-b089-4be7-bd58-a7e1bef2d446" xlink:href="halo-20230630.xsd#halo_VariableRateComponentOneMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_halo_VariableRateComponentDomain_13b886fb-9b73-4cd9-9fa3-ff703fd96cc3" xlink:to="loc_halo_VariableRateComponentOneMember_505cca4c-b089-4be7-bd58-a7e1bef2d446" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_VariableRateComponentTwoMember_24fa0106-0bde-4c3f-82d1-4dad5e98dfb4" xlink:href="halo-20230630.xsd#halo_VariableRateComponentTwoMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_halo_VariableRateComponentDomain_13b886fb-9b73-4cd9-9fa3-ff703fd96cc3" xlink:to="loc_halo_VariableRateComponentTwoMember_24fa0106-0bde-4c3f-82d1-4dad5e98dfb4" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.halozyme.com/role/LongTermDebtNetCarryingAmountofConvertibleNotesDetails" xlink:type="simple" xlink:href="halo-20230630.xsd#LongTermDebtNetCarryingAmountofConvertibleNotesDetails"/>
  <link:definitionLink xlink:role="http://www.halozyme.com/role/LongTermDebtNetCarryingAmountofConvertibleNotesDetails" xlink:type="extended" id="i4e1f3f23e3e543939c27f5e5b96e6a10_LongTermDebtNetCarryingAmountofConvertibleNotesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_b410b555-40bc-4e89-8791-bfa1553868a9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_cf8f147d-a00d-4ccb-b27d-26a150c494b0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_b410b555-40bc-4e89-8791-bfa1553868a9" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_cf8f147d-a00d-4ccb-b27d-26a150c494b0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscount_909cb1af-301a-4d69-83e3-f0602261cf8f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentUnamortizedDiscount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_b410b555-40bc-4e89-8791-bfa1553868a9" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscount_909cb1af-301a-4d69-83e3-f0602261cf8f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_6578de0c-7597-423d-8c89-c1a9eb983af7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_b410b555-40bc-4e89-8791-bfa1553868a9" xlink:to="loc_us-gaap_LongTermDebtCurrent_6578de0c-7597-423d-8c89-c1a9eb983af7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_114d9c06-968b-49f7-bbf1-620c9182a768" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_b410b555-40bc-4e89-8791-bfa1553868a9" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_114d9c06-968b-49f7-bbf1-620c9182a768" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_9124cce9-3cbc-4f07-80cd-21d243ad0767" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_b410b555-40bc-4e89-8791-bfa1553868a9" xlink:to="loc_us-gaap_LongTermDebt_9124cce9-3cbc-4f07-80cd-21d243ad0767" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFairValue_1db7cceb-2816-49df-837b-995f9283bdad" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_b410b555-40bc-4e89-8791-bfa1553868a9" xlink:to="loc_us-gaap_DebtInstrumentFairValue_1db7cceb-2816-49df-837b-995f9283bdad" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleRemainingDiscountAmortizationPeriod1_d5870dae-ee9b-47eb-b973-b1bf35b65eed" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentConvertibleRemainingDiscountAmortizationPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_b410b555-40bc-4e89-8791-bfa1553868a9" xlink:to="loc_us-gaap_DebtInstrumentConvertibleRemainingDiscountAmortizationPeriod1_d5870dae-ee9b-47eb-b973-b1bf35b65eed" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_5d72cb71-dff3-4a85-86a3-2a469a3c5ff7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_b410b555-40bc-4e89-8791-bfa1553868a9" xlink:to="loc_us-gaap_DebtInstrumentTable_5d72cb71-dff3-4a85-86a3-2a469a3c5ff7" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_3eea083c-5c2c-4e99-a564-b7bc88a731f2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_5d72cb71-dff3-4a85-86a3-2a469a3c5ff7" xlink:to="loc_us-gaap_DebtInstrumentAxis_3eea083c-5c2c-4e99-a564-b7bc88a731f2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_3eea083c-5c2c-4e99-a564-b7bc88a731f2_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_3eea083c-5c2c-4e99-a564-b7bc88a731f2" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_3eea083c-5c2c-4e99-a564-b7bc88a731f2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_c4e26bf3-9318-4946-9855-5864b5a9ece9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_3eea083c-5c2c-4e99-a564-b7bc88a731f2" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_c4e26bf3-9318-4946-9855-5864b5a9ece9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_A1.25ConvertibleSeniorNotesdue2024Member_722e1bc1-fe2e-4b14-9224-2dc47eca4725" xlink:href="halo-20230630.xsd#halo_A1.25ConvertibleSeniorNotesdue2024Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c4e26bf3-9318-4946-9855-5864b5a9ece9" xlink:to="loc_halo_A1.25ConvertibleSeniorNotesdue2024Member_722e1bc1-fe2e-4b14-9224-2dc47eca4725" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_A025ConvertibleSeniorNotesDue2027Member_5df09097-b78c-49be-a7c8-2bb5d2740d91" xlink:href="halo-20230630.xsd#halo_A025ConvertibleSeniorNotesDue2027Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c4e26bf3-9318-4946-9855-5864b5a9ece9" xlink:to="loc_halo_A025ConvertibleSeniorNotesDue2027Member_5df09097-b78c-49be-a7c8-2bb5d2740d91" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_A100ConvertibleSeniorNotesDue2028Member_dd193e74-2285-408a-bab8-151a44f374d6" xlink:href="halo-20230630.xsd#halo_A100ConvertibleSeniorNotesDue2028Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c4e26bf3-9318-4946-9855-5864b5a9ece9" xlink:to="loc_halo_A100ConvertibleSeniorNotesDue2028Member_dd193e74-2285-408a-bab8-151a44f374d6" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.halozyme.com/role/LongTermDebtNetComponentsofInterestExpenseDetails" xlink:type="simple" xlink:href="halo-20230630.xsd#LongTermDebtNetComponentsofInterestExpenseDetails"/>
  <link:definitionLink xlink:role="http://www.halozyme.com/role/LongTermDebtNetComponentsofInterestExpenseDetails" xlink:type="extended" id="i7161de84821d40c0b04304d1f557dc4f_LongTermDebtNetComponentsofInterestExpenseDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_3bd13233-44bc-4ec1-8e29-872f00f5b5a7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentPeriodicPaymentInterest_322a5d46-24bc-4b48-911b-92c0faf99b94" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentPeriodicPaymentInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3bd13233-44bc-4ec1-8e29-872f00f5b5a7" xlink:to="loc_us-gaap_DebtInstrumentPeriodicPaymentInterest_322a5d46-24bc-4b48-911b-92c0faf99b94" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfDebtDiscountPremium_49a25a3a-6acc-452c-bb22-e807cbb96c4f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AmortizationOfDebtDiscountPremium"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3bd13233-44bc-4ec1-8e29-872f00f5b5a7" xlink:to="loc_us-gaap_AmortizationOfDebtDiscountPremium_49a25a3a-6acc-452c-bb22-e807cbb96c4f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebt_8072570b-c4b8-4d7b-a567-c7c32ed97ab7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestExpenseDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3bd13233-44bc-4ec1-8e29-872f00f5b5a7" xlink:to="loc_us-gaap_InterestExpenseDebt_8072570b-c4b8-4d7b-a567-c7c32ed97ab7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateEffectivePercentage_9e74ceb3-d7c2-454a-98d8-b875d4054be6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentInterestRateEffectivePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3bd13233-44bc-4ec1-8e29-872f00f5b5a7" xlink:to="loc_us-gaap_DebtInstrumentInterestRateEffectivePercentage_9e74ceb3-d7c2-454a-98d8-b875d4054be6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_ab445cf6-7929-48d9-be07-7532f0ce8965" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3bd13233-44bc-4ec1-8e29-872f00f5b5a7" xlink:to="loc_us-gaap_DebtInstrumentTable_ab445cf6-7929-48d9-be07-7532f0ce8965" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_0e0031be-1e0f-4707-855f-5d31507311aa" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_ab445cf6-7929-48d9-be07-7532f0ce8965" xlink:to="loc_us-gaap_DebtInstrumentAxis_0e0031be-1e0f-4707-855f-5d31507311aa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_0e0031be-1e0f-4707-855f-5d31507311aa_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_0e0031be-1e0f-4707-855f-5d31507311aa" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_0e0031be-1e0f-4707-855f-5d31507311aa_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_f3c381df-81b2-4b87-86dd-810db0b5e30d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_0e0031be-1e0f-4707-855f-5d31507311aa" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_f3c381df-81b2-4b87-86dd-810db0b5e30d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_A1.25ConvertibleSeniorNotesdue2024Member_a5e46f82-3878-439f-b0bf-af9d4c1c8af0" xlink:href="halo-20230630.xsd#halo_A1.25ConvertibleSeniorNotesdue2024Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_f3c381df-81b2-4b87-86dd-810db0b5e30d" xlink:to="loc_halo_A1.25ConvertibleSeniorNotesdue2024Member_a5e46f82-3878-439f-b0bf-af9d4c1c8af0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_A025ConvertibleSeniorNotesDue2027Member_01e52fdf-ded0-4865-9deb-fcef58886095" xlink:href="halo-20230630.xsd#halo_A025ConvertibleSeniorNotesDue2027Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_f3c381df-81b2-4b87-86dd-810db0b5e30d" xlink:to="loc_halo_A025ConvertibleSeniorNotesDue2027Member_01e52fdf-ded0-4865-9deb-fcef58886095" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_A100ConvertibleSeniorNotesDue2028Member_aa62c1e7-03cf-4767-ba86-f084e95a20f1" xlink:href="halo-20230630.xsd#halo_A100ConvertibleSeniorNotesDue2028Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_f3c381df-81b2-4b87-86dd-810db0b5e30d" xlink:to="loc_halo_A100ConvertibleSeniorNotesDue2028Member_aa62c1e7-03cf-4767-ba86-f084e95a20f1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_4e4ee830-455f-4ff5-b483-87e6717d8e93" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_ab445cf6-7929-48d9-be07-7532f0ce8965" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_4e4ee830-455f-4ff5-b483-87e6717d8e93" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_4e4ee830-455f-4ff5-b483-87e6717d8e93_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_4e4ee830-455f-4ff5-b483-87e6717d8e93" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_4e4ee830-455f-4ff5-b483-87e6717d8e93_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_21a2189d-a751-434c-9a59-5decac858dca" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_4e4ee830-455f-4ff5-b483-87e6717d8e93" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_21a2189d-a751-434c-9a59-5decac858dca" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtMember_07ddf5cf-2208-45e6-b590-5f4cf954f5c2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConvertibleDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_21a2189d-a751-434c-9a59-5decac858dca" xlink:to="loc_us-gaap_ConvertibleDebtMember_07ddf5cf-2208-45e6-b590-5f4cf954f5c2" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.halozyme.com/role/SharebasedCompensationSharebasedCompensationExpenseDetails" xlink:type="simple" xlink:href="halo-20230630.xsd#SharebasedCompensationSharebasedCompensationExpenseDetails"/>
  <link:definitionLink xlink:role="http://www.halozyme.com/role/SharebasedCompensationSharebasedCompensationExpenseDetails" xlink:type="extended" id="i479131c870ec4f97938fd872c3f27a19_SharebasedCompensationSharebasedCompensationExpenseDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_d3d92309-cc35-4d5a-bcd3-978b88412c08" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_1b9d849b-74fd-4cb2-8d64-8cc16cc89360" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_d3d92309-cc35-4d5a-bcd3-978b88412c08" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_1b9d849b-74fd-4cb2-8d64-8cc16cc89360" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_aaa6ba14-cb86-40d8-a234-4b99f31812cc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_d3d92309-cc35-4d5a-bcd3-978b88412c08" xlink:to="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_aaa6ba14-cb86-40d8-a234-4b99f31812cc" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_95547444-9b4b-4c4a-96af-569995fea3aa" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeStatementLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_aaa6ba14-cb86-40d8-a234-4b99f31812cc" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_95547444-9b4b-4c4a-96af-569995fea3aa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_95547444-9b4b-4c4a-96af-569995fea3aa_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_95547444-9b4b-4c4a-96af-569995fea3aa" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_95547444-9b4b-4c4a-96af-569995fea3aa_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_62fa7785-489a-4e03-8533-bf1f56f3e465" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_95547444-9b4b-4c4a-96af-569995fea3aa" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_62fa7785-489a-4e03-8533-bf1f56f3e465" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpenseMember_5de9c9ee-9653-48f4-90f1-b880f35269f6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ResearchAndDevelopmentExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_62fa7785-489a-4e03-8533-bf1f56f3e465" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpenseMember_5de9c9ee-9653-48f4-90f1-b880f35269f6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_b357005c-d981-4f16-a082-70550bbe2b8a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SellingGeneralAndAdministrativeExpensesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_62fa7785-489a-4e03-8533-bf1f56f3e465" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_b357005c-d981-4f16-a082-70550bbe2b8a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_f4f88e67-8f32-48ca-a65e-848dc3e89c51" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_aaa6ba14-cb86-40d8-a234-4b99f31812cc" xlink:to="loc_us-gaap_AwardTypeAxis_f4f88e67-8f32-48ca-a65e-848dc3e89c51" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_f4f88e67-8f32-48ca-a65e-848dc3e89c51_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_f4f88e67-8f32-48ca-a65e-848dc3e89c51" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_f4f88e67-8f32-48ca-a65e-848dc3e89c51_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_5e19b2b1-d0c2-454a-8208-82d3168b0de3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_f4f88e67-8f32-48ca-a65e-848dc3e89c51" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_5e19b2b1-d0c2-454a-8208-82d3168b0de3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_d773c8ba-99e8-426b-bc45-8a5f81fe85dd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EmployeeStockOptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_5e19b2b1-d0c2-454a-8208-82d3168b0de3" xlink:to="loc_us-gaap_EmployeeStockOptionMember_d773c8ba-99e8-426b-bc45-8a5f81fe85dd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_RSURSAandPRSUawardsMember_00d201c5-c6a9-4afd-8938-aaa30bc2c7e2" xlink:href="halo-20230630.xsd#halo_RSURSAandPRSUawardsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_5e19b2b1-d0c2-454a-8208-82d3168b0de3" xlink:to="loc_halo_RSURSAandPRSUawardsMember_00d201c5-c6a9-4afd-8938-aaa30bc2c7e2" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.halozyme.com/role/SharebasedCompensationNarrativeDetails" xlink:type="simple" xlink:href="halo-20230630.xsd#SharebasedCompensationNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.halozyme.com/role/SharebasedCompensationNarrativeDetails" xlink:type="extended" id="idf82af5473a04873a2c33fcbd0928c36_SharebasedCompensationNarrativeDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_327c426e-5323-49a9-8ed7-6b44263628d8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_e58ca829-1996-4e13-8d9c-ea834aba62be" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_327c426e-5323-49a9-8ed7-6b44263628d8" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_e58ca829-1996-4e13-8d9c-ea834aba62be" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardPurchasePriceOfCommonStockPercent_3c1157d6-2c41-43b4-9ac7-01f67f9667d9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardPurchasePriceOfCommonStockPercent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_327c426e-5323-49a9-8ed7-6b44263628d8" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardPurchasePriceOfCommonStockPercent_3c1157d6-2c41-43b4-9ac7-01f67f9667d9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_ShareBasedCompensationArrangementByShareBasedPaymentAwardMinimumEmployeeSubscriptionRate_fb40680f-e456-4d14-b93c-98fd1f525a32" xlink:href="halo-20230630.xsd#halo_ShareBasedCompensationArrangementByShareBasedPaymentAwardMinimumEmployeeSubscriptionRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_327c426e-5323-49a9-8ed7-6b44263628d8" xlink:to="loc_halo_ShareBasedCompensationArrangementByShareBasedPaymentAwardMinimumEmployeeSubscriptionRate_fb40680f-e456-4d14-b93c-98fd1f525a32" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumEmployeeSubscriptionRate_7435cb00-6604-41f5-8217-44a79ad2a1b5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumEmployeeSubscriptionRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_327c426e-5323-49a9-8ed7-6b44263628d8" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumEmployeeSubscriptionRate_7435cb00-6604-41f5-8217-44a79ad2a1b5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumEmployeeSubscriptionAmount_30a02959-4f3f-41ca-a5ac-872aaeb2fc8a" xlink:href="halo-20230630.xsd#halo_ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumEmployeeSubscriptionAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_327c426e-5323-49a9-8ed7-6b44263628d8" xlink:to="loc_halo_ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumEmployeeSubscriptionAmount_30a02959-4f3f-41ca-a5ac-872aaeb2fc8a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_c44c8414-d00e-40ad-980a-05d23bd46251" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_327c426e-5323-49a9-8ed7-6b44263628d8" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_c44c8414-d00e-40ad-980a-05d23bd46251" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_ShareBasedCompensationArrangementByShareBasedPaymentAwardPurchasePeriod_fd46af9a-071d-4b80-bdf8-3a07d86b8d53" xlink:href="halo-20230630.xsd#halo_ShareBasedCompensationArrangementByShareBasedPaymentAwardPurchasePeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_327c426e-5323-49a9-8ed7-6b44263628d8" xlink:to="loc_halo_ShareBasedCompensationArrangementByShareBasedPaymentAwardPurchasePeriod_fd46af9a-071d-4b80-bdf8-3a07d86b8d53" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod_4ebecf8b-fd5d-4808-91c2-1c2d807b59ae" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_327c426e-5323-49a9-8ed7-6b44263628d8" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod_4ebecf8b-fd5d-4808-91c2-1c2d807b59ae" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_8f542296-7897-4eef-bffc-c838d9fa2e69" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_327c426e-5323-49a9-8ed7-6b44263628d8" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_8f542296-7897-4eef-bffc-c838d9fa2e69" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_ba582f7e-0fe2-42b2-9ce1-38e6b8b73253" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_8f542296-7897-4eef-bffc-c838d9fa2e69" xlink:to="loc_us-gaap_AwardTypeAxis_ba582f7e-0fe2-42b2-9ce1-38e6b8b73253" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ba582f7e-0fe2-42b2-9ce1-38e6b8b73253_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_ba582f7e-0fe2-42b2-9ce1-38e6b8b73253" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ba582f7e-0fe2-42b2-9ce1-38e6b8b73253_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_fdd545bc-aad1-44df-a498-69f73df0fbc3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_ba582f7e-0fe2-42b2-9ce1-38e6b8b73253" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_fdd545bc-aad1-44df-a498-69f73df0fbc3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_3d24d485-7b6d-4d26-89ab-53ff02212614" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EmployeeStockOptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_fdd545bc-aad1-44df-a498-69f73df0fbc3" xlink:to="loc_us-gaap_EmployeeStockOptionMember_3d24d485-7b6d-4d26-89ab-53ff02212614" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_RSURSAandPRSUawardsMember_d65f30dd-7494-4071-8700-8a2371f3f4c1" xlink:href="halo-20230630.xsd#halo_RSURSAandPRSUawardsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_fdd545bc-aad1-44df-a498-69f73df0fbc3" xlink:to="loc_halo_RSURSAandPRSUawardsMember_d65f30dd-7494-4071-8700-8a2371f3f4c1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockMember_f1fe25c2-7ac4-47c2-b846-4a4e945cd4ae" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EmployeeStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_fdd545bc-aad1-44df-a498-69f73df0fbc3" xlink:to="loc_us-gaap_EmployeeStockMember_f1fe25c2-7ac4-47c2-b846-4a4e945cd4ae" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameAxis_2c6373dd-2919-4be4-90ad-da9fa228986a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PlanNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_8f542296-7897-4eef-bffc-c838d9fa2e69" xlink:to="loc_us-gaap_PlanNameAxis_2c6373dd-2919-4be4-90ad-da9fa228986a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_2c6373dd-2919-4be4-90ad-da9fa228986a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_2c6373dd-2919-4be4-90ad-da9fa228986a" xlink:to="loc_us-gaap_PlanNameDomain_2c6373dd-2919-4be4-90ad-da9fa228986a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_db6b56d3-0d89-4568-a92f-dfdbc4ef39cb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_2c6373dd-2919-4be4-90ad-da9fa228986a" xlink:to="loc_us-gaap_PlanNameDomain_db6b56d3-0d89-4568-a92f-dfdbc4ef39cb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_A2021ESPPPlanMember_e8c4c7cf-61ef-49a0-8745-a9e532a829da" xlink:href="halo-20230630.xsd#halo_A2021ESPPPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_db6b56d3-0d89-4568-a92f-dfdbc4ef39cb" xlink:to="loc_halo_A2021ESPPPlanMember_e8c4c7cf-61ef-49a0-8745-a9e532a829da" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.halozyme.com/role/SharebasedCompensationAssumptionsUsedintheBlackScholesModelDetails" xlink:type="simple" xlink:href="halo-20230630.xsd#SharebasedCompensationAssumptionsUsedintheBlackScholesModelDetails"/>
  <link:definitionLink xlink:role="http://www.halozyme.com/role/SharebasedCompensationAssumptionsUsedintheBlackScholesModelDetails" xlink:type="extended" id="i23b390114cc44b5f8aa5b8dc35b7161a_SharebasedCompensationAssumptionsUsedintheBlackScholesModelDetails">
    <link:loc xlink:type="locator" xlink:label="loc_halo_ScheduleofSharebasedCompensationArrangementsValuationInputsLineItems_1b39071f-114b-4776-a41f-8a0602dda236" xlink:href="halo-20230630.xsd#halo_ScheduleofSharebasedCompensationArrangementsValuationInputsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsWeightedAverageVolatilityRate_08b6aad8-7866-4a7a-a80b-487137c64d37" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsWeightedAverageVolatilityRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_halo_ScheduleofSharebasedCompensationArrangementsValuationInputsLineItems_1b39071f-114b-4776-a41f-8a0602dda236" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsWeightedAverageVolatilityRate_08b6aad8-7866-4a7a-a80b-487137c64d37" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1_58a95ce6-b11e-4e21-b0c9-b5ede6bbc61b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_halo_ScheduleofSharebasedCompensationArrangementsValuationInputsLineItems_1b39071f-114b-4776-a41f-8a0602dda236" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1_58a95ce6-b11e-4e21-b0c9-b5ede6bbc61b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRateMinimum_585e08a8-f629-47fa-a69b-4e486a2da56c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRateMinimum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_halo_ScheduleofSharebasedCompensationArrangementsValuationInputsLineItems_1b39071f-114b-4776-a41f-8a0602dda236" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRateMinimum_585e08a8-f629-47fa-a69b-4e486a2da56c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRateMaximum_629deef6-ff68-4de4-a4c1-76eb3cd88ecd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRateMaximum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_halo_ScheduleofSharebasedCompensationArrangementsValuationInputsLineItems_1b39071f-114b-4776-a41f-8a0602dda236" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRateMaximum_629deef6-ff68-4de4-a4c1-76eb3cd88ecd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_a4d8494c-74f1-42d1-b3c7-32bd34ed1982" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_halo_ScheduleofSharebasedCompensationArrangementsValuationInputsLineItems_1b39071f-114b-4776-a41f-8a0602dda236" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_a4d8494c-74f1-42d1-b3c7-32bd34ed1982" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_ScheduleofSharebasedCompensationArrangementsValuationInputsTable_738cab8d-23e1-44d9-a019-19ab890442e1" xlink:href="halo-20230630.xsd#halo_ScheduleofSharebasedCompensationArrangementsValuationInputsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_halo_ScheduleofSharebasedCompensationArrangementsValuationInputsLineItems_1b39071f-114b-4776-a41f-8a0602dda236" xlink:to="loc_halo_ScheduleofSharebasedCompensationArrangementsValuationInputsTable_738cab8d-23e1-44d9-a019-19ab890442e1" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_9fe16d34-d418-4cac-9a67-8e10380b2a36" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_halo_ScheduleofSharebasedCompensationArrangementsValuationInputsTable_738cab8d-23e1-44d9-a019-19ab890442e1" xlink:to="loc_srt_RangeAxis_9fe16d34-d418-4cac-9a67-8e10380b2a36" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_9fe16d34-d418-4cac-9a67-8e10380b2a36_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_9fe16d34-d418-4cac-9a67-8e10380b2a36" xlink:to="loc_srt_RangeMember_9fe16d34-d418-4cac-9a67-8e10380b2a36_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_ddce3de3-89e6-4b15-9c26-9242efbd7599" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_9fe16d34-d418-4cac-9a67-8e10380b2a36" xlink:to="loc_srt_RangeMember_ddce3de3-89e6-4b15-9c26-9242efbd7599" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_f4e59c03-cfb7-4612-b6bb-c10994c5292d" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_ddce3de3-89e6-4b15-9c26-9242efbd7599" xlink:to="loc_srt_MinimumMember_f4e59c03-cfb7-4612-b6bb-c10994c5292d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_fe9acff1-340b-41b1-a1ab-f25d916c284e" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_ddce3de3-89e6-4b15-9c26-9242efbd7599" xlink:to="loc_srt_MaximumMember_fe9acff1-340b-41b1-a1ab-f25d916c284e" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.halozyme.com/role/SharebasedCompensationUnrecognizedEstimatedCompensationCostDetails" xlink:type="simple" xlink:href="halo-20230630.xsd#SharebasedCompensationUnrecognizedEstimatedCompensationCostDetails"/>
  <link:definitionLink xlink:role="http://www.halozyme.com/role/SharebasedCompensationUnrecognizedEstimatedCompensationCostDetails" xlink:type="extended" id="i5b63b0760ab044e48b39c0d48308f8fe_SharebasedCompensationUnrecognizedEstimatedCompensationCostDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_535a3670-341f-4a15-bdfa-2e0ad46401f3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_3933f1ab-8633-481f-9226-2def0a27a18a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_535a3670-341f-4a15-bdfa-2e0ad46401f3" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_3933f1ab-8633-481f-9226-2def0a27a18a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_d8964817-1dd1-456b-afed-d16c7b31b677" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_535a3670-341f-4a15-bdfa-2e0ad46401f3" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_d8964817-1dd1-456b-afed-d16c7b31b677" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_02acf91f-70cf-4ce5-ba28-eebc10aae0b9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_535a3670-341f-4a15-bdfa-2e0ad46401f3" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_02acf91f-70cf-4ce5-ba28-eebc10aae0b9" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_d9be8907-ba13-4556-8e1e-46d182835eaa" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_02acf91f-70cf-4ce5-ba28-eebc10aae0b9" xlink:to="loc_us-gaap_AwardTypeAxis_d9be8907-ba13-4556-8e1e-46d182835eaa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_d9be8907-ba13-4556-8e1e-46d182835eaa_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_d9be8907-ba13-4556-8e1e-46d182835eaa" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_d9be8907-ba13-4556-8e1e-46d182835eaa_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_92f1baf7-9bda-48ee-80eb-ca33970e88de" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_d9be8907-ba13-4556-8e1e-46d182835eaa" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_92f1baf7-9bda-48ee-80eb-ca33970e88de" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_1d586a16-57bb-4732-b09f-7992ce92a511" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EmployeeStockOptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_92f1baf7-9bda-48ee-80eb-ca33970e88de" xlink:to="loc_us-gaap_EmployeeStockOptionMember_1d586a16-57bb-4732-b09f-7992ce92a511" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_f813935c-40f9-48d9-948a-e84b8f59158f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_92f1baf7-9bda-48ee-80eb-ca33970e88de" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_f813935c-40f9-48d9-948a-e84b8f59158f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PerformanceSharesMember_2d35b5f2-5902-4345-89c7-ce4bfc4ee761" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PerformanceSharesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_92f1baf7-9bda-48ee-80eb-ca33970e88de" xlink:to="loc_us-gaap_PerformanceSharesMember_2d35b5f2-5902-4345-89c7-ce4bfc4ee761" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockMember_d63ba48d-fccc-4803-9de9-f4757df13ac4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EmployeeStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_92f1baf7-9bda-48ee-80eb-ca33970e88de" xlink:to="loc_us-gaap_EmployeeStockMember_d63ba48d-fccc-4803-9de9-f4757df13ac4" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.halozyme.com/role/StockholdersEquityNarrativeDetails" xlink:type="simple" xlink:href="halo-20230630.xsd#StockholdersEquityNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.halozyme.com/role/StockholdersEquityNarrativeDetails" xlink:type="extended" id="ibb5ec2a2f61740859a1e5410c63b8b87_StockholdersEquityNarrativeDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_006a74e5-cab7-43ee-8326-ab1baeaf6223" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityAbstract_e14458e9-31a5-48f4-bfda-df1c8f847410" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquityAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_006a74e5-cab7-43ee-8326-ab1baeaf6223" xlink:to="loc_us-gaap_StockholdersEquityAbstract_e14458e9-31a5-48f4-bfda-df1c8f847410" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_c3488f3e-33be-45aa-bbf2-d5fccb183c02" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_e14458e9-31a5-48f4-bfda-df1c8f847410" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_c3488f3e-33be-45aa-bbf2-d5fccb183c02" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice_629e85c6-d5b7-4356-b56d-98df2cc3f8b3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_e14458e9-31a5-48f4-bfda-df1c8f847410" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice_629e85c6-d5b7-4356-b56d-98df2cc3f8b3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_99f11ed6-9ea3-4c2f-a697-c628958abd13" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromStockOptionsExercised"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_e14458e9-31a5-48f4-bfda-df1c8f847410" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_99f11ed6-9ea3-4c2f-a697-c628958abd13" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardNetOfForfeitures_756ba22b-ba19-49fc-9dc4-7b21f9e90d65" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardNetOfForfeitures"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_e14458e9-31a5-48f4-bfda-df1c8f847410" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardNetOfForfeitures_756ba22b-ba19-49fc-9dc4-7b21f9e90d65" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharesPaidForTaxWithholdingForShareBasedCompensation_8e2163a3-da19-4101-ba46-d32e37aac7bc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SharesPaidForTaxWithholdingForShareBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_e14458e9-31a5-48f4-bfda-df1c8f847410" xlink:to="loc_us-gaap_SharesPaidForTaxWithholdingForShareBasedCompensation_8e2163a3-da19-4101-ba46-d32e37aac7bc" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_8dd5143d-f8b3-4dd8-a0db-2d8ce1056696" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_e14458e9-31a5-48f4-bfda-df1c8f847410" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_8dd5143d-f8b3-4dd8-a0db-2d8ce1056696" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_56c16207-b117-4519-aa7b-990a450da5fc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_e14458e9-31a5-48f4-bfda-df1c8f847410" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_56c16207-b117-4519-aa7b-990a450da5fc" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_afa791f1-880d-42c1-8f17-c71c0a9a157a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockRepurchaseProgramAuthorizedAmount1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_e14458e9-31a5-48f4-bfda-df1c8f847410" xlink:to="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_afa791f1-880d-42c1-8f17-c71c0a9a157a" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchaseProgramPeriodInForce1_746adaf1-3adb-4ed0-8795-2f89c523fd64" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockRepurchaseProgramPeriodInForce1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_e14458e9-31a5-48f4-bfda-df1c8f847410" xlink:to="loc_us-gaap_StockRepurchaseProgramPeriodInForce1_746adaf1-3adb-4ed0-8795-2f89c523fd64" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_5ceb5ceb-5f2c-4370-9b54-a00b6d76bca8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TreasuryStockSharesAcquired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_e14458e9-31a5-48f4-bfda-df1c8f847410" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_5ceb5ceb-5f2c-4370-9b54-a00b6d76bca8" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_cacd3f3d-1354-4b7b-9a57-a99a8c10845f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_e14458e9-31a5-48f4-bfda-df1c8f847410" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_cacd3f3d-1354-4b7b-9a57-a99a8c10845f" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockAcquiredAverageCostPerShare_2aab871f-6b5a-4ec2-8a01-6cf4c2c172ed" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TreasuryStockAcquiredAverageCostPerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_e14458e9-31a5-48f4-bfda-df1c8f847410" xlink:to="loc_us-gaap_TreasuryStockAcquiredAverageCostPerShare_2aab871f-6b5a-4ec2-8a01-6cf4c2c172ed" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_4e7723fd-d76e-4ea6-9934-a50732ddb4a6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_006a74e5-cab7-43ee-8326-ab1baeaf6223" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_4e7723fd-d76e-4ea6-9934-a50732ddb4a6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_8c2b6d6d-3c22-4889-a5b8-1f647cae139c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_4e7723fd-d76e-4ea6-9934-a50732ddb4a6" xlink:to="loc_us-gaap_AwardTypeAxis_8c2b6d6d-3c22-4889-a5b8-1f647cae139c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_8c2b6d6d-3c22-4889-a5b8-1f647cae139c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_8c2b6d6d-3c22-4889-a5b8-1f647cae139c" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_8c2b6d6d-3c22-4889-a5b8-1f647cae139c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_a8142e48-6152-4e6e-ab5b-4e887332db38" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_8c2b6d6d-3c22-4889-a5b8-1f647cae139c" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_a8142e48-6152-4e6e-ab5b-4e887332db38" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_786b9ac1-40e1-4103-bc45-9dd8ef3eeae3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EmployeeStockOptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_a8142e48-6152-4e6e-ab5b-4e887332db38" xlink:to="loc_us-gaap_EmployeeStockOptionMember_786b9ac1-40e1-4103-bc45-9dd8ef3eeae3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_deffa625-62d5-4da3-a4ed-7c23d112bb90" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_a8142e48-6152-4e6e-ab5b-4e887332db38" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_deffa625-62d5-4da3-a4ed-7c23d112bb90" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_StockOptionsAndRestrictedStockUnitsMember_49dbca4d-00b3-4c95-af26-cb25a5ce8e39" xlink:href="halo-20230630.xsd#halo_StockOptionsAndRestrictedStockUnitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_a8142e48-6152-4e6e-ab5b-4e887332db38" xlink:to="loc_halo_StockOptionsAndRestrictedStockUnitsMember_49dbca4d-00b3-4c95-af26-cb25a5ce8e39" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.halozyme.com/role/EarningspershareComputationDetails" xlink:type="simple" xlink:href="halo-20230630.xsd#EarningspershareComputationDetails"/>
  <link:definitionLink xlink:role="http://www.halozyme.com/role/EarningspershareComputationDetails" xlink:type="extended" id="ia3c0565fb4bb47f1baec15c2cb423cce_EarningspershareComputationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDilutedLineItems_536f1ef7-aa59-4599-a9af-784e33a9649e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EarningsPerShareDilutedLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDilutedAbstract_5bf7e1d3-464b-46c6-8d4a-edb0d46323b5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersDilutedAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedLineItems_536f1ef7-aa59-4599-a9af-784e33a9649e" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDilutedAbstract_5bf7e1d3-464b-46c6-8d4a-edb0d46323b5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_3bb49e61-4d72-40d8-b9b0-def20c630d16" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDilutedAbstract_5bf7e1d3-464b-46c6-8d4a-edb0d46323b5" xlink:to="loc_us-gaap_NetIncomeLoss_3bb49e61-4d72-40d8-b9b0-def20c630d16" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingDilutedDisclosureItemsAbstract_87aae5dc-99d2-49d3-a63c-9659dbffdda9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingDilutedDisclosureItemsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedLineItems_536f1ef7-aa59-4599-a9af-784e33a9649e" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingDilutedDisclosureItemsAbstract_87aae5dc-99d2-49d3-a63c-9659dbffdda9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_278fe74e-5658-4858-acb0-b76e1d160710" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingDilutedDisclosureItemsAbstract_87aae5dc-99d2-49d3-a63c-9659dbffdda9" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_278fe74e-5658-4858-acb0-b76e1d160710" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DilutiveSecuritiesAbstract_efabc5bb-3f04-4ef5-bf87-5702c553c632" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DilutiveSecuritiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingDilutedDisclosureItemsAbstract_87aae5dc-99d2-49d3-a63c-9659dbffdda9" xlink:to="loc_us-gaap_DilutiveSecuritiesAbstract_efabc5bb-3f04-4ef5-bf87-5702c553c632" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_427047ed-503a-4a29-b673-182a54008384" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DilutiveSecuritiesAbstract_efabc5bb-3f04-4ef5-bf87-5702c553c632" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_427047ed-503a-4a29-b673-182a54008384" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_c90e7bc3-e859-4bb6-9573-d0fae181a540" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DilutiveSecuritiesAbstract_efabc5bb-3f04-4ef5-bf87-5702c553c632" xlink:to="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_c90e7bc3-e859-4bb6-9573-d0fae181a540" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareReconciliationAbstract_81fbc818-e00b-42df-87fa-da03d68e3fdf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EarningsPerShareReconciliationAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedLineItems_536f1ef7-aa59-4599-a9af-784e33a9649e" xlink:to="loc_us-gaap_EarningsPerShareReconciliationAbstract_81fbc818-e00b-42df-87fa-da03d68e3fdf" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasic_1160dbbd-0c6b-4ec1-be41-243b5282779e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EarningsPerShareBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareReconciliationAbstract_81fbc818-e00b-42df-87fa-da03d68e3fdf" xlink:to="loc_us-gaap_EarningsPerShareBasic_1160dbbd-0c6b-4ec1-be41-243b5282779e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDiluted_c104dca8-1a7f-43da-9a22-82d7420e03f8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EarningsPerShareDiluted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareReconciliationAbstract_81fbc818-e00b-42df-87fa-da03d68e3fdf" xlink:to="loc_us-gaap_EarningsPerShareDiluted_c104dca8-1a7f-43da-9a22-82d7420e03f8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEarningsPerShareDilutedByCommonClassTable_80d2890f-7056-44e4-b22e-f564430aa294" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfEarningsPerShareDilutedByCommonClassTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EarningsPerShareDilutedLineItems_536f1ef7-aa59-4599-a9af-784e33a9649e" xlink:to="loc_us-gaap_ScheduleOfEarningsPerShareDilutedByCommonClassTable_80d2890f-7056-44e4-b22e-f564430aa294" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_709cdc08-bc4e-4db8-91e8-6df24c90a609" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEarningsPerShareDilutedByCommonClassTable_80d2890f-7056-44e4-b22e-f564430aa294" xlink:to="loc_us-gaap_AwardTypeAxis_709cdc08-bc4e-4db8-91e8-6df24c90a609" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_709cdc08-bc4e-4db8-91e8-6df24c90a609_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_709cdc08-bc4e-4db8-91e8-6df24c90a609" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_709cdc08-bc4e-4db8-91e8-6df24c90a609_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_65e1d80e-7c35-46f9-a0ea-8b4b033894da" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_709cdc08-bc4e-4db8-91e8-6df24c90a609" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_65e1d80e-7c35-46f9-a0ea-8b4b033894da" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_b3fd759f-fb1e-4aa0-af41-54ffbf73ec59" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EmployeeStockOptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_65e1d80e-7c35-46f9-a0ea-8b4b033894da" xlink:to="loc_us-gaap_EmployeeStockOptionMember_b3fd759f-fb1e-4aa0-af41-54ffbf73ec59" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_RestrictStockUnitsPerformanceSharesAndESPPMember_311c7e07-82bb-46d0-bb1f-c1dda41fcb8b" xlink:href="halo-20230630.xsd#halo_RestrictStockUnitsPerformanceSharesAndESPPMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_65e1d80e-7c35-46f9-a0ea-8b4b033894da" xlink:to="loc_halo_RestrictStockUnitsPerformanceSharesAndESPPMember_311c7e07-82bb-46d0-bb1f-c1dda41fcb8b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_8479dd24-ee48-4307-a8c4-4a028b2406dd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEarningsPerShareDilutedByCommonClassTable_80d2890f-7056-44e4-b22e-f564430aa294" xlink:to="loc_us-gaap_DebtInstrumentAxis_8479dd24-ee48-4307-a8c4-4a028b2406dd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_8479dd24-ee48-4307-a8c4-4a028b2406dd_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_8479dd24-ee48-4307-a8c4-4a028b2406dd" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_8479dd24-ee48-4307-a8c4-4a028b2406dd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_71eaa23b-ea12-4bf2-be8a-f4154320a3a7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_8479dd24-ee48-4307-a8c4-4a028b2406dd" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_71eaa23b-ea12-4bf2-be8a-f4154320a3a7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtSecuritiesMember_6adeebfe-445a-43e2-899e-cf986d692b46" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConvertibleDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_71eaa23b-ea12-4bf2-be8a-f4154320a3a7" xlink:to="loc_us-gaap_ConvertibleDebtSecuritiesMember_6adeebfe-445a-43e2-899e-cf986d692b46" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fasb.org/us-gaap/role/eedm/ExtensibleEnumerationLists" xlink:type="simple" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-roles-2023.xsd#eedm"/>
  <link:definitionLink xlink:role="http://fasb.org/us-gaap/role/eedm/ExtensibleEnumerationLists" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsAbstract" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AssetsAbstract"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrentAbstract" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesCurrentAbstract"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://xbrl.sec.gov/ecd/AwardTypeOnly" xlink:type="simple" xlink:href="https://xbrl.sec.gov/ecd/2023/ecd-2023.xsd#AwardTypeOnly"/>
  <link:definitionLink xlink:role="http://xbrl.sec.gov/ecd/AwardTypeOnly" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_RSURSAandPRSUawardsMember_47c6dc13-57dd-407f-ac79-a2fd7b90c1cc" xlink:href="halo-20230630.xsd#halo_RSURSAandPRSUawardsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_halo_RSURSAandPRSUawardsMember_47c6dc13-57dd-407f-ac79-a2fd7b90c1cc" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockMember" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EmployeeStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_us-gaap_EmployeeStockMember" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PerformanceSharesMember" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PerformanceSharesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_us-gaap_PerformanceSharesMember" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_StockOptionsAndRestrictedStockUnitsMember_e4e46f5e-c71c-40d0-b7c4-2323b1330903" xlink:href="halo-20230630.xsd#halo_StockOptionsAndRestrictedStockUnitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_halo_StockOptionsAndRestrictedStockUnitsMember_e4e46f5e-c71c-40d0-b7c4-2323b1330903" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_halo_RestrictStockUnitsPerformanceSharesAndESPPMember_564dd6a0-0d55-4e1f-a3db-b505193b8f21" xlink:href="halo-20230630.xsd#halo_RestrictStockUnitsPerformanceSharesAndESPPMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_halo_RestrictStockUnitsPerformanceSharesAndESPPMember_564dd6a0-0d55-4e1f-a3db-b505193b8f21" xlink:type="arc" order="9"/>
  </link:definitionLink>
</link:linkbase>
