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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2023 Workiva-->
<!--r:ae0f6631-8069-4a1f-9c9f-d3b062b25e67,g:312ff46b-e9af-4b68-b165-a5ee8fd57be8-->
<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.bmrn.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME" xlink:type="simple" xlink:href="bmrn-20230630.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME"/>
  <link:definitionLink xlink:role="http://www.bmrn.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME" xlink:type="extended" id="ie6deb155a9454d10a828677cdc5705b3_CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_50bac809-bed4-4d04-aa77-da1d9d14c7a4" 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_5fb8d085-6792-4a21-a941-024c2fe8dd79" 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_50bac809-bed4-4d04-aa77-da1d9d14c7a4" xlink:to="loc_us-gaap_RevenuesAbstract_5fb8d085-6792-4a21-a941-024c2fe8dd79" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_77212401-6443-4be8-a267-a2d5e5330eb3" 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_5fb8d085-6792-4a21-a941-024c2fe8dd79" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_77212401-6443-4be8-a267-a2d5e5330eb3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpensesAbstract_d0be98b3-c2e7-4cc3-87e9-57dddef793e3" 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_50bac809-bed4-4d04-aa77-da1d9d14c7a4" xlink:to="loc_us-gaap_CostsAndExpensesAbstract_d0be98b3-c2e7-4cc3-87e9-57dddef793e3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfRevenue_98206bc2-0ec2-4a06-8567-0ddf01a4ee15" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CostOfRevenue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostsAndExpensesAbstract_d0be98b3-c2e7-4cc3-87e9-57dddef793e3" xlink:to="loc_us-gaap_CostOfRevenue_98206bc2-0ec2-4a06-8567-0ddf01a4ee15" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_fb0f8a1c-c5b3-4544-8b9c-9f3ebe84ec9a" 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_d0be98b3-c2e7-4cc3-87e9-57dddef793e3" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_fb0f8a1c-c5b3-4544-8b9c-9f3ebe84ec9a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_ebf0a479-1811-48cb-b10c-39145d0a1de1" 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_d0be98b3-c2e7-4cc3-87e9-57dddef793e3" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_ebf0a479-1811-48cb-b10c-39145d0a1de1" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_IntangibleAssetAmortizationAndContingentConsideration_2b3c492d-efe2-427a-81e1-fd1590c4babc" xlink:href="bmrn-20230630.xsd#bmrn_IntangibleAssetAmortizationAndContingentConsideration"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostsAndExpensesAbstract_d0be98b3-c2e7-4cc3-87e9-57dddef793e3" xlink:to="loc_bmrn_IntangibleAssetAmortizationAndContingentConsideration_2b3c492d-efe2-427a-81e1-fd1590c4babc" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnDispositionOfAssets1_0b6ddadd-8247-4f3e-8a82-bee32ec9110c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GainLossOnDispositionOfAssets1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostsAndExpensesAbstract_d0be98b3-c2e7-4cc3-87e9-57dddef793e3" xlink:to="loc_us-gaap_GainLossOnDispositionOfAssets1_0b6ddadd-8247-4f3e-8a82-bee32ec9110c" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_692624c2-8b12-4b0d-9e3d-3097ab74b3d8" 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_d0be98b3-c2e7-4cc3-87e9-57dddef793e3" xlink:to="loc_us-gaap_CostsAndExpenses_692624c2-8b12-4b0d-9e3d-3097ab74b3d8" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_ad09065b-9e9b-429c-a045-53a7a480e954" 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_50bac809-bed4-4d04-aa77-da1d9d14c7a4" xlink:to="loc_us-gaap_OperatingIncomeLoss_ad09065b-9e9b-429c-a045-53a7a480e954" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInterest_5de45a83-6061-48f6-a55d-47f4f77c2309" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InvestmentIncomeInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_50bac809-bed4-4d04-aa77-da1d9d14c7a4" xlink:to="loc_us-gaap_InvestmentIncomeInterest_5de45a83-6061-48f6-a55d-47f4f77c2309" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_5e06bc06-d832-4fed-84c2-f9bfb325a3c3" 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_StatementLineItems_50bac809-bed4-4d04-aa77-da1d9d14c7a4" xlink:to="loc_us-gaap_InterestExpense_5e06bc06-d832-4fed-84c2-f9bfb325a3c3" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingIncomeExpenseNet_e784d6a9-b1cf-4b70-a484-2ba5e2f55d4d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherOperatingIncomeExpenseNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_50bac809-bed4-4d04-aa77-da1d9d14c7a4" xlink:to="loc_us-gaap_OtherOperatingIncomeExpenseNet_e784d6a9-b1cf-4b70-a484-2ba5e2f55d4d" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_dea4c177-8d70-4947-b171-1ad37efc96ab" 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_50bac809-bed4-4d04-aa77-da1d9d14c7a4" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_dea4c177-8d70-4947-b171-1ad37efc96ab" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_8c7ea33f-82ee-4e71-87b5-b40780c8a964" 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_50bac809-bed4-4d04-aa77-da1d9d14c7a4" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_8c7ea33f-82ee-4e71-87b5-b40780c8a964" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_8cd45c29-4fba-4c26-aee7-82a04ac47570" 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_50bac809-bed4-4d04-aa77-da1d9d14c7a4" xlink:to="loc_us-gaap_NetIncomeLoss_8cd45c29-4fba-4c26-aee7-82a04ac47570" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasic_2110c39b-0c55-4919-b8f2-b8d6b62db460" 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_StatementLineItems_50bac809-bed4-4d04-aa77-da1d9d14c7a4" xlink:to="loc_us-gaap_EarningsPerShareBasic_2110c39b-0c55-4919-b8f2-b8d6b62db460" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDiluted_da5e69d4-db36-43c2-a536-81bfa362d2d3" 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_StatementLineItems_50bac809-bed4-4d04-aa77-da1d9d14c7a4" xlink:to="loc_us-gaap_EarningsPerShareDiluted_da5e69d4-db36-43c2-a536-81bfa362d2d3" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_62658b39-70f3-4995-837e-e5df39087b8b" 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_StatementLineItems_50bac809-bed4-4d04-aa77-da1d9d14c7a4" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_62658b39-70f3-4995-837e-e5df39087b8b" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_aeec7dac-1f74-4496-a52e-7902bfe98926" 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_StatementLineItems_50bac809-bed4-4d04-aa77-da1d9d14c7a4" xlink:to="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_aeec7dac-1f74-4496-a52e-7902bfe98926" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_595009e4-5935-47e3-9158-e71c80fc93d0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_50bac809-bed4-4d04-aa77-da1d9d14c7a4" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTax_595009e4-5935-47e3-9158-e71c80fc93d0" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_271655b5-fc4c-4843-b5ee-111b479650a3" 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_50bac809-bed4-4d04-aa77-da1d9d14c7a4" xlink:to="loc_us-gaap_StatementTable_271655b5-fc4c-4843-b5ee-111b479650a3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_65a68dea-83be-4eed-82c2-05f5a0f00c32" 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_271655b5-fc4c-4843-b5ee-111b479650a3" xlink:to="loc_srt_ProductOrServiceAxis_65a68dea-83be-4eed-82c2-05f5a0f00c32" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_65a68dea-83be-4eed-82c2-05f5a0f00c32_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_65a68dea-83be-4eed-82c2-05f5a0f00c32" xlink:to="loc_srt_ProductsAndServicesDomain_65a68dea-83be-4eed-82c2-05f5a0f00c32_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_d001c92c-0bc9-4c5e-b865-e7edb8b5f71c" 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_65a68dea-83be-4eed-82c2-05f5a0f00c32" xlink:to="loc_srt_ProductsAndServicesDomain_d001c92c-0bc9-4c5e-b865-e7edb8b5f71c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProductMember_ada29387-0dc8-42a9-8117-ffd1e944a325" 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_d001c92c-0bc9-4c5e-b865-e7edb8b5f71c" xlink:to="loc_us-gaap_ProductMember_ada29387-0dc8-42a9-8117-ffd1e944a325" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_RoyaltyAndOtherMember_eae0f3e7-a360-463d-8ba4-e63833f1a871" xlink:href="bmrn-20230630.xsd#bmrn_RoyaltyAndOtherMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_d001c92c-0bc9-4c5e-b865-e7edb8b5f71c" xlink:to="loc_bmrn_RoyaltyAndOtherMember_eae0f3e7-a360-463d-8ba4-e63833f1a871" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY" xlink:type="simple" xlink:href="bmrn-20230630.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY"/>
  <link:definitionLink xlink:role="http://www.bmrn.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY" xlink:type="extended" id="ib97f3fe5f99b44e19a04f22b4415a4da_CONDENSEDCONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_6bb26bfd-394f-4a86-ac88-4b38d0171cf3" 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_9af62b9a-9506-4725-9627-a5e5c5ef3caa" 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_6bb26bfd-394f-4a86-ac88-4b38d0171cf3" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_9af62b9a-9506-4725-9627-a5e5c5ef3caa" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_9374a2c5-fec2-4c36-a5a4-d471338561bd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_9af62b9a-9506-4725-9627-a5e5c5ef3caa" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_9374a2c5-fec2-4c36-a5a4-d471338561bd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_StockIssuedDuringPeriodValueNewIssuesNetExcessTaxBenefitTaxDeficiencyShares_6a0037d5-58a7-4dfd-9e60-9ceb9f11a705" xlink:href="bmrn-20230630.xsd#bmrn_StockIssuedDuringPeriodValueNewIssuesNetExcessTaxBenefitTaxDeficiencyShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_9af62b9a-9506-4725-9627-a5e5c5ef3caa" xlink:to="loc_bmrn_StockIssuedDuringPeriodValueNewIssuesNetExcessTaxBenefitTaxDeficiencyShares_6a0037d5-58a7-4dfd-9e60-9ceb9f11a705" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_d0bab5a5-0cb6-4fb5-84f1-77196fe7746f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_a8c3e353-a50e-4de6-b391-85ea305d1153" 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_9af62b9a-9506-4725-9627-a5e5c5ef3caa" xlink:to="loc_us-gaap_StockholdersEquity_a8c3e353-a50e-4de6-b391-85ea305d1153" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_StockIssuedDuringPeriodValueNewIssuesNetExcessTaxBenefitTaxDeficiency_974d80f8-6d8b-4a3d-947e-b8a8309daf1a" xlink:href="bmrn-20230630.xsd#bmrn_StockIssuedDuringPeriodValueNewIssuesNetExcessTaxBenefitTaxDeficiency"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_9af62b9a-9506-4725-9627-a5e5c5ef3caa" xlink:to="loc_bmrn_StockIssuedDuringPeriodValueNewIssuesNetExcessTaxBenefitTaxDeficiency_974d80f8-6d8b-4a3d-947e-b8a8309daf1a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_7115cd1c-d7ec-4c5c-91cf-d26f7241142e" 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_9af62b9a-9506-4725-9627-a5e5c5ef3caa" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_7115cd1c-d7ec-4c5c-91cf-d26f7241142e" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_AdjustmentsToAdditionalPaidInCapitalSharesHeldByNonqualifiedDeferredCompensationPlan_b21f5498-ff2e-40c6-aec1-ab1241a7bcba" xlink:href="bmrn-20230630.xsd#bmrn_AdjustmentsToAdditionalPaidInCapitalSharesHeldByNonqualifiedDeferredCompensationPlan"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_9af62b9a-9506-4725-9627-a5e5c5ef3caa" xlink:to="loc_bmrn_AdjustmentsToAdditionalPaidInCapitalSharesHeldByNonqualifiedDeferredCompensationPlan_b21f5498-ff2e-40c6-aec1-ab1241a7bcba" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_e14c76b4-71bf-4050-981d-8678486f4dbf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_9af62b9a-9506-4725-9627-a5e5c5ef3caa" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_e14c76b4-71bf-4050-981d-8678486f4dbf" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_b80074cc-f05c-4a68-afb6-2aefeea66559" 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_9af62b9a-9506-4725-9627-a5e5c5ef3caa" xlink:to="loc_us-gaap_NetIncomeLoss_b80074cc-f05c-4a68-afb6-2aefeea66559" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_e0d1d124-ed8a-4c62-8bc3-7630a375b2fa" 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_7bd05e05-218e-4650-ac23-340f16bd70aa" 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_6bb26bfd-394f-4a86-ac88-4b38d0171cf3" xlink:to="loc_us-gaap_StatementTable_7bd05e05-218e-4650-ac23-340f16bd70aa" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_93eab04a-40b0-4836-9081-ab1cb523f5ca" 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_7bd05e05-218e-4650-ac23-340f16bd70aa" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_93eab04a-40b0-4836-9081-ab1cb523f5ca" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_93eab04a-40b0-4836-9081-ab1cb523f5ca_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_93eab04a-40b0-4836-9081-ab1cb523f5ca" xlink:to="loc_us-gaap_EquityComponentDomain_93eab04a-40b0-4836-9081-ab1cb523f5ca_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_d0957611-e9ec-4f16-b10a-f0e8a40b8b69" 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_93eab04a-40b0-4836-9081-ab1cb523f5ca" xlink:to="loc_us-gaap_EquityComponentDomain_d0957611-e9ec-4f16-b10a-f0e8a40b8b69" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_b3eec57c-84a7-4c97-b8ba-49ac320b0ad4" 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_d0957611-e9ec-4f16-b10a-f0e8a40b8b69" xlink:to="loc_us-gaap_CommonStockMember_b3eec57c-84a7-4c97-b8ba-49ac320b0ad4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_ff05fcd8-65f2-4467-a91f-1594d184e9aa" 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_d0957611-e9ec-4f16-b10a-f0e8a40b8b69" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_ff05fcd8-65f2-4467-a91f-1594d184e9aa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredCompensationShareBasedPaymentsMember_e057d66b-c2e3-472d-80df-eee6177957bc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredCompensationShareBasedPaymentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_d0957611-e9ec-4f16-b10a-f0e8a40b8b69" xlink:to="loc_us-gaap_DeferredCompensationShareBasedPaymentsMember_e057d66b-c2e3-472d-80df-eee6177957bc" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_e560daea-3ab3-4db3-978e-c980272a1ac3" 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_d0957611-e9ec-4f16-b10a-f0e8a40b8b69" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_e560daea-3ab3-4db3-978e-c980272a1ac3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_b421d899-a831-4c35-8d50-77ceca0ec34d" 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_d0957611-e9ec-4f16-b10a-f0e8a40b8b69" xlink:to="loc_us-gaap_RetainedEarningsMember_b421d899-a831-4c35-8d50-77ceca0ec34d" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/FINANCIALINSTRUMENTSScheduleofCashCashEquivalentsandAvailableforSaleSecuritiesbySignificantInvestmentCategoryDetails" xlink:type="simple" xlink:href="bmrn-20230630.xsd#FINANCIALINSTRUMENTSScheduleofCashCashEquivalentsandAvailableforSaleSecuritiesbySignificantInvestmentCategoryDetails"/>
  <link:definitionLink xlink:role="http://www.bmrn.com/role/FINANCIALINSTRUMENTSScheduleofCashCashEquivalentsandAvailableforSaleSecuritiesbySignificantInvestmentCategoryDetails" xlink:type="extended" id="iedc720f69d854c92ab80302772cf86e6_FINANCIALINSTRUMENTSScheduleofCashCashEquivalentsandAvailableforSaleSecuritiesbySignificantInvestmentCategoryDetails">
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_ScheduleOfCashCashEquivalentsAndAvailableForSaleSecuritiesLineItems_4ab6f0e1-5dfa-483c-afb1-57d4115a9edb" xlink:href="bmrn-20230630.xsd#bmrn_ScheduleOfCashCashEquivalentsAndAvailableForSaleSecuritiesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Cash_60882a85-7b09-43a7-ac9a-50a60e4cb1b7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Cash"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrn_ScheduleOfCashCashEquivalentsAndAvailableForSaleSecuritiesLineItems_4ab6f0e1-5dfa-483c-afb1-57d4115a9edb" xlink:to="loc_us-gaap_Cash_60882a85-7b09-43a7-ac9a-50a60e4cb1b7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_28f0d739-55e6-47fb-9b51-01186a6c558f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrn_ScheduleOfCashCashEquivalentsAndAvailableForSaleSecuritiesLineItems_4ab6f0e1-5dfa-483c-afb1-57d4115a9edb" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_28f0d739-55e6-47fb-9b51-01186a6c558f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_ac4c5a2b-c9f3-4901-87ab-c56b8aa14ccc" 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_bmrn_ScheduleOfCashCashEquivalentsAndAvailableForSaleSecuritiesLineItems_4ab6f0e1-5dfa-483c-afb1-57d4115a9edb" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_ac4c5a2b-c9f3-4901-87ab-c56b8aa14ccc" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_5953bb39-a755-4b1f-9f9e-27463ce27084" 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_bmrn_ScheduleOfCashCashEquivalentsAndAvailableForSaleSecuritiesLineItems_4ab6f0e1-5dfa-483c-afb1-57d4115a9edb" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_5953bb39-a755-4b1f-9f9e-27463ce27084" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_167e1c55-2c71-43f0-9037-3403d10cc071" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrn_ScheduleOfCashCashEquivalentsAndAvailableForSaleSecuritiesLineItems_4ab6f0e1-5dfa-483c-afb1-57d4115a9edb" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_167e1c55-2c71-43f0-9037-3403d10cc071" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_a488f181-d87f-4e04-957f-60372cad6ad5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrn_ScheduleOfCashCashEquivalentsAndAvailableForSaleSecuritiesLineItems_4ab6f0e1-5dfa-483c-afb1-57d4115a9edb" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_a488f181-d87f-4e04-957f-60372cad6ad5" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_396c5b91-6af5-4915-8be2-0f8ace60a95d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrn_ScheduleOfCashCashEquivalentsAndAvailableForSaleSecuritiesLineItems_4ab6f0e1-5dfa-483c-afb1-57d4115a9edb" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_396c5b91-6af5-4915-8be2-0f8ace60a95d" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesNoncurrent_295f9e34-4b86-4e6f-a64c-f51617c1e63b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecuritiesNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrn_ScheduleOfCashCashEquivalentsAndAvailableForSaleSecuritiesLineItems_4ab6f0e1-5dfa-483c-afb1-57d4115a9edb" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesNoncurrent_295f9e34-4b86-4e6f-a64c-f51617c1e63b" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_ShortTermMarketableSecuritiesMaturityPeriod_49723799-5648-4e52-9b58-34fce968c222" xlink:href="bmrn-20230630.xsd#bmrn_ShortTermMarketableSecuritiesMaturityPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrn_ScheduleOfCashCashEquivalentsAndAvailableForSaleSecuritiesLineItems_4ab6f0e1-5dfa-483c-afb1-57d4115a9edb" xlink:to="loc_bmrn_ShortTermMarketableSecuritiesMaturityPeriod_49723799-5648-4e52-9b58-34fce968c222" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_LongTermMarketableSecuritiesMaturityPeriod_41e3a1df-441e-4660-83ae-40ea175cbd53" xlink:href="bmrn-20230630.xsd#bmrn_LongTermMarketableSecuritiesMaturityPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrn_ScheduleOfCashCashEquivalentsAndAvailableForSaleSecuritiesLineItems_4ab6f0e1-5dfa-483c-afb1-57d4115a9edb" xlink:to="loc_bmrn_LongTermMarketableSecuritiesMaturityPeriod_41e3a1df-441e-4660-83ae-40ea175cbd53" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_ScheduleOfCashCashEquivalentsAndAvailableForSaleSecuritiesTable_4ea4d360-d91e-4acb-9673-7a8b6ba417b5" xlink:href="bmrn-20230630.xsd#bmrn_ScheduleOfCashCashEquivalentsAndAvailableForSaleSecuritiesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_bmrn_ScheduleOfCashCashEquivalentsAndAvailableForSaleSecuritiesLineItems_4ab6f0e1-5dfa-483c-afb1-57d4115a9edb" xlink:to="loc_bmrn_ScheduleOfCashCashEquivalentsAndAvailableForSaleSecuritiesTable_4ea4d360-d91e-4acb-9673-7a8b6ba417b5" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_a1a7ca24-0449-4ae3-9d60-35c7b9a0f28c" 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_bmrn_ScheduleOfCashCashEquivalentsAndAvailableForSaleSecuritiesTable_4ea4d360-d91e-4acb-9673-7a8b6ba417b5" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_a1a7ca24-0449-4ae3-9d60-35c7b9a0f28c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_a1a7ca24-0449-4ae3-9d60-35c7b9a0f28c_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_a1a7ca24-0449-4ae3-9d60-35c7b9a0f28c" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_a1a7ca24-0449-4ae3-9d60-35c7b9a0f28c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_2e6c80ed-3d82-4f9f-a503-2229f0b173de" 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_a1a7ca24-0449-4ae3-9d60-35c7b9a0f28c" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_2e6c80ed-3d82-4f9f-a503-2229f0b173de" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_cc29c92d-2417-4154-9601-40df357edc56" 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_2e6c80ed-3d82-4f9f-a503-2229f0b173de" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_cc29c92d-2417-4154-9601-40df357edc56" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_8e56e29d-51c6-4e3d-926b-630aa6c46ff2" 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_2e6c80ed-3d82-4f9f-a503-2229f0b173de" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_8e56e29d-51c6-4e3d-926b-630aa6c46ff2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_9b07055c-71fa-4e3a-99d9-bd9c4a135a54" 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_bmrn_ScheduleOfCashCashEquivalentsAndAvailableForSaleSecuritiesTable_4ea4d360-d91e-4acb-9673-7a8b6ba417b5" xlink:to="loc_us-gaap_FinancialInstrumentAxis_9b07055c-71fa-4e3a-99d9-bd9c4a135a54" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_9b07055c-71fa-4e3a-99d9-bd9c4a135a54_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_9b07055c-71fa-4e3a-99d9-bd9c4a135a54" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_9b07055c-71fa-4e3a-99d9-bd9c4a135a54_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0514573a-5dae-474f-a975-8255c1847476" 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_9b07055c-71fa-4e3a-99d9-bd9c4a135a54" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0514573a-5dae-474f-a975-8255c1847476" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashMember_51d97076-2709-47a0-8d66-977dd35b1862" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0514573a-5dae-474f-a975-8255c1847476" xlink:to="loc_us-gaap_CashMember_51d97076-2709-47a0-8d66-977dd35b1862" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MoneyMarketFundsMember_2e8cd581-5498-497a-bdd3-ff6d6d6b9e72" 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_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0514573a-5dae-474f-a975-8255c1847476" xlink:to="loc_us-gaap_MoneyMarketFundsMember_2e8cd581-5498-497a-bdd3-ff6d6d6b9e72" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_bd0a73e2-7f52-4e0c-a86c-f0bb85c7d3e5" 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_0514573a-5dae-474f-a975-8255c1847476" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_bd0a73e2-7f52-4e0c-a86c-f0bb85c7d3e5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_7fa0a5e3-46e6-438a-b7fd-c2bf4437159e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_USGovernmentAgenciesDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0514573a-5dae-474f-a975-8255c1847476" xlink:to="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_7fa0a5e3-46e6-438a-b7fd-c2bf4437159e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPaperMember_c93e5528-cd77-434b-a650-abd7e058ddf2" 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_0514573a-5dae-474f-a975-8255c1847476" xlink:to="loc_us-gaap_CommercialPaperMember_c93e5528-cd77-434b-a650-abd7e058ddf2" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetBackedSecuritiesMember_1498dd28-04ee-4abe-8ff6-8b85d9f9e01e" 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_0514573a-5dae-474f-a975-8255c1847476" xlink:to="loc_us-gaap_AssetBackedSecuritiesMember_1498dd28-04ee-4abe-8ff6-8b85d9f9e01e" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_c68cae3d-fcf6-430d-bc52-ca816c0ead0f" 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_bmrn_ScheduleOfCashCashEquivalentsAndAvailableForSaleSecuritiesTable_4ea4d360-d91e-4acb-9673-7a8b6ba417b5" xlink:to="loc_srt_RangeAxis_c68cae3d-fcf6-430d-bc52-ca816c0ead0f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_c68cae3d-fcf6-430d-bc52-ca816c0ead0f_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_c68cae3d-fcf6-430d-bc52-ca816c0ead0f" xlink:to="loc_srt_RangeMember_c68cae3d-fcf6-430d-bc52-ca816c0ead0f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_e5358fc0-3bed-4abc-bd5f-cb1c8be65106" 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_c68cae3d-fcf6-430d-bc52-ca816c0ead0f" xlink:to="loc_srt_RangeMember_e5358fc0-3bed-4abc-bd5f-cb1c8be65106" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_49e573b0-a69c-4951-9f71-21d25bcd3e04" 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_e5358fc0-3bed-4abc-bd5f-cb1c8be65106" xlink:to="loc_srt_MaximumMember_49e573b0-a69c-4951-9f71-21d25bcd3e04" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_18b5ffb0-e7b7-4f22-b65c-56c6c20cf271" 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_e5358fc0-3bed-4abc-bd5f-cb1c8be65106" xlink:to="loc_srt_MinimumMember_18b5ffb0-e7b7-4f22-b65c-56c6c20cf271" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/FINANCIALINSTRUMENTSAdditionalInformationDetails" xlink:type="simple" xlink:href="bmrn-20230630.xsd#FINANCIALINSTRUMENTSAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.bmrn.com/role/FINANCIALINSTRUMENTSAdditionalInformationDetails" xlink:type="extended" id="i9b6f979350f349f4aa5b11d0228db32f_FINANCIALINSTRUMENTSAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_ScheduleOfCashCashEquivalentsAndAvailableForSaleSecuritiesLineItems_8a5ecf78-f579-4ae5-864e-3221d029aa2e" xlink:href="bmrn-20230630.xsd#bmrn_ScheduleOfCashCashEquivalentsAndAvailableForSaleSecuritiesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueAmount_05f6c60e-5ff2-426f-bfb7-2a250305527c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrn_ScheduleOfCashCashEquivalentsAndAvailableForSaleSecuritiesLineItems_8a5ecf78-f579-4ae5-864e-3221d029aa2e" xlink:to="loc_us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueAmount_05f6c60e-5ff2-426f-bfb7-2a250305527c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueImpairmentLossAnnualAmount_90b63e97-99b4-485e-9808-216248e3cc08" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueImpairmentLossAnnualAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrn_ScheduleOfCashCashEquivalentsAndAvailableForSaleSecuritiesLineItems_8a5ecf78-f579-4ae5-864e-3221d029aa2e" xlink:to="loc_us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueImpairmentLossAnnualAmount_90b63e97-99b4-485e-9808-216248e3cc08" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_ScheduleOfCashCashEquivalentsAndAvailableForSaleSecuritiesTable_e956d26f-e283-41ed-8215-e40c4d99decb" xlink:href="bmrn-20230630.xsd#bmrn_ScheduleOfCashCashEquivalentsAndAvailableForSaleSecuritiesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_bmrn_ScheduleOfCashCashEquivalentsAndAvailableForSaleSecuritiesLineItems_8a5ecf78-f579-4ae5-864e-3221d029aa2e" xlink:to="loc_bmrn_ScheduleOfCashCashEquivalentsAndAvailableForSaleSecuritiesTable_e956d26f-e283-41ed-8215-e40c4d99decb" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByAssetClassAxis_7285bf7f-e9d1-405a-9aa1-e5f4e44802d4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueByAssetClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_bmrn_ScheduleOfCashCashEquivalentsAndAvailableForSaleSecuritiesTable_e956d26f-e283-41ed-8215-e40c4d99decb" xlink:to="loc_us-gaap_FairValueByAssetClassAxis_7285bf7f-e9d1-405a-9aa1-e5f4e44802d4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_7285bf7f-e9d1-405a-9aa1-e5f4e44802d4_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_7285bf7f-e9d1-405a-9aa1-e5f4e44802d4" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_7285bf7f-e9d1-405a-9aa1-e5f4e44802d4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_cc18b9bd-8c67-4f95-a106-e5ebd1f9a3c5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_7285bf7f-e9d1-405a-9aa1-e5f4e44802d4" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_cc18b9bd-8c67-4f95-a106-e5ebd1f9a3c5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_StrategicInvestmentMember_1da15801-ab33-47ac-9834-310c2c7bad77" xlink:href="bmrn-20230630.xsd#bmrn_StrategicInvestmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_cc18b9bd-8c67-4f95-a106-e5ebd1f9a3c5" xlink:to="loc_bmrn_StrategicInvestmentMember_1da15801-ab33-47ac-9834-310c2c7bad77" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_35092a93-85fe-4dcc-8f45-2a4e3c32bc8c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueByMeasurementFrequencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_bmrn_ScheduleOfCashCashEquivalentsAndAvailableForSaleSecuritiesTable_e956d26f-e283-41ed-8215-e40c4d99decb" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_35092a93-85fe-4dcc-8f45-2a4e3c32bc8c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_35092a93-85fe-4dcc-8f45-2a4e3c32bc8c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_35092a93-85fe-4dcc-8f45-2a4e3c32bc8c" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_35092a93-85fe-4dcc-8f45-2a4e3c32bc8c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_8835d1a6-1600-4fc3-ba45-6105064f4c19" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_35092a93-85fe-4dcc-8f45-2a4e3c32bc8c" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_8835d1a6-1600-4fc3-ba45-6105064f4c19" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_15da333a-d502-4087-9a06-d4b07640e59a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementsRecurringMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_8835d1a6-1600-4fc3-ba45-6105064f4c19" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_15da333a-d502-4087-9a06-d4b07640e59a" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/SUPPLEMENTALFINANCIALSTATEMENTSINFORMATIONAdditionalInformationDetails" xlink:type="simple" xlink:href="bmrn-20230630.xsd#SUPPLEMENTALFINANCIALSTATEMENTSINFORMATIONAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.bmrn.com/role/SUPPLEMENTALFINANCIALSTATEMENTSINFORMATIONAdditionalInformationDetails" xlink:type="extended" id="i3a59970327aa4eeea31ba97599a03c03_SUPPLEMENTALFINANCIALSTATEMENTSINFORMATIONAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_SupplementalBalanceSheetInformationLineItems_3cb6185f-c4a8-4d38-861c-03b3eab20c24" xlink:href="bmrn-20230630.xsd#bmrn_SupplementalBalanceSheetInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Depreciation_1aa2a415-8c49-4400-8192-116426e86e25" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Depreciation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrn_SupplementalBalanceSheetInformationLineItems_3cb6185f-c4a8-4d38-861c-03b3eab20c24" xlink:to="loc_us-gaap_Depreciation_1aa2a415-8c49-4400-8192-116426e86e25" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringAndRelatedCostExpectedNumberOfPositionsEliminated_1b848dea-a697-4d0d-a8bd-93edeaeafa1a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestructuringAndRelatedCostExpectedNumberOfPositionsEliminated"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrn_SupplementalBalanceSheetInformationLineItems_3cb6185f-c4a8-4d38-861c-03b3eab20c24" xlink:to="loc_us-gaap_RestructuringAndRelatedCostExpectedNumberOfPositionsEliminated_1b848dea-a697-4d0d-a8bd-93edeaeafa1a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_RestructuringAndRelatedCostExpectedNumberOfPositionsEliminatedPercentageOfWorkforce_235961ca-c384-4b85-a12d-a2dd40304a67" xlink:href="bmrn-20230630.xsd#bmrn_RestructuringAndRelatedCostExpectedNumberOfPositionsEliminatedPercentageOfWorkforce"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrn_SupplementalBalanceSheetInformationLineItems_3cb6185f-c4a8-4d38-861c-03b3eab20c24" xlink:to="loc_bmrn_RestructuringAndRelatedCostExpectedNumberOfPositionsEliminatedPercentageOfWorkforce_235961ca-c384-4b85-a12d-a2dd40304a67" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_0031141c-72f6-4349-bbc0-d6a33d81bae8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestructuringCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrn_SupplementalBalanceSheetInformationLineItems_3cb6185f-c4a8-4d38-861c-03b3eab20c24" xlink:to="loc_us-gaap_RestructuringCharges_0031141c-72f6-4349-bbc0-d6a33d81bae8" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRestructuring_bebf75d5-089b-42da-be4b-586e02b36efe" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsForRestructuring"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrn_SupplementalBalanceSheetInformationLineItems_3cb6185f-c4a8-4d38-861c-03b3eab20c24" xlink:to="loc_us-gaap_PaymentsForRestructuring_bebf75d5-089b-42da-be4b-586e02b36efe" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_SupplementalBalanceSheetInformationTable_795d41a3-46af-4373-9b9c-2b68a87c36be" xlink:href="bmrn-20230630.xsd#bmrn_SupplementalBalanceSheetInformationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_bmrn_SupplementalBalanceSheetInformationLineItems_3cb6185f-c4a8-4d38-861c-03b3eab20c24" xlink:to="loc_bmrn_SupplementalBalanceSheetInformationTable_795d41a3-46af-4373-9b9c-2b68a87c36be" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanAxis_611c0ced-2678-43bf-a34e-8faeaa319a7f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestructuringPlanAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_bmrn_SupplementalBalanceSheetInformationTable_795d41a3-46af-4373-9b9c-2b68a87c36be" xlink:to="loc_us-gaap_RestructuringPlanAxis_611c0ced-2678-43bf-a34e-8faeaa319a7f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_611c0ced-2678-43bf-a34e-8faeaa319a7f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringPlanAxis_611c0ced-2678-43bf-a34e-8faeaa319a7f" xlink:to="loc_us-gaap_RestructuringPlanDomain_611c0ced-2678-43bf-a34e-8faeaa319a7f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_c376c1e8-9fe6-427d-863c-c6dccf0fa362" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringPlanAxis_611c0ced-2678-43bf-a34e-8faeaa319a7f" xlink:to="loc_us-gaap_RestructuringPlanDomain_c376c1e8-9fe6-427d-863c-c6dccf0fa362" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_A2022RestructuringPlanMember_235a6c5c-02d5-4d5b-93b8-837715d0312e" xlink:href="bmrn-20230630.xsd#bmrn_A2022RestructuringPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_c376c1e8-9fe6-427d-863c-c6dccf0fa362" xlink:to="loc_bmrn_A2022RestructuringPlanMember_235a6c5c-02d5-4d5b-93b8-837715d0312e" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/FAIRVALUEMEASUREMENTSFairValueofFinancialAssetsandLiabilitiesDetails" xlink:type="simple" xlink:href="bmrn-20230630.xsd#FAIRVALUEMEASUREMENTSFairValueofFinancialAssetsandLiabilitiesDetails"/>
  <link:definitionLink xlink:role="http://www.bmrn.com/role/FAIRVALUEMEASUREMENTSFairValueofFinancialAssetsandLiabilitiesDetails" xlink:type="extended" id="i25bcd861cdc140e09e8e87bdb7ca6ebc_FAIRVALUEMEASUREMENTSFairValueofFinancialAssetsandLiabilitiesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_8a8ae1e4-6f9c-4979-b8c0-bfe3e0af4a6c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue_991ee98f-4785-4ab7-ad24-7545c7f8b273" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_8a8ae1e4-6f9c-4979-b8c0-bfe3e0af4a6c" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue_991ee98f-4785-4ab7-ad24-7545c7f8b273" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue_3060161e-b3c7-4aa4-b987-23b8a273798a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_8a8ae1e4-6f9c-4979-b8c0-bfe3e0af4a6c" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue_3060161e-b3c7-4aa4-b987-23b8a273798a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosureAbstract_592c8539-737b-4a8c-9f9e-eb3fcc0cc6d5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AssetsFairValueDisclosureAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_8a8ae1e4-6f9c-4979-b8c0-bfe3e0af4a6c" xlink:to="loc_us-gaap_AssetsFairValueDisclosureAbstract_592c8539-737b-4a8c-9f9e-eb3fcc0cc6d5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_OtherAssetsCurrentFairValueDisclosure_14ebb309-34c4-48e6-8f47-8075f29edee3" xlink:href="bmrn-20230630.xsd#bmrn_OtherAssetsCurrentFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsFairValueDisclosureAbstract_592c8539-737b-4a8c-9f9e-eb3fcc0cc6d5" xlink:to="loc_bmrn_OtherAssetsCurrentFairValueDisclosure_14ebb309-34c4-48e6-8f47-8075f29edee3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_OtherAssetsNoncurrentFairValueDisclosure_0f1b0822-71e4-48c4-80ee-d899a39cc221" xlink:href="bmrn-20230630.xsd#bmrn_OtherAssetsNoncurrentFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsFairValueDisclosureAbstract_592c8539-737b-4a8c-9f9e-eb3fcc0cc6d5" xlink:to="loc_bmrn_OtherAssetsNoncurrentFairValueDisclosure_0f1b0822-71e4-48c4-80ee-d899a39cc221" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_ae312057-6dbd-423b-8389-46699290d04f" 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_AssetsFairValueDisclosureAbstract_592c8539-737b-4a8c-9f9e-eb3fcc0cc6d5" xlink:to="loc_us-gaap_AssetsFairValueDisclosure_ae312057-6dbd-423b-8389-46699290d04f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosureAbstract_f1ab5885-4444-41c8-8f7f-99e3908cb2cc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesFairValueDisclosureAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_8a8ae1e4-6f9c-4979-b8c0-bfe3e0af4a6c" xlink:to="loc_us-gaap_LiabilitiesFairValueDisclosureAbstract_f1ab5885-4444-41c8-8f7f-99e3908cb2cc" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_OtherLiabilitiesCurrentFairValueDisclosure_85597175-15d5-497d-883d-1fe297307903" xlink:href="bmrn-20230630.xsd#bmrn_OtherLiabilitiesCurrentFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosureAbstract_f1ab5885-4444-41c8-8f7f-99e3908cb2cc" xlink:to="loc_bmrn_OtherLiabilitiesCurrentFairValueDisclosure_85597175-15d5-497d-883d-1fe297307903" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_OtherLiabilitiesNoncurrentFairValueDisclosure_fa2ca736-449e-49d8-9059-d99bf5034aa5" xlink:href="bmrn-20230630.xsd#bmrn_OtherLiabilitiesNoncurrentFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosureAbstract_f1ab5885-4444-41c8-8f7f-99e3908cb2cc" xlink:to="loc_bmrn_OtherLiabilitiesNoncurrentFairValueDisclosure_fa2ca736-449e-49d8-9059-d99bf5034aa5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_3f06b347-ecf5-43b9-b823-8c85d0244d9d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosureAbstract_f1ab5885-4444-41c8-8f7f-99e3908cb2cc" xlink:to="loc_us-gaap_LiabilitiesFairValueDisclosure_3f06b347-ecf5-43b9-b823-8c85d0244d9d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_a1a8d2ff-073f-4c30-9d84-cb589f4f7f74" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_8a8ae1e4-6f9c-4979-b8c0-bfe3e0af4a6c" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_a1a8d2ff-073f-4c30-9d84-cb589f4f7f74" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_0eb8ea18-ff9f-4219-8b3e-16fcec613a54" 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_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_a1a8d2ff-073f-4c30-9d84-cb589f4f7f74" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_0eb8ea18-ff9f-4219-8b3e-16fcec613a54" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_0eb8ea18-ff9f-4219-8b3e-16fcec613a54_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_0eb8ea18-ff9f-4219-8b3e-16fcec613a54" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_0eb8ea18-ff9f-4219-8b3e-16fcec613a54_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_308c823c-cab6-462f-9b1e-3e925248f723" 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_0eb8ea18-ff9f-4219-8b3e-16fcec613a54" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_308c823c-cab6-462f-9b1e-3e925248f723" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_975fc904-7685-47ec-b5a2-495bbfed143f" 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_308c823c-cab6-462f-9b1e-3e925248f723" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_975fc904-7685-47ec-b5a2-495bbfed143f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_673227cd-2138-4cba-bae4-d72841f1c20f" 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_308c823c-cab6-462f-9b1e-3e925248f723" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_673227cd-2138-4cba-bae4-d72841f1c20f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_4ea1e492-ca56-4219-be0f-f6f1e129884d" 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_308c823c-cab6-462f-9b1e-3e925248f723" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_4ea1e492-ca56-4219-be0f-f6f1e129884d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_71dd1ae4-b0ea-401f-a635-a5e69549ac9e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueByMeasurementFrequencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_a1a8d2ff-073f-4c30-9d84-cb589f4f7f74" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_71dd1ae4-b0ea-401f-a635-a5e69549ac9e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_71dd1ae4-b0ea-401f-a635-a5e69549ac9e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_71dd1ae4-b0ea-401f-a635-a5e69549ac9e" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_71dd1ae4-b0ea-401f-a635-a5e69549ac9e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_0146b665-b675-4505-b307-d0f90480c6e9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_71dd1ae4-b0ea-401f-a635-a5e69549ac9e" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_0146b665-b675-4505-b307-d0f90480c6e9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_23031983-aa78-458d-b5bb-57d4fe8bc8ad" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementsRecurringMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_0146b665-b675-4505-b307-d0f90480c6e9" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_23031983-aa78-458d-b5bb-57d4fe8bc8ad" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByAssetClassAxis_8a23a316-ff13-4402-8f3e-0458b48451ba" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueByAssetClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_a1a8d2ff-073f-4c30-9d84-cb589f4f7f74" xlink:to="loc_us-gaap_FairValueByAssetClassAxis_8a23a316-ff13-4402-8f3e-0458b48451ba" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_8a23a316-ff13-4402-8f3e-0458b48451ba_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_8a23a316-ff13-4402-8f3e-0458b48451ba" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_8a23a316-ff13-4402-8f3e-0458b48451ba_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_7f5c2362-8473-4982-b4e9-47b4a61ee96d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_8a23a316-ff13-4402-8f3e-0458b48451ba" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_7f5c2362-8473-4982-b4e9-47b4a61ee96d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_NonqualifiedDeferredCompensationPlanAssetsMember_06057f27-74b5-46b5-8dbf-d7fbed507b25" xlink:href="bmrn-20230630.xsd#bmrn_NonqualifiedDeferredCompensationPlanAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_7f5c2362-8473-4982-b4e9-47b4a61ee96d" xlink:to="loc_bmrn_NonqualifiedDeferredCompensationPlanAssetsMember_06057f27-74b5-46b5-8dbf-d7fbed507b25" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_RestrictedInvestmentsMember_1dbaf0ab-0b26-4410-bbd7-75ade3c5e883" xlink:href="bmrn-20230630.xsd#bmrn_RestrictedInvestmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_7f5c2362-8473-4982-b4e9-47b4a61ee96d" xlink:to="loc_bmrn_RestrictedInvestmentsMember_1dbaf0ab-0b26-4410-bbd7-75ade3c5e883" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByLiabilityClassAxis_f5b531c7-e1f8-49e3-8046-1c1260f29efc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueByLiabilityClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_a1a8d2ff-073f-4c30-9d84-cb589f4f7f74" xlink:to="loc_us-gaap_FairValueByLiabilityClassAxis_f5b531c7-e1f8-49e3-8046-1c1260f29efc" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_f5b531c7-e1f8-49e3-8046-1c1260f29efc_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByLiabilityClassAxis_f5b531c7-e1f8-49e3-8046-1c1260f29efc" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_f5b531c7-e1f8-49e3-8046-1c1260f29efc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_0f3ea898-7891-4fb2-a586-5689fc8f70bc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByLiabilityClassAxis_f5b531c7-e1f8-49e3-8046-1c1260f29efc" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_0f3ea898-7891-4fb2-a586-5689fc8f70bc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_NonqualifiedDeferredCompensationPlanLiabilityMember_97e99461-be69-4096-9b38-2b6332f953d3" xlink:href="bmrn-20230630.xsd#bmrn_NonqualifiedDeferredCompensationPlanLiabilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_0f3ea898-7891-4fb2-a586-5689fc8f70bc" xlink:to="loc_bmrn_NonqualifiedDeferredCompensationPlanLiabilityMember_97e99461-be69-4096-9b38-2b6332f953d3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_ContingentConsiderationMember_3788e636-fa79-45df-a6e2-87376b20e8fc" xlink:href="bmrn-20230630.xsd#bmrn_ContingentConsiderationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_0f3ea898-7891-4fb2-a586-5689fc8f70bc" xlink:to="loc_bmrn_ContingentConsiderationMember_3788e636-fa79-45df-a6e2-87376b20e8fc" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/FAIRVALUEMEASUREMENTSLiabilitiesMeasuredatFairValueonRecurringBasisUsingLevel3InputsDetails" xlink:type="simple" xlink:href="bmrn-20230630.xsd#FAIRVALUEMEASUREMENTSLiabilitiesMeasuredatFairValueonRecurringBasisUsingLevel3InputsDetails"/>
  <link:definitionLink xlink:role="http://www.bmrn.com/role/FAIRVALUEMEASUREMENTSLiabilitiesMeasuredatFairValueonRecurringBasisUsingLevel3InputsDetails" xlink:type="extended" id="if95a61ebc10a49768ce91c5177cc0e9e_FAIRVALUEMEASUREMENTSLiabilitiesMeasuredatFairValueonRecurringBasisUsingLevel3InputsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_c77821d4-9c44-4958-bcca-63a1a558b246" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_19a63f97-99c0-4e2a-b351-0fee69cb1a3f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_c77821d4-9c44-4958-bcca-63a1a558b246" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_19a63f97-99c0-4e2a-b351-0fee69cb1a3f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue_bc076d40-2a77-4fe1-b47f-b815b43fadb2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_19a63f97-99c0-4e2a-b351-0fee69cb1a3f" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue_bc076d40-2a77-4fe1-b47f-b815b43fadb2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlements_908b77df-47ce-4c9c-8da5-919269655871" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlements"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_19a63f97-99c0-4e2a-b351-0fee69cb1a3f" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlements_908b77df-47ce-4c9c-8da5-919269655871" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlementsGainLossOnForeignExchange_0f32ead1-b610-43d2-9fe5-c15de3fa4c2b" xlink:href="bmrn-20230630.xsd#bmrn_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlementsGainLossOnForeignExchange"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_19a63f97-99c0-4e2a-b351-0fee69cb1a3f" xlink:to="loc_bmrn_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlementsGainLossOnForeignExchange_0f32ead1-b610-43d2-9fe5-c15de3fa4c2b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue_7345ed70-01fb-4599-9b0f-072473928787" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTable_6cd0a832-043a-4d82-a0bb-1e43d14e2bf7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_c77821d4-9c44-4958-bcca-63a1a558b246" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTable_6cd0a832-043a-4d82-a0bb-1e43d14e2bf7" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByLiabilityClassAxis_c80e9c53-81f1-446a-8751-4ed40d7aeaff" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueByLiabilityClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTable_6cd0a832-043a-4d82-a0bb-1e43d14e2bf7" xlink:to="loc_us-gaap_FairValueByLiabilityClassAxis_c80e9c53-81f1-446a-8751-4ed40d7aeaff" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_c80e9c53-81f1-446a-8751-4ed40d7aeaff_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByLiabilityClassAxis_c80e9c53-81f1-446a-8751-4ed40d7aeaff" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_c80e9c53-81f1-446a-8751-4ed40d7aeaff_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_b9cd072c-29ab-42d7-aad5-c2420f2542c4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByLiabilityClassAxis_c80e9c53-81f1-446a-8751-4ed40d7aeaff" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_b9cd072c-29ab-42d7-aad5-c2420f2542c4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_ContingentPaymentMember_97b53c9a-b081-40c5-97b2-59c9cae2f001" xlink:href="bmrn-20230630.xsd#bmrn_ContingentPaymentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_b9cd072c-29ab-42d7-aad5-c2420f2542c4" xlink:to="loc_bmrn_ContingentPaymentMember_97b53c9a-b081-40c5-97b2-59c9cae2f001" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGSTRATEGIESAdditionalInformationDetails" xlink:type="simple" xlink:href="bmrn-20230630.xsd#DERIVATIVEINSTRUMENTSANDHEDGINGSTRATEGIESAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.bmrn.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGSTRATEGIESAdditionalInformationDetails" xlink:type="extended" id="iafb731efeac7494985534d36b2e0ca70_DERIVATIVEINSTRUMENTSANDHEDGINGSTRATEGIESAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLineItems_38a14223-165b-4b61-b777-3d48f32d9b84" 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_DerivativeRemainingMaturity1_c22921c7-afbf-49ae-bebb-10719fa0e3ee" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeRemainingMaturity1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_38a14223-165b-4b61-b777-3d48f32d9b84" xlink:to="loc_us-gaap_DerivativeRemainingMaturity1_c22921c7-afbf-49ae-bebb-10719fa0e3ee" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonths_4c3b3f4c-3b39-4cfd-9e15-519ddea511c4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonths"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_38a14223-165b-4b61-b777-3d48f32d9b84" xlink:to="loc_us-gaap_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonths_4c3b3f4c-3b39-4cfd-9e15-519ddea511c4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTable_c6e1b8bb-3190-4347-9497-dc3fe62b2672" 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_38a14223-165b-4b61-b777-3d48f32d9b84" xlink:to="loc_us-gaap_DerivativeTable_c6e1b8bb-3190-4347-9497-dc3fe62b2672" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationAxis_a5eef2d0-4279-43aa-a4b6-efe754ea62cd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HedgingDesignationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_c6e1b8bb-3190-4347-9497-dc3fe62b2672" xlink:to="loc_us-gaap_HedgingDesignationAxis_a5eef2d0-4279-43aa-a4b6-efe754ea62cd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_a5eef2d0-4279-43aa-a4b6-efe754ea62cd_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_a5eef2d0-4279-43aa-a4b6-efe754ea62cd" xlink:to="loc_us-gaap_HedgingDesignationDomain_a5eef2d0-4279-43aa-a4b6-efe754ea62cd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_01f6d92f-a4e4-4c1b-bc00-f9f582775c55" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_a5eef2d0-4279-43aa-a4b6-efe754ea62cd" xlink:to="loc_us-gaap_HedgingDesignationDomain_01f6d92f-a4e4-4c1b-bc00-f9f582775c55" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_bb60b259-3eac-41f7-a393-b0d7fe99ce24" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DesignatedAsHedgingInstrumentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_01f6d92f-a4e4-4c1b-bc00-f9f582775c55" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_bb60b259-3eac-41f7-a393-b0d7fe99ce24" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NondesignatedMember_59d9af56-21db-4f88-9b1a-ca47e90961e0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NondesignatedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_01f6d92f-a4e4-4c1b-bc00-f9f582775c55" xlink:to="loc_us-gaap_NondesignatedMember_59d9af56-21db-4f88-9b1a-ca47e90961e0" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGSTRATEGIESScheduleofDerivativesDesignatedasandNotDesignatedasHedgingInstrumentsOutstandingDetails" xlink:type="simple" xlink:href="bmrn-20230630.xsd#DERIVATIVEINSTRUMENTSANDHEDGINGSTRATEGIESScheduleofDerivativesDesignatedasandNotDesignatedasHedgingInstrumentsOutstandingDetails"/>
  <link:definitionLink xlink:role="http://www.bmrn.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGSTRATEGIESScheduleofDerivativesDesignatedasandNotDesignatedasHedgingInstrumentsOutstandingDetails" xlink:type="extended" id="ic4bf05ac3ffd47a295fc84bf61598aee_DERIVATIVEINSTRUMENTSANDHEDGINGSTRATEGIESScheduleofDerivativesDesignatedasandNotDesignatedasHedgingInstrumentsOutstandingDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLineItems_881a3c95-ca0e-4859-aae5-b71fcc246e43" 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_DerivativeNotionalAmount_44931919-8e3d-4a15-b5d4-191aac807611" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeNotionalAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_881a3c95-ca0e-4859-aae5-b71fcc246e43" xlink:to="loc_us-gaap_DerivativeNotionalAmount_44931919-8e3d-4a15-b5d4-191aac807611" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTable_d05ba876-ae24-478f-8470-22daed108113" 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_881a3c95-ca0e-4859-aae5-b71fcc246e43" xlink:to="loc_us-gaap_DerivativeTable_d05ba876-ae24-478f-8470-22daed108113" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationAxis_a2052318-ddbf-49fe-888a-7f2f22d83e10" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HedgingDesignationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_d05ba876-ae24-478f-8470-22daed108113" xlink:to="loc_us-gaap_HedgingDesignationAxis_a2052318-ddbf-49fe-888a-7f2f22d83e10" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_a2052318-ddbf-49fe-888a-7f2f22d83e10_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_a2052318-ddbf-49fe-888a-7f2f22d83e10" xlink:to="loc_us-gaap_HedgingDesignationDomain_a2052318-ddbf-49fe-888a-7f2f22d83e10_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_18eaf652-f0bb-4e44-99e9-b15af73e8497" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_a2052318-ddbf-49fe-888a-7f2f22d83e10" xlink:to="loc_us-gaap_HedgingDesignationDomain_18eaf652-f0bb-4e44-99e9-b15af73e8497" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_65d9b323-ff12-4282-9b3c-761e64a2a7a6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DesignatedAsHedgingInstrumentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_18eaf652-f0bb-4e44-99e9-b15af73e8497" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_65d9b323-ff12-4282-9b3c-761e64a2a7a6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NondesignatedMember_b4bbb175-cb34-41ac-b40d-5d951daff799" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NondesignatedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_18eaf652-f0bb-4e44-99e9-b15af73e8497" xlink:to="loc_us-gaap_NondesignatedMember_b4bbb175-cb34-41ac-b40d-5d951daff799" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_ac40a898-61b7-46df-b643-a433b7551f02" 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_d05ba876-ae24-478f-8470-22daed108113" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_ac40a898-61b7-46df-b643-a433b7551f02" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_ac40a898-61b7-46df-b643-a433b7551f02_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_ac40a898-61b7-46df-b643-a433b7551f02" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_ac40a898-61b7-46df-b643-a433b7551f02_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_e2772bf1-597e-4353-b70e-1e30de200423" 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_ac40a898-61b7-46df-b643-a433b7551f02" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_e2772bf1-597e-4353-b70e-1e30de200423" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeContractMember_31bf469e-7df4-48b6-bdbe-ef8813e3b767" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ForeignExchangeContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_e2772bf1-597e-4353-b70e-1e30de200423" xlink:to="loc_us-gaap_ForeignExchangeContractMember_31bf469e-7df4-48b6-bdbe-ef8813e3b767" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PositionAxis_f334e621-de19-4411-afa9-a95245fab204" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PositionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_d05ba876-ae24-478f-8470-22daed108113" xlink:to="loc_us-gaap_PositionAxis_f334e621-de19-4411-afa9-a95245fab204" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PositionDomain_f334e621-de19-4411-afa9-a95245fab204_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PositionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PositionAxis_f334e621-de19-4411-afa9-a95245fab204" xlink:to="loc_us-gaap_PositionDomain_f334e621-de19-4411-afa9-a95245fab204_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PositionDomain_e6d45993-e688-4ee6-94db-72a2677c62cf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PositionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PositionAxis_f334e621-de19-4411-afa9-a95245fab204" xlink:to="loc_us-gaap_PositionDomain_e6d45993-e688-4ee6-94db-72a2677c62cf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortMember_75047e7d-478c-475e-a133-dd1ef7b36c4e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShortMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PositionDomain_e6d45993-e688-4ee6-94db-72a2677c62cf" xlink:to="loc_us-gaap_ShortMember_75047e7d-478c-475e-a133-dd1ef7b36c4e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongMember_42b27ef5-bb19-41d2-b3b9-33b392e50eb8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PositionDomain_e6d45993-e688-4ee6-94db-72a2677c62cf" xlink:to="loc_us-gaap_LongMember_42b27ef5-bb19-41d2-b3b9-33b392e50eb8" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGSTRATEGIESFairValueCarryingAmountofDerivativesDetails" xlink:type="simple" xlink:href="bmrn-20230630.xsd#DERIVATIVEINSTRUMENTSANDHEDGINGSTRATEGIESFairValueCarryingAmountofDerivativesDetails"/>
  <link:definitionLink xlink:role="http://www.bmrn.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGSTRATEGIESFairValueCarryingAmountofDerivativesDetails" xlink:type="extended" id="ibf3e753447a243c28bbb6ad4ddb0df49_DERIVATIVEINSTRUMENTSANDHEDGINGSTRATEGIESFairValueCarryingAmountofDerivativesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLineItems_c13d1606-cf76-4718-a9b5-66d0da8a566d" 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_DerivativeFairValueOfDerivativeAsset_b4787172-0b34-4cd8-9512-df1b6fa60716" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_c13d1606-cf76-4718-a9b5-66d0da8a566d" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_b4787172-0b34-4cd8-9512-df1b6fa60716" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_afcdd0b7-3ae1-4270-a6c9-5edbf815c120" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_c13d1606-cf76-4718-a9b5-66d0da8a566d" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_afcdd0b7-3ae1-4270-a6c9-5edbf815c120" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTable_7838ae58-421b-4c3d-9422-0bb210257684" 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_c13d1606-cf76-4718-a9b5-66d0da8a566d" xlink:to="loc_us-gaap_DerivativeTable_7838ae58-421b-4c3d-9422-0bb210257684" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_d7936af7-5844-459e-a9ce-cb41b9bf796f" 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_DerivativeTable_7838ae58-421b-4c3d-9422-0bb210257684" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_d7936af7-5844-459e-a9ce-cb41b9bf796f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_d7936af7-5844-459e-a9ce-cb41b9bf796f_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_d7936af7-5844-459e-a9ce-cb41b9bf796f" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_d7936af7-5844-459e-a9ce-cb41b9bf796f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_3a029a17-0d8f-4ee0-ad7f-0c5b3fa22c58" 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_d7936af7-5844-459e-a9ce-cb41b9bf796f" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_3a029a17-0d8f-4ee0-ad7f-0c5b3fa22c58" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_ebffcfaf-df63-4923-b5a0-055ac8dbca10" 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_3a029a17-0d8f-4ee0-ad7f-0c5b3fa22c58" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_ebffcfaf-df63-4923-b5a0-055ac8dbca10" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationAxis_be1ee550-9d00-4567-aafa-c4e8d359723b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HedgingDesignationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_7838ae58-421b-4c3d-9422-0bb210257684" xlink:to="loc_us-gaap_HedgingDesignationAxis_be1ee550-9d00-4567-aafa-c4e8d359723b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_be1ee550-9d00-4567-aafa-c4e8d359723b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_be1ee550-9d00-4567-aafa-c4e8d359723b" xlink:to="loc_us-gaap_HedgingDesignationDomain_be1ee550-9d00-4567-aafa-c4e8d359723b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_9c6072ce-f7ec-4296-889d-530c14a15feb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_be1ee550-9d00-4567-aafa-c4e8d359723b" xlink:to="loc_us-gaap_HedgingDesignationDomain_9c6072ce-f7ec-4296-889d-530c14a15feb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_f660bf4c-340d-4c74-ae26-cb555797c0c5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DesignatedAsHedgingInstrumentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_9c6072ce-f7ec-4296-889d-530c14a15feb" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_f660bf4c-340d-4c74-ae26-cb555797c0c5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NondesignatedMember_5a456067-8710-4ef6-a968-cdacf3494227" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NondesignatedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_9c6072ce-f7ec-4296-889d-530c14a15feb" xlink:to="loc_us-gaap_NondesignatedMember_5a456067-8710-4ef6-a968-cdacf3494227" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_8ba1edb7-9a93-4643-add6-f46a7513e3ca" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BalanceSheetLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_7838ae58-421b-4c3d-9422-0bb210257684" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_8ba1edb7-9a93-4643-add6-f46a7513e3ca" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_8ba1edb7-9a93-4643-add6-f46a7513e3ca_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_8ba1edb7-9a93-4643-add6-f46a7513e3ca" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_8ba1edb7-9a93-4643-add6-f46a7513e3ca_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_38b764bf-4bba-4a78-802e-f6203b5fc602" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_8ba1edb7-9a93-4643-add6-f46a7513e3ca" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_38b764bf-4bba-4a78-802e-f6203b5fc602" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCurrentAssetsMember_27cb28ea-2f2e-445d-938d-25b04d99dd5c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherCurrentAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_38b764bf-4bba-4a78-802e-f6203b5fc602" xlink:to="loc_us-gaap_OtherCurrentAssetsMember_27cb28ea-2f2e-445d-938d-25b04d99dd5c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncurrentAssetsMember_0c914668-6298-4f73-b231-10a5ed41f42b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherNoncurrentAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_38b764bf-4bba-4a78-802e-f6203b5fc602" xlink:to="loc_us-gaap_OtherNoncurrentAssetsMember_0c914668-6298-4f73-b231-10a5ed41f42b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesMember_d91d1362-2652-47a4-a6e5-3e7e2ec018d6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccountsPayableAndAccruedLiabilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_38b764bf-4bba-4a78-802e-f6203b5fc602" xlink:to="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesMember_d91d1362-2652-47a4-a6e5-3e7e2ec018d6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncurrentLiabilitiesMember_f108c052-a2d6-4f00-8e21-227ed52f26e3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherNoncurrentLiabilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_38b764bf-4bba-4a78-802e-f6203b5fc602" xlink:to="loc_us-gaap_OtherNoncurrentLiabilitiesMember_f108c052-a2d6-4f00-8e21-227ed52f26e3" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGSTRATEGIESScheduleofImpactofGainsandLossesfromDerivativesDesignatedasHedgingInstrumentsDetails" xlink:type="simple" xlink:href="bmrn-20230630.xsd#DERIVATIVEINSTRUMENTSANDHEDGINGSTRATEGIESScheduleofImpactofGainsandLossesfromDerivativesDesignatedasHedgingInstrumentsDetails"/>
  <link:definitionLink xlink:role="http://www.bmrn.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGSTRATEGIESScheduleofImpactofGainsandLossesfromDerivativesDesignatedasHedgingInstrumentsDetails" xlink:type="extended" id="i090cf96e334e4196b81fb7df58819985_DERIVATIVEINSTRUMENTSANDHEDGINGSTRATEGIESScheduleofImpactofGainsandLossesfromDerivativesDesignatedasHedgingInstrumentsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_1b4911f0-3005-4f94-a6f1-e14e8c389ebb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeInstrumentsGainLossLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax_16b12cb9-0fcd-4fcd-9d1f-81974ff04317" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_1b4911f0-3005-4f94-a6f1-e14e8c389ebb" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax_16b12cb9-0fcd-4fcd-9d1f-81974ff04317" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeGainLossOnDerivativeNet_c541095e-04c5-47b2-ae86-00a7182df09b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeGainLossOnDerivativeNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_1b4911f0-3005-4f94-a6f1-e14e8c389ebb" xlink:to="loc_us-gaap_DerivativeGainLossOnDerivativeNet_c541095e-04c5-47b2-ae86-00a7182df09b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_4c65eea8-6487-4d28-bacb-436dbfe2f4fc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_1b4911f0-3005-4f94-a6f1-e14e8c389ebb" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_4c65eea8-6487-4d28-bacb-436dbfe2f4fc" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationAxis_285c5538-b781-4cb6-a3ca-2b9bdcfc8c0c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HedgingDesignationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_4c65eea8-6487-4d28-bacb-436dbfe2f4fc" xlink:to="loc_us-gaap_HedgingDesignationAxis_285c5538-b781-4cb6-a3ca-2b9bdcfc8c0c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_285c5538-b781-4cb6-a3ca-2b9bdcfc8c0c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_285c5538-b781-4cb6-a3ca-2b9bdcfc8c0c" xlink:to="loc_us-gaap_HedgingDesignationDomain_285c5538-b781-4cb6-a3ca-2b9bdcfc8c0c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_9448f4d8-2b95-41da-8ead-78f7f34aa062" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_285c5538-b781-4cb6-a3ca-2b9bdcfc8c0c" xlink:to="loc_us-gaap_HedgingDesignationDomain_9448f4d8-2b95-41da-8ead-78f7f34aa062" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_92e1ff66-c1e3-4ebf-afb0-1e16d26f1f35" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DesignatedAsHedgingInstrumentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_9448f4d8-2b95-41da-8ead-78f7f34aa062" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_92e1ff66-c1e3-4ebf-afb0-1e16d26f1f35" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NondesignatedMember_f768f5d9-741a-4f5d-9324-02a4bca75589" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NondesignatedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_9448f4d8-2b95-41da-8ead-78f7f34aa062" xlink:to="loc_us-gaap_NondesignatedMember_f768f5d9-741a-4f5d-9324-02a4bca75589" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_08990007-822a-4c11-8f96-5f54dda61d1c" 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_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_4c65eea8-6487-4d28-bacb-436dbfe2f4fc" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_08990007-822a-4c11-8f96-5f54dda61d1c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_08990007-822a-4c11-8f96-5f54dda61d1c_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_08990007-822a-4c11-8f96-5f54dda61d1c" xlink:to="loc_us-gaap_EquityComponentDomain_08990007-822a-4c11-8f96-5f54dda61d1c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_7077b23b-d87c-4c82-9101-91786419a3fd" 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_08990007-822a-4c11-8f96-5f54dda61d1c" xlink:to="loc_us-gaap_EquityComponentDomain_7077b23b-d87c-4c82-9101-91786419a3fd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember_e3fd59fb-18d1-4bb6-895b-65547b0c1b43" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_7077b23b-d87c-4c82-9101-91786419a3fd" xlink:to="loc_us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember_e3fd59fb-18d1-4bb6-895b-65547b0c1b43" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_f2eb9c68-87b6-4d65-80b5-4abf15697f41" 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_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_4c65eea8-6487-4d28-bacb-436dbfe2f4fc" xlink:to="loc_srt_ProductOrServiceAxis_f2eb9c68-87b6-4d65-80b5-4abf15697f41" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_f2eb9c68-87b6-4d65-80b5-4abf15697f41_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_f2eb9c68-87b6-4d65-80b5-4abf15697f41" xlink:to="loc_srt_ProductsAndServicesDomain_f2eb9c68-87b6-4d65-80b5-4abf15697f41_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_f187a9b5-112c-4e26-931e-5a85a30601be" 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_f2eb9c68-87b6-4d65-80b5-4abf15697f41" xlink:to="loc_srt_ProductsAndServicesDomain_f187a9b5-112c-4e26-931e-5a85a30601be" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProductMember_d9ffac01-cd0d-448e-828e-77767b8211bd" 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_f187a9b5-112c-4e26-931e-5a85a30601be" xlink:to="loc_us-gaap_ProductMember_d9ffac01-cd0d-448e-828e-77767b8211bd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_21acc1a6-394d-444e-8d19-a32f505115bb" 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_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_4c65eea8-6487-4d28-bacb-436dbfe2f4fc" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_21acc1a6-394d-444e-8d19-a32f505115bb" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_21acc1a6-394d-444e-8d19-a32f505115bb_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_21acc1a6-394d-444e-8d19-a32f505115bb" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_21acc1a6-394d-444e-8d19-a32f505115bb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_1835ea68-4b83-4a81-9cf1-4f915b2512ce" 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_21acc1a6-394d-444e-8d19-a32f505115bb" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_1835ea68-4b83-4a81-9cf1-4f915b2512ce" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenseMember_3f5e7cfb-4cbe-44ad-bd3a-81509ca0015c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_1835ea68-4b83-4a81-9cf1-4f915b2512ce" xlink:to="loc_us-gaap_OperatingExpenseMember_3f5e7cfb-4cbe-44ad-bd3a-81509ca0015c" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/DEBTAdditionalInformationDetails" xlink:type="simple" xlink:href="bmrn-20230630.xsd#DEBTAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.bmrn.com/role/DEBTAdditionalInformationDetails" xlink:type="extended" id="ieab1938ecad34dc8bf379d174aa14b83_DEBTAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_98fb87a6-12f9-4459-be70-a830a8260fe7" 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_DebtInstrumentCarryingAmount_90ed348e-f307-4a8f-b5d9-8617d84a9354" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_98fb87a6-12f9-4459-be70-a830a8260fe7" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_90ed348e-f307-4a8f-b5d9-8617d84a9354" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_86de129a-d3fb-4fa5-aeaa-0015cb484686" 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_98fb87a6-12f9-4459-be70-a830a8260fe7" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_86de129a-d3fb-4fa5-aeaa-0015cb484686" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCredit_61d6179e-51bc-4b3f-aa3e-45744d84a879" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LineOfCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_98fb87a6-12f9-4459-be70-a830a8260fe7" xlink:to="loc_us-gaap_LineOfCredit_61d6179e-51bc-4b3f-aa3e-45744d84a879" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_18aa0714-3ea5-4f8c-9689-8a3d3500738c" 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_98fb87a6-12f9-4459-be70-a830a8260fe7" xlink:to="loc_us-gaap_DebtInstrumentTable_18aa0714-3ea5-4f8c-9689-8a3d3500738c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_aa1c0d2a-32de-49ea-8ff0-009a8c28d4ff" 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_18aa0714-3ea5-4f8c-9689-8a3d3500738c" xlink:to="loc_us-gaap_DebtInstrumentAxis_aa1c0d2a-32de-49ea-8ff0-009a8c28d4ff" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_aa1c0d2a-32de-49ea-8ff0-009a8c28d4ff_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_aa1c0d2a-32de-49ea-8ff0-009a8c28d4ff" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_aa1c0d2a-32de-49ea-8ff0-009a8c28d4ff_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_3594f02b-859d-462b-b3e8-bffe12ee9f53" 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_aa1c0d2a-32de-49ea-8ff0-009a8c28d4ff" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_3594f02b-859d-462b-b3e8-bffe12ee9f53" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_SeniorUnsecuredRevolvingTwoThousandEighteenCreditFacilityMember_7f22f9c5-bb4b-4c2d-b74d-93fc32d07100" xlink:href="bmrn-20230630.xsd#bmrn_SeniorUnsecuredRevolvingTwoThousandEighteenCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_3594f02b-859d-462b-b3e8-bffe12ee9f53" xlink:to="loc_bmrn_SeniorUnsecuredRevolvingTwoThousandEighteenCreditFacilityMember_7f22f9c5-bb4b-4c2d-b74d-93fc32d07100" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/DEBTScheduleofConvertibleDebtDetails" xlink:type="simple" xlink:href="bmrn-20230630.xsd#DEBTScheduleofConvertibleDebtDetails"/>
  <link:definitionLink xlink:role="http://www.bmrn.com/role/DEBTScheduleofConvertibleDebtDetails" xlink:type="extended" id="ia31bd1ae38a44c5ba861e20ce3626b0d_DEBTScheduleofConvertibleDebtDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_c060555d-7400-47d6-96c5-21d6bb7ff844" 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_1e3a4b07-5749-4d62-9a9a-6021fd6b05f9" 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_c060555d-7400-47d6-96c5-21d6bb7ff844" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_1e3a4b07-5749-4d62-9a9a-6021fd6b05f9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_655119ae-bd60-41b9-8a7a-be4910a1f1fc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_c060555d-7400-47d6-96c5-21d6bb7ff844" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_655119ae-bd60-41b9-8a7a-be4910a1f1fc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_5effa0bb-9f01-4384-82c2-8f353f8318e4" 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_c060555d-7400-47d6-96c5-21d6bb7ff844" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_5effa0bb-9f01-4384-82c2-8f353f8318e4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtNoncurrent_32a48ce2-e8ae-48c7-b48a-8d44a0fb68dd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConvertibleDebtNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_c060555d-7400-47d6-96c5-21d6bb7ff844" xlink:to="loc_us-gaap_ConvertibleDebtNoncurrent_32a48ce2-e8ae-48c7-b48a-8d44a0fb68dd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebt_3aa8f68a-f08e-485c-a35d-c9ba94b14ae2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConvertibleDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_c060555d-7400-47d6-96c5-21d6bb7ff844" xlink:to="loc_us-gaap_ConvertibleDebt_3aa8f68a-f08e-485c-a35d-c9ba94b14ae2" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtFairValueDisclosures_0bc79d4f-59ff-4ab3-b559-2182e2da1717" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConvertibleDebtFairValueDisclosures"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_c060555d-7400-47d6-96c5-21d6bb7ff844" xlink:to="loc_us-gaap_ConvertibleDebtFairValueDisclosures_0bc79d4f-59ff-4ab3-b559-2182e2da1717" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_6a7fabc9-0a5a-49d2-9be6-ec4cd91791b4" 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_c060555d-7400-47d6-96c5-21d6bb7ff844" xlink:to="loc_us-gaap_DebtInstrumentTable_6a7fabc9-0a5a-49d2-9be6-ec4cd91791b4" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_24287952-180b-4aa9-b916-57424a61640e" 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_6a7fabc9-0a5a-49d2-9be6-ec4cd91791b4" xlink:to="loc_us-gaap_DebtInstrumentAxis_24287952-180b-4aa9-b916-57424a61640e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_24287952-180b-4aa9-b916-57424a61640e_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_24287952-180b-4aa9-b916-57424a61640e" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_24287952-180b-4aa9-b916-57424a61640e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_76ca3f00-8c33-4ff1-93a3-b21a55e99b72" 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_24287952-180b-4aa9-b916-57424a61640e" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_76ca3f00-8c33-4ff1-93a3-b21a55e99b72" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_A125SeniorSubordinatedConvertibleNotesDueInMay2027Member_88bf31a3-9930-49a7-a7a3-b7ce9673cff8" xlink:href="bmrn-20230630.xsd#bmrn_A125SeniorSubordinatedConvertibleNotesDueInMay2027Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_76ca3f00-8c33-4ff1-93a3-b21a55e99b72" xlink:to="loc_bmrn_A125SeniorSubordinatedConvertibleNotesDueInMay2027Member_88bf31a3-9930-49a7-a7a3-b7ce9673cff8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_ZeroPointFiveNineNinePercentSeniorSubordinatedConvertibleNotesDueInAugustTwoThousandTwentyFourMember_45903177-9079-4e77-84e7-112bac54d292" xlink:href="bmrn-20230630.xsd#bmrn_ZeroPointFiveNineNinePercentSeniorSubordinatedConvertibleNotesDueInAugustTwoThousandTwentyFourMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_76ca3f00-8c33-4ff1-93a3-b21a55e99b72" xlink:to="loc_bmrn_ZeroPointFiveNineNinePercentSeniorSubordinatedConvertibleNotesDueInAugustTwoThousandTwentyFourMember_45903177-9079-4e77-84e7-112bac54d292" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/DEBTScheduleofInterestExpenseonConvertibleDebtDetails" xlink:type="simple" xlink:href="bmrn-20230630.xsd#DEBTScheduleofInterestExpenseonConvertibleDebtDetails"/>
  <link:definitionLink xlink:role="http://www.bmrn.com/role/DEBTScheduleofInterestExpenseonConvertibleDebtDetails" xlink:type="extended" id="i52ad2d3524d04046b8f1f4273e7bc1f0_DEBTScheduleofInterestExpenseonConvertibleDebtDetails">
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_ScheduleOfInterestExpensesLineItems_5c33d6c1-563a-4a65-ac08-1405d3c4e8c0" xlink:href="bmrn-20230630.xsd#bmrn_ScheduleOfInterestExpensesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebtExcludingAmortization_c3dc3f3f-c718-43ff-a34f-ca7432b0abc1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestExpenseDebtExcludingAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrn_ScheduleOfInterestExpensesLineItems_5c33d6c1-563a-4a65-ac08-1405d3c4e8c0" xlink:to="loc_us-gaap_InterestExpenseDebtExcludingAmortization_c3dc3f3f-c718-43ff-a34f-ca7432b0abc1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfDebtDiscountPremium_4e4f5855-0206-43d8-a044-cb2210e81195" 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_bmrn_ScheduleOfInterestExpensesLineItems_5c33d6c1-563a-4a65-ac08-1405d3c4e8c0" xlink:to="loc_us-gaap_AmortizationOfDebtDiscountPremium_4e4f5855-0206-43d8-a044-cb2210e81195" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_8e561274-f2ec-4878-9248-ce9d1bbf2d75" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AmortizationOfFinancingCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrn_ScheduleOfInterestExpensesLineItems_5c33d6c1-563a-4a65-ac08-1405d3c4e8c0" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_8e561274-f2ec-4878-9248-ce9d1bbf2d75" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_70c1c765-e3f0-4320-b72d-7d82caafe809" 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_bmrn_ScheduleOfInterestExpensesLineItems_5c33d6c1-563a-4a65-ac08-1405d3c4e8c0" xlink:to="loc_us-gaap_InterestExpense_70c1c765-e3f0-4320-b72d-7d82caafe809" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_ScheduleOfInterestExpensesTable_e5b59a5f-a1c0-41ad-910d-466d8e696dd5" xlink:href="bmrn-20230630.xsd#bmrn_ScheduleOfInterestExpensesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_bmrn_ScheduleOfInterestExpensesLineItems_5c33d6c1-563a-4a65-ac08-1405d3c4e8c0" xlink:to="loc_bmrn_ScheduleOfInterestExpensesTable_e5b59a5f-a1c0-41ad-910d-466d8e696dd5" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_4b50ff53-ec2c-40dc-9ae9-1a2b71eba189" 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_bmrn_ScheduleOfInterestExpensesTable_e5b59a5f-a1c0-41ad-910d-466d8e696dd5" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_4b50ff53-ec2c-40dc-9ae9-1a2b71eba189" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_4b50ff53-ec2c-40dc-9ae9-1a2b71eba189_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_4b50ff53-ec2c-40dc-9ae9-1a2b71eba189" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_4b50ff53-ec2c-40dc-9ae9-1a2b71eba189_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_0df98148-ef50-4448-ab1a-91460a7e8cc7" 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_4b50ff53-ec2c-40dc-9ae9-1a2b71eba189" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_0df98148-ef50-4448-ab1a-91460a7e8cc7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtMember_ba0bd451-ae2d-4032-aebc-2badd2bb4b8f" 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_0df98148-ef50-4448-ab1a-91460a7e8cc7" xlink:to="loc_us-gaap_ConvertibleDebtMember_ba0bd451-ae2d-4032-aebc-2badd2bb4b8f" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/ACCUMULATEDOTHERCOMPREHENSIVEINCOMEScheduleofChangesinAccumulatedBalancesofAOCIIncludingCurrentPeriodOtherComprehensiveIncomeLossandReclassificationsOutofAOCIDetails" xlink:type="simple" xlink:href="bmrn-20230630.xsd#ACCUMULATEDOTHERCOMPREHENSIVEINCOMEScheduleofChangesinAccumulatedBalancesofAOCIIncludingCurrentPeriodOtherComprehensiveIncomeLossandReclassificationsOutofAOCIDetails"/>
  <link:definitionLink xlink:role="http://www.bmrn.com/role/ACCUMULATEDOTHERCOMPREHENSIVEINCOMEScheduleofChangesinAccumulatedBalancesofAOCIIncludingCurrentPeriodOtherComprehensiveIncomeLossandReclassificationsOutofAOCIDetails" xlink:type="extended" id="if2314511394849abb2d71a382cbc4bf3_ACCUMULATEDOTHERCOMPREHENSIVEINCOMEScheduleofChangesinAccumulatedBalancesofAOCIIncludingCurrentPeriodOtherComprehensiveIncomeLossandReclassificationsOutofAOCIDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_f108c088-ff94-464e-8260-2063b25d8771" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_95de0af9-348a-4664-93ba-fd12483029da" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AOCIAttributableToParentNetOfTaxRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_f108c088-ff94-464e-8260-2063b25d8771" xlink:to="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_95de0af9-348a-4664-93ba-fd12483029da" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_b0892f9d-3678-4401-a968-6f6673ffc753" 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_AOCIAttributableToParentNetOfTaxRollForward_95de0af9-348a-4664-93ba-fd12483029da" xlink:to="loc_us-gaap_StockholdersEquity_b0892f9d-3678-4401-a968-6f6673ffc753" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_bbe98064-63fa-489e-bc59-86a951fcfa37" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_95de0af9-348a-4664-93ba-fd12483029da" xlink:to="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_bbe98064-63fa-489e-bc59-86a951fcfa37" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_7ea0e267-80af-48c0-8525-1949f932e2d0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_95de0af9-348a-4664-93ba-fd12483029da" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_7ea0e267-80af-48c0-8525-1949f932e2d0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_e15ebb5a-9834-4632-8cdf-d2faddf60eb8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_95de0af9-348a-4664-93ba-fd12483029da" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_e15ebb5a-9834-4632-8cdf-d2faddf60eb8" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_e69a8436-66b8-42ed-8401-7cb5088809b1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_95de0af9-348a-4664-93ba-fd12483029da" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_e69a8436-66b8-42ed-8401-7cb5088809b1" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_089f0556-a3b0-425a-9843-600250efe575" 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_AccumulatedOtherComprehensiveIncomeLossTable_1b6ed8d7-2e6f-4c10-83a0-1ffef962336f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_f108c088-ff94-464e-8260-2063b25d8771" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_1b6ed8d7-2e6f-4c10-83a0-1ffef962336f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_3883bfea-603f-43de-ac89-435588c2b897" 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_AccumulatedOtherComprehensiveIncomeLossTable_1b6ed8d7-2e6f-4c10-83a0-1ffef962336f" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_3883bfea-603f-43de-ac89-435588c2b897" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_3883bfea-603f-43de-ac89-435588c2b897_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_3883bfea-603f-43de-ac89-435588c2b897" xlink:to="loc_us-gaap_EquityComponentDomain_3883bfea-603f-43de-ac89-435588c2b897_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_45213de3-37a5-491b-af69-5272c11b1b3b" 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_3883bfea-603f-43de-ac89-435588c2b897" xlink:to="loc_us-gaap_EquityComponentDomain_45213de3-37a5-491b-af69-5272c11b1b3b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_429738d0-93de-4bb4-a8b0-32d89a45b984" 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_45213de3-37a5-491b-af69-5272c11b1b3b" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_429738d0-93de-4bb4-a8b0-32d89a45b984" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember_ab7bc851-c85e-41e8-8121-24aea7c33f9a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_429738d0-93de-4bb4-a8b0-32d89a45b984" xlink:to="loc_us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember_ab7bc851-c85e-41e8-8121-24aea7c33f9a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember_06789762-8174-40ea-b854-9f32635e5e97" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_429738d0-93de-4bb4-a8b0-32d89a45b984" xlink:to="loc_us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember_06789762-8174-40ea-b854-9f32635e5e97" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/REVENUECREDITCONCENTRATIONSANDGEOGRAPHICINFORMATIONAdditionalInformationDetails" xlink:type="simple" xlink:href="bmrn-20230630.xsd#REVENUECREDITCONCENTRATIONSANDGEOGRAPHICINFORMATIONAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.bmrn.com/role/REVENUECREDITCONCENTRATIONSANDGEOGRAPHICINFORMATIONAdditionalInformationDetails" xlink:type="extended" id="ica10cb3a728341bab4beca7987543589_REVENUECREDITCONCENTRATIONSANDGEOGRAPHICINFORMATIONAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_ConcentrationRiskAndGeographicInformationLineItems_20fd3c66-792b-4aa0-84c1-7face17b12ea" xlink:href="bmrn-20230630.xsd#bmrn_ConcentrationRiskAndGeographicInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NumberOfOperatingSegments_ed96f00a-b0b5-486b-b2b7-038baa1cd46a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NumberOfOperatingSegments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrn_ConcentrationRiskAndGeographicInformationLineItems_20fd3c66-792b-4aa0-84c1-7face17b12ea" xlink:to="loc_us-gaap_NumberOfOperatingSegments_ed96f00a-b0b5-486b-b2b7-038baa1cd46a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_b300ab6c-732e-40d5-b432-05aa90118da1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskPercentage1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrn_ConcentrationRiskAndGeographicInformationLineItems_20fd3c66-792b-4aa0-84c1-7face17b12ea" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_b300ab6c-732e-40d5-b432-05aa90118da1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_567ea416-63b1-4e65-a586-70a102cd9fce" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrn_ConcentrationRiskAndGeographicInformationLineItems_20fd3c66-792b-4aa0-84c1-7face17b12ea" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_567ea416-63b1-4e65-a586-70a102cd9fce" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_ConcentrationRiskAndGeographicInformationTable_fc6da827-6438-454c-8e95-61cdfe9fd443" xlink:href="bmrn-20230630.xsd#bmrn_ConcentrationRiskAndGeographicInformationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_bmrn_ConcentrationRiskAndGeographicInformationLineItems_20fd3c66-792b-4aa0-84c1-7face17b12ea" xlink:to="loc_bmrn_ConcentrationRiskAndGeographicInformationTable_fc6da827-6438-454c-8e95-61cdfe9fd443" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_acf60a06-3214-42b8-aa57-17f5a5014844" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_bmrn_ConcentrationRiskAndGeographicInformationTable_fc6da827-6438-454c-8e95-61cdfe9fd443" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_acf60a06-3214-42b8-aa57-17f5a5014844" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_acf60a06-3214-42b8-aa57-17f5a5014844_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_acf60a06-3214-42b8-aa57-17f5a5014844" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_acf60a06-3214-42b8-aa57-17f5a5014844_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_e8d23756-676f-4ff7-8523-6686dc32f8b7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_acf60a06-3214-42b8-aa57-17f5a5014844" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_e8d23756-676f-4ff7-8523-6686dc32f8b7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditConcentrationRiskMember_d33d1b11-72ed-4311-8e33-02bbdef189d9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CreditConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_e8d23756-676f-4ff7-8523-6686dc32f8b7" xlink:to="loc_us-gaap_CreditConcentrationRiskMember_d33d1b11-72ed-4311-8e33-02bbdef189d9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_da7fbf48-2143-4c17-919e-b05d4716fbfa" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_bmrn_ConcentrationRiskAndGeographicInformationTable_fc6da827-6438-454c-8e95-61cdfe9fd443" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_da7fbf48-2143-4c17-919e-b05d4716fbfa" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_da7fbf48-2143-4c17-919e-b05d4716fbfa_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_da7fbf48-2143-4c17-919e-b05d4716fbfa" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_da7fbf48-2143-4c17-919e-b05d4716fbfa_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_32602e6c-1991-4e31-a224-a1111aad987f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_da7fbf48-2143-4c17-919e-b05d4716fbfa" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_32602e6c-1991-4e31-a224-a1111aad987f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableMember_b2893151-5b47-4b7d-8185-85097c0765f2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccountsReceivableMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_32602e6c-1991-4e31-a224-a1111aad987f" xlink:to="loc_us-gaap_AccountsReceivableMember_b2893151-5b47-4b7d-8185-85097c0765f2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MajorCustomersAxis_ca9c91c4-016d-4d2a-9ba1-446b5ea9ad82" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MajorCustomersAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_bmrn_ConcentrationRiskAndGeographicInformationTable_fc6da827-6438-454c-8e95-61cdfe9fd443" xlink:to="loc_srt_MajorCustomersAxis_ca9c91c4-016d-4d2a-9ba1-446b5ea9ad82" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_ca9c91c4-016d-4d2a-9ba1-446b5ea9ad82_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MajorCustomersAxis_ca9c91c4-016d-4d2a-9ba1-446b5ea9ad82" xlink:to="loc_srt_NameOfMajorCustomerDomain_ca9c91c4-016d-4d2a-9ba1-446b5ea9ad82_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_7eeccf31-a328-422c-9dc0-3567c26985dd" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MajorCustomersAxis_ca9c91c4-016d-4d2a-9ba1-446b5ea9ad82" xlink:to="loc_srt_NameOfMajorCustomerDomain_7eeccf31-a328-422c-9dc0-3567c26985dd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_CustomerOneMember_1ee93a1d-ff34-477f-94a9-8d522c5b3987" xlink:href="bmrn-20230630.xsd#bmrn_CustomerOneMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_7eeccf31-a328-422c-9dc0-3567c26985dd" xlink:to="loc_bmrn_CustomerOneMember_1ee93a1d-ff34-477f-94a9-8d522c5b3987" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_CustomerTwoMember_6803f502-0cdb-4e19-8698-f8c63e51185a" xlink:href="bmrn-20230630.xsd#bmrn_CustomerTwoMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_7eeccf31-a328-422c-9dc0-3567c26985dd" xlink:to="loc_bmrn_CustomerTwoMember_6803f502-0cdb-4e19-8698-f8c63e51185a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_CustomersMember_dd1d8a00-65f1-412b-a596-a6432f3dccc2" xlink:href="bmrn-20230630.xsd#bmrn_CustomersMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_7eeccf31-a328-422c-9dc0-3567c26985dd" xlink:to="loc_bmrn_CustomersMember_dd1d8a00-65f1-412b-a596-a6432f3dccc2" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/REVENUECREDITCONCENTRATIONSANDGEOGRAPHICINFORMATIONDisaggregatesofNetProductRevenuesbyProductDetails" xlink:type="simple" xlink:href="bmrn-20230630.xsd#REVENUECREDITCONCENTRATIONSANDGEOGRAPHICINFORMATIONDisaggregatesofNetProductRevenuesbyProductDetails"/>
  <link:definitionLink xlink:role="http://www.bmrn.com/role/REVENUECREDITCONCENTRATIONSANDGEOGRAPHICINFORMATIONDisaggregatesofNetProductRevenuesbyProductDetails" xlink:type="extended" id="i478a8703ba014eb4b10c90b10826267b_REVENUECREDITCONCENTRATIONSANDGEOGRAPHICINFORMATIONDisaggregatesofNetProductRevenuesbyProductDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems_30d345ae-c315-4300-88fc-f71d27edeafc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_c7430758-cc29-47de-a160-3ca3aecc65b4" 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_EntityWideInformationRevenueFromExternalCustomerLineItems_30d345ae-c315-4300-88fc-f71d27edeafc" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_c7430758-cc29-47de-a160-3ca3aecc65b4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_1e2deaf2-a4be-4cef-b988-331f78d13cda" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems_30d345ae-c315-4300-88fc-f71d27edeafc" xlink:to="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_1e2deaf2-a4be-4cef-b988-331f78d13cda" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_a1d4e286-18d0-4aba-8142-da35aa894595" 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_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_1e2deaf2-a4be-4cef-b988-331f78d13cda" xlink:to="loc_srt_ProductOrServiceAxis_a1d4e286-18d0-4aba-8142-da35aa894595" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_a1d4e286-18d0-4aba-8142-da35aa894595_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_a1d4e286-18d0-4aba-8142-da35aa894595" xlink:to="loc_srt_ProductsAndServicesDomain_a1d4e286-18d0-4aba-8142-da35aa894595_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_edad0dea-f013-4e25-890b-313d215b154f" 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_a1d4e286-18d0-4aba-8142-da35aa894595" xlink:to="loc_srt_ProductsAndServicesDomain_edad0dea-f013-4e25-890b-313d215b154f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProductMember_40acac33-bf20-435d-9aa2-eab50f92c9cc" 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_edad0dea-f013-4e25-890b-313d215b154f" xlink:to="loc_us-gaap_ProductMember_40acac33-bf20-435d-9aa2-eab50f92c9cc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_EnzymeProductMember_d31cd263-7e82-41b0-8a33-2ca07d323727" xlink:href="bmrn-20230630.xsd#bmrn_EnzymeProductMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ProductMember_40acac33-bf20-435d-9aa2-eab50f92c9cc" xlink:to="loc_bmrn_EnzymeProductMember_d31cd263-7e82-41b0-8a33-2ca07d323727" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_VIMIZIMMember_2040dc73-f948-4c14-95ab-40e052f05cbf" xlink:href="bmrn-20230630.xsd#bmrn_VIMIZIMMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrn_EnzymeProductMember_d31cd263-7e82-41b0-8a33-2ca07d323727" xlink:to="loc_bmrn_VIMIZIMMember_2040dc73-f948-4c14-95ab-40e052f05cbf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_NAGLAZYMEMember_be7b6cfe-3aa2-4d08-bfa0-bd26b2acd403" xlink:href="bmrn-20230630.xsd#bmrn_NAGLAZYMEMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrn_EnzymeProductMember_d31cd263-7e82-41b0-8a33-2ca07d323727" xlink:to="loc_bmrn_NAGLAZYMEMember_be7b6cfe-3aa2-4d08-bfa0-bd26b2acd403" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_PALYNZIQMember_4830f986-61c7-4c7f-9fa0-5cdebfb60e5d" xlink:href="bmrn-20230630.xsd#bmrn_PALYNZIQMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrn_EnzymeProductMember_d31cd263-7e82-41b0-8a33-2ca07d323727" xlink:to="loc_bmrn_PALYNZIQMember_4830f986-61c7-4c7f-9fa0-5cdebfb60e5d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_ALDURAZYMEMember_5be71523-bcc6-4007-a610-75a15364db5e" xlink:href="bmrn-20230630.xsd#bmrn_ALDURAZYMEMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrn_EnzymeProductMember_d31cd263-7e82-41b0-8a33-2ca07d323727" xlink:to="loc_bmrn_ALDURAZYMEMember_5be71523-bcc6-4007-a610-75a15364db5e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_BRINEURAMember_fe431672-9b30-44b7-8096-d492d8286366" xlink:href="bmrn-20230630.xsd#bmrn_BRINEURAMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrn_EnzymeProductMember_d31cd263-7e82-41b0-8a33-2ca07d323727" xlink:to="loc_bmrn_BRINEURAMember_fe431672-9b30-44b7-8096-d492d8286366" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_VOXZOGOMember_b7112508-3e2a-40e6-a5b0-b19f069eae22" xlink:href="bmrn-20230630.xsd#bmrn_VOXZOGOMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ProductMember_40acac33-bf20-435d-9aa2-eab50f92c9cc" xlink:to="loc_bmrn_VOXZOGOMember_b7112508-3e2a-40e6-a5b0-b19f069eae22" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_KUVANMember_790e9000-0ca1-4501-83a0-38518940bdfa" xlink:href="bmrn-20230630.xsd#bmrn_KUVANMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ProductMember_40acac33-bf20-435d-9aa2-eab50f92c9cc" xlink:to="loc_bmrn_KUVANMember_790e9000-0ca1-4501-83a0-38518940bdfa" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_RoyaltyAndOtherMember_05991460-b72e-424a-aaf3-6b3236ce50f6" xlink:href="bmrn-20230630.xsd#bmrn_RoyaltyAndOtherMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_edad0dea-f013-4e25-890b-313d215b154f" xlink:to="loc_bmrn_RoyaltyAndOtherMember_05991460-b72e-424a-aaf3-6b3236ce50f6" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/REVENUECREDITCONCENTRATIONSANDGEOGRAPHICINFORMATIONDisaggregatesofTotalNetProductRevenuesBasedonPatientLocationDetails" xlink:type="simple" xlink:href="bmrn-20230630.xsd#REVENUECREDITCONCENTRATIONSANDGEOGRAPHICINFORMATIONDisaggregatesofTotalNetProductRevenuesBasedonPatientLocationDetails"/>
  <link:definitionLink xlink:role="http://www.bmrn.com/role/REVENUECREDITCONCENTRATIONSANDGEOGRAPHICINFORMATIONDisaggregatesofTotalNetProductRevenuesBasedonPatientLocationDetails" xlink:type="extended" id="i61125e27199e4de0a0410e454978da03_REVENUECREDITCONCENTRATIONSANDGEOGRAPHICINFORMATIONDisaggregatesofTotalNetProductRevenuesBasedonPatientLocationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_13317489-ced1-4452-81d7-5f53f737d7d1" 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_51d6fe7f-04d5-40f9-8c94-e8b37c38bf60" 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_13317489-ced1-4452-81d7-5f53f737d7d1" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_51d6fe7f-04d5-40f9-8c94-e8b37c38bf60" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_e2c1976f-5ba2-4889-8a1a-55bdb5a11074" 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_13317489-ced1-4452-81d7-5f53f737d7d1" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_e2c1976f-5ba2-4889-8a1a-55bdb5a11074" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerSalesChannelAxis_1412b497-38fa-4ab5-8332-ed81aa665863" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContractWithCustomerSalesChannelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_e2c1976f-5ba2-4889-8a1a-55bdb5a11074" xlink:to="loc_us-gaap_ContractWithCustomerSalesChannelAxis_1412b497-38fa-4ab5-8332-ed81aa665863" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerSalesChannelDomain_1412b497-38fa-4ab5-8332-ed81aa665863_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContractWithCustomerSalesChannelDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelAxis_1412b497-38fa-4ab5-8332-ed81aa665863" xlink:to="loc_us-gaap_ContractWithCustomerSalesChannelDomain_1412b497-38fa-4ab5-8332-ed81aa665863_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerSalesChannelDomain_0db57dca-7444-4052-a599-5d96f803993c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContractWithCustomerSalesChannelDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelAxis_1412b497-38fa-4ab5-8332-ed81aa665863" xlink:to="loc_us-gaap_ContractWithCustomerSalesChannelDomain_0db57dca-7444-4052-a599-5d96f803993c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SalesChannelDirectlyToConsumerMember_508c962a-cf00-4196-b647-4984756fb671" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SalesChannelDirectlyToConsumerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_0db57dca-7444-4052-a599-5d96f803993c" xlink:to="loc_us-gaap_SalesChannelDirectlyToConsumerMember_508c962a-cf00-4196-b647-4984756fb671" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SalesChannelThroughIntermediaryMember_3ece1701-59bd-4245-b289-87a3f54b6e1d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SalesChannelThroughIntermediaryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_0db57dca-7444-4052-a599-5d96f803993c" xlink:to="loc_us-gaap_SalesChannelThroughIntermediaryMember_3ece1701-59bd-4245-b289-87a3f54b6e1d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_2c4b1fe3-bef8-4612-b202-24b7d415ee98" 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_e2c1976f-5ba2-4889-8a1a-55bdb5a11074" xlink:to="loc_srt_ProductOrServiceAxis_2c4b1fe3-bef8-4612-b202-24b7d415ee98" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_2c4b1fe3-bef8-4612-b202-24b7d415ee98_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_2c4b1fe3-bef8-4612-b202-24b7d415ee98" xlink:to="loc_srt_ProductsAndServicesDomain_2c4b1fe3-bef8-4612-b202-24b7d415ee98_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_bdf12126-162e-4acf-9e9d-acad4f3ecc8a" 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_2c4b1fe3-bef8-4612-b202-24b7d415ee98" xlink:to="loc_srt_ProductsAndServicesDomain_bdf12126-162e-4acf-9e9d-acad4f3ecc8a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_ProductsExcludingALDURAZYMEMember_fa98c9b4-f04d-4033-b1a2-8749391c8a3a" xlink:href="bmrn-20230630.xsd#bmrn_ProductsExcludingALDURAZYMEMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_bdf12126-162e-4acf-9e9d-acad4f3ecc8a" xlink:to="loc_bmrn_ProductsExcludingALDURAZYMEMember_fa98c9b4-f04d-4033-b1a2-8749391c8a3a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_ALDURAZYMEMember_523d01e5-b6bd-4be4-9702-c9e2d06b80d6" xlink:href="bmrn-20230630.xsd#bmrn_ALDURAZYMEMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_bdf12126-162e-4acf-9e9d-acad4f3ecc8a" xlink:to="loc_bmrn_ALDURAZYMEMember_523d01e5-b6bd-4be4-9702-c9e2d06b80d6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProductMember_6b1d5808-3ca5-48c4-af88-18697bf6b4e5" 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_bdf12126-162e-4acf-9e9d-acad4f3ecc8a" xlink:to="loc_us-gaap_ProductMember_6b1d5808-3ca5-48c4-af88-18697bf6b4e5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_6b806cac-93e6-4d03-bdd8-d5641b486835" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_e2c1976f-5ba2-4889-8a1a-55bdb5a11074" xlink:to="loc_srt_StatementGeographicalAxis_6b806cac-93e6-4d03-bdd8-d5641b486835" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_6b806cac-93e6-4d03-bdd8-d5641b486835_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_6b806cac-93e6-4d03-bdd8-d5641b486835" xlink:to="loc_srt_SegmentGeographicalDomain_6b806cac-93e6-4d03-bdd8-d5641b486835_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_dbccd486-7461-4e8d-8e31-a9d8b0157b42" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_6b806cac-93e6-4d03-bdd8-d5641b486835" xlink:to="loc_srt_SegmentGeographicalDomain_dbccd486-7461-4e8d-8e31-a9d8b0157b42" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_US_d145d90d-e40c-442f-bd95-a3647a331359" xlink:href="https://xbrl.sec.gov/country/2023/country-2023.xsd#country_US"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_dbccd486-7461-4e8d-8e31-a9d8b0157b42" xlink:to="loc_country_US_d145d90d-e40c-442f-bd95-a3647a331359" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EuropeMember_63da72c3-6b41-45d4-b335-34e8205a6ae7" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_EuropeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_dbccd486-7461-4e8d-8e31-a9d8b0157b42" xlink:to="loc_srt_EuropeMember_63da72c3-6b41-45d4-b335-34e8205a6ae7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_LatinAmericaMember_7da98c72-f4ef-44a3-b001-b7b4b0f719b7" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_LatinAmericaMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_dbccd486-7461-4e8d-8e31-a9d8b0157b42" xlink:to="loc_srt_LatinAmericaMember_7da98c72-f4ef-44a3-b001-b7b4b0f719b7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MiddleEastMember_fd25317b-abfc-4ccb-804c-9d65333f71f7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_MiddleEastMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_dbccd486-7461-4e8d-8e31-a9d8b0157b42" xlink:to="loc_us-gaap_MiddleEastMember_fd25317b-abfc-4ccb-804c-9d65333f71f7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_RestOfWorldMember_7fec9e60-f513-4415-852f-770ed4203532" xlink:href="bmrn-20230630.xsd#bmrn_RestOfWorldMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_dbccd486-7461-4e8d-8e31-a9d8b0157b42" xlink:to="loc_bmrn_RestOfWorldMember_7fec9e60-f513-4415-852f-770ed4203532" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/REVENUECREDITCONCENTRATIONSANDGEOGRAPHICINFORMATIONTotalNetProductRevenueConcentrationsAttributedtoLargestCustomersDetails" xlink:type="simple" xlink:href="bmrn-20230630.xsd#REVENUECREDITCONCENTRATIONSANDGEOGRAPHICINFORMATIONTotalNetProductRevenueConcentrationsAttributedtoLargestCustomersDetails"/>
  <link:definitionLink xlink:role="http://www.bmrn.com/role/REVENUECREDITCONCENTRATIONSANDGEOGRAPHICINFORMATIONTotalNetProductRevenueConcentrationsAttributedtoLargestCustomersDetails" xlink:type="extended" id="i3d2a95237d9e409a9c1463ac78d9131a_REVENUECREDITCONCENTRATIONSANDGEOGRAPHICINFORMATIONTotalNetProductRevenueConcentrationsAttributedtoLargestCustomersDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskLineItems_216c3b75-209b-46ad-ba77-21a688fafd23" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_1f81e052-6a5b-4700-beb5-3963a82af215" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskPercentage1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_216c3b75-209b-46ad-ba77-21a688fafd23" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_1f81e052-6a5b-4700-beb5-3963a82af215" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTable_2e15172d-6ebe-4cb1-bd98-25f001e9f2a8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_216c3b75-209b-46ad-ba77-21a688fafd23" xlink:to="loc_us-gaap_ConcentrationRiskTable_2e15172d-6ebe-4cb1-bd98-25f001e9f2a8" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_f79ceeaa-0d5e-4212-a902-e20b59757918" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_2e15172d-6ebe-4cb1-bd98-25f001e9f2a8" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_f79ceeaa-0d5e-4212-a902-e20b59757918" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_f79ceeaa-0d5e-4212-a902-e20b59757918_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_f79ceeaa-0d5e-4212-a902-e20b59757918" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_f79ceeaa-0d5e-4212-a902-e20b59757918_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_096ac07b-7e28-4f42-ac30-a168bcaffb32" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_f79ceeaa-0d5e-4212-a902-e20b59757918" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_096ac07b-7e28-4f42-ac30-a168bcaffb32" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerConcentrationRiskMember_f195ae05-41d4-4ccb-b3cd-b366e4a4f4d3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CustomerConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_096ac07b-7e28-4f42-ac30-a168bcaffb32" xlink:to="loc_us-gaap_CustomerConcentrationRiskMember_f195ae05-41d4-4ccb-b3cd-b366e4a4f4d3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_0973f7db-2757-4409-943a-c5eeaaa39dbf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_2e15172d-6ebe-4cb1-bd98-25f001e9f2a8" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_0973f7db-2757-4409-943a-c5eeaaa39dbf" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_0973f7db-2757-4409-943a-c5eeaaa39dbf_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_0973f7db-2757-4409-943a-c5eeaaa39dbf" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_0973f7db-2757-4409-943a-c5eeaaa39dbf_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_0339905b-8c3f-4586-a0e1-471fc4e8ec12" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_0973f7db-2757-4409-943a-c5eeaaa39dbf" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_0339905b-8c3f-4586-a0e1-471fc4e8ec12" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SalesRevenueNetMember_a092a7e1-90eb-4d36-af6d-60f0a3d10af2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SalesRevenueNetMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_0339905b-8c3f-4586-a0e1-471fc4e8ec12" xlink:to="loc_us-gaap_SalesRevenueNetMember_a092a7e1-90eb-4d36-af6d-60f0a3d10af2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MajorCustomersAxis_6b694f67-0f66-4a32-8fd1-fa532ec63812" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MajorCustomersAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_2e15172d-6ebe-4cb1-bd98-25f001e9f2a8" xlink:to="loc_srt_MajorCustomersAxis_6b694f67-0f66-4a32-8fd1-fa532ec63812" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_6b694f67-0f66-4a32-8fd1-fa532ec63812_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MajorCustomersAxis_6b694f67-0f66-4a32-8fd1-fa532ec63812" xlink:to="loc_srt_NameOfMajorCustomerDomain_6b694f67-0f66-4a32-8fd1-fa532ec63812_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_2b1742b0-9027-4954-a735-5708e087b20f" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MajorCustomersAxis_6b694f67-0f66-4a32-8fd1-fa532ec63812" xlink:to="loc_srt_NameOfMajorCustomerDomain_2b1742b0-9027-4954-a735-5708e087b20f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_CustomerOneTwoAndThreeMember_058f7df2-6d4c-4f36-94ae-5d6d00eeb241" xlink:href="bmrn-20230630.xsd#bmrn_CustomerOneTwoAndThreeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_2b1742b0-9027-4954-a735-5708e087b20f" xlink:to="loc_bmrn_CustomerOneTwoAndThreeMember_058f7df2-6d4c-4f36-94ae-5d6d00eeb241" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_CustomerOneMember_b24c45e4-cdce-4c73-9054-c181f2c26667" xlink:href="bmrn-20230630.xsd#bmrn_CustomerOneMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrn_CustomerOneTwoAndThreeMember_058f7df2-6d4c-4f36-94ae-5d6d00eeb241" xlink:to="loc_bmrn_CustomerOneMember_b24c45e4-cdce-4c73-9054-c181f2c26667" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_CustomerTwoMember_010f74f7-e8e9-41ab-930d-c142a3e3a045" xlink:href="bmrn-20230630.xsd#bmrn_CustomerTwoMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrn_CustomerOneTwoAndThreeMember_058f7df2-6d4c-4f36-94ae-5d6d00eeb241" xlink:to="loc_bmrn_CustomerTwoMember_010f74f7-e8e9-41ab-930d-c142a3e3a045" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_CustomerThreeMember_a03d3e88-ab15-4375-b14e-d3b3650472f4" xlink:href="bmrn-20230630.xsd#bmrn_CustomerThreeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrn_CustomerOneTwoAndThreeMember_058f7df2-6d4c-4f36-94ae-5d6d00eeb241" xlink:to="loc_bmrn_CustomerThreeMember_a03d3e88-ab15-4375-b14e-d3b3650472f4" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/STOCKBASEDCOMPENSATIONExpenseDetails" xlink:type="simple" xlink:href="bmrn-20230630.xsd#STOCKBASEDCOMPENSATIONExpenseDetails"/>
  <link:definitionLink xlink:role="http://www.bmrn.com/role/STOCKBASEDCOMPENSATIONExpenseDetails" xlink:type="extended" id="ib8e35c42126947b0901229c824f082ec_STOCKBASEDCOMPENSATIONExpenseDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_35635223-d951-4ecd-aba9-08ad556eda3c" 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_AllocatedShareBasedCompensationExpense_e1171374-1d5e-4160-b639-ee0388d952dc" 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_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_35635223-d951-4ecd-aba9-08ad556eda3c" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_e1171374-1d5e-4160-b639-ee0388d952dc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_bb5e59ae-a0f3-4a76-b321-298b73097729" 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_35635223-d951-4ecd-aba9-08ad556eda3c" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_bb5e59ae-a0f3-4a76-b321-298b73097729" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_7fdf66d1-b3c6-4788-8e27-21c37a36c8e3" 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_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_bb5e59ae-a0f3-4a76-b321-298b73097729" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_7fdf66d1-b3c6-4788-8e27-21c37a36c8e3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_7fdf66d1-b3c6-4788-8e27-21c37a36c8e3_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_7fdf66d1-b3c6-4788-8e27-21c37a36c8e3" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_7fdf66d1-b3c6-4788-8e27-21c37a36c8e3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_524bf434-7dfd-4fb6-8529-f051c7373869" 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_7fdf66d1-b3c6-4788-8e27-21c37a36c8e3" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_524bf434-7dfd-4fb6-8529-f051c7373869" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfSalesMember_8393bcd4-71cf-4c43-94e2-f90927944aa4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CostOfSalesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_524bf434-7dfd-4fb6-8529-f051c7373869" xlink:to="loc_us-gaap_CostOfSalesMember_8393bcd4-71cf-4c43-94e2-f90927944aa4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpenseMember_72d00721-94b5-4ace-b845-0521465b7b3a" 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_524bf434-7dfd-4fb6-8529-f051c7373869" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpenseMember_72d00721-94b5-4ace-b845-0521465b7b3a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_2f7ed00e-092c-4ab3-a9cd-70de97389fff" 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_524bf434-7dfd-4fb6-8529-f051c7373869" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_2f7ed00e-092c-4ab3-a9cd-70de97389fff" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/EARNINGSPERCOMMONSHAREScheduleofEarningsPerShareDetails" xlink:type="simple" xlink:href="bmrn-20230630.xsd#EARNINGSPERCOMMONSHAREScheduleofEarningsPerShareDetails"/>
  <link:definitionLink xlink:role="http://www.bmrn.com/role/EARNINGSPERCOMMONSHAREScheduleofEarningsPerShareDetails" xlink:type="extended" id="ib9a113aedc6945a999fa4fe84e3d1a84_EARNINGSPERCOMMONSHAREScheduleofEarningsPerShareDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_5ddf4963-416a-484b-a55b-76fd280709be" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasicAbstract_691ee58f-da22-4978-bbaa-75e651bb6cb1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasicAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_5ddf4963-416a-484b-a55b-76fd280709be" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasicAbstract_691ee58f-da22-4978-bbaa-75e651bb6cb1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_4d1643ba-c861-44ce-bfde-021b48452168" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasicAbstract_691ee58f-da22-4978-bbaa-75e651bb6cb1" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_4d1643ba-c861-44ce-bfde-021b48452168" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestOnConvertibleDebtNetOfTax_f6945289-fdda-4621-86d5-bd4448d83a73" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestOnConvertibleDebtNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasicAbstract_691ee58f-da22-4978-bbaa-75e651bb6cb1" xlink:to="loc_us-gaap_InterestOnConvertibleDebtNetOfTax_f6945289-fdda-4621-86d5-bd4448d83a73" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_8df3da13-6b6d-44af-ab19-5e664115ed93" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasicAbstract_691ee58f-da22-4978-bbaa-75e651bb6cb1" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_8df3da13-6b6d-44af-ab19-5e664115ed93" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingDilutedDisclosureItemsAbstract_a8ddbab4-ae1f-4fd7-a9e6-25a95de0ff2a" 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_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_5ddf4963-416a-484b-a55b-76fd280709be" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingDilutedDisclosureItemsAbstract_a8ddbab4-ae1f-4fd7-a9e6-25a95de0ff2a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_7695e5c5-17d4-4ab7-be6e-d6daa21c4a45" 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_a8ddbab4-ae1f-4fd7-a9e6-25a95de0ff2a" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_7695e5c5-17d4-4ab7-be6e-d6daa21c4a45" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DilutiveSecuritiesAbstract_3e796dcb-9c71-4a19-9006-73afc153f12c" 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_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_5ddf4963-416a-484b-a55b-76fd280709be" xlink:to="loc_us-gaap_DilutiveSecuritiesAbstract_3e796dcb-9c71-4a19-9006-73afc153f12c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToConversionOfDebtSecurities_34c31cd0-338a-431f-94a6-974b5055ca89" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncrementalCommonSharesAttributableToConversionOfDebtSecurities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DilutiveSecuritiesAbstract_3e796dcb-9c71-4a19-9006-73afc153f12c" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToConversionOfDebtSecurities_34c31cd0-338a-431f-94a6-974b5055ca89" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_fc5d7115-7830-479d-85d3-686478311419" 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_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_5ddf4963-416a-484b-a55b-76fd280709be" xlink:to="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_fc5d7115-7830-479d-85d3-686478311419" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasic_c01d3afc-e86a-4c2b-b64c-d6b75fc540ac" 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_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_5ddf4963-416a-484b-a55b-76fd280709be" xlink:to="loc_us-gaap_EarningsPerShareBasic_c01d3afc-e86a-4c2b-b64c-d6b75fc540ac" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDiluted_4b0b14d5-32fe-4828-a153-b2fc37a2f961" 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_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_5ddf4963-416a-484b-a55b-76fd280709be" xlink:to="loc_us-gaap_EarningsPerShareDiluted_4b0b14d5-32fe-4828-a153-b2fc37a2f961" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_56e0c6d9-cb41-4bc1-8bb7-5bfecddde6c7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_5ddf4963-416a-484b-a55b-76fd280709be" xlink:to="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_56e0c6d9-cb41-4bc1-8bb7-5bfecddde6c7" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_1641089d-66f6-41b0-900d-f810c3fb5ede" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_56e0c6d9-cb41-4bc1-8bb7-5bfecddde6c7" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_1641089d-66f6-41b0-900d-f810c3fb5ede" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_1641089d-66f6-41b0-900d-f810c3fb5ede_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AntidilutiveSecuritiesNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_1641089d-66f6-41b0-900d-f810c3fb5ede" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_1641089d-66f6-41b0-900d-f810c3fb5ede_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_96bc85e6-b993-44fc-9d73-846875579b51" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AntidilutiveSecuritiesNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_1641089d-66f6-41b0-900d-f810c3fb5ede" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_96bc85e6-b993-44fc-9d73-846875579b51" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockCompensationPlanMember_b33c6102-fd61-465b-ba41-bb9fd6fe00d3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockCompensationPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_96bc85e6-b993-44fc-9d73-846875579b51" xlink:to="loc_us-gaap_StockCompensationPlanMember_b33c6102-fd61-465b-ba41-bb9fd6fe00d3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_CommonStockIssuableUnderConvertibleDebtMember_c06fb909-b9d2-447d-a0de-83eca9416c72" xlink:href="bmrn-20230630.xsd#bmrn_CommonStockIssuableUnderConvertibleDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_96bc85e6-b993-44fc-9d73-846875579b51" xlink:to="loc_bmrn_CommonStockIssuableUnderConvertibleDebtMember_c06fb909-b9d2-447d-a0de-83eca9416c72" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/EARNINGSPERCOMMONSHAREScheduleOfAntiDilutiveCommonStockExcludedFromComputationofDilutedNetLossPerShareDetails" xlink:type="simple" xlink:href="bmrn-20230630.xsd#EARNINGSPERCOMMONSHAREScheduleOfAntiDilutiveCommonStockExcludedFromComputationofDilutedNetLossPerShareDetails"/>
  <link:definitionLink xlink:role="http://www.bmrn.com/role/EARNINGSPERCOMMONSHAREScheduleOfAntiDilutiveCommonStockExcludedFromComputationofDilutedNetLossPerShareDetails" xlink:type="extended" id="if367b1b169cb418e85c40a852e4b1e8c_EARNINGSPERCOMMONSHAREScheduleOfAntiDilutiveCommonStockExcludedFromComputationofDilutedNetLossPerShareDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_2a91ff2e-12aa-4153-90d0-6671c2ce91f5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_578e7046-36aa-4f63-af84-d2a5b20cf1d9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_2a91ff2e-12aa-4153-90d0-6671c2ce91f5" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_578e7046-36aa-4f63-af84-d2a5b20cf1d9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_DebtConversionConvertedInstrumentPotentialSharesIssued_4d7eeec8-a033-437b-9f1f-42088ee8f16d" xlink:href="bmrn-20230630.xsd#bmrn_DebtConversionConvertedInstrumentPotentialSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_2a91ff2e-12aa-4153-90d0-6671c2ce91f5" xlink:to="loc_bmrn_DebtConversionConvertedInstrumentPotentialSharesIssued_4d7eeec8-a033-437b-9f1f-42088ee8f16d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_e8b1d483-2b5e-4958-88aa-c820d3655b8d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_2a91ff2e-12aa-4153-90d0-6671c2ce91f5" xlink:to="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_e8b1d483-2b5e-4958-88aa-c820d3655b8d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_da28e41c-f3dd-4e4f-be02-45be2de29ff4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_e8b1d483-2b5e-4958-88aa-c820d3655b8d" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_da28e41c-f3dd-4e4f-be02-45be2de29ff4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_da28e41c-f3dd-4e4f-be02-45be2de29ff4_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AntidilutiveSecuritiesNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_da28e41c-f3dd-4e4f-be02-45be2de29ff4" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_da28e41c-f3dd-4e4f-be02-45be2de29ff4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_bd27fcda-3317-49c6-9465-cf5e6e5e1521" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AntidilutiveSecuritiesNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_da28e41c-f3dd-4e4f-be02-45be2de29ff4" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_bd27fcda-3317-49c6-9465-cf5e6e5e1521" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockCompensationPlanMember_47fb30d4-56a8-41c7-bf45-0b4254495081" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockCompensationPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_bd27fcda-3317-49c6-9465-cf5e6e5e1521" xlink:to="loc_us-gaap_StockCompensationPlanMember_47fb30d4-56a8-41c7-bf45-0b4254495081" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_CommonStockIssuableUnderConvertibleDebtMember_9a3c8538-87bb-49a6-abcd-9b5431b01dae" xlink:href="bmrn-20230630.xsd#bmrn_CommonStockIssuableUnderConvertibleDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_bd27fcda-3317-49c6-9465-cf5e6e5e1521" xlink:to="loc_bmrn_CommonStockIssuableUnderConvertibleDebtMember_9a3c8538-87bb-49a6-abcd-9b5431b01dae" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_7f4e748f-580e-40e6-9fe4-cf2784b42a33" 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_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_e8b1d483-2b5e-4958-88aa-c820d3655b8d" xlink:to="loc_us-gaap_DebtInstrumentAxis_7f4e748f-580e-40e6-9fe4-cf2784b42a33" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_7f4e748f-580e-40e6-9fe4-cf2784b42a33_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_7f4e748f-580e-40e6-9fe4-cf2784b42a33" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_7f4e748f-580e-40e6-9fe4-cf2784b42a33_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_d15a6fcc-0f8a-4f9e-86ec-ca012ea0f44e" 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_7f4e748f-580e-40e6-9fe4-cf2784b42a33" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_d15a6fcc-0f8a-4f9e-86ec-ca012ea0f44e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_ZeroPointFiveNineNinePercentSeniorSubordinatedConvertibleNotesDueInAugustTwoThousandTwentyFourMember_06b3d17c-85c1-4e03-b666-60e05ee256ae" xlink:href="bmrn-20230630.xsd#bmrn_ZeroPointFiveNineNinePercentSeniorSubordinatedConvertibleNotesDueInAugustTwoThousandTwentyFourMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_d15a6fcc-0f8a-4f9e-86ec-ca012ea0f44e" xlink:to="loc_bmrn_ZeroPointFiveNineNinePercentSeniorSubordinatedConvertibleNotesDueInAugustTwoThousandTwentyFourMember_06b3d17c-85c1-4e03-b666-60e05ee256ae" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_A125SeniorSubordinatedConvertibleNotesDueInMay2027Member_0fa8dbaa-5943-4cd4-a1e9-5cdf19b933fb" xlink:href="bmrn-20230630.xsd#bmrn_A125SeniorSubordinatedConvertibleNotesDueInMay2027Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_d15a6fcc-0f8a-4f9e-86ec-ca012ea0f44e" xlink:to="loc_bmrn_A125SeniorSubordinatedConvertibleNotesDueInMay2027Member_0fa8dbaa-5943-4cd4-a1e9-5cdf19b933fb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_54b614a9-a228-41c4-8338-7a900ef3b7a7" 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_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_e8b1d483-2b5e-4958-88aa-c820d3655b8d" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_54b614a9-a228-41c4-8338-7a900ef3b7a7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_54b614a9-a228-41c4-8338-7a900ef3b7a7_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_54b614a9-a228-41c4-8338-7a900ef3b7a7" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_54b614a9-a228-41c4-8338-7a900ef3b7a7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_29e88ba3-26e2-4e6b-9e41-71b40d733f54" 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_54b614a9-a228-41c4-8338-7a900ef3b7a7" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_29e88ba3-26e2-4e6b-9e41-71b40d733f54" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtMember_aca1a0ad-0506-4f16-8aba-b7ca0652061d" 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_29e88ba3-26e2-4e6b-9e41-71b40d733f54" xlink:to="loc_us-gaap_ConvertibleDebtMember_aca1a0ad-0506-4f16-8aba-b7ca0652061d" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/COMMITMENTSANDCONTINGENCIESAdditionalInformationDetails" xlink:type="simple" xlink:href="bmrn-20230630.xsd#COMMITMENTSANDCONTINGENCIESAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.bmrn.com/role/COMMITMENTSANDCONTINGENCIESAdditionalInformationDetails" xlink:type="extended" id="ic557828deda5477abff975d6663a7d69_COMMITMENTSANDCONTINGENCIESAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_CommitmentsAndContingenciesLineItems_5abb9fdc-4627-4ce0-9550-f9af51c4c62c" xlink:href="bmrn-20230630.xsd#bmrn_CommitmentsAndContingenciesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingencyEstimateOfPossibleLoss_41bae9c4-87eb-48aa-896d-18689e960b15" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LossContingencyEstimateOfPossibleLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrn_CommitmentsAndContingenciesLineItems_5abb9fdc-4627-4ce0-9550-f9af51c4c62c" xlink:to="loc_us-gaap_LossContingencyEstimateOfPossibleLoss_41bae9c4-87eb-48aa-896d-18689e960b15" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_ContingentPaymentsReasonablyPossibleUponAchievementOfCertainDevelopmentAndRegulatoryActivitiesCommercialSalesAndLicensingMilestones_49bdf719-9f26-4dc9-a43b-4b366a9acc70" xlink:href="bmrn-20230630.xsd#bmrn_ContingentPaymentsReasonablyPossibleUponAchievementOfCertainDevelopmentAndRegulatoryActivitiesCommercialSalesAndLicensingMilestones"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrn_CommitmentsAndContingenciesLineItems_5abb9fdc-4627-4ce0-9550-f9af51c4c62c" xlink:to="loc_bmrn_ContingentPaymentsReasonablyPossibleUponAchievementOfCertainDevelopmentAndRegulatoryActivitiesCommercialSalesAndLicensingMilestones_49bdf719-9f26-4dc9-a43b-4b366a9acc70" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligation_493e1e6f-0070-483a-87d0-7896a4601cff" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PurchaseObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrn_CommitmentsAndContingenciesLineItems_5abb9fdc-4627-4ce0-9550-f9af51c4c62c" xlink:to="loc_us-gaap_PurchaseObligation_493e1e6f-0070-483a-87d0-7896a4601cff" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationFutureMinimumPaymentsRemainderOfFiscalYear_95e33dd6-7990-45f3-88b7-a33bf83ab9f4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PurchaseObligationFutureMinimumPaymentsRemainderOfFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_bmrn_CommitmentsAndContingenciesLineItems_5abb9fdc-4627-4ce0-9550-f9af51c4c62c" xlink:to="loc_us-gaap_PurchaseObligationFutureMinimumPaymentsRemainderOfFiscalYear_95e33dd6-7990-45f3-88b7-a33bf83ab9f4" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_CommitmentsAndContingenciesTable_418be199-05c1-4006-a451-b29713aec10f" xlink:href="bmrn-20230630.xsd#bmrn_CommitmentsAndContingenciesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_bmrn_CommitmentsAndContingenciesLineItems_5abb9fdc-4627-4ce0-9550-f9af51c4c62c" xlink:to="loc_bmrn_CommitmentsAndContingenciesTable_418be199-05c1-4006-a451-b29713aec10f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_LitigationCaseAxis_78d9acf2-8394-4eab-b3bf-ecbe022be6ec" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_LitigationCaseAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_bmrn_CommitmentsAndContingenciesTable_418be199-05c1-4006-a451-b29713aec10f" xlink:to="loc_srt_LitigationCaseAxis_78d9acf2-8394-4eab-b3bf-ecbe022be6ec" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_LitigationCaseTypeDomain_78d9acf2-8394-4eab-b3bf-ecbe022be6ec_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_LitigationCaseTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_LitigationCaseAxis_78d9acf2-8394-4eab-b3bf-ecbe022be6ec" xlink:to="loc_srt_LitigationCaseTypeDomain_78d9acf2-8394-4eab-b3bf-ecbe022be6ec_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_LitigationCaseTypeDomain_f2a78b69-040d-46bf-ab36-701095714d96" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_LitigationCaseTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_LitigationCaseAxis_78d9acf2-8394-4eab-b3bf-ecbe022be6ec" xlink:to="loc_srt_LitigationCaseTypeDomain_f2a78b69-040d-46bf-ab36-701095714d96" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_ShareholderVsBioMarinPharmaceuticalIncMember_f0187243-48a8-4759-9608-64fb7ecf49f3" xlink:href="bmrn-20230630.xsd#bmrn_ShareholderVsBioMarinPharmaceuticalIncMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_LitigationCaseTypeDomain_f2a78b69-040d-46bf-ab36-701095714d96" xlink:to="loc_bmrn_ShareholderVsBioMarinPharmaceuticalIncMember_f0187243-48a8-4759-9608-64fb7ecf49f3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContingentConsiderationByTypeAxis_f1aa7ede-ff6d-4133-918e-3dea993fce22" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContingentConsiderationByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_bmrn_CommitmentsAndContingenciesTable_418be199-05c1-4006-a451-b29713aec10f" xlink:to="loc_us-gaap_ContingentConsiderationByTypeAxis_f1aa7ede-ff6d-4133-918e-3dea993fce22" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContingentConsiderationTypeDomain_f1aa7ede-ff6d-4133-918e-3dea993fce22_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContingentConsiderationTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ContingentConsiderationByTypeAxis_f1aa7ede-ff6d-4133-918e-3dea993fce22" xlink:to="loc_us-gaap_ContingentConsiderationTypeDomain_f1aa7ede-ff6d-4133-918e-3dea993fce22_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContingentConsiderationTypeDomain_6b0cfa6a-4bfd-48ca-a644-7bebf4558636" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContingentConsiderationTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ContingentConsiderationByTypeAxis_f1aa7ede-ff6d-4133-918e-3dea993fce22" xlink:to="loc_us-gaap_ContingentConsiderationTypeDomain_6b0cfa6a-4bfd-48ca-a644-7bebf4558636" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_EarlyStageDevelopmentProgramMember_94c48445-06d8-45b0-90fe-9d4c26aa53c7" xlink:href="bmrn-20230630.xsd#bmrn_EarlyStageDevelopmentProgramMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContingentConsiderationTypeDomain_6b0cfa6a-4bfd-48ca-a644-7bebf4558636" xlink:to="loc_bmrn_EarlyStageDevelopmentProgramMember_94c48445-06d8-45b0-90fe-9d4c26aa53c7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_81a9ccd5-2a6a-4718-a0f9-671fd3444c20" 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_bmrn_CommitmentsAndContingenciesTable_418be199-05c1-4006-a451-b29713aec10f" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_81a9ccd5-2a6a-4718-a0f9-671fd3444c20" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_81a9ccd5-2a6a-4718-a0f9-671fd3444c20_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_81a9ccd5-2a6a-4718-a0f9-671fd3444c20" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_81a9ccd5-2a6a-4718-a0f9-671fd3444c20_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_2678c1f2-0661-4541-8e1c-cff0b69b7650" 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_81a9ccd5-2a6a-4718-a0f9-671fd3444c20" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_2678c1f2-0661-4541-8e1c-cff0b69b7650" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_ThirdPartyMember_a21e609d-2d16-4f3e-90c1-9b3a30e83d3b" xlink:href="bmrn-20230630.xsd#bmrn_ThirdPartyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_2678c1f2-0661-4541-8e1c-cff0b69b7650" xlink:to="loc_bmrn_ThirdPartyMember_a21e609d-2d16-4f3e-90c1-9b3a30e83d3b" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://xbrl.sec.gov/ecd/role/IndividualsOnly" xlink:type="simple" xlink:href="https://xbrl.sec.gov/ecd/2023/ecd-2023.xsd#IndividualsOnly"/>
  <link:definitionLink xlink:role="http://xbrl.sec.gov/ecd/role/IndividualsOnly" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ecd_AllIndividualsMember" xlink:href="https://xbrl.sec.gov/ecd/2023/ecd-2023.xsd#ecd_AllIndividualsMember"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_JeffAjerMember_62472b81-005c-407f-ab6d-5f01faacb8a4" xlink:href="bmrn-20230630.xsd#bmrn_JeffAjerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ecd_AllIndividualsMember" xlink:to="loc_bmrn_JeffAjerMember_62472b81-005c-407f-ab6d-5f01faacb8a4" xlink:type="arc" order="2"/>
  </link:definitionLink>
</link:linkbase>
