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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2021 Workiva-->
<!--r:d53933b1-14bd-494b-8cce-8cba2979205d,g:20587bf3-b78b-44aa-91a6-858a00ef47ac-->
<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.ngmbio.com/role/Cover" xlink:type="simple" xlink:href="ngm-20210331.xsd#Cover"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/Cover" xlink:type="extended" id="i9ebd483d321247d5958dbe720fea0bfb_Cover"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="simple" xlink:href="ngm-20210331.xsd#CONDENSEDCONSOLIDATEDBALANCESHEETS"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="extended" id="iadad86c3684f46ecbf5e84f11344c910_CONDENSEDCONSOLIDATEDBALANCESHEETS"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical" xlink:type="simple" xlink:href="ngm-20210331.xsd#CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical" xlink:type="extended" id="idbaa586d00f943e8aaf49d0b47443f7a_CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="simple" xlink:href="ngm-20210331.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="extended" id="if076fdf957fe44e5b18bc6b14cb237b6_CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSS" xlink:type="simple" xlink:href="ngm-20210331.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSS"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSS" xlink:type="extended" id="i9e8a62ae6e7240119ff889cd1e376c93_CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSS"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY" xlink:type="simple" xlink:href="ngm-20210331.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY" xlink:type="extended" id="i0d822c40b50a496fb4d6faffdf5ffaa7_CONDENSEDCONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_a5dc93dd-30dd-4734-b6be-c10e025fb9c1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharesOutstanding_9f50120f-12f7-427a-8efa-af72b40e2022" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_a5dc93dd-30dd-4734-b6be-c10e025fb9c1" xlink:to="loc_us-gaap_SharesOutstanding_9f50120f-12f7-427a-8efa-af72b40e2022" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_d304016e-6d00-4e5b-a3f9-d496ebf29c08" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_a5dc93dd-30dd-4734-b6be-c10e025fb9c1" xlink:to="loc_us-gaap_StockholdersEquity_d304016e-6d00-4e5b-a3f9-d496ebf29c08" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueNewIssues_40b64573-aee4-4829-8833-81fe1a603f40" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueNewIssues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_a5dc93dd-30dd-4734-b6be-c10e025fb9c1" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueNewIssues_40b64573-aee4-4829-8833-81fe1a603f40" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_1d228e19-780a-4f22-8127-addfc32b61b0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesNewIssues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_a5dc93dd-30dd-4734-b6be-c10e025fb9c1" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_1d228e19-780a-4f22-8127-addfc32b61b0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_7d9a20c0-1910-402e-b633-75c2be0e45b0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_a5dc93dd-30dd-4734-b6be-c10e025fb9c1" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_7d9a20c0-1910-402e-b633-75c2be0e45b0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_e2fc2da1-9075-4b01-b23a-8367787ded8a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_a5dc93dd-30dd-4734-b6be-c10e025fb9c1" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_e2fc2da1-9075-4b01-b23a-8367787ded8a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_StockIssuedDuringPeriodSharesVestingOfEarlyExercisedStockOptions_c5b6239c-2f6d-47e9-9c89-1fb1d95fab87" xlink:href="ngm-20210331.xsd#ngm_StockIssuedDuringPeriodSharesVestingOfEarlyExercisedStockOptions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_a5dc93dd-30dd-4734-b6be-c10e025fb9c1" xlink:to="loc_ngm_StockIssuedDuringPeriodSharesVestingOfEarlyExercisedStockOptions_c5b6239c-2f6d-47e9-9c89-1fb1d95fab87" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_StockIssuedDuringPeriodValueVestingOfEarlyExercisedStockOptions_2a9ecd55-1006-4386-9b82-0e91b8e7009e" xlink:href="ngm-20210331.xsd#ngm_StockIssuedDuringPeriodValueVestingOfEarlyExercisedStockOptions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_a5dc93dd-30dd-4734-b6be-c10e025fb9c1" xlink:to="loc_ngm_StockIssuedDuringPeriodValueVestingOfEarlyExercisedStockOptions_2a9ecd55-1006-4386-9b82-0e91b8e7009e" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_ca2445bd-9dfa-458d-bec9-c1da94ab5e8e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_a5dc93dd-30dd-4734-b6be-c10e025fb9c1" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_ca2445bd-9dfa-458d-bec9-c1da94ab5e8e" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_0bb77efe-94f1-4d3e-96a5-b9322d3a376a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_a5dc93dd-30dd-4734-b6be-c10e025fb9c1" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_0bb77efe-94f1-4d3e-96a5-b9322d3a376a" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_fc12785d-3e09-4ee2-b000-8e69c88887e0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_a5dc93dd-30dd-4734-b6be-c10e025fb9c1" xlink:to="loc_us-gaap_NetIncomeLoss_fc12785d-3e09-4ee2-b000-8e69c88887e0" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharesOutstanding_b73b5031-4804-491f-975c-2f133941da50" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_321f54e9-72cb-4cb5-baca-ca50a36be716" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_9a98e636-e143-4fb4-8493-2fdaae050753" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_a5dc93dd-30dd-4734-b6be-c10e025fb9c1" xlink:to="loc_us-gaap_StatementTable_9a98e636-e143-4fb4-8493-2fdaae050753" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_72be09b6-2374-4931-b15e-4fea7a29fd06" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_9a98e636-e143-4fb4-8493-2fdaae050753" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_72be09b6-2374-4931-b15e-4fea7a29fd06" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_72be09b6-2374-4931-b15e-4fea7a29fd06_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_72be09b6-2374-4931-b15e-4fea7a29fd06" xlink:to="loc_us-gaap_EquityComponentDomain_72be09b6-2374-4931-b15e-4fea7a29fd06_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_42122767-ed26-460e-b37e-5c208c0fc984" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_72be09b6-2374-4931-b15e-4fea7a29fd06" xlink:to="loc_us-gaap_EquityComponentDomain_42122767-ed26-460e-b37e-5c208c0fc984" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_06ee443c-7885-4e57-8a6e-c96c37725d4e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_42122767-ed26-460e-b37e-5c208c0fc984" xlink:to="loc_us-gaap_CommonStockMember_06ee443c-7885-4e57-8a6e-c96c37725d4e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_d74c8581-115a-4390-a0de-1f9472428c9e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_42122767-ed26-460e-b37e-5c208c0fc984" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_d74c8581-115a-4390-a0de-1f9472428c9e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_0e1094b3-96aa-4958-8aac-40a35924938b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_42122767-ed26-460e-b37e-5c208c0fc984" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_0e1094b3-96aa-4958-8aac-40a35924938b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_297c2496-b4ef-4ec6-a007-8d06178d17e5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_42122767-ed26-460e-b37e-5c208c0fc984" xlink:to="loc_us-gaap_RetainedEarningsMember_297c2496-b4ef-4ec6-a007-8d06178d17e5" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="ngm-20210331.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="extended" id="i73a508ec930c43479f4f74e707e718d0_CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/OrganizationandDescriptionofBusiness" xlink:type="simple" xlink:href="ngm-20210331.xsd#OrganizationandDescriptionofBusiness"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/OrganizationandDescriptionofBusiness" xlink:type="extended" id="i8f860a21eb2d47f5bfb464826a778896_OrganizationandDescriptionofBusiness"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/SummaryofSignificantAccountingPolicies" xlink:type="simple" xlink:href="ngm-20210331.xsd#SummaryofSignificantAccountingPolicies"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/SummaryofSignificantAccountingPolicies" xlink:type="extended" id="i4ef5c2f7eda74cd3bc402887518dd068_SummaryofSignificantAccountingPolicies"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/SummaryofSignificantAccountingPoliciesPolicies" xlink:type="simple" xlink:href="ngm-20210331.xsd#SummaryofSignificantAccountingPoliciesPolicies"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/SummaryofSignificantAccountingPoliciesPolicies" xlink:type="extended" id="ie30c330c805944d89b3edd26c2a6835a_SummaryofSignificantAccountingPoliciesPolicies"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/SummaryofSignificantAccountingPoliciesTables" xlink:type="simple" xlink:href="ngm-20210331.xsd#SummaryofSignificantAccountingPoliciesTables"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/SummaryofSignificantAccountingPoliciesTables" xlink:type="extended" id="i60337326f4364ca7b2a3c82683fafff3_SummaryofSignificantAccountingPoliciesTables"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/SummaryofSignificantAccountingPoliciesNarrativeDetails" xlink:type="simple" xlink:href="ngm-20210331.xsd#SummaryofSignificantAccountingPoliciesNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/SummaryofSignificantAccountingPoliciesNarrativeDetails" xlink:type="extended" id="iedfc7855ca7e4112bac475034954921a_SummaryofSignificantAccountingPoliciesNarrativeDetails">
    <link:loc xlink:type="locator" xlink:label="loc_ngm_SummaryOfSignificantAccountingPoliciesLineItems_d455c041-5de0-4612-b212-30bcaff02f4c" xlink:href="ngm-20210331.xsd#ngm_SummaryOfSignificantAccountingPoliciesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_ff8e13ba-b049-47d3-b89a-946aef6e1d18" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ngm_SummaryOfSignificantAccountingPoliciesLineItems_d455c041-5de0-4612-b212-30bcaff02f4c" xlink:to="loc_us-gaap_NetIncomeLoss_ff8e13ba-b049-47d3-b89a-946aef6e1d18" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_35211504-4212-4f25-9be8-7da4afbc4474" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ngm_SummaryOfSignificantAccountingPoliciesLineItems_d455c041-5de0-4612-b212-30bcaff02f4c" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_35211504-4212-4f25-9be8-7da4afbc4474" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsAndShortTermInvestments_501c585c-f61c-41db-9050-2ab23b6bd1b7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashCashEquivalentsAndShortTermInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ngm_SummaryOfSignificantAccountingPoliciesLineItems_d455c041-5de0-4612-b212-30bcaff02f4c" xlink:to="loc_us-gaap_CashCashEquivalentsAndShortTermInvestments_501c585c-f61c-41db-9050-2ab23b6bd1b7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_6e5e5d34-53f4-4998-a217-2d744c10544b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesNewIssues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ngm_SummaryOfSignificantAccountingPoliciesLineItems_d455c041-5de0-4612-b212-30bcaff02f4c" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_6e5e5d34-53f4-4998-a217-2d744c10544b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharePrice_c83e2138-3e55-4dcd-9d32-f3bea84f8d84" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SharePrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ngm_SummaryOfSignificantAccountingPoliciesLineItems_d455c041-5de0-4612-b212-30bcaff02f4c" xlink:to="loc_us-gaap_SharePrice_c83e2138-3e55-4dcd-9d32-f3bea84f8d84" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleOfStockConsiderationReceivedOnTransaction_1f5deb93-4089-4fe6-851b-f85e1d550979" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SaleOfStockConsiderationReceivedOnTransaction"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ngm_SummaryOfSignificantAccountingPoliciesLineItems_d455c041-5de0-4612-b212-30bcaff02f4c" xlink:to="loc_us-gaap_SaleOfStockConsiderationReceivedOnTransaction_1f5deb93-4089-4fe6-851b-f85e1d550979" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_c6bf8348-8562-4667-9f4b-e5dcfb328b89" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskPercentage1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ngm_SummaryOfSignificantAccountingPoliciesLineItems_d455c041-5de0-4612-b212-30bcaff02f4c" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_c6bf8348-8562-4667-9f4b-e5dcfb328b89" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NumberOfOperatingSegments_41ea076b-7491-4b5c-85b6-55c8207a2e6f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NumberOfOperatingSegments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ngm_SummaryOfSignificantAccountingPoliciesLineItems_d455c041-5de0-4612-b212-30bcaff02f4c" xlink:to="loc_us-gaap_NumberOfOperatingSegments_41ea076b-7491-4b5c-85b6-55c8207a2e6f" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_SaleOfStockCommonStockAvailableForIssuance_d04cc5dd-2622-43d2-9b2b-8c6699aaa6ed" xlink:href="ngm-20210331.xsd#ngm_SaleOfStockCommonStockAvailableForIssuance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ngm_SummaryOfSignificantAccountingPoliciesLineItems_d455c041-5de0-4612-b212-30bcaff02f4c" xlink:to="loc_ngm_SaleOfStockCommonStockAvailableForIssuance_d04cc5dd-2622-43d2-9b2b-8c6699aaa6ed" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_SummaryOfSignificantAccountingPoliciesTable_b42711a0-8004-4a6f-bf93-0e7fc56076ad" xlink:href="ngm-20210331.xsd#ngm_SummaryOfSignificantAccountingPoliciesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ngm_SummaryOfSignificantAccountingPoliciesLineItems_d455c041-5de0-4612-b212-30bcaff02f4c" xlink:to="loc_ngm_SummaryOfSignificantAccountingPoliciesTable_b42711a0-8004-4a6f-bf93-0e7fc56076ad" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsidiarySaleOfStockAxis_32e357d3-ddfe-49f1-b523-b79f621c3169" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsidiarySaleOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ngm_SummaryOfSignificantAccountingPoliciesTable_b42711a0-8004-4a6f-bf93-0e7fc56076ad" xlink:to="loc_us-gaap_SubsidiarySaleOfStockAxis_32e357d3-ddfe-49f1-b523-b79f621c3169" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleOfStockNameOfTransactionDomain_32e357d3-ddfe-49f1-b523-b79f621c3169_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SaleOfStockNameOfTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsidiarySaleOfStockAxis_32e357d3-ddfe-49f1-b523-b79f621c3169" xlink:to="loc_us-gaap_SaleOfStockNameOfTransactionDomain_32e357d3-ddfe-49f1-b523-b79f621c3169_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleOfStockNameOfTransactionDomain_dfbca1c0-421e-49a7-a230-f0f502e61cd3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SaleOfStockNameOfTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsidiarySaleOfStockAxis_32e357d3-ddfe-49f1-b523-b79f621c3169" xlink:to="loc_us-gaap_SaleOfStockNameOfTransactionDomain_dfbca1c0-421e-49a7-a230-f0f502e61cd3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_PublicStockOfferingMember_414cf361-ce4d-4788-a528-7dd53cd267e9" xlink:href="ngm-20210331.xsd#ngm_PublicStockOfferingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleOfStockNameOfTransactionDomain_dfbca1c0-421e-49a7-a230-f0f502e61cd3" xlink:to="loc_ngm_PublicStockOfferingMember_414cf361-ce4d-4788-a528-7dd53cd267e9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MajorCustomersAxis_eff25bf0-b3a6-4d7a-80c5-733b5c39fc75" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MajorCustomersAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ngm_SummaryOfSignificantAccountingPoliciesTable_b42711a0-8004-4a6f-bf93-0e7fc56076ad" xlink:to="loc_srt_MajorCustomersAxis_eff25bf0-b3a6-4d7a-80c5-733b5c39fc75" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_eff25bf0-b3a6-4d7a-80c5-733b5c39fc75_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MajorCustomersAxis_eff25bf0-b3a6-4d7a-80c5-733b5c39fc75" xlink:to="loc_srt_NameOfMajorCustomerDomain_eff25bf0-b3a6-4d7a-80c5-733b5c39fc75_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_2012aee6-62ed-4f7d-9643-4c706a892303" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MajorCustomersAxis_eff25bf0-b3a6-4d7a-80c5-733b5c39fc75" xlink:to="loc_srt_NameOfMajorCustomerDomain_2012aee6-62ed-4f7d-9643-4c706a892303" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_MerckMember_9cb20e66-6ec1-4d40-acd4-e90bbf50ffb6" xlink:href="ngm-20210331.xsd#ngm_MerckMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_2012aee6-62ed-4f7d-9643-4c706a892303" xlink:to="loc_ngm_MerckMember_9cb20e66-6ec1-4d40-acd4-e90bbf50ffb6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_9d558b1f-8bb0-4bde-9557-9bb4f1c01ced" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ngm_SummaryOfSignificantAccountingPoliciesTable_b42711a0-8004-4a6f-bf93-0e7fc56076ad" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_9d558b1f-8bb0-4bde-9557-9bb4f1c01ced" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_9d558b1f-8bb0-4bde-9557-9bb4f1c01ced_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_9d558b1f-8bb0-4bde-9557-9bb4f1c01ced" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_9d558b1f-8bb0-4bde-9557-9bb4f1c01ced_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_d58315c2-f5a1-461d-953c-7ecc6d97a774" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_9d558b1f-8bb0-4bde-9557-9bb4f1c01ced" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_d58315c2-f5a1-461d-953c-7ecc6d97a774" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SalesRevenueNetMember_7129b263-e616-4dbb-a357-2053b9c807fb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SalesRevenueNetMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_d58315c2-f5a1-461d-953c-7ecc6d97a774" xlink:to="loc_us-gaap_SalesRevenueNetMember_7129b263-e616-4dbb-a357-2053b9c807fb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_7bbf5399-5faa-48e8-a8f6-2249354a5457" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ngm_SummaryOfSignificantAccountingPoliciesTable_b42711a0-8004-4a6f-bf93-0e7fc56076ad" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_7bbf5399-5faa-48e8-a8f6-2249354a5457" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_7bbf5399-5faa-48e8-a8f6-2249354a5457_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_7bbf5399-5faa-48e8-a8f6-2249354a5457" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_7bbf5399-5faa-48e8-a8f6-2249354a5457_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_f1d799c8-445f-4ae8-82f1-c313acd4dc21" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_7bbf5399-5faa-48e8-a8f6-2249354a5457" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_f1d799c8-445f-4ae8-82f1-c313acd4dc21" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerConcentrationRiskMember_97f4d24d-2b4d-43e6-bf50-4c61e3de0f03" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CustomerConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_f1d799c8-445f-4ae8-82f1-c313acd4dc21" xlink:to="loc_us-gaap_CustomerConcentrationRiskMember_97f4d24d-2b4d-43e6-bf50-4c61e3de0f03" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/SummaryofSignificantAccountingPoliciesEstimatedUsefulLifeofAssetDetails" xlink:type="simple" xlink:href="ngm-20210331.xsd#SummaryofSignificantAccountingPoliciesEstimatedUsefulLifeofAssetDetails"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/SummaryofSignificantAccountingPoliciesEstimatedUsefulLifeofAssetDetails" xlink:type="extended" id="i70418a6675264d38a5cf0abc8d85fce3_SummaryofSignificantAccountingPoliciesEstimatedUsefulLifeofAssetDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_c169a454-878c-4ce9-8a7d-02c6a6d6cf78" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_8095dbf2-5f86-4016-a4f0-cd7e496ef6a8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentUsefulLife"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_c169a454-878c-4ce9-8a7d-02c6a6d6cf78" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_8095dbf2-5f86-4016-a4f0-cd7e496ef6a8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_c1b5c3f5-17c6-4bc2-af2b-691183b6017b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_c169a454-878c-4ce9-8a7d-02c6a6d6cf78" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_c1b5c3f5-17c6-4bc2-af2b-691183b6017b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_99ca1b6f-a871-4735-ace9-ff5321565ec0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_c1b5c3f5-17c6-4bc2-af2b-691183b6017b" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_99ca1b6f-a871-4735-ace9-ff5321565ec0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_99ca1b6f-a871-4735-ace9-ff5321565ec0_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_99ca1b6f-a871-4735-ace9-ff5321565ec0" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_99ca1b6f-a871-4735-ace9-ff5321565ec0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_ea6856f0-f195-475e-89ad-cf134f3168db" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_99ca1b6f-a871-4735-ace9-ff5321565ec0" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_ea6856f0-f195-475e-89ad-cf134f3168db" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComputerEquipmentMember_795fd3bd-bc98-45a3-a7e4-b0db3449b96f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ComputerEquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_ea6856f0-f195-475e-89ad-cf134f3168db" xlink:to="loc_us-gaap_ComputerEquipmentMember_795fd3bd-bc98-45a3-a7e4-b0db3449b96f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_LaboratoryEquipmentAndOfficeFurnitureMember_43885a5b-eecd-43a7-b011-d7bf50a93f81" xlink:href="ngm-20210331.xsd#ngm_LaboratoryEquipmentAndOfficeFurnitureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_ea6856f0-f195-475e-89ad-cf134f3168db" xlink:to="loc_ngm_LaboratoryEquipmentAndOfficeFurnitureMember_43885a5b-eecd-43a7-b011-d7bf50a93f81" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/SummaryofSignificantAccountingPoliciesComputationofNetLossPerCommonShareDetails" xlink:type="simple" xlink:href="ngm-20210331.xsd#SummaryofSignificantAccountingPoliciesComputationofNetLossPerCommonShareDetails"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/SummaryofSignificantAccountingPoliciesComputationofNetLossPerCommonShareDetails" xlink:type="extended" id="ib7f0f74feac645fe8a7bd9d3d03765b3_SummaryofSignificantAccountingPoliciesComputationofNetLossPerCommonShareDetails"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/SummaryofSignificantAccountingPoliciesPotentiallyDilutiveSecuritiesNotIncludedintheDilutedNetLossPerShareCalculationsDetails" xlink:type="simple" xlink:href="ngm-20210331.xsd#SummaryofSignificantAccountingPoliciesPotentiallyDilutiveSecuritiesNotIncludedintheDilutedNetLossPerShareCalculationsDetails"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/SummaryofSignificantAccountingPoliciesPotentiallyDilutiveSecuritiesNotIncludedintheDilutedNetLossPerShareCalculationsDetails" xlink:type="extended" id="i659eed07bd474556b486264b0aab26cf_SummaryofSignificantAccountingPoliciesPotentiallyDilutiveSecuritiesNotIncludedintheDilutedNetLossPerShareCalculationsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_f7f7b8a4-f528-4cf8-b911-492b046a78db" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_66205673-b550-4c3c-950c-f69490b2cc13" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_f7f7b8a4-f528-4cf8-b911-492b046a78db" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_66205673-b550-4c3c-950c-f69490b2cc13" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_4873dfcc-62be-4769-80ab-e64320fec455" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_f7f7b8a4-f528-4cf8-b911-492b046a78db" xlink:to="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_4873dfcc-62be-4769-80ab-e64320fec455" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_5eac9413-ccca-4535-8342-0d8203f5e480" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_4873dfcc-62be-4769-80ab-e64320fec455" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_5eac9413-ccca-4535-8342-0d8203f5e480" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_5eac9413-ccca-4535-8342-0d8203f5e480_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_5eac9413-ccca-4535-8342-0d8203f5e480" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_5eac9413-ccca-4535-8342-0d8203f5e480_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_ede42a11-1896-4999-a708-be9b6f0d93f4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_5eac9413-ccca-4535-8342-0d8203f5e480" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_ede42a11-1896-4999-a708-be9b6f0d93f4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_OptionsToPurchaseCommonStockMember_28fdda9e-11f4-4090-9475-04811494747c" xlink:href="ngm-20210331.xsd#ngm_OptionsToPurchaseCommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_ede42a11-1896-4999-a708-be9b6f0d93f4" xlink:to="loc_ngm_OptionsToPurchaseCommonStockMember_28fdda9e-11f4-4090-9475-04811494747c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockCompensationPlanMember_b81d72ba-3d45-4555-a933-679afa54eee4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockCompensationPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_ede42a11-1896-4999-a708-be9b6f0d93f4" xlink:to="loc_us-gaap_StockCompensationPlanMember_b81d72ba-3d45-4555-a933-679afa54eee4" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/FairValueMeasurements" xlink:type="simple" xlink:href="ngm-20210331.xsd#FairValueMeasurements"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/FairValueMeasurements" xlink:type="extended" id="i4d0484ac9e66466f81a523e8e8ae8e7d_FairValueMeasurements"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/FairValueMeasurementsTables" xlink:type="simple" xlink:href="ngm-20210331.xsd#FairValueMeasurementsTables"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/FairValueMeasurementsTables" xlink:type="extended" id="ifca50643131c49558b3f3f0e65afccba_FairValueMeasurementsTables"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/FairValueMeasurementsSummaryofCashandCashEquivalentsandMarketableSecuritiesClassifiedasAvailableforsaleSecuritiesDetails" xlink:type="simple" xlink:href="ngm-20210331.xsd#FairValueMeasurementsSummaryofCashandCashEquivalentsandMarketableSecuritiesClassifiedasAvailableforsaleSecuritiesDetails"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/FairValueMeasurementsSummaryofCashandCashEquivalentsandMarketableSecuritiesClassifiedasAvailableforsaleSecuritiesDetails" xlink:type="extended" id="iab02a58acf6148eeb84b744fd6859f5a_FairValueMeasurementsSummaryofCashandCashEquivalentsandMarketableSecuritiesClassifiedasAvailableforsaleSecuritiesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_60634a1b-090a-43ea-a9bd-2e89b74d96f9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_10782ede-069b-4da8-b443-019990e4e965" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_60634a1b-090a-43ea-a9bd-2e89b74d96f9" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_10782ede-069b-4da8-b443-019990e4e965" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_8e663e29-827a-4551-98c8-f08639386f0b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_60634a1b-090a-43ea-a9bd-2e89b74d96f9" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_8e663e29-827a-4551-98c8-f08639386f0b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_753ba1a5-df2d-42c7-a2a4-5560f714ccb5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_60634a1b-090a-43ea-a9bd-2e89b74d96f9" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_753ba1a5-df2d-42c7-a2a4-5560f714ccb5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_8093450b-df65-4620-9a2d-cacc75941e1f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_60634a1b-090a-43ea-a9bd-2e89b74d96f9" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_8093450b-df65-4620-9a2d-cacc75941e1f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_d549d7ec-eb60-4bda-a571-6e26d9c1d96a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_60634a1b-090a-43ea-a9bd-2e89b74d96f9" xlink:to="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_d549d7ec-eb60-4bda-a571-6e26d9c1d96a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_feb9d845-dbe5-4b1f-8666-f608cbbf41e4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_d549d7ec-eb60-4bda-a571-6e26d9c1d96a" xlink:to="loc_us-gaap_FinancialInstrumentAxis_feb9d845-dbe5-4b1f-8666-f608cbbf41e4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_feb9d845-dbe5-4b1f-8666-f608cbbf41e4_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_feb9d845-dbe5-4b1f-8666-f608cbbf41e4" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_feb9d845-dbe5-4b1f-8666-f608cbbf41e4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_adc4519a-4bac-49c7-b3fc-1a182be9547e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_feb9d845-dbe5-4b1f-8666-f608cbbf41e4" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_adc4519a-4bac-49c7-b3fc-1a182be9547e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MoneyMarketFundsMember_57e629d5-2aba-4b2e-9be6-46ea5d329006" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MoneyMarketFundsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_adc4519a-4bac-49c7-b3fc-1a182be9547e" xlink:to="loc_us-gaap_MoneyMarketFundsMember_57e629d5-2aba-4b2e-9be6-46ea5d329006" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_760394f5-ea39-481a-b13a-9a892f8cbfee" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_USGovernmentAgenciesDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_adc4519a-4bac-49c7-b3fc-1a182be9547e" xlink:to="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_760394f5-ea39-481a-b13a-9a892f8cbfee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPaperMember_aedf086c-39aa-41e7-8881-a307b02bca24" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommercialPaperMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_adc4519a-4bac-49c7-b3fc-1a182be9547e" xlink:to="loc_us-gaap_CommercialPaperMember_aedf086c-39aa-41e7-8881-a307b02bca24" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateBondSecuritiesMember_00273505-4a74-48f9-94dc-ac747eed229c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CorporateBondSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_adc4519a-4bac-49c7-b3fc-1a182be9547e" xlink:to="loc_us-gaap_CorporateBondSecuritiesMember_00273505-4a74-48f9-94dc-ac747eed229c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsMember_7c9e68eb-f415-43d6-ab24-48f31430ac10" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashAndCashEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_adc4519a-4bac-49c7-b3fc-1a182be9547e" xlink:to="loc_us-gaap_CashAndCashEquivalentsMember_7c9e68eb-f415-43d6-ab24-48f31430ac10" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermInvestmentsMember_6ac3f694-5b1b-4239-b922-424bda5dd2f0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShortTermInvestmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_adc4519a-4bac-49c7-b3fc-1a182be9547e" xlink:to="loc_us-gaap_ShortTermInvestmentsMember_6ac3f694-5b1b-4239-b922-424bda5dd2f0" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/FairValueMeasurementsNarrativeDetails" xlink:type="simple" xlink:href="ngm-20210331.xsd#FairValueMeasurementsNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/FairValueMeasurementsNarrativeDetails" xlink:type="extended" id="ie4eef95928254a28b25256d065ec6a70_FairValueMeasurementsNarrativeDetails"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/FairValueMeasurementsSummaryofAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails" xlink:type="simple" xlink:href="ngm-20210331.xsd#FairValueMeasurementsSummaryofAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/FairValueMeasurementsSummaryofAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails" xlink:type="extended" id="i682d529027c04b07aa81443af7463f2f_FairValueMeasurementsSummaryofAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_7aca6813-b788-4c02-8447-1d25cd7936cc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosureAbstract_864eff61-c94b-4727-a502-c9b72a547623" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsFairValueDisclosureAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_7aca6813-b788-4c02-8447-1d25cd7936cc" xlink:to="loc_us-gaap_AssetsFairValueDisclosureAbstract_864eff61-c94b-4727-a502-c9b72a547623" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_8d0fb088-820f-4972-b1b0-f5984b1cde78" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsFairValueDisclosureAbstract_864eff61-c94b-4727-a502-c9b72a547623" xlink:to="loc_us-gaap_AssetsFairValueDisclosure_8d0fb088-820f-4972-b1b0-f5984b1cde78" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_531a8835-4297-4fe7-8ee7-f664be3ba647" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_7aca6813-b788-4c02-8447-1d25cd7936cc" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_531a8835-4297-4fe7-8ee7-f664be3ba647" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_d1891482-cf25-4bda-81ce-a7cc8c6b6773" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueByMeasurementFrequencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_531a8835-4297-4fe7-8ee7-f664be3ba647" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_d1891482-cf25-4bda-81ce-a7cc8c6b6773" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_d1891482-cf25-4bda-81ce-a7cc8c6b6773_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_d1891482-cf25-4bda-81ce-a7cc8c6b6773" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_d1891482-cf25-4bda-81ce-a7cc8c6b6773_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_20599b3c-6e90-4ed5-b7f8-cb98dadf643a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_d1891482-cf25-4bda-81ce-a7cc8c6b6773" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_20599b3c-6e90-4ed5-b7f8-cb98dadf643a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_2da2faca-84d5-44ae-92f7-e5efa0d7191f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementsRecurringMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_20599b3c-6e90-4ed5-b7f8-cb98dadf643a" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_2da2faca-84d5-44ae-92f7-e5efa0d7191f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByAssetClassAxis_e0affd7e-be01-4b61-8610-b429c9a99c29" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueByAssetClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_531a8835-4297-4fe7-8ee7-f664be3ba647" xlink:to="loc_us-gaap_FairValueByAssetClassAxis_e0affd7e-be01-4b61-8610-b429c9a99c29" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_e0affd7e-be01-4b61-8610-b429c9a99c29_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_e0affd7e-be01-4b61-8610-b429c9a99c29" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_e0affd7e-be01-4b61-8610-b429c9a99c29_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_ba2f2ce7-edb7-4940-8d01-92750f5ddeab" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_e0affd7e-be01-4b61-8610-b429c9a99c29" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_ba2f2ce7-edb7-4940-8d01-92750f5ddeab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MoneyMarketFundsMember_ca70301d-a062-463e-8bbb-9d51e2dbd396" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MoneyMarketFundsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_ba2f2ce7-edb7-4940-8d01-92750f5ddeab" xlink:to="loc_us-gaap_MoneyMarketFundsMember_ca70301d-a062-463e-8bbb-9d51e2dbd396" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_e1cb3c0c-3314-44c6-81ac-0cf47e8230ec" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_USGovernmentAgenciesDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_ba2f2ce7-edb7-4940-8d01-92750f5ddeab" xlink:to="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_e1cb3c0c-3314-44c6-81ac-0cf47e8230ec" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPaperMember_e55ac513-1192-4f26-b389-70cf0520cede" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommercialPaperMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_ba2f2ce7-edb7-4940-8d01-92750f5ddeab" xlink:to="loc_us-gaap_CommercialPaperMember_e55ac513-1192-4f26-b389-70cf0520cede" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_2a6d2cd0-bc44-4d2f-be24-3711913b821c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CorporateDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_ba2f2ce7-edb7-4940-8d01-92750f5ddeab" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_2a6d2cd0-bc44-4d2f-be24-3711913b821c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_43f6a0fb-a096-4307-9443-13419e9784e5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_531a8835-4297-4fe7-8ee7-f664be3ba647" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_43f6a0fb-a096-4307-9443-13419e9784e5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_43f6a0fb-a096-4307-9443-13419e9784e5_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_43f6a0fb-a096-4307-9443-13419e9784e5" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_43f6a0fb-a096-4307-9443-13419e9784e5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_4086802d-7837-4fcb-b8bd-8aee5d683f86" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_43f6a0fb-a096-4307-9443-13419e9784e5" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_4086802d-7837-4fcb-b8bd-8aee5d683f86" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_5a5fd850-eb2e-49e2-8632-d8660689594e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_4086802d-7837-4fcb-b8bd-8aee5d683f86" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_5a5fd850-eb2e-49e2-8632-d8660689594e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_9b26c493-5828-4e72-9bbd-dd86c418a8c4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_4086802d-7837-4fcb-b8bd-8aee5d683f86" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_9b26c493-5828-4e72-9bbd-dd86c418a8c4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_19c6dd1e-3c0b-4dd6-b98b-15eb9a4f9dfe" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_4086802d-7837-4fcb-b8bd-8aee5d683f86" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_19c6dd1e-3c0b-4dd6-b98b-15eb9a4f9dfe" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/BalanceSheetComponents" xlink:type="simple" xlink:href="ngm-20210331.xsd#BalanceSheetComponents"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/BalanceSheetComponents" xlink:type="extended" id="i496e4efc27bd42dcbda042f62bb279fe_BalanceSheetComponents"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/BalanceSheetComponentsTables" xlink:type="simple" xlink:href="ngm-20210331.xsd#BalanceSheetComponentsTables"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/BalanceSheetComponentsTables" xlink:type="extended" id="i3ce0a5df261a42d58e4ed2b8e2c54fc8_BalanceSheetComponentsTables"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/BalanceSheetComponentsScheduleofReconciliationofCashCashEquivalentandRestrictedCashDetails" xlink:type="simple" xlink:href="ngm-20210331.xsd#BalanceSheetComponentsScheduleofReconciliationofCashCashEquivalentandRestrictedCashDetails"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/BalanceSheetComponentsScheduleofReconciliationofCashCashEquivalentandRestrictedCashDetails" xlink:type="extended" id="i7004201bde604bebaf436fe160e23e7c_BalanceSheetComponentsScheduleofReconciliationofCashCashEquivalentandRestrictedCashDetails"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/BalanceSheetComponentsScheduleofPropertyandEquipmentDetails" xlink:type="simple" xlink:href="ngm-20210331.xsd#BalanceSheetComponentsScheduleofPropertyandEquipmentDetails"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/BalanceSheetComponentsScheduleofPropertyandEquipmentDetails" xlink:type="extended" id="ic27e3faa0ef445fa9649a88a513ab939_BalanceSheetComponentsScheduleofPropertyandEquipmentDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_526cea8d-4d97-4710-ad5e-08a490a5cdbe" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_6273334d-4ed8-4b70-acfd-29c474fce422" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_526cea8d-4d97-4710-ad5e-08a490a5cdbe" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_6273334d-4ed8-4b70-acfd-29c474fce422" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_c045bffe-aad8-4df9-85d6-c81f0a78d837" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_526cea8d-4d97-4710-ad5e-08a490a5cdbe" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_c045bffe-aad8-4df9-85d6-c81f0a78d837" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_697cbacc-1e22-4b1c-916f-9ad7cb0bfb6a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_526cea8d-4d97-4710-ad5e-08a490a5cdbe" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_697cbacc-1e22-4b1c-916f-9ad7cb0bfb6a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_b5f807e1-bd82-4a75-8ec9-40f33989b72d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_526cea8d-4d97-4710-ad5e-08a490a5cdbe" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_b5f807e1-bd82-4a75-8ec9-40f33989b72d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_5e29425d-6659-4602-9302-ca8b2a0cfcc7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_b5f807e1-bd82-4a75-8ec9-40f33989b72d" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_5e29425d-6659-4602-9302-ca8b2a0cfcc7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_5e29425d-6659-4602-9302-ca8b2a0cfcc7_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_5e29425d-6659-4602-9302-ca8b2a0cfcc7" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_5e29425d-6659-4602-9302-ca8b2a0cfcc7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_9e9b63a3-3176-44f6-a4d1-cea992d0f015" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_5e29425d-6659-4602-9302-ca8b2a0cfcc7" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_9e9b63a3-3176-44f6-a4d1-cea992d0f015" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseholdImprovementsMember_72e0a6d4-d162-4363-b3d0-26ca17d21488" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LeaseholdImprovementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_9e9b63a3-3176-44f6-a4d1-cea992d0f015" xlink:to="loc_us-gaap_LeaseholdImprovementsMember_72e0a6d4-d162-4363-b3d0-26ca17d21488" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_LaboratoryEquipmentAndOfficeFurnitureMember_5fe3f8c9-9c2a-4f00-8b29-4012ce87a9b3" xlink:href="ngm-20210331.xsd#ngm_LaboratoryEquipmentAndOfficeFurnitureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_9e9b63a3-3176-44f6-a4d1-cea992d0f015" xlink:to="loc_ngm_LaboratoryEquipmentAndOfficeFurnitureMember_5fe3f8c9-9c2a-4f00-8b29-4012ce87a9b3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComputerEquipmentMember_b1ef904a-0fe5-444c-94b1-6dea0496fdaa" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ComputerEquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_9e9b63a3-3176-44f6-a4d1-cea992d0f015" xlink:to="loc_us-gaap_ComputerEquipmentMember_b1ef904a-0fe5-444c-94b1-6dea0496fdaa" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConstructionInProgressMember_3cb4c239-ea98-4f25-b416-5b00ceb6cbda" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConstructionInProgressMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_9e9b63a3-3176-44f6-a4d1-cea992d0f015" xlink:to="loc_us-gaap_ConstructionInProgressMember_3cb4c239-ea98-4f25-b416-5b00ceb6cbda" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/BalanceSheetComponentsNarrativeDetails" xlink:type="simple" xlink:href="ngm-20210331.xsd#BalanceSheetComponentsNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/BalanceSheetComponentsNarrativeDetails" xlink:type="extended" id="i15bea779a0ae4e7e8856458a868f0351_BalanceSheetComponentsNarrativeDetails"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/BalanceSheetComponentsScheduleofAccruedLiabilitiesDetails" xlink:type="simple" xlink:href="ngm-20210331.xsd#BalanceSheetComponentsScheduleofAccruedLiabilitiesDetails"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/BalanceSheetComponentsScheduleofAccruedLiabilitiesDetails" xlink:type="extended" id="iaa13510fcc454343be42e9563e6a7c50_BalanceSheetComponentsScheduleofAccruedLiabilitiesDetails"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/ResearchCollaborationandLicenseAgreements" xlink:type="simple" xlink:href="ngm-20210331.xsd#ResearchCollaborationandLicenseAgreements"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/ResearchCollaborationandLicenseAgreements" xlink:type="extended" id="i4018c7e953c64a00879e40a0ef8020e5_ResearchCollaborationandLicenseAgreements"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/ResearchCollaborationandLicenseAgreementsTables" xlink:type="simple" xlink:href="ngm-20210331.xsd#ResearchCollaborationandLicenseAgreementsTables"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/ResearchCollaborationandLicenseAgreementsTables" xlink:type="extended" id="i8e84a1c220a04a218074626d466c871f_ResearchCollaborationandLicenseAgreementsTables"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/ResearchCollaborationandLicenseAgreementsNarrativeDetails" xlink:type="simple" xlink:href="ngm-20210331.xsd#ResearchCollaborationandLicenseAgreementsNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/ResearchCollaborationandLicenseAgreementsNarrativeDetails" xlink:type="extended" id="i4c897a6b545c411e854d4178ae66eedc_ResearchCollaborationandLicenseAgreementsNarrativeDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_1fb6e098-8869-4b6e-9747-a85cd55bcd23" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_CollaborativeArrangementUpFrontPaymentReceived_3165fae0-a2c0-48c6-b334-0bfd88166432" xlink:href="ngm-20210331.xsd#ngm_CollaborativeArrangementUpFrontPaymentReceived"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_1fb6e098-8869-4b6e-9747-a85cd55bcd23" xlink:to="loc_ngm_CollaborativeArrangementUpFrontPaymentReceived_3165fae0-a2c0-48c6-b334-0bfd88166432" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfConvertiblePreferredStock_e915b747-6992-4f32-81a9-3ebaa4b0d70a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromIssuanceOfConvertiblePreferredStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_1fb6e098-8869-4b6e-9747-a85cd55bcd23" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfConvertiblePreferredStock_e915b747-6992-4f32-81a9-3ebaa4b0d70a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_FairValueOfAssetsAndServicesExchangedAllocatedToEquityComponent_f010360e-2fd6-4bab-98fc-6432898c61d0" xlink:href="ngm-20210331.xsd#ngm_FairValueOfAssetsAndServicesExchangedAllocatedToEquityComponent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_1fb6e098-8869-4b6e-9747-a85cd55bcd23" xlink:to="loc_ngm_FairValueOfAssetsAndServicesExchangedAllocatedToEquityComponent_f010360e-2fd6-4bab-98fc-6432898c61d0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_FairValueOfAssetsAndServicesExchangedAllocatedToRevenueComponent_05a9da5c-c34c-49c0-a153-ea0036e29e98" xlink:href="ngm-20210331.xsd#ngm_FairValueOfAssetsAndServicesExchangedAllocatedToRevenueComponent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_1fb6e098-8869-4b6e-9747-a85cd55bcd23" xlink:to="loc_ngm_FairValueOfAssetsAndServicesExchangedAllocatedToRevenueComponent_05a9da5c-c34c-49c0-a153-ea0036e29e98" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_ResearchAndDevelopmentServicePerformancePeriod_3f87a464-c28e-4549-a5fc-a7bc1c980c51" xlink:href="ngm-20210331.xsd#ngm_ResearchAndDevelopmentServicePerformancePeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_1fb6e098-8869-4b6e-9747-a85cd55bcd23" xlink:to="loc_ngm_ResearchAndDevelopmentServicePerformancePeriod_3f87a464-c28e-4549-a5fc-a7bc1c980c51" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_NumberOfOptionsToExtendPerformanceOfResearchProgram_9d61ec20-1f4e-449e-bb21-8787fca1fa3b" xlink:href="ngm-20210331.xsd#ngm_NumberOfOptionsToExtendPerformanceOfResearchProgram"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_1fb6e098-8869-4b6e-9747-a85cd55bcd23" xlink:to="loc_ngm_NumberOfOptionsToExtendPerformanceOfResearchProgram_9d61ec20-1f4e-449e-bb21-8787fca1fa3b" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_ResearchAndDevelopmentOptionExtendTerm_f3d001dd-1748-410d-a578-b19d91ac749e" xlink:href="ngm-20210331.xsd#ngm_ResearchAndDevelopmentOptionExtendTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_1fb6e098-8869-4b6e-9747-a85cd55bcd23" xlink:to="loc_ngm_ResearchAndDevelopmentOptionExtendTerm_f3d001dd-1748-410d-a578-b19d91ac749e" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_ResearchCollaborationAndLicenseAgreementsExtensionFee_11bf783b-e0d0-42ce-ad38-6ed88cf4c4df" xlink:href="ngm-20210331.xsd#ngm_ResearchCollaborationAndLicenseAgreementsExtensionFee"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_1fb6e098-8869-4b6e-9747-a85cd55bcd23" xlink:to="loc_ngm_ResearchCollaborationAndLicenseAgreementsExtensionFee_11bf783b-e0d0-42ce-ad38-6ed88cf4c4df" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_AmountOfFundReceivedForResearchActivities_8efda2d7-93b9-4feb-ac51-b38fdbf9a5fc" xlink:href="ngm-20210331.xsd#ngm_AmountOfFundReceivedForResearchActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_1fb6e098-8869-4b6e-9747-a85cd55bcd23" xlink:to="loc_ngm_AmountOfFundReceivedForResearchActivities_8efda2d7-93b9-4feb-ac51-b38fdbf9a5fc" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_AmountOfAdditionalFundReceivedForResearchActivities_d02a79dd-b57c-47b3-aecb-526de17f34b9" xlink:href="ngm-20210331.xsd#ngm_AmountOfAdditionalFundReceivedForResearchActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_1fb6e098-8869-4b6e-9747-a85cd55bcd23" xlink:to="loc_ngm_AmountOfAdditionalFundReceivedForResearchActivities_d02a79dd-b57c-47b3-aecb-526de17f34b9" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_UpfrontLicenseFee_aa74a37b-0295-4381-98cc-1001fd3d4747" xlink:href="ngm-20210331.xsd#ngm_UpfrontLicenseFee"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_1fb6e098-8869-4b6e-9747-a85cd55bcd23" xlink:to="loc_ngm_UpfrontLicenseFee_aa74a37b-0295-4381-98cc-1001fd3d4747" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_MilestonePaymentForPotentialAchievementOfCertainClinicalDevelopmentEventsAndCertainRegulatoryEvents_6735447e-01b7-4182-ae1f-2c7447224004" xlink:href="ngm-20210331.xsd#ngm_MilestonePaymentForPotentialAchievementOfCertainClinicalDevelopmentEventsAndCertainRegulatoryEvents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_1fb6e098-8869-4b6e-9747-a85cd55bcd23" xlink:to="loc_ngm_MilestonePaymentForPotentialAchievementOfCertainClinicalDevelopmentEventsAndCertainRegulatoryEvents_6735447e-01b7-4182-ae1f-2c7447224004" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_EligibleMilestonePaymentsReceivable_7f1eb31c-a457-4799-8a70-75e55172bd06" xlink:href="ngm-20210331.xsd#ngm_EligibleMilestonePaymentsReceivable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_1fb6e098-8869-4b6e-9747-a85cd55bcd23" xlink:to="loc_ngm_EligibleMilestonePaymentsReceivable_7f1eb31c-a457-4799-8a70-75e55172bd06" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_f7354f39-4b7f-49f1-bcc1-4864cfc1bde7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_1fb6e098-8869-4b6e-9747-a85cd55bcd23" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_f7354f39-4b7f-49f1-bcc1-4864cfc1bde7" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_32276f51-712a-4098-ac89-25a2a72ac38b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_1fb6e098-8869-4b6e-9747-a85cd55bcd23" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_32276f51-712a-4098-ac89-25a2a72ac38b" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_CollaborativeArrangementAnnualFundingAmountOverAgreementTerm_98618e8c-cc5f-4ddc-adca-1b120223b8ee" xlink:href="ngm-20210331.xsd#ngm_CollaborativeArrangementAnnualFundingAmountOverAgreementTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_1fb6e098-8869-4b6e-9747-a85cd55bcd23" xlink:to="loc_ngm_CollaborativeArrangementAnnualFundingAmountOverAgreementTerm_98618e8c-cc5f-4ddc-adca-1b120223b8ee" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction_0de7933d-54e5-4888-96c3-7bf2708b600a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_1fb6e098-8869-4b6e-9747-a85cd55bcd23" xlink:to="loc_us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction_0de7933d-54e5-4888-96c3-7bf2708b600a" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleOfStockPricePerShare_aedc3cb8-77a0-43d7-a8a6-7b958a2f1fc8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SaleOfStockPricePerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_1fb6e098-8869-4b6e-9747-a85cd55bcd23" xlink:to="loc_us-gaap_SaleOfStockPricePerShare_aedc3cb8-77a0-43d7-a8a6-7b958a2f1fc8" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_PercentageOfCommonStockSharesOutstandingOwnedByRelatedParty_23dc4e12-4cae-49ef-8483-d79612650b4c" xlink:href="ngm-20210331.xsd#ngm_PercentageOfCommonStockSharesOutstandingOwnedByRelatedParty"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_1fb6e098-8869-4b6e-9747-a85cd55bcd23" xlink:to="loc_ngm_PercentageOfCommonStockSharesOutstandingOwnedByRelatedParty_23dc4e12-4cae-49ef-8483-d79612650b4c" xlink:type="arc" order="18"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromRelatedParties_bbbe45a6-e9c5-4fec-bc9b-07ab57b6ed91" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueFromRelatedParties"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_1fb6e098-8869-4b6e-9747-a85cd55bcd23" xlink:to="loc_us-gaap_RevenueFromRelatedParties_bbbe45a6-e9c5-4fec-bc9b-07ab57b6ed91" xlink:type="arc" order="19"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerAssetNetCurrent_839776ef-2973-4830-901c-5750cafdbfa1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ContractWithCustomerAssetNetCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_1fb6e098-8869-4b6e-9747-a85cd55bcd23" xlink:to="loc_us-gaap_ContractWithCustomerAssetNetCurrent_839776ef-2973-4830-901c-5750cafdbfa1" xlink:type="arc" order="20"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiability_b28c00a5-b766-4563-ae5e-77c932862134" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ContractWithCustomerLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_1fb6e098-8869-4b6e-9747-a85cd55bcd23" xlink:to="loc_us-gaap_ContractWithCustomerLiability_b28c00a5-b766-4563-ae5e-77c932862134" xlink:type="arc" order="21"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfCollaborativeArrangementsAndNoncollaborativeArrangementTransactionsTable_bfd8420f-c244-484e-b618-c1edc56dac75" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfCollaborativeArrangementsAndNoncollaborativeArrangementTransactionsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_1fb6e098-8869-4b6e-9747-a85cd55bcd23" xlink:to="loc_us-gaap_ScheduleOfCollaborativeArrangementsAndNoncollaborativeArrangementTransactionsTable_bfd8420f-c244-484e-b618-c1edc56dac75" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfArrangementAxis_0650cbfc-4cad-4c7f-a438-6043d8cdaf66" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TypeOfArrangementAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfCollaborativeArrangementsAndNoncollaborativeArrangementTransactionsTable_bfd8420f-c244-484e-b618-c1edc56dac75" xlink:to="loc_us-gaap_TypeOfArrangementAxis_0650cbfc-4cad-4c7f-a438-6043d8cdaf66" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_0650cbfc-4cad-4c7f-a438-6043d8cdaf66_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TypeOfArrangementAxis_0650cbfc-4cad-4c7f-a438-6043d8cdaf66" xlink:to="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_0650cbfc-4cad-4c7f-a438-6043d8cdaf66_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_554d3125-8270-439c-b9f8-61d8a9e52d06" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TypeOfArrangementAxis_0650cbfc-4cad-4c7f-a438-6043d8cdaf66" xlink:to="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_554d3125-8270-439c-b9f8-61d8a9e52d06" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollaborativeArrangementMember_000e56fa-bf07-4af9-b883-43b24428e5d1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CollaborativeArrangementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_554d3125-8270-439c-b9f8-61d8a9e52d06" xlink:to="loc_us-gaap_CollaborativeArrangementMember_000e56fa-bf07-4af9-b883-43b24428e5d1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsidiarySaleOfStockAxis_970a9cb5-5c0a-4c45-8ef7-a37919fb3115" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsidiarySaleOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfCollaborativeArrangementsAndNoncollaborativeArrangementTransactionsTable_bfd8420f-c244-484e-b618-c1edc56dac75" xlink:to="loc_us-gaap_SubsidiarySaleOfStockAxis_970a9cb5-5c0a-4c45-8ef7-a37919fb3115" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleOfStockNameOfTransactionDomain_970a9cb5-5c0a-4c45-8ef7-a37919fb3115_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SaleOfStockNameOfTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsidiarySaleOfStockAxis_970a9cb5-5c0a-4c45-8ef7-a37919fb3115" xlink:to="loc_us-gaap_SaleOfStockNameOfTransactionDomain_970a9cb5-5c0a-4c45-8ef7-a37919fb3115_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleOfStockNameOfTransactionDomain_5920dfe2-ad62-41c4-a49e-8244f955767f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SaleOfStockNameOfTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsidiarySaleOfStockAxis_970a9cb5-5c0a-4c45-8ef7-a37919fb3115" xlink:to="loc_us-gaap_SaleOfStockNameOfTransactionDomain_5920dfe2-ad62-41c4-a49e-8244f955767f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrivatePlacementMember_b90dc419-9e73-4358-a870-fa82fa802968" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PrivatePlacementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleOfStockNameOfTransactionDomain_5920dfe2-ad62-41c4-a49e-8244f955767f" xlink:to="loc_us-gaap_PrivatePlacementMember_b90dc419-9e73-4358-a870-fa82fa802968" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CounterpartyNameAxis_125a089f-3d5f-4bbb-9678-28089823313c" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_CounterpartyNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfCollaborativeArrangementsAndNoncollaborativeArrangementTransactionsTable_bfd8420f-c244-484e-b618-c1edc56dac75" xlink:to="loc_srt_CounterpartyNameAxis_125a089f-3d5f-4bbb-9678-28089823313c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RepurchaseAgreementCounterpartyNameDomain_125a089f-3d5f-4bbb-9678-28089823313c_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CounterpartyNameAxis_125a089f-3d5f-4bbb-9678-28089823313c" xlink:to="loc_srt_RepurchaseAgreementCounterpartyNameDomain_125a089f-3d5f-4bbb-9678-28089823313c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RepurchaseAgreementCounterpartyNameDomain_895c7b30-dbc6-4b7b-9dc6-fb29e432a621" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CounterpartyNameAxis_125a089f-3d5f-4bbb-9678-28089823313c" xlink:to="loc_srt_RepurchaseAgreementCounterpartyNameDomain_895c7b30-dbc6-4b7b-9dc6-fb29e432a621" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_MerckSharpAndDohmeCorporationMember_3f672356-4e39-42d6-9777-d1923b682da3" xlink:href="ngm-20210331.xsd#ngm_MerckSharpAndDohmeCorporationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RepurchaseAgreementCounterpartyNameDomain_895c7b30-dbc6-4b7b-9dc6-fb29e432a621" xlink:to="loc_ngm_MerckSharpAndDohmeCorporationMember_3f672356-4e39-42d6-9777-d1923b682da3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementScenarioAxis_5ef97a30-325d-4817-970c-10ad871446f5" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_StatementScenarioAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfCollaborativeArrangementsAndNoncollaborativeArrangementTransactionsTable_bfd8420f-c244-484e-b618-c1edc56dac75" xlink:to="loc_srt_StatementScenarioAxis_5ef97a30-325d-4817-970c-10ad871446f5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioUnspecifiedDomain_5ef97a30-325d-4817-970c-10ad871446f5_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ScenarioUnspecifiedDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementScenarioAxis_5ef97a30-325d-4817-970c-10ad871446f5" xlink:to="loc_srt_ScenarioUnspecifiedDomain_5ef97a30-325d-4817-970c-10ad871446f5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioUnspecifiedDomain_be4e4ca1-7389-4d42-a96b-2b69b03e88fb" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ScenarioUnspecifiedDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementScenarioAxis_5ef97a30-325d-4817-970c-10ad871446f5" xlink:to="loc_srt_ScenarioUnspecifiedDomain_be4e4ca1-7389-4d42-a96b-2b69b03e88fb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioForecastMember_fe129866-7a32-40ae-8c1a-b13270540077" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ScenarioForecastMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ScenarioUnspecifiedDomain_be4e4ca1-7389-4d42-a96b-2b69b03e88fb" xlink:to="loc_srt_ScenarioForecastMember_fe129866-7a32-40ae-8c1a-b13270540077" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_a80d4403-491c-4e8a-9166-1dc4b7ea067d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfCollaborativeArrangementsAndNoncollaborativeArrangementTransactionsTable_bfd8420f-c244-484e-b618-c1edc56dac75" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_a80d4403-491c-4e8a-9166-1dc4b7ea067d" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_a80d4403-491c-4e8a-9166-1dc4b7ea067d_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_a80d4403-491c-4e8a-9166-1dc4b7ea067d" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_a80d4403-491c-4e8a-9166-1dc4b7ea067d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_5f00858c-d005-46b1-9382-071bf456d026" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_a80d4403-491c-4e8a-9166-1dc4b7ea067d" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_5f00858c-d005-46b1-9382-071bf456d026" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventMember_a99e3b96-371d-46dc-9d5c-ede28eba5ce2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_5f00858c-d005-46b1-9382-071bf456d026" xlink:to="loc_us-gaap_SubsequentEventMember_a99e3b96-371d-46dc-9d5c-ede28eba5ce2" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/ResearchCollaborationandLicenseAgreementsScheduleofMilestonePaymentsbyIndicationsDetails" xlink:type="simple" xlink:href="ngm-20210331.xsd#ResearchCollaborationandLicenseAgreementsScheduleofMilestonePaymentsbyIndicationsDetails"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/ResearchCollaborationandLicenseAgreementsScheduleofMilestonePaymentsbyIndicationsDetails" xlink:type="extended" id="if80ea888a90c4e99a06161a12e397dcb_ResearchCollaborationandLicenseAgreementsScheduleofMilestonePaymentsbyIndicationsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_5357a721-eaed-4ede-9c8c-28a40c903662" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_MilestonePaymentForPotentialAchievementOfCertainClinicalDevelopmentEvents_fdc019ab-8b28-4225-89fb-1b1e3fb7b5ca" xlink:href="ngm-20210331.xsd#ngm_MilestonePaymentForPotentialAchievementOfCertainClinicalDevelopmentEvents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_5357a721-eaed-4ede-9c8c-28a40c903662" xlink:to="loc_ngm_MilestonePaymentForPotentialAchievementOfCertainClinicalDevelopmentEvents_fdc019ab-8b28-4225-89fb-1b1e3fb7b5ca" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_MilestonePaymentForPotentialAchievementOfCertainRegulatoryEvents_8ba68eba-2674-487f-9f80-416e578a8e7c" xlink:href="ngm-20210331.xsd#ngm_MilestonePaymentForPotentialAchievementOfCertainRegulatoryEvents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_5357a721-eaed-4ede-9c8c-28a40c903662" xlink:to="loc_ngm_MilestonePaymentForPotentialAchievementOfCertainRegulatoryEvents_8ba68eba-2674-487f-9f80-416e578a8e7c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfCollaborativeArrangementsAndNoncollaborativeArrangementTransactionsTable_4349673c-0544-4ed3-8274-94dc0c129dcf" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfCollaborativeArrangementsAndNoncollaborativeArrangementTransactionsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_5357a721-eaed-4ede-9c8c-28a40c903662" xlink:to="loc_us-gaap_ScheduleOfCollaborativeArrangementsAndNoncollaborativeArrangementTransactionsTable_4349673c-0544-4ed3-8274-94dc0c129dcf" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfArrangementAxis_7681b664-d100-47f9-b317-36db8465c6f6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TypeOfArrangementAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfCollaborativeArrangementsAndNoncollaborativeArrangementTransactionsTable_4349673c-0544-4ed3-8274-94dc0c129dcf" xlink:to="loc_us-gaap_TypeOfArrangementAxis_7681b664-d100-47f9-b317-36db8465c6f6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_7681b664-d100-47f9-b317-36db8465c6f6_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TypeOfArrangementAxis_7681b664-d100-47f9-b317-36db8465c6f6" xlink:to="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_7681b664-d100-47f9-b317-36db8465c6f6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_643bd269-7937-4d66-a0be-8e4c590e9a98" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TypeOfArrangementAxis_7681b664-d100-47f9-b317-36db8465c6f6" xlink:to="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_643bd269-7937-4d66-a0be-8e4c590e9a98" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollaborativeArrangementMember_82cd30e8-a854-4a70-8b5b-bb166e95cda4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CollaborativeArrangementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_643bd269-7937-4d66-a0be-8e4c590e9a98" xlink:to="loc_us-gaap_CollaborativeArrangementMember_82cd30e8-a854-4a70-8b5b-bb166e95cda4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalizedContractCostAxis_8b9bd67b-882c-49c8-b199-c22dfc4abc9a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CapitalizedContractCostAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfCollaborativeArrangementsAndNoncollaborativeArrangementTransactionsTable_4349673c-0544-4ed3-8274-94dc0c129dcf" xlink:to="loc_us-gaap_CapitalizedContractCostAxis_8b9bd67b-882c-49c8-b199-c22dfc4abc9a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalizedContractCostDomain_8b9bd67b-882c-49c8-b199-c22dfc4abc9a_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CapitalizedContractCostDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CapitalizedContractCostAxis_8b9bd67b-882c-49c8-b199-c22dfc4abc9a" xlink:to="loc_us-gaap_CapitalizedContractCostDomain_8b9bd67b-882c-49c8-b199-c22dfc4abc9a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalizedContractCostDomain_c79897ea-f952-4f09-84cd-338a05ee73ae" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CapitalizedContractCostDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CapitalizedContractCostAxis_8b9bd67b-882c-49c8-b199-c22dfc4abc9a" xlink:to="loc_us-gaap_CapitalizedContractCostDomain_c79897ea-f952-4f09-84cd-338a05ee73ae" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_FirstIndicationMember_deb0d410-3e33-4c1a-9616-114daa00161c" xlink:href="ngm-20210331.xsd#ngm_FirstIndicationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CapitalizedContractCostDomain_c79897ea-f952-4f09-84cd-338a05ee73ae" xlink:to="loc_ngm_FirstIndicationMember_deb0d410-3e33-4c1a-9616-114daa00161c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_SecondIndicationMember_de2cc0bf-85c9-48e7-832c-5e3ca476fe6b" xlink:href="ngm-20210331.xsd#ngm_SecondIndicationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CapitalizedContractCostDomain_c79897ea-f952-4f09-84cd-338a05ee73ae" xlink:to="loc_ngm_SecondIndicationMember_de2cc0bf-85c9-48e7-832c-5e3ca476fe6b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_ThirdIndicationMember_5bce2664-bdf6-4bff-a6a1-32a15f634ecb" xlink:href="ngm-20210331.xsd#ngm_ThirdIndicationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CapitalizedContractCostDomain_c79897ea-f952-4f09-84cd-338a05ee73ae" xlink:to="loc_ngm_ThirdIndicationMember_5bce2664-bdf6-4bff-a6a1-32a15f634ecb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_ec50eb60-dc26-4ee9-93e6-70e09a46f114" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfCollaborativeArrangementsAndNoncollaborativeArrangementTransactionsTable_4349673c-0544-4ed3-8274-94dc0c129dcf" xlink:to="loc_srt_StatementGeographicalAxis_ec50eb60-dc26-4ee9-93e6-70e09a46f114" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_ec50eb60-dc26-4ee9-93e6-70e09a46f114_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_ec50eb60-dc26-4ee9-93e6-70e09a46f114" xlink:to="loc_srt_SegmentGeographicalDomain_ec50eb60-dc26-4ee9-93e6-70e09a46f114_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_2cf600e7-5b81-4f16-9c10-5ac5b5afd3ae" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_ec50eb60-dc26-4ee9-93e6-70e09a46f114" xlink:to="loc_srt_SegmentGeographicalDomain_2cf600e7-5b81-4f16-9c10-5ac5b5afd3ae" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_US_6a81dbc5-5388-46fd-8982-dfe83c43766c" xlink:href="https://xbrl.sec.gov/country/2020/country-2020-01-31.xsd#country_US"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_2cf600e7-5b81-4f16-9c10-5ac5b5afd3ae" xlink:to="loc_country_US_6a81dbc5-5388-46fd-8982-dfe83c43766c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EuropeanUnionMember_03c00046-b22d-4b57-8359-07faf7742e27" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EuropeanUnionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_2cf600e7-5b81-4f16-9c10-5ac5b5afd3ae" xlink:to="loc_us-gaap_EuropeanUnionMember_03c00046-b22d-4b57-8359-07faf7742e27" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_JP_b6c2d2e2-9482-4f9b-92c1-dbac89a4c70b" xlink:href="https://xbrl.sec.gov/country/2020/country-2020-01-31.xsd#country_JP"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_2cf600e7-5b81-4f16-9c10-5ac5b5afd3ae" xlink:to="loc_country_JP_b6c2d2e2-9482-4f9b-92c1-dbac89a4c70b" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/ResearchCollaborationandLicenseAgreementsScheduleofRecognizedRevenuefromCollaborationandLicenseAgreementsDetails" xlink:type="simple" xlink:href="ngm-20210331.xsd#ResearchCollaborationandLicenseAgreementsScheduleofRecognizedRevenuefromCollaborationandLicenseAgreementsDetails"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/ResearchCollaborationandLicenseAgreementsScheduleofRecognizedRevenuefromCollaborationandLicenseAgreementsDetails" xlink:type="extended" id="i2971ae8497e04c64bec1ca06edb66f5b_ResearchCollaborationandLicenseAgreementsScheduleofRecognizedRevenuefromCollaborationandLicenseAgreementsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_ce063b45-c04d-4b61-b73f-edf2a170fc2c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromRelatedParties_f32792f2-dde4-4a38-a3cb-5e1c5ab45e01" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueFromRelatedParties"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_ce063b45-c04d-4b61-b73f-edf2a170fc2c" xlink:to="loc_us-gaap_RevenueFromRelatedParties_f32792f2-dde4-4a38-a3cb-5e1c5ab45e01" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfCollaborativeArrangementsAndNoncollaborativeArrangementTransactionsTable_11189774-584c-4f0f-8ee3-57d21f9a5cbd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfCollaborativeArrangementsAndNoncollaborativeArrangementTransactionsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_ce063b45-c04d-4b61-b73f-edf2a170fc2c" xlink:to="loc_us-gaap_ScheduleOfCollaborativeArrangementsAndNoncollaborativeArrangementTransactionsTable_11189774-584c-4f0f-8ee3-57d21f9a5cbd" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfArrangementAxis_6dae4898-25fb-4b2c-9943-e0265744b735" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TypeOfArrangementAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfCollaborativeArrangementsAndNoncollaborativeArrangementTransactionsTable_11189774-584c-4f0f-8ee3-57d21f9a5cbd" xlink:to="loc_us-gaap_TypeOfArrangementAxis_6dae4898-25fb-4b2c-9943-e0265744b735" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_6dae4898-25fb-4b2c-9943-e0265744b735_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TypeOfArrangementAxis_6dae4898-25fb-4b2c-9943-e0265744b735" xlink:to="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_6dae4898-25fb-4b2c-9943-e0265744b735_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_05624963-0550-4e9f-90ba-bc9c2725c663" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TypeOfArrangementAxis_6dae4898-25fb-4b2c-9943-e0265744b735" xlink:to="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_05624963-0550-4e9f-90ba-bc9c2725c663" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollaborativeArrangementMember_ece4f5b3-7840-4328-b7ef-2ea4949caccc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CollaborativeArrangementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ArrangementsAndNonarrangementTransactionsMember_05624963-0550-4e9f-90ba-bc9c2725c663" xlink:to="loc_us-gaap_CollaborativeArrangementMember_ece4f5b3-7840-4328-b7ef-2ea4949caccc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionAxis_763d8540-edda-4b7b-a5c8-e29427ad28f1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyTransactionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfCollaborativeArrangementsAndNoncollaborativeArrangementTransactionsTable_11189774-584c-4f0f-8ee3-57d21f9a5cbd" xlink:to="loc_us-gaap_RelatedPartyTransactionAxis_763d8540-edda-4b7b-a5c8-e29427ad28f1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_763d8540-edda-4b7b-a5c8-e29427ad28f1_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_763d8540-edda-4b7b-a5c8-e29427ad28f1" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_763d8540-edda-4b7b-a5c8-e29427ad28f1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_094ea173-435b-455c-af3c-2df6710dc81d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_763d8540-edda-4b7b-a5c8-e29427ad28f1" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_094ea173-435b-455c-af3c-2df6710dc81d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_MerckSharpAndDohmeCorporationMember_4d36cc81-af70-4b50-af6e-26347f2af6f7" xlink:href="ngm-20210331.xsd#ngm_MerckSharpAndDohmeCorporationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_094ea173-435b-455c-af3c-2df6710dc81d" xlink:to="loc_ngm_MerckSharpAndDohmeCorporationMember_4d36cc81-af70-4b50-af6e-26347f2af6f7" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CommitmentsandContingencies" xlink:type="simple" xlink:href="ngm-20210331.xsd#CommitmentsandContingencies"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/CommitmentsandContingencies" xlink:type="extended" id="i337fec77caee44d580b457e731d61234_CommitmentsandContingencies"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CommitmentsandContingenciesTables" xlink:type="simple" xlink:href="ngm-20210331.xsd#CommitmentsandContingenciesTables"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/CommitmentsandContingenciesTables" xlink:type="extended" id="ib6164b88abc14bbda73a01145d4f7124_CommitmentsandContingenciesTables"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CommitmentsandContingenciesNarrativeDetails" xlink:type="simple" xlink:href="ngm-20210331.xsd#CommitmentsandContingenciesNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/CommitmentsandContingenciesNarrativeDetails" xlink:type="extended" id="i6f541a4ea0264d53a16c57db26efb6db_CommitmentsandContingenciesNarrativeDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeasedAssetsLineItems_83cadc89-cc89-47c6-9b08-9b69b0f4cb92" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeasedAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AreaOfRealEstateProperty_f1a064a3-a5e9-4b51-aa9e-ecc7fa50dc9e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AreaOfRealEstateProperty"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLeasedAssetsLineItems_83cadc89-cc89-47c6-9b08-9b69b0f4cb92" xlink:to="loc_us-gaap_AreaOfRealEstateProperty_f1a064a3-a5e9-4b51-aa9e-ecc7fa50dc9e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TenantImprovements_d777f366-8b04-4f2f-a52f-e4eddf35f89f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TenantImprovements"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLeasedAssetsLineItems_83cadc89-cc89-47c6-9b08-9b69b0f4cb92" xlink:to="loc_us-gaap_TenantImprovements_d777f366-8b04-4f2f-a52f-e4eddf35f89f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_c7486e39-93a7-4d1a-8758-c245c0850f02" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLeasedAssetsLineItems_83cadc89-cc89-47c6-9b08-9b69b0f4cb92" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_c7486e39-93a7-4d1a-8758-c245c0850f02" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseTermOfContract_4c58e228-9fc4-452c-a9a6-b5181eaa5c06" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LesseeOperatingLeaseTermOfContract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLeasedAssetsLineItems_83cadc89-cc89-47c6-9b08-9b69b0f4cb92" xlink:to="loc_us-gaap_LesseeOperatingLeaseTermOfContract_4c58e228-9fc4-452c-a9a6-b5181eaa5c06" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecurityDeposit_ce602087-1d95-4663-9cd8-5378a3537023" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SecurityDeposit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLeasedAssetsLineItems_83cadc89-cc89-47c6-9b08-9b69b0f4cb92" xlink:to="loc_us-gaap_SecurityDeposit_ce602087-1d95-4663-9cd8-5378a3537023" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_ReductionInSecurityDeposit_35b38e6f-6781-4cce-92fd-c7bdd462e2fb" xlink:href="ngm-20210331.xsd#ngm_ReductionInSecurityDeposit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLeasedAssetsLineItems_83cadc89-cc89-47c6-9b08-9b69b0f4cb92" xlink:to="loc_ngm_ReductionInSecurityDeposit_35b38e6f-6781-4cce-92fd-c7bdd462e2fb" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeasesRentExpenseNet_e0666407-5c64-46cb-a329-568b46b56be4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeasesRentExpenseNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLeasedAssetsLineItems_83cadc89-cc89-47c6-9b08-9b69b0f4cb92" xlink:to="loc_us-gaap_OperatingLeasesRentExpenseNet_e0666407-5c64-46cb-a329-568b46b56be4" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertySubjectToOrAvailableForOperatingLeaseByMajorPropertyClassTable_16b6b1a3-ac34-4cfb-8df3-a4bf326db0df" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertySubjectToOrAvailableForOperatingLeaseByMajorPropertyClassTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_OperatingLeasedAssetsLineItems_83cadc89-cc89-47c6-9b08-9b69b0f4cb92" xlink:to="loc_us-gaap_PropertySubjectToOrAvailableForOperatingLeaseByMajorPropertyClassTable_16b6b1a3-ac34-4cfb-8df3-a4bf326db0df" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_400ff1ff-e8f7-4747-bbe1-27d69b8b3801" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_PropertySubjectToOrAvailableForOperatingLeaseByMajorPropertyClassTable_16b6b1a3-ac34-4cfb-8df3-a4bf326db0df" xlink:to="loc_us-gaap_CreditFacilityAxis_400ff1ff-e8f7-4747-bbe1-27d69b8b3801" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_400ff1ff-e8f7-4747-bbe1-27d69b8b3801_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_400ff1ff-e8f7-4747-bbe1-27d69b8b3801" xlink:to="loc_us-gaap_CreditFacilityDomain_400ff1ff-e8f7-4747-bbe1-27d69b8b3801_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_126f0326-bdde-4880-99b0-37537766604e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_400ff1ff-e8f7-4747-bbe1-27d69b8b3801" xlink:to="loc_us-gaap_CreditFacilityDomain_126f0326-bdde-4880-99b0-37537766604e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LetterOfCreditMember_b310b335-1e86-48a1-ba1c-8e1a6e90c4b2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LetterOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_126f0326-bdde-4880-99b0-37537766604e" xlink:to="loc_us-gaap_LetterOfCreditMember_b310b335-1e86-48a1-ba1c-8e1a6e90c4b2" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CommitmentsandContingenciesFutureMinimumCommitmentsunderUnassignedLeaseObligationsDetails" xlink:type="simple" xlink:href="ngm-20210331.xsd#CommitmentsandContingenciesFutureMinimumCommitmentsunderUnassignedLeaseObligationsDetails"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/CommitmentsandContingenciesFutureMinimumCommitmentsunderUnassignedLeaseObligationsDetails" xlink:type="extended" id="i5b4d8b3ff490441c8579b1d8abe575b2_CommitmentsandContingenciesFutureMinimumCommitmentsunderUnassignedLeaseObligationsDetails"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/StockholdersEquity" xlink:type="simple" xlink:href="ngm-20210331.xsd#StockholdersEquity"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/StockholdersEquity" xlink:type="extended" id="i937b6fb07a9948988cee948dcc853b08_StockholdersEquity"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/StockholdersEquityTables" xlink:type="simple" xlink:href="ngm-20210331.xsd#StockholdersEquityTables"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/StockholdersEquityTables" xlink:type="extended" id="ic46377bee4f64e26aff879d71e51e0f6_StockholdersEquityTables"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/StockholdersEquityNarrativeDetails" xlink:type="simple" xlink:href="ngm-20210331.xsd#StockholdersEquityNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/StockholdersEquityNarrativeDetails" xlink:type="extended" id="ib2781614fcb34beb96bf5ae414669ce9_StockholdersEquityNarrativeDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockLineItems_73793d67-48d4-496c-8af5-b60e9fa29f1e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockSharesAuthorized_40d6c9b6-4c49-4308-9f7e-8fae9c681300" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PreferredStockSharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_73793d67-48d4-496c-8af5-b60e9fa29f1e" xlink:to="loc_us-gaap_PreferredStockSharesAuthorized_40d6c9b6-4c49-4308-9f7e-8fae9c681300" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_1e71a3e2-b196-47aa-a38f-51e09124f490" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesNewIssues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_73793d67-48d4-496c-8af5-b60e9fa29f1e" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_1e71a3e2-b196-47aa-a38f-51e09124f490" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharePrice_973af111-66d7-4bab-92fe-0f5949bd7115" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SharePrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_73793d67-48d4-496c-8af5-b60e9fa29f1e" xlink:to="loc_us-gaap_SharePrice_973af111-66d7-4bab-92fe-0f5949bd7115" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleOfStockConsiderationReceivedOnTransaction_d55bdabb-2630-4586-b8de-027c37ba238d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SaleOfStockConsiderationReceivedOnTransaction"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_73793d67-48d4-496c-8af5-b60e9fa29f1e" xlink:to="loc_us-gaap_SaleOfStockConsiderationReceivedOnTransaction_d55bdabb-2630-4586-b8de-027c37ba238d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_87fdb3eb-de51-45cf-9626-3fe06c8bf4ac" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_73793d67-48d4-496c-8af5-b60e9fa29f1e" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_87fdb3eb-de51-45cf-9626-3fe06c8bf4ac" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchaseProgramNumberOfSharesAuthorizedToBeRepurchased_a35df9b7-7c8a-44fa-b3c6-7038358f9af4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockRepurchaseProgramNumberOfSharesAuthorizedToBeRepurchased"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_73793d67-48d4-496c-8af5-b60e9fa29f1e" xlink:to="loc_us-gaap_StockRepurchaseProgramNumberOfSharesAuthorizedToBeRepurchased_a35df9b7-7c8a-44fa-b3c6-7038358f9af4" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_SaleOfStockAggregateOfferingPrice_626058d4-d944-4aab-87f0-e4876a0a0bb2" xlink:href="ngm-20210331.xsd#ngm_SaleOfStockAggregateOfferingPrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_73793d67-48d4-496c-8af5-b60e9fa29f1e" xlink:to="loc_ngm_SaleOfStockAggregateOfferingPrice_626058d4-d944-4aab-87f0-e4876a0a0bb2" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_SaleOfStockCommonStockAvailableForIssuance_0cbbfe6b-7c46-4b76-8ce4-09deea32d486" xlink:href="ngm-20210331.xsd#ngm_SaleOfStockCommonStockAvailableForIssuance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_73793d67-48d4-496c-8af5-b60e9fa29f1e" xlink:to="loc_ngm_SaleOfStockCommonStockAvailableForIssuance_0cbbfe6b-7c46-4b76-8ce4-09deea32d486" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_6d33b749-9835-4940-8a2d-3ef0ba92f56a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_73793d67-48d4-496c-8af5-b60e9fa29f1e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_6d33b749-9835-4940-8a2d-3ef0ba92f56a" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_c8edc548-28c4-41d1-baf5-7e1d84494ffc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_73793d67-48d4-496c-8af5-b60e9fa29f1e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_c8edc548-28c4-41d1-baf5-7e1d84494ffc" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue_cd64caab-147e-4229-8dce-fd87c5d8b82d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_73793d67-48d4-496c-8af5-b60e9fa29f1e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue_cd64caab-147e-4229-8dce-fd87c5d8b82d" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_c6518428-6679-4d4a-9e15-7a6bd9f835a7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_73793d67-48d4-496c-8af5-b60e9fa29f1e" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_c6518428-6679-4d4a-9e15-7a6bd9f835a7" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumEmployeeSubscriptionRate_6efe0702-14c6-43c2-aa41-fbf15c0a9cbe" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumEmployeeSubscriptionRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_73793d67-48d4-496c-8af5-b60e9fa29f1e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumEmployeeSubscriptionRate_6efe0702-14c6-43c2-aa41-fbf15c0a9cbe" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_OfferingPeriodForPurchaseUnderEmployeeStockPurchasePlan_670e9c90-7dd6-4c80-8f3f-40aceeef0812" xlink:href="ngm-20210331.xsd#ngm_OfferingPeriodForPurchaseUnderEmployeeStockPurchasePlan"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_73793d67-48d4-496c-8af5-b60e9fa29f1e" xlink:to="loc_ngm_OfferingPeriodForPurchaseUnderEmployeeStockPurchasePlan_670e9c90-7dd6-4c80-8f3f-40aceeef0812" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_NumberOfPurchasePeriods_8526ab2c-1ec4-41b5-9e9b-63586144cd3a" xlink:href="ngm-20210331.xsd#ngm_NumberOfPurchasePeriods"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_73793d67-48d4-496c-8af5-b60e9fa29f1e" xlink:to="loc_ngm_NumberOfPurchasePeriods_8526ab2c-1ec4-41b5-9e9b-63586144cd3a" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_DurationOfEachPurchasePeriod_abd61602-66cd-40bc-8bcc-7f8bc8691497" xlink:href="ngm-20210331.xsd#ngm_DurationOfEachPurchasePeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_73793d67-48d4-496c-8af5-b60e9fa29f1e" xlink:to="loc_ngm_DurationOfEachPurchasePeriod_abd61602-66cd-40bc-8bcc-7f8bc8691497" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardDiscountFromMarketPriceOfferingDate_0804399f-03b5-4f29-9796-faca33a15e8d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardDiscountFromMarketPriceOfferingDate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_73793d67-48d4-496c-8af5-b60e9fa29f1e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardDiscountFromMarketPriceOfferingDate_0804399f-03b5-4f29-9796-faca33a15e8d" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesIssued_5fae8c9e-3291-47bb-9ae4-714e2354b7c9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_73793d67-48d4-496c-8af5-b60e9fa29f1e" xlink:to="loc_us-gaap_CommonStockSharesIssued_5fae8c9e-3291-47bb-9ae4-714e2354b7c9" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfStockByClassTable_a53855bf-505b-4b73-843e-9101b4b88d4b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfStockByClassTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ClassOfStockLineItems_73793d67-48d4-496c-8af5-b60e9fa29f1e" xlink:to="loc_us-gaap_ScheduleOfStockByClassTable_a53855bf-505b-4b73-843e-9101b4b88d4b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_5761857a-952b-45d1-a509-62f0feb610bb" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_a53855bf-505b-4b73-843e-9101b4b88d4b" xlink:to="loc_srt_RangeAxis_5761857a-952b-45d1-a509-62f0feb610bb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_5761857a-952b-45d1-a509-62f0feb610bb_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_5761857a-952b-45d1-a509-62f0feb610bb" xlink:to="loc_srt_RangeMember_5761857a-952b-45d1-a509-62f0feb610bb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_fa54aa58-ace2-4831-b59b-d84b8426314e" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_5761857a-952b-45d1-a509-62f0feb610bb" xlink:to="loc_srt_RangeMember_fa54aa58-ace2-4831-b59b-d84b8426314e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_e51e5ae5-b5c9-4ead-8e15-e6e9d37f7dba" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_fa54aa58-ace2-4831-b59b-d84b8426314e" xlink:to="loc_srt_MinimumMember_e51e5ae5-b5c9-4ead-8e15-e6e9d37f7dba" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_39a564f1-df24-4ba9-8a75-759142fb93fa" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_fa54aa58-ace2-4831-b59b-d84b8426314e" xlink:to="loc_srt_MaximumMember_39a564f1-df24-4ba9-8a75-759142fb93fa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsidiarySaleOfStockAxis_19fb3f51-6ab2-4424-b4a1-52e6ea2bd878" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsidiarySaleOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_a53855bf-505b-4b73-843e-9101b4b88d4b" xlink:to="loc_us-gaap_SubsidiarySaleOfStockAxis_19fb3f51-6ab2-4424-b4a1-52e6ea2bd878" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleOfStockNameOfTransactionDomain_19fb3f51-6ab2-4424-b4a1-52e6ea2bd878_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SaleOfStockNameOfTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsidiarySaleOfStockAxis_19fb3f51-6ab2-4424-b4a1-52e6ea2bd878" xlink:to="loc_us-gaap_SaleOfStockNameOfTransactionDomain_19fb3f51-6ab2-4424-b4a1-52e6ea2bd878_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleOfStockNameOfTransactionDomain_fa7ebdd2-1f6f-48c8-bf3a-95b342f2b7cb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SaleOfStockNameOfTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsidiarySaleOfStockAxis_19fb3f51-6ab2-4424-b4a1-52e6ea2bd878" xlink:to="loc_us-gaap_SaleOfStockNameOfTransactionDomain_fa7ebdd2-1f6f-48c8-bf3a-95b342f2b7cb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockMember_ad6a47f3-c942-4940-8951-bd14e7edfa93" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleOfStockNameOfTransactionDomain_fa7ebdd2-1f6f-48c8-bf3a-95b342f2b7cb" xlink:to="loc_us-gaap_EmployeeStockMember_ad6a47f3-c942-4940-8951-bd14e7edfa93" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_PublicStockOfferingMember_c8e2740c-a32e-490d-93cd-ebafc2f30e64" xlink:href="ngm-20210331.xsd#ngm_PublicStockOfferingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleOfStockNameOfTransactionDomain_fa7ebdd2-1f6f-48c8-bf3a-95b342f2b7cb" xlink:to="loc_ngm_PublicStockOfferingMember_c8e2740c-a32e-490d-93cd-ebafc2f30e64" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/StockholdersEquityScheduleofSharesofCommonStockReservedforIssuanceDetails" xlink:type="simple" xlink:href="ngm-20210331.xsd#StockholdersEquityScheduleofSharesofCommonStockReservedforIssuanceDetails"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/StockholdersEquityScheduleofSharesofCommonStockReservedforIssuanceDetails" xlink:type="extended" id="if12800fe5d984108a4dff62b4bf3cdca_StockholdersEquityScheduleofSharesofCommonStockReservedforIssuanceDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockLineItems_e031cb32-f448-452e-b4c5-3814d130f94d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_72dcaced-af2b-49b1-a43d-8868f9a55736" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockCapitalSharesReservedForFutureIssuance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_e031cb32-f448-452e-b4c5-3814d130f94d" xlink:to="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_72dcaced-af2b-49b1-a43d-8868f9a55736" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfStockByClassTable_f3de1e7c-8ccf-46d6-8f2c-3fbe64902d41" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfStockByClassTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ClassOfStockLineItems_e031cb32-f448-452e-b4c5-3814d130f94d" xlink:to="loc_us-gaap_ScheduleOfStockByClassTable_f3de1e7c-8ccf-46d6-8f2c-3fbe64902d41" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_d4e54719-d614-4504-9205-ccb5ac3d4e16" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_f3de1e7c-8ccf-46d6-8f2c-3fbe64902d41" xlink:to="loc_us-gaap_AwardTypeAxis_d4e54719-d614-4504-9205-ccb5ac3d4e16" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_d4e54719-d614-4504-9205-ccb5ac3d4e16_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_d4e54719-d614-4504-9205-ccb5ac3d4e16" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_d4e54719-d614-4504-9205-ccb5ac3d4e16_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_80304dc0-f3e6-4876-8735-87ce66cface5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_d4e54719-d614-4504-9205-ccb5ac3d4e16" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_80304dc0-f3e6-4876-8735-87ce66cface5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_ReverseBalanceForSalesAgreementMember_1bef29c9-c261-45f5-81af-da88d86382d7" xlink:href="ngm-20210331.xsd#ngm_ReverseBalanceForSalesAgreementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_80304dc0-f3e6-4876-8735-87ce66cface5" xlink:to="loc_ngm_ReverseBalanceForSalesAgreementMember_1bef29c9-c261-45f5-81af-da88d86382d7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_CommonStockOptionsOutstandingMember_0d25a066-424f-4e32-b4ac-cf147e2e3aa5" xlink:href="ngm-20210331.xsd#ngm_CommonStockOptionsOutstandingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_80304dc0-f3e6-4876-8735-87ce66cface5" xlink:to="loc_ngm_CommonStockOptionsOutstandingMember_0d25a066-424f-4e32-b4ac-cf147e2e3aa5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_CommonStockOptionsAvailableForGrantMember_c605ff13-da16-4ec4-9885-6451f942e58c" xlink:href="ngm-20210331.xsd#ngm_CommonStockOptionsAvailableForGrantMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_80304dc0-f3e6-4876-8735-87ce66cface5" xlink:to="loc_ngm_CommonStockOptionsAvailableForGrantMember_c605ff13-da16-4ec4-9885-6451f942e58c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_FourZeroOneKMatchingPlanMember_e33e76cb-72de-42f1-a582-c92c4dcd420d" xlink:href="ngm-20210331.xsd#ngm_FourZeroOneKMatchingPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_80304dc0-f3e6-4876-8735-87ce66cface5" xlink:to="loc_ngm_FourZeroOneKMatchingPlanMember_e33e76cb-72de-42f1-a582-c92c4dcd420d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockMember_c1e65d9d-5b09-4e71-be21-ba0195b9617b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_80304dc0-f3e6-4876-8735-87ce66cface5" xlink:to="loc_us-gaap_EmployeeStockMember_c1e65d9d-5b09-4e71-be21-ba0195b9617b" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/StockholdersEquitySummaryofActivityunder2008Planand2018PlanDetails" xlink:type="simple" xlink:href="ngm-20210331.xsd#StockholdersEquitySummaryofActivityunder2008Planand2018PlanDetails"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/StockholdersEquitySummaryofActivityunder2008Planand2018PlanDetails" xlink:type="extended" id="i7ed990af21df46eea9fa484bc702b437_StockholdersEquitySummaryofActivityunder2008Planand2018PlanDetails"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/StockholdersEquitySummaryofStockBasedCompensationExpenseDetails" xlink:type="simple" xlink:href="ngm-20210331.xsd#StockholdersEquitySummaryofStockBasedCompensationExpenseDetails"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/StockholdersEquitySummaryofStockBasedCompensationExpenseDetails" xlink:type="extended" id="ib680a1833eeb407899d1239df425a4df_StockholdersEquitySummaryofStockBasedCompensationExpenseDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_99f90425-997b-45eb-a661-4d46f20c925b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_f30efb1f-4aa9-40da-a6e9-704790345951" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_99f90425-997b-45eb-a661-4d46f20c925b" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_f30efb1f-4aa9-40da-a6e9-704790345951" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_47acf3f4-e643-41e5-8279-7de71c8a6476" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_99f90425-997b-45eb-a661-4d46f20c925b" xlink:to="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_47acf3f4-e643-41e5-8279-7de71c8a6476" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_TitleOfIndividualAxis_e3be71c5-6e80-45dc-89ce-9c4f11fd4eeb" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_TitleOfIndividualAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_47acf3f4-e643-41e5-8279-7de71c8a6476" xlink:to="loc_srt_TitleOfIndividualAxis_e3be71c5-6e80-45dc-89ce-9c4f11fd4eeb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_e3be71c5-6e80-45dc-89ce-9c4f11fd4eeb_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_TitleOfIndividualWithRelationshipToEntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_TitleOfIndividualAxis_e3be71c5-6e80-45dc-89ce-9c4f11fd4eeb" xlink:to="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_e3be71c5-6e80-45dc-89ce-9c4f11fd4eeb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_df3035f4-83bf-4671-9ad8-aeb76ccbb8a7" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_TitleOfIndividualWithRelationshipToEntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_TitleOfIndividualAxis_e3be71c5-6e80-45dc-89ce-9c4f11fd4eeb" xlink:to="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_df3035f4-83bf-4671-9ad8-aeb76ccbb8a7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_EmployeesAndDirectorsMember_a0410977-59b7-4136-a6bd-733c3aeadaa0" xlink:href="ngm-20210331.xsd#ngm_EmployeesAndDirectorsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_df3035f4-83bf-4671-9ad8-aeb76ccbb8a7" xlink:to="loc_ngm_EmployeesAndDirectorsMember_a0410977-59b7-4136-a6bd-733c3aeadaa0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsidiarySaleOfStockAxis_f402de15-3e0f-4d38-86a8-5e066897456e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsidiarySaleOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_47acf3f4-e643-41e5-8279-7de71c8a6476" xlink:to="loc_us-gaap_SubsidiarySaleOfStockAxis_f402de15-3e0f-4d38-86a8-5e066897456e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleOfStockNameOfTransactionDomain_f402de15-3e0f-4d38-86a8-5e066897456e_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SaleOfStockNameOfTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsidiarySaleOfStockAxis_f402de15-3e0f-4d38-86a8-5e066897456e" xlink:to="loc_us-gaap_SaleOfStockNameOfTransactionDomain_f402de15-3e0f-4d38-86a8-5e066897456e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleOfStockNameOfTransactionDomain_9d81bdc6-d62d-4c7c-ae7b-4d3868a1add4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SaleOfStockNameOfTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsidiarySaleOfStockAxis_f402de15-3e0f-4d38-86a8-5e066897456e" xlink:to="loc_us-gaap_SaleOfStockNameOfTransactionDomain_9d81bdc6-d62d-4c7c-ae7b-4d3868a1add4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockMember_bd2a12f3-5ab0-4070-a21b-b04fe279a8c0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleOfStockNameOfTransactionDomain_9d81bdc6-d62d-4c7c-ae7b-4d3868a1add4" xlink:to="loc_us-gaap_EmployeeStockMember_bd2a12f3-5ab0-4070-a21b-b04fe279a8c0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_4e1824d0-6d58-4a0c-abc4-d21cace9fe4e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_47acf3f4-e643-41e5-8279-7de71c8a6476" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_4e1824d0-6d58-4a0c-abc4-d21cace9fe4e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_4e1824d0-6d58-4a0c-abc4-d21cace9fe4e_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_4e1824d0-6d58-4a0c-abc4-d21cace9fe4e" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_4e1824d0-6d58-4a0c-abc4-d21cace9fe4e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_602b1c52-5bbd-467c-945b-4c590384b5a9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_4e1824d0-6d58-4a0c-abc4-d21cace9fe4e" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_602b1c52-5bbd-467c-945b-4c590384b5a9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpenseMember_eb28505a-5810-4714-bb02-463603668737" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ResearchAndDevelopmentExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_602b1c52-5bbd-467c-945b-4c590384b5a9" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpenseMember_eb28505a-5810-4714-bb02-463603668737" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpenseMember_c1aeca2f-9fed-4c7e-9be2-7c4b939a8137" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GeneralAndAdministrativeExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_602b1c52-5bbd-467c-945b-4c590384b5a9" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpenseMember_c1aeca2f-9fed-4c7e-9be2-7c4b939a8137" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/IncomeTaxes" xlink:type="simple" xlink:href="ngm-20210331.xsd#IncomeTaxes"/>
  <link:definitionLink xlink:role="http://www.ngmbio.com/role/IncomeTaxes" xlink:type="extended" id="i322f00b46bd6440fb01aead0ba124845_IncomeTaxes"/>
</link:linkbase>
