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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2020 Workiva-->
<!--r:0474d50a-5de5-46ea-bb1f-a0291e4aafc4,g:dacafc10-951f-493b-9228-c9e32abfb96e-->
<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.guidewire.com/role/CoverPage" xlink:type="simple" xlink:href="gwre-20200430.xsd#CoverPage"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/CoverPage" xlink:type="extended" id="i9c0c7db9597f42f59e5cd574667dba60_CoverPage"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/CondensedConsolidatedBalanceSheets" xlink:type="simple" xlink:href="gwre-20200430.xsd#CondensedConsolidatedBalanceSheets"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/CondensedConsolidatedBalanceSheets" xlink:type="extended" id="iceaffeaf1ccf46019ee08544daa5a9f1_CondensedConsolidatedBalanceSheets"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/CondensedConsolidatedBalanceSheetsParenthetical" xlink:type="simple" xlink:href="gwre-20200430.xsd#CondensedConsolidatedBalanceSheetsParenthetical"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/CondensedConsolidatedBalanceSheetsParenthetical" xlink:type="extended" id="i88437a11c6f746ab9f93d89e01373bb4_CondensedConsolidatedBalanceSheetsParenthetical"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/CondensedConsolidatedStatementsofOperations" xlink:type="simple" xlink:href="gwre-20200430.xsd#CondensedConsolidatedStatementsofOperations"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/CondensedConsolidatedStatementsofOperations" xlink:type="extended" id="i90c9bf39789440fab2e2fa68042ff820_CondensedConsolidatedStatementsofOperations">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_9257904d-52aa-4ad4-9d32-fd72c6630232" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenuesAbstract_4ce67d08-1f94-4750-8fe9-0a87ad63a0a0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenuesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_9257904d-52aa-4ad4-9d32-fd72c6630232" xlink:to="loc_us-gaap_RevenuesAbstract_4ce67d08-1f94-4750-8fe9-0a87ad63a0a0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_b909c34a-8a4a-431f-bcc3-a662a3e93eaf" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesAbstract_4ce67d08-1f94-4750-8fe9-0a87ad63a0a0" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_b909c34a-8a4a-431f-bcc3-a662a3e93eaf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfRevenueAbstract_5295c7cd-1870-48e0-8ed0-58605a83aaf9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CostOfRevenueAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_9257904d-52aa-4ad4-9d32-fd72c6630232" xlink:to="loc_us-gaap_CostOfRevenueAbstract_5295c7cd-1870-48e0-8ed0-58605a83aaf9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_d06bb266-72ca-4714-b50c-95236c302d05" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CostOfGoodsAndServicesSold"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostOfRevenueAbstract_5295c7cd-1870-48e0-8ed0-58605a83aaf9" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_d06bb266-72ca-4714-b50c-95236c302d05" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfitAbstract_02decb5b-2b63-48f8-9662-1a34d59ebd88" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GrossProfitAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_9257904d-52aa-4ad4-9d32-fd72c6630232" xlink:to="loc_us-gaap_GrossProfitAbstract_02decb5b-2b63-48f8-9662-1a34d59ebd88" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_LicenseGrossProfit_9fe770a7-453a-4b16-8edc-83cbd99278be" xlink:href="gwre-20200430.xsd#gwre_LicenseGrossProfit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GrossProfitAbstract_02decb5b-2b63-48f8-9662-1a34d59ebd88" xlink:to="loc_gwre_LicenseGrossProfit_9fe770a7-453a-4b16-8edc-83cbd99278be" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_MaintenanceGrossProfit_bc8f079d-f359-4533-a03f-4b7f79a2a534" xlink:href="gwre-20200430.xsd#gwre_MaintenanceGrossProfit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GrossProfitAbstract_02decb5b-2b63-48f8-9662-1a34d59ebd88" xlink:to="loc_gwre_MaintenanceGrossProfit_bc8f079d-f359-4533-a03f-4b7f79a2a534" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_ServicesGrossProfit_16d3b81f-da3d-4842-97f1-7c2124160fa9" xlink:href="gwre-20200430.xsd#gwre_ServicesGrossProfit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GrossProfitAbstract_02decb5b-2b63-48f8-9662-1a34d59ebd88" xlink:to="loc_gwre_ServicesGrossProfit_16d3b81f-da3d-4842-97f1-7c2124160fa9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_bd1af0bb-2066-4217-82b7-a871e4557bf0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GrossProfit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GrossProfitAbstract_02decb5b-2b63-48f8-9662-1a34d59ebd88" xlink:to="loc_us-gaap_GrossProfit_bd1af0bb-2066-4217-82b7-a871e4557bf0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpensesAbstract_565ae6f7-7c32-4079-9a04-fd3ff427b39c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingExpensesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_9257904d-52aa-4ad4-9d32-fd72c6630232" xlink:to="loc_us-gaap_OperatingExpensesAbstract_565ae6f7-7c32-4079-9a04-fd3ff427b39c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_71059318-4d0d-4f7d-986e-c7d8be951685" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ResearchAndDevelopmentExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_565ae6f7-7c32-4079-9a04-fd3ff427b39c" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_71059318-4d0d-4f7d-986e-c7d8be951685" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingAndMarketingExpense_7e892ecb-e088-45ed-81b9-e27ee28886c9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SellingAndMarketingExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_565ae6f7-7c32-4079-9a04-fd3ff427b39c" xlink:to="loc_us-gaap_SellingAndMarketingExpense_7e892ecb-e088-45ed-81b9-e27ee28886c9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_689c0bd2-058a-424d-b9d3-346abf04bd05" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GeneralAndAdministrativeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_565ae6f7-7c32-4079-9a04-fd3ff427b39c" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_689c0bd2-058a-424d-b9d3-346abf04bd05" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_124964ee-847a-41f1-af86-0e3b9a257a83" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingExpenses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_565ae6f7-7c32-4079-9a04-fd3ff427b39c" xlink:to="loc_us-gaap_OperatingExpenses_124964ee-847a-41f1-af86-0e3b9a257a83" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_94d3eb9f-b9e4-4071-8fb7-cab4004fdaf3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_9257904d-52aa-4ad4-9d32-fd72c6630232" xlink:to="loc_us-gaap_OperatingIncomeLoss_94d3eb9f-b9e4-4071-8fb7-cab4004fdaf3" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_InterestIncomeNonoperatingNet_5f1b767c-cd27-4ce7-a5e5-d6dd0bf047f3" xlink:href="gwre-20200430.xsd#gwre_InterestIncomeNonoperatingNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_9257904d-52aa-4ad4-9d32-fd72c6630232" xlink:to="loc_gwre_InterestIncomeNonoperatingNet_5f1b767c-cd27-4ce7-a5e5-d6dd0bf047f3" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_11d33835-2e01-4f2b-9d2e-8d5d8ea49e0e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_9257904d-52aa-4ad4-9d32-fd72c6630232" xlink:to="loc_us-gaap_InterestExpense_11d33835-2e01-4f2b-9d2e-8d5d8ea49e0e" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_ff29dd23-f7d3-4336-a263-37f0943e57d5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_9257904d-52aa-4ad4-9d32-fd72c6630232" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_ff29dd23-f7d3-4336-a263-37f0943e57d5" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_cd3dcb5f-f220-4418-9c73-7d0db74bf0e3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_9257904d-52aa-4ad4-9d32-fd72c6630232" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_cd3dcb5f-f220-4418-9c73-7d0db74bf0e3" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_5c56a2e5-ce67-4352-925e-c8c72b4dbb8d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_9257904d-52aa-4ad4-9d32-fd72c6630232" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_5c56a2e5-ce67-4352-925e-c8c72b4dbb8d" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_7967d317-b724-4186-a346-5ac5dd0ceead" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProfitLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_9257904d-52aa-4ad4-9d32-fd72c6630232" xlink:to="loc_us-gaap_ProfitLoss_7967d317-b724-4186-a346-5ac5dd0ceead" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareAbstract_8955917d-7c29-4459-8dd0-12124c463063" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EarningsPerShareAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_9257904d-52aa-4ad4-9d32-fd72c6630232" xlink:to="loc_us-gaap_EarningsPerShareAbstract_8955917d-7c29-4459-8dd0-12124c463063" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasic_56acd89a-e910-439b-9d52-0c32f6de5957" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EarningsPerShareBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareAbstract_8955917d-7c29-4459-8dd0-12124c463063" xlink:to="loc_us-gaap_EarningsPerShareBasic_56acd89a-e910-439b-9d52-0c32f6de5957" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDiluted_fa9d718f-f4c3-4913-bc71-a5854838e783" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EarningsPerShareDiluted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareAbstract_8955917d-7c29-4459-8dd0-12124c463063" xlink:to="loc_us-gaap_EarningsPerShareDiluted_fa9d718f-f4c3-4913-bc71-a5854838e783" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract_a2b92b65-b2eb-49c7-bb1b-6fdde61059ae" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_9257904d-52aa-4ad4-9d32-fd72c6630232" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract_a2b92b65-b2eb-49c7-bb1b-6fdde61059ae" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_ac5fb559-4e45-4912-85dd-864179cdad78" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract_a2b92b65-b2eb-49c7-bb1b-6fdde61059ae" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_ac5fb559-4e45-4912-85dd-864179cdad78" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_219b005b-6eec-4129-9788-e7f30a367876" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract_a2b92b65-b2eb-49c7-bb1b-6fdde61059ae" xlink:to="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_219b005b-6eec-4129-9788-e7f30a367876" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_260f8662-a106-455d-8cc2-bb639487987d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_9257904d-52aa-4ad4-9d32-fd72c6630232" xlink:to="loc_us-gaap_StatementTable_260f8662-a106-455d-8cc2-bb639487987d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_86d0cce5-3ac6-4d9a-bdc0-0f463f8f8d11" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_260f8662-a106-455d-8cc2-bb639487987d" xlink:to="loc_srt_ProductOrServiceAxis_86d0cce5-3ac6-4d9a-bdc0-0f463f8f8d11" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_86d0cce5-3ac6-4d9a-bdc0-0f463f8f8d11_default" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_86d0cce5-3ac6-4d9a-bdc0-0f463f8f8d11" xlink:to="loc_srt_ProductsAndServicesDomain_86d0cce5-3ac6-4d9a-bdc0-0f463f8f8d11_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_14875940-31ac-46d8-b70b-c084e73e756c" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_86d0cce5-3ac6-4d9a-bdc0-0f463f8f8d11" xlink:to="loc_srt_ProductsAndServicesDomain_14875940-31ac-46d8-b70b-c084e73e756c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_LicenseAndSubscriptionMember_39e91a81-8fb1-401b-8e13-81b27885f210" xlink:href="gwre-20200430.xsd#gwre_LicenseAndSubscriptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_14875940-31ac-46d8-b70b-c084e73e756c" xlink:to="loc_gwre_LicenseAndSubscriptionMember_39e91a81-8fb1-401b-8e13-81b27885f210" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MaintenanceMember_1b27730f-c698-4946-997d-9e53a77d469a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MaintenanceMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_14875940-31ac-46d8-b70b-c084e73e756c" xlink:to="loc_us-gaap_MaintenanceMember_1b27730f-c698-4946-997d-9e53a77d469a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ServiceMember_37ace504-5d90-4942-a189-4348de1b01bc" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ServiceMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_14875940-31ac-46d8-b70b-c084e73e756c" xlink:to="loc_us-gaap_ServiceMember_37ace504-5d90-4942-a189-4348de1b01bc" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.guidewire.com/role/CondensedConsolidatedStatementsofComprehensiveIncomeLoss" xlink:type="simple" xlink:href="gwre-20200430.xsd#CondensedConsolidatedStatementsofComprehensiveIncomeLoss"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/CondensedConsolidatedStatementsofComprehensiveIncomeLoss" xlink:type="extended" id="ie457b8da92124d0d9380a9d4f8e66bf7_CondensedConsolidatedStatementsofComprehensiveIncomeLoss"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/CondensedConsolidatedStatementsofChangesinStockholdersEquity" xlink:type="simple" xlink:href="gwre-20200430.xsd#CondensedConsolidatedStatementsofChangesinStockholdersEquity"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/CondensedConsolidatedStatementsofChangesinStockholdersEquity" xlink:type="extended" id="i04b1d0a023624e8e8a2fe7fd16f2be78_CondensedConsolidatedStatementsofChangesinStockholdersEquity">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_fdc0009b-41b3-4519-abe1-9c3ca8a68439" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharesOutstanding_44a75629-fd13-44e2-830a-d05bd38e36f7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_fdc0009b-41b3-4519-abe1-9c3ca8a68439" xlink:to="loc_us-gaap_SharesOutstanding_44a75629-fd13-44e2-830a-d05bd38e36f7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_9a4cdc8c-5b0c-4817-9046-87055035da3d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_fdc0009b-41b3-4519-abe1-9c3ca8a68439" xlink:to="loc_us-gaap_StockholdersEquity_9a4cdc8c-5b0c-4817-9046-87055035da3d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_033a7c96-cbfc-407b-8761-8fac7bd7d909" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProfitLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_fdc0009b-41b3-4519-abe1-9c3ca8a68439" xlink:to="loc_us-gaap_ProfitLoss_033a7c96-cbfc-407b-8761-8fac7bd7d909" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_16e9e70e-9dce-4df4-bb58-ba42e915bfd5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_fdc0009b-41b3-4519-abe1-9c3ca8a68439" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_16e9e70e-9dce-4df4-bb58-ba42e915bfd5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_e2440188-f954-4c4e-9726-030a76f0a358" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_fdc0009b-41b3-4519-abe1-9c3ca8a68439" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_e2440188-f954-4c4e-9726-030a76f0a358" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross_ca3764a0-99f4-4803-853d-72e22964d1a1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_fdc0009b-41b3-4519-abe1-9c3ca8a68439" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross_ca3764a0-99f4-4803-853d-72e22964d1a1" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardGross_741a5157-50d9-49e5-84d3-80df208a2d0d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_fdc0009b-41b3-4519-abe1-9c3ca8a68439" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardGross_741a5157-50d9-49e5-84d3-80df208a2d0d" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_7106a3be-49f8-4ae3-b985-b09b5e40e3f4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_fdc0009b-41b3-4519-abe1-9c3ca8a68439" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_7106a3be-49f8-4ae3-b985-b09b5e40e3f4" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_bad1a259-0dc0-4f9d-b49e-2789c456184a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_fdc0009b-41b3-4519-abe1-9c3ca8a68439" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_bad1a259-0dc0-4f9d-b49e-2789c456184a" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_748f7c97-1240-49eb-a5af-db633d8e1d31" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_fdc0009b-41b3-4519-abe1-9c3ca8a68439" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_748f7c97-1240-49eb-a5af-db633d8e1d31" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax_e1124065-c9e0-4826-906d-740463b468c7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_fdc0009b-41b3-4519-abe1-9c3ca8a68439" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax_e1124065-c9e0-4826-906d-740463b468c7" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_3aa77269-2f1e-42f8-a290-2c0dcc393c4b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_fdc0009b-41b3-4519-abe1-9c3ca8a68439" xlink:to="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_3aa77269-2f1e-42f8-a290-2c0dcc393c4b" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_cdba5608-6567-4436-b661-463f76ef0564" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockRepurchasedAndRetiredDuringPeriodShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_fdc0009b-41b3-4519-abe1-9c3ca8a68439" xlink:to="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_cdba5608-6567-4436-b661-463f76ef0564" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodValue_c7ac340a-493d-4a79-b712-29f402d86cf3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockRepurchasedAndRetiredDuringPeriodValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_fdc0009b-41b3-4519-abe1-9c3ca8a68439" xlink:to="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodValue_c7ac340a-493d-4a79-b712-29f402d86cf3" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharesOutstanding_b34e25d5-3987-4c4f-aa6b-7d354b8cc1f6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_b2547554-75ea-49d9-b0c5-45d822c8c87f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_5cb57ddc-f447-44d6-9cce-4a0978ccc150" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_fdc0009b-41b3-4519-abe1-9c3ca8a68439" xlink:to="loc_us-gaap_StatementTable_5cb57ddc-f447-44d6-9cce-4a0978ccc150" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_81ea694d-f411-4cf3-bc9d-741e05d34ef4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_5cb57ddc-f447-44d6-9cce-4a0978ccc150" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_81ea694d-f411-4cf3-bc9d-741e05d34ef4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_81ea694d-f411-4cf3-bc9d-741e05d34ef4_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_81ea694d-f411-4cf3-bc9d-741e05d34ef4" xlink:to="loc_us-gaap_EquityComponentDomain_81ea694d-f411-4cf3-bc9d-741e05d34ef4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_46fe324a-ef1c-49d3-8eaf-dd88b1eb64b8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_81ea694d-f411-4cf3-bc9d-741e05d34ef4" xlink:to="loc_us-gaap_EquityComponentDomain_46fe324a-ef1c-49d3-8eaf-dd88b1eb64b8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_a2541271-7536-48bc-a700-e99981983ca5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_46fe324a-ef1c-49d3-8eaf-dd88b1eb64b8" xlink:to="loc_us-gaap_CommonStockMember_a2541271-7536-48bc-a700-e99981983ca5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_674087dd-b092-4064-9433-9ce99fdb3550" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_46fe324a-ef1c-49d3-8eaf-dd88b1eb64b8" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_674087dd-b092-4064-9433-9ce99fdb3550" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_f9433ab1-8768-4dd6-be9c-e580a4322b74" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_46fe324a-ef1c-49d3-8eaf-dd88b1eb64b8" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_f9433ab1-8768-4dd6-be9c-e580a4322b74" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_575a41ad-5210-42ec-a2f9-0fd9b4e2a41e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_46fe324a-ef1c-49d3-8eaf-dd88b1eb64b8" xlink:to="loc_us-gaap_RetainedEarningsMember_575a41ad-5210-42ec-a2f9-0fd9b4e2a41e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_1f1a57b2-b279-4255-9c5f-7ef491b858c6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_5cb57ddc-f447-44d6-9cce-4a0978ccc150" xlink:to="loc_us-gaap_StatementClassOfStockAxis_1f1a57b2-b279-4255-9c5f-7ef491b858c6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_1f1a57b2-b279-4255-9c5f-7ef491b858c6_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_1f1a57b2-b279-4255-9c5f-7ef491b858c6" xlink:to="loc_us-gaap_ClassOfStockDomain_1f1a57b2-b279-4255-9c5f-7ef491b858c6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_25ddb5ba-aa72-41ac-934b-9071d1913ce2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_1f1a57b2-b279-4255-9c5f-7ef491b858c6" xlink:to="loc_us-gaap_ClassOfStockDomain_25ddb5ba-aa72-41ac-934b-9071d1913ce2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_322d8830-da33-43bd-bbc0-672c5ea42866" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_25ddb5ba-aa72-41ac-934b-9071d1913ce2" xlink:to="loc_us-gaap_CommonStockMember_322d8830-da33-43bd-bbc0-672c5ea42866" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_cb473425-e5b9-48d3-b13f-c9ae92848e3c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AdjustmentsForNewAccountingPronouncementsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_5cb57ddc-f447-44d6-9cce-4a0978ccc150" xlink:to="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_cb473425-e5b9-48d3-b13f-c9ae92848e3c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfAdoptionMember_cb473425-e5b9-48d3-b13f-c9ae92848e3c_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TypeOfAdoptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_cb473425-e5b9-48d3-b13f-c9ae92848e3c" xlink:to="loc_us-gaap_TypeOfAdoptionMember_cb473425-e5b9-48d3-b13f-c9ae92848e3c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfAdoptionMember_008e9811-409b-4f37-8991-9f8ee7878e2b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TypeOfAdoptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_cb473425-e5b9-48d3-b13f-c9ae92848e3c" xlink:to="loc_us-gaap_TypeOfAdoptionMember_008e9811-409b-4f37-8991-9f8ee7878e2b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountingStandardsUpdate201802Member_ada58e2a-6636-4c17-903d-34ff69d58720" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccountingStandardsUpdate201802Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfAdoptionMember_008e9811-409b-4f37-8991-9f8ee7878e2b" xlink:to="loc_us-gaap_AccountingStandardsUpdate201802Member_ada58e2a-6636-4c17-903d-34ff69d58720" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountingStandardsUpdate201409Member_f8ded40f-1c98-4385-823f-61f5feb5110a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccountingStandardsUpdate201409Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfAdoptionMember_008e9811-409b-4f37-8991-9f8ee7878e2b" xlink:to="loc_us-gaap_AccountingStandardsUpdate201409Member_f8ded40f-1c98-4385-823f-61f5feb5110a" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.guidewire.com/role/CondensedConsolidatedStatementsofCashFlows" xlink:type="simple" xlink:href="gwre-20200430.xsd#CondensedConsolidatedStatementsofCashFlows"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/CondensedConsolidatedStatementsofCashFlows" xlink:type="extended" id="ieb6b79c63a0744bd94e1791491e6495e_CondensedConsolidatedStatementsofCashFlows"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/TheCompanyandSummaryofSignificantAccountingPoliciesandEstimates" xlink:type="simple" xlink:href="gwre-20200430.xsd#TheCompanyandSummaryofSignificantAccountingPoliciesandEstimates"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/TheCompanyandSummaryofSignificantAccountingPoliciesandEstimates" xlink:type="extended" id="ifeaeba2dacd449dd861c0cb437c537ae_TheCompanyandSummaryofSignificantAccountingPoliciesandEstimates"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/TheCompanyandSummaryofSignificantAccountingPoliciesandEstimatesPolicies" xlink:type="simple" xlink:href="gwre-20200430.xsd#TheCompanyandSummaryofSignificantAccountingPoliciesandEstimatesPolicies"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/TheCompanyandSummaryofSignificantAccountingPoliciesandEstimatesPolicies" xlink:type="extended" id="ica6276eeea074763bc5ee19b1cd6f738_TheCompanyandSummaryofSignificantAccountingPoliciesandEstimatesPolicies"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/TheCompanyandSummaryofSignificantAccountingPoliciesandEstimatesTables" xlink:type="simple" xlink:href="gwre-20200430.xsd#TheCompanyandSummaryofSignificantAccountingPoliciesandEstimatesTables"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/TheCompanyandSummaryofSignificantAccountingPoliciesandEstimatesTables" xlink:type="extended" id="i45bb5c5b90e54b63a3cd478fd58dc949_TheCompanyandSummaryofSignificantAccountingPoliciesandEstimatesTables"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/TheCompanyandSummaryofSignificantAccountingPoliciesandEstimatesDetailsTextual" xlink:type="simple" xlink:href="gwre-20200430.xsd#TheCompanyandSummaryofSignificantAccountingPoliciesandEstimatesDetailsTextual"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/TheCompanyandSummaryofSignificantAccountingPoliciesandEstimatesDetailsTextual" xlink:type="extended" id="ic174bd54564448e6bb9f60463ad12e0a_TheCompanyandSummaryofSignificantAccountingPoliciesandEstimatesDetailsTextual">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_085cda95-aa21-431a-b7d7-c11e29559115" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_080c3fc5-2b43-4c8e-b96f-86d5105bc1a4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_085cda95-aa21-431a-b7d7-c11e29559115" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_080c3fc5-2b43-4c8e-b96f-86d5105bc1a4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_d3f371f7-c9b5-4807-805e-075b6c484acf" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_085cda95-aa21-431a-b7d7-c11e29559115" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_d3f371f7-c9b5-4807-805e-075b6c484acf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_4ec58962-6c49-4a0e-8131-32e8fa8296f3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_085cda95-aa21-431a-b7d7-c11e29559115" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_4ec58962-6c49-4a0e-8131-32e8fa8296f3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_CompanyAndSummaryOfSignificantAccountingPoliciesAndEstimatesTextualAbstract_1de26f9f-3ba2-4a8c-8b85-8ea9c9414597" xlink:href="gwre-20200430.xsd#gwre_CompanyAndSummaryOfSignificantAccountingPoliciesAndEstimatesTextualAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_085cda95-aa21-431a-b7d7-c11e29559115" xlink:to="loc_gwre_CompanyAndSummaryOfSignificantAccountingPoliciesAndEstimatesTextualAbstract_1de26f9f-3ba2-4a8c-8b85-8ea9c9414597" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_NumberOfCustomersConcentrationOfCreditRisk_1e4a33cd-a918-4cdb-bb4e-881a4cdf569a" xlink:href="gwre-20200430.xsd#gwre_NumberOfCustomersConcentrationOfCreditRisk"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_gwre_CompanyAndSummaryOfSignificantAccountingPoliciesAndEstimatesTextualAbstract_1de26f9f-3ba2-4a8c-8b85-8ea9c9414597" xlink:to="loc_gwre_NumberOfCustomersConcentrationOfCreditRisk_1e4a33cd-a918-4cdb-bb4e-881a4cdf569a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_ba3d5a52-0b17-4baa-82df-9ecde0fc2455" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskPercentage1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_gwre_CompanyAndSummaryOfSignificantAccountingPoliciesAndEstimatesTextualAbstract_1de26f9f-3ba2-4a8c-8b85-8ea9c9414597" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_ba3d5a52-0b17-4baa-82df-9ecde0fc2455" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_EntityWideAccountsReceivableMajorCustomerPercentage_c5b3bfc9-6d4b-4be6-8144-8ebd3b23468c" xlink:href="gwre-20200430.xsd#gwre_EntityWideAccountsReceivableMajorCustomerPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_gwre_CompanyAndSummaryOfSignificantAccountingPoliciesAndEstimatesTextualAbstract_1de26f9f-3ba2-4a8c-8b85-8ea9c9414597" xlink:to="loc_gwre_EntityWideAccountsReceivableMajorCustomerPercentage_c5b3bfc9-6d4b-4be6-8144-8ebd3b23468c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_e28f8fc1-175e-441a-97cd-7b6db22119a3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_gwre_CompanyAndSummaryOfSignificantAccountingPoliciesAndEstimatesTextualAbstract_1de26f9f-3ba2-4a8c-8b85-8ea9c9414597" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_e28f8fc1-175e-441a-97cd-7b6db22119a3" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenuePerformanceObligationDescriptionOfTiming_2830d6a0-afc2-46cf-82d3-1dfb716c619c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenuePerformanceObligationDescriptionOfTiming"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_gwre_CompanyAndSummaryOfSignificantAccountingPoliciesAndEstimatesTextualAbstract_1de26f9f-3ba2-4a8c-8b85-8ea9c9414597" xlink:to="loc_us-gaap_RevenuePerformanceObligationDescriptionOfTiming_2830d6a0-afc2-46cf-82d3-1dfb716c619c" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalizedContractCostAmortizationPeriod_bfcef801-9592-47e3-a227-a33aec41de86" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CapitalizedContractCostAmortizationPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_gwre_CompanyAndSummaryOfSignificantAccountingPoliciesAndEstimatesTextualAbstract_1de26f9f-3ba2-4a8c-8b85-8ea9c9414597" xlink:to="loc_us-gaap_CapitalizedContractCostAmortizationPeriod_bfcef801-9592-47e3-a227-a33aec41de86" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_d14d57a1-11ee-4107-bf91-e6e8e7aaa03e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_gwre_CompanyAndSummaryOfSignificantAccountingPoliciesAndEstimatesTextualAbstract_1de26f9f-3ba2-4a8c-8b85-8ea9c9414597" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_d14d57a1-11ee-4107-bf91-e6e8e7aaa03e" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_f2799436-4220-439e-9268-fa63e182ed4b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_gwre_CompanyAndSummaryOfSignificantAccountingPoliciesAndEstimatesTextualAbstract_1de26f9f-3ba2-4a8c-8b85-8ea9c9414597" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_f2799436-4220-439e-9268-fa63e182ed4b" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_04a3879a-c0ca-4a76-a9ff-58ea5b26c56b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_gwre_CompanyAndSummaryOfSignificantAccountingPoliciesAndEstimatesTextualAbstract_1de26f9f-3ba2-4a8c-8b85-8ea9c9414597" xlink:to="loc_us-gaap_OperatingLeaseLiability_04a3879a-c0ca-4a76-a9ff-58ea5b26c56b" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_a29f8b6c-7ba1-42bd-887b-2ec6d134ef36" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_085cda95-aa21-431a-b7d7-c11e29559115" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_a29f8b6c-7ba1-42bd-887b-2ec6d134ef36" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_6efcb245-4b0b-46df-b29b-beba46a504d8" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_a29f8b6c-7ba1-42bd-887b-2ec6d134ef36" xlink:to="loc_srt_RangeAxis_6efcb245-4b0b-46df-b29b-beba46a504d8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_6efcb245-4b0b-46df-b29b-beba46a504d8_default" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_6efcb245-4b0b-46df-b29b-beba46a504d8" xlink:to="loc_srt_RangeMember_6efcb245-4b0b-46df-b29b-beba46a504d8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_9c498894-c29a-4db6-bdd7-9caa7a71f076" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_6efcb245-4b0b-46df-b29b-beba46a504d8" xlink:to="loc_srt_RangeMember_9c498894-c29a-4db6-bdd7-9caa7a71f076" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_24159f45-7b7d-46b0-8c24-448142890f10" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_9c498894-c29a-4db6-bdd7-9caa7a71f076" xlink:to="loc_srt_MinimumMember_24159f45-7b7d-46b0-8c24-448142890f10" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_ad7f3e20-fb28-49ed-a4d7-3a21d52edd45" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_9c498894-c29a-4db6-bdd7-9caa7a71f076" xlink:to="loc_srt_MaximumMember_ad7f3e20-fb28-49ed-a4d7-3a21d52edd45" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_4c49e206-19e6-45aa-830e-97af5274d216" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_a29f8b6c-7ba1-42bd-887b-2ec6d134ef36" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_4c49e206-19e6-45aa-830e-97af5274d216" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_4c49e206-19e6-45aa-830e-97af5274d216_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_4c49e206-19e6-45aa-830e-97af5274d216" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_4c49e206-19e6-45aa-830e-97af5274d216_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_68da151b-f5b3-4a5b-988b-11a73f69a874" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_4c49e206-19e6-45aa-830e-97af5274d216" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_68da151b-f5b3-4a5b-988b-11a73f69a874" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SoftwareDevelopmentMember_e426b16a-52d9-495f-8a28-657f021d6fc7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SoftwareDevelopmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_68da151b-f5b3-4a5b-988b-11a73f69a874" xlink:to="loc_us-gaap_SoftwareDevelopmentMember_e426b16a-52d9-495f-8a28-657f021d6fc7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_bbd49d2d-a880-4c28-821f-16d08f8511db" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AdjustmentsForNewAccountingPronouncementsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_a29f8b6c-7ba1-42bd-887b-2ec6d134ef36" xlink:to="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_bbd49d2d-a880-4c28-821f-16d08f8511db" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfAdoptionMember_bbd49d2d-a880-4c28-821f-16d08f8511db_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TypeOfAdoptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_bbd49d2d-a880-4c28-821f-16d08f8511db" xlink:to="loc_us-gaap_TypeOfAdoptionMember_bbd49d2d-a880-4c28-821f-16d08f8511db_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfAdoptionMember_f997a5cf-486f-4799-99cc-f23de6407833" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TypeOfAdoptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_bbd49d2d-a880-4c28-821f-16d08f8511db" xlink:to="loc_us-gaap_TypeOfAdoptionMember_f997a5cf-486f-4799-99cc-f23de6407833" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountingStandardsUpdate201409Member_0d5889e5-ed6f-4342-9510-77ee556fe75d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccountingStandardsUpdate201409Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfAdoptionMember_f997a5cf-486f-4799-99cc-f23de6407833" xlink:to="loc_us-gaap_AccountingStandardsUpdate201409Member_0d5889e5-ed6f-4342-9510-77ee556fe75d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountingStandardsUpdate201602Member_ecb6a5d2-2bc2-4d95-97ad-253698b144aa" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccountingStandardsUpdate201602Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfAdoptionMember_f997a5cf-486f-4799-99cc-f23de6407833" xlink:to="loc_us-gaap_AccountingStandardsUpdate201602Member_ecb6a5d2-2bc2-4d95-97ad-253698b144aa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_3170acc5-d437-4c4b-b820-e8c78c94de09" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_a29f8b6c-7ba1-42bd-887b-2ec6d134ef36" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_3170acc5-d437-4c4b-b820-e8c78c94de09" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_3170acc5-d437-4c4b-b820-e8c78c94de09_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_3170acc5-d437-4c4b-b820-e8c78c94de09" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_3170acc5-d437-4c4b-b820-e8c78c94de09_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_a032cf78-6a13-4cf5-b354-82aecc9ca867" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_3170acc5-d437-4c4b-b820-e8c78c94de09" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_a032cf78-6a13-4cf5-b354-82aecc9ca867" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotesMember_2e126c28-4844-4a88-84f6-de396d3eeb18" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_a032cf78-6a13-4cf5-b354-82aecc9ca867" xlink:to="loc_us-gaap_SeniorNotesMember_2e126c28-4844-4a88-84f6-de396d3eeb18" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_9a84a7b1-266f-4dc7-b325-bd520c073ac4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_a29f8b6c-7ba1-42bd-887b-2ec6d134ef36" xlink:to="loc_us-gaap_DebtInstrumentAxis_9a84a7b1-266f-4dc7-b325-bd520c073ac4" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_9a84a7b1-266f-4dc7-b325-bd520c073ac4_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_9a84a7b1-266f-4dc7-b325-bd520c073ac4" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_9a84a7b1-266f-4dc7-b325-bd520c073ac4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_03cb95f5-36a3-478d-b15e-ba252fe99fe2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_9a84a7b1-266f-4dc7-b325-bd520c073ac4" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_03cb95f5-36a3-478d-b15e-ba252fe99fe2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_ConvertibleSeniorNotes1.250Member_ef04dc29-2df1-4668-a421-8a940889d632" xlink:href="gwre-20200430.xsd#gwre_ConvertibleSeniorNotes1.250Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_03cb95f5-36a3-478d-b15e-ba252fe99fe2" xlink:to="loc_gwre_ConvertibleSeniorNotes1.250Member_ef04dc29-2df1-4668-a421-8a940889d632" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_07039756-2f3b-40bd-8c6e-34517433329a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_a29f8b6c-7ba1-42bd-887b-2ec6d134ef36" xlink:to="loc_us-gaap_AwardTypeAxis_07039756-2f3b-40bd-8c6e-34517433329a" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_07039756-2f3b-40bd-8c6e-34517433329a_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_07039756-2f3b-40bd-8c6e-34517433329a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_07039756-2f3b-40bd-8c6e-34517433329a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_896e2f33-7231-4038-be1b-e03251294be1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_07039756-2f3b-40bd-8c6e-34517433329a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_896e2f33-7231-4038-be1b-e03251294be1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_35616e1b-1853-47ba-b03e-ebf937aa43c9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_896e2f33-7231-4038-be1b-e03251294be1" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_35616e1b-1853-47ba-b03e-ebf937aa43c9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_TotalShareholderReturnPerformanceSharesTSRPSUsMember_95a9e460-8800-437d-8b9a-0271b9aa8370" xlink:href="gwre-20200430.xsd#gwre_TotalShareholderReturnPerformanceSharesTSRPSUsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_896e2f33-7231-4038-be1b-e03251294be1" xlink:to="loc_gwre_TotalShareholderReturnPerformanceSharesTSRPSUsMember_95a9e460-8800-437d-8b9a-0271b9aa8370" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.guidewire.com/role/TheCompanyandSummaryofSignificantAccountingPoliciesandEstimatesPropertyandEquipmentUsefulLivesDetails" xlink:type="simple" xlink:href="gwre-20200430.xsd#TheCompanyandSummaryofSignificantAccountingPoliciesandEstimatesPropertyandEquipmentUsefulLivesDetails"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/TheCompanyandSummaryofSignificantAccountingPoliciesandEstimatesPropertyandEquipmentUsefulLivesDetails" xlink:type="extended" id="i9e93fe54696b41d28603622367cc3d93_TheCompanyandSummaryofSignificantAccountingPoliciesandEstimatesPropertyandEquipmentUsefulLivesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_7f264af1-2856-4899-a1c2-51b6acb12e38" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_e1fde2f2-e1c8-4996-a9d1-9d644e10933b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentUsefulLife"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_7f264af1-2856-4899-a1c2-51b6acb12e38" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_e1fde2f2-e1c8-4996-a9d1-9d644e10933b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_fb8039d4-10ab-4364-9e3f-68a8d7294261" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_7f264af1-2856-4899-a1c2-51b6acb12e38" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_fb8039d4-10ab-4364-9e3f-68a8d7294261" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_de271044-ec22-4b2d-aad2-9872530e6061" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_fb8039d4-10ab-4364-9e3f-68a8d7294261" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_de271044-ec22-4b2d-aad2-9872530e6061" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_de271044-ec22-4b2d-aad2-9872530e6061_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_de271044-ec22-4b2d-aad2-9872530e6061" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_de271044-ec22-4b2d-aad2-9872530e6061_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_0df8a921-ba3f-4cbb-9915-1bead945edd0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_de271044-ec22-4b2d-aad2-9872530e6061" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_0df8a921-ba3f-4cbb-9915-1bead945edd0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComputerEquipmentMember_cce157ae-6fe7-4986-abf3-4cc799e8555a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ComputerEquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_0df8a921-ba3f-4cbb-9915-1bead945edd0" xlink:to="loc_us-gaap_ComputerEquipmentMember_cce157ae-6fe7-4986-abf3-4cc799e8555a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComputerSoftwareIntangibleAssetMember_6468c315-195f-4dd5-8ddf-b9b880de86a6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ComputerSoftwareIntangibleAssetMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_0df8a921-ba3f-4cbb-9915-1bead945edd0" xlink:to="loc_us-gaap_ComputerSoftwareIntangibleAssetMember_6468c315-195f-4dd5-8ddf-b9b880de86a6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MachineryAndEquipmentMember_c8e90dc2-b703-4e91-a583-bec69273928b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MachineryAndEquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_0df8a921-ba3f-4cbb-9915-1bead945edd0" xlink:to="loc_us-gaap_MachineryAndEquipmentMember_c8e90dc2-b703-4e91-a583-bec69273928b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FurnitureAndFixturesMember_d4630f1f-6729-4629-8661-cabb8de70885" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FurnitureAndFixturesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_0df8a921-ba3f-4cbb-9915-1bead945edd0" xlink:to="loc_us-gaap_FurnitureAndFixturesMember_d4630f1f-6729-4629-8661-cabb8de70885" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_c8350fac-aaea-4647-bdc3-b3dd214b5a59" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_fb8039d4-10ab-4364-9e3f-68a8d7294261" xlink:to="loc_srt_RangeAxis_c8350fac-aaea-4647-bdc3-b3dd214b5a59" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_c8350fac-aaea-4647-bdc3-b3dd214b5a59_default" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_c8350fac-aaea-4647-bdc3-b3dd214b5a59" xlink:to="loc_srt_RangeMember_c8350fac-aaea-4647-bdc3-b3dd214b5a59_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_646f45bd-af13-4428-8a5b-aea1a4dbd303" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_c8350fac-aaea-4647-bdc3-b3dd214b5a59" xlink:to="loc_srt_RangeMember_646f45bd-af13-4428-8a5b-aea1a4dbd303" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_93a0d01b-cf09-4494-80c1-c67b7870fe54" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_646f45bd-af13-4428-8a5b-aea1a4dbd303" xlink:to="loc_srt_MinimumMember_93a0d01b-cf09-4494-80c1-c67b7870fe54" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_65f0c455-5447-43f7-952b-82db3850a2bc" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_646f45bd-af13-4428-8a5b-aea1a4dbd303" xlink:to="loc_srt_MaximumMember_65f0c455-5447-43f7-952b-82db3850a2bc" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.guidewire.com/role/Revenue" xlink:type="simple" xlink:href="gwre-20200430.xsd#Revenue"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/Revenue" xlink:type="extended" id="ic242990e7b6647fda6068d4ba96bf5a4_Revenue"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/RevenueTables" xlink:type="simple" xlink:href="gwre-20200430.xsd#RevenueTables"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/RevenueTables" xlink:type="extended" id="i69e229a219cd4b5ea21abfcb70c4372e_RevenueTables"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/RevenueDisaggregationofRevenueDetails" xlink:type="simple" xlink:href="gwre-20200430.xsd#RevenueDisaggregationofRevenueDetails"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/RevenueDisaggregationofRevenueDetails" xlink:type="extended" id="i751c71ac43ea432babe7008d8979f4b3_RevenueDisaggregationofRevenueDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_7e0c4e78-0134-4d84-ae13-e640568b16eb" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_97b8e064-48c9-4f71-b922-445606230891" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_7e0c4e78-0134-4d84-ae13-e640568b16eb" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_97b8e064-48c9-4f71-b922-445606230891" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_a03c9bff-ee27-41f0-832f-562efcc8f7b6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_7e0c4e78-0134-4d84-ae13-e640568b16eb" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_a03c9bff-ee27-41f0-832f-562efcc8f7b6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_05df264c-7f5a-4d7e-ac23-6adc0e0cd6f0" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_a03c9bff-ee27-41f0-832f-562efcc8f7b6" xlink:to="loc_srt_ProductOrServiceAxis_05df264c-7f5a-4d7e-ac23-6adc0e0cd6f0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_05df264c-7f5a-4d7e-ac23-6adc0e0cd6f0_default" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_05df264c-7f5a-4d7e-ac23-6adc0e0cd6f0" xlink:to="loc_srt_ProductsAndServicesDomain_05df264c-7f5a-4d7e-ac23-6adc0e0cd6f0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_7b4935ea-c6ce-44cf-b3ea-6a04fb58f8b7" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_05df264c-7f5a-4d7e-ac23-6adc0e0cd6f0" xlink:to="loc_srt_ProductsAndServicesDomain_7b4935ea-c6ce-44cf-b3ea-6a04fb58f8b7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_LicenseAndSubscriptionMember_e1ae16ef-7811-48b7-96ff-17d7a5278620" xlink:href="gwre-20200430.xsd#gwre_LicenseAndSubscriptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_7b4935ea-c6ce-44cf-b3ea-6a04fb58f8b7" xlink:to="loc_gwre_LicenseAndSubscriptionMember_e1ae16ef-7811-48b7-96ff-17d7a5278620" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_TermLicenseMember_5bd187f8-4707-404c-b7b9-1bd356cc9069" xlink:href="gwre-20200430.xsd#gwre_TermLicenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_gwre_LicenseAndSubscriptionMember_e1ae16ef-7811-48b7-96ff-17d7a5278620" xlink:to="loc_gwre_TermLicenseMember_5bd187f8-4707-404c-b7b9-1bd356cc9069" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_SubscriptionMember_3f12a7f6-86f7-4404-978b-6dffb9e11dea" xlink:href="gwre-20200430.xsd#gwre_SubscriptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_gwre_LicenseAndSubscriptionMember_e1ae16ef-7811-48b7-96ff-17d7a5278620" xlink:to="loc_gwre_SubscriptionMember_3f12a7f6-86f7-4404-978b-6dffb9e11dea" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_PerpetualLicenseMember_50e1250a-8821-4252-89ad-d8eac78374b5" xlink:href="gwre-20200430.xsd#gwre_PerpetualLicenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_gwre_LicenseAndSubscriptionMember_e1ae16ef-7811-48b7-96ff-17d7a5278620" xlink:to="loc_gwre_PerpetualLicenseMember_50e1250a-8821-4252-89ad-d8eac78374b5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MaintenanceMember_7e49aa2d-27aa-45fb-aeaf-20a2ae92c54b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MaintenanceMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_7b4935ea-c6ce-44cf-b3ea-6a04fb58f8b7" xlink:to="loc_us-gaap_MaintenanceMember_7e49aa2d-27aa-45fb-aeaf-20a2ae92c54b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ServiceMember_e1337272-b45a-46ee-9afd-b4b15a80cd67" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ServiceMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_7b4935ea-c6ce-44cf-b3ea-6a04fb58f8b7" xlink:to="loc_us-gaap_ServiceMember_e1337272-b45a-46ee-9afd-b4b15a80cd67" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_a479ecce-741f-4b38-b16c-22e81363fdf4" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_a03c9bff-ee27-41f0-832f-562efcc8f7b6" xlink:to="loc_srt_StatementGeographicalAxis_a479ecce-741f-4b38-b16c-22e81363fdf4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_a479ecce-741f-4b38-b16c-22e81363fdf4_default" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_a479ecce-741f-4b38-b16c-22e81363fdf4" xlink:to="loc_srt_SegmentGeographicalDomain_a479ecce-741f-4b38-b16c-22e81363fdf4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_26f107e1-bb1d-4c7c-9d72-7cbeabd7f0aa" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_a479ecce-741f-4b38-b16c-22e81363fdf4" xlink:to="loc_srt_SegmentGeographicalDomain_26f107e1-bb1d-4c7c-9d72-7cbeabd7f0aa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_US_390553c4-81c6-481b-962c-926aa1dfda9d" xlink:href="https://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_US"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_26f107e1-bb1d-4c7c-9d72-7cbeabd7f0aa" xlink:to="loc_country_US_390553c4-81c6-481b-962c-926aa1dfda9d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_CA_5eea8e8d-726a-48a1-afc5-c3aa8d816aae" xlink:href="https://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_CA"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_26f107e1-bb1d-4c7c-9d72-7cbeabd7f0aa" xlink:to="loc_country_CA_5eea8e8d-726a-48a1-afc5-c3aa8d816aae" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_OtherAmericasMember_5e731ef7-4c1d-4971-b88a-3e251f382b53" xlink:href="gwre-20200430.xsd#gwre_OtherAmericasMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_26f107e1-bb1d-4c7c-9d72-7cbeabd7f0aa" xlink:to="loc_gwre_OtherAmericasMember_5e731ef7-4c1d-4971-b88a-3e251f382b53" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_AmericasMember_834f898b-16b1-4048-82f1-532497b93dec" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_AmericasMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_26f107e1-bb1d-4c7c-9d72-7cbeabd7f0aa" xlink:to="loc_srt_AmericasMember_834f898b-16b1-4048-82f1-532497b93dec" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_GB_18e1c60d-9c19-4ad2-b9ce-794117744ea1" xlink:href="https://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_GB"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_26f107e1-bb1d-4c7c-9d72-7cbeabd7f0aa" xlink:to="loc_country_GB_18e1c60d-9c19-4ad2-b9ce-794117744ea1" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_OtherEMEAMember_d4a6839f-960e-4afa-9d83-381ae2b211ee" xlink:href="gwre-20200430.xsd#gwre_OtherEMEAMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_26f107e1-bb1d-4c7c-9d72-7cbeabd7f0aa" xlink:to="loc_gwre_OtherEMEAMember_d4a6839f-960e-4afa-9d83-381ae2b211ee" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EMEAMember_c06b90b3-2ff2-4e85-82e0-dfa65310732e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EMEAMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_26f107e1-bb1d-4c7c-9d72-7cbeabd7f0aa" xlink:to="loc_us-gaap_EMEAMember_c06b90b3-2ff2-4e85-82e0-dfa65310732e" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_APACMember_b38cef84-59ff-45db-b092-f64ad2793b08" xlink:href="gwre-20200430.xsd#gwre_APACMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_26f107e1-bb1d-4c7c-9d72-7cbeabd7f0aa" xlink:to="loc_gwre_APACMember_b38cef84-59ff-45db-b092-f64ad2793b08" xlink:type="arc" order="7"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.guidewire.com/role/RevenueContractwithCustomerDetails" xlink:type="simple" xlink:href="gwre-20200430.xsd#RevenueContractwithCustomerDetails"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/RevenueContractwithCustomerDetails" xlink:type="extended" id="i81d6d929ae2545cfacc8e804ceeb6e18_RevenueContractwithCustomerDetails"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/RevenueDetails" xlink:type="simple" xlink:href="gwre-20200430.xsd#RevenueDetails"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/RevenueDetails" xlink:type="extended" id="i1e277f8d324c43d3a9a329d620e1659b_RevenueDetails"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/FairValueofFinancialInstruments" xlink:type="simple" xlink:href="gwre-20200430.xsd#FairValueofFinancialInstruments"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/FairValueofFinancialInstruments" xlink:type="extended" id="ia341c29f1e264a5f86fe7c3ba834f7d5_FairValueofFinancialInstruments"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/FairValueofFinancialInstrumentsTables" xlink:type="simple" xlink:href="gwre-20200430.xsd#FairValueofFinancialInstrumentsTables"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/FairValueofFinancialInstrumentsTables" xlink:type="extended" id="ibfb5202ef8184fb3baeb61ddbf3034de_FairValueofFinancialInstrumentsTables"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/FairValueofFinancialInstrumentsDetails1" xlink:type="simple" xlink:href="gwre-20200430.xsd#FairValueofFinancialInstrumentsDetails1"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/FairValueofFinancialInstrumentsDetails1" xlink:type="extended" id="i4f5c45cc1c714818b2d847747e80a69c_FairValueofFinancialInstrumentsDetails1">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_287513be-293f-4727-b549-6294f629c16e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesAmortizedCost_9191c0c6-4b59-4544-ae64-49fa9339e3de" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesAmortizedCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_287513be-293f-4727-b549-6294f629c16e" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesAmortizedCost_9191c0c6-4b59-4544-ae64-49fa9339e3de" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_fe1b7dba-d2f1-4ef6-9ba2-3586c2e5a86a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_287513be-293f-4727-b549-6294f629c16e" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_fe1b7dba-d2f1-4ef6-9ba2-3586c2e5a86a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_0d7aef9c-ab62-4548-bbcf-fc498b116c3c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_287513be-293f-4727-b549-6294f629c16e" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_0d7aef9c-ab62-4548-bbcf-fc498b116c3c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecurities_fca309f4-9a25-4ea6-ae75-c802bbe379e4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecurities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_287513be-293f-4727-b549-6294f629c16e" xlink:to="loc_us-gaap_AvailableForSaleSecurities_fca309f4-9a25-4ea6-ae75-c802bbe379e4" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_86aee46e-6a7e-42e1-baa9-1b9aef8d6782" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_287513be-293f-4727-b549-6294f629c16e" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_86aee46e-6a7e-42e1-baa9-1b9aef8d6782" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_ff8dc0f5-a8fc-403b-a28d-b7ae556d1483" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_86aee46e-6a7e-42e1-baa9-1b9aef8d6782" xlink:to="loc_us-gaap_FinancialInstrumentAxis_ff8dc0f5-a8fc-403b-a28d-b7ae556d1483" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_ff8dc0f5-a8fc-403b-a28d-b7ae556d1483_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_ff8dc0f5-a8fc-403b-a28d-b7ae556d1483" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_ff8dc0f5-a8fc-403b-a28d-b7ae556d1483_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5af95dc7-4218-46c0-9717-c2f69fa832d9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_ff8dc0f5-a8fc-403b-a28d-b7ae556d1483" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5af95dc7-4218-46c0-9717-c2f69fa832d9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_37de548b-1331-4de9-9dc4-27f519f34e0a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_USGovernmentAgenciesDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5af95dc7-4218-46c0-9717-c2f69fa832d9" xlink:to="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_37de548b-1331-4de9-9dc4-27f519f34e0a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPaperMember_35b0ce35-0d99-4fe5-a309-09c442cd5e84" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommercialPaperMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5af95dc7-4218-46c0-9717-c2f69fa832d9" xlink:to="loc_us-gaap_CommercialPaperMember_35b0ce35-0d99-4fe5-a309-09c442cd5e84" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateBondSecuritiesMember_423c898c-1116-4474-b72f-1c0413dfa459" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CorporateBondSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5af95dc7-4218-46c0-9717-c2f69fa832d9" xlink:to="loc_us-gaap_CorporateBondSecuritiesMember_423c898c-1116-4474-b72f-1c0413dfa459" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USTreasurySecuritiesMember_940c3739-1bf1-46b0-9904-35aaf6b608b5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_USTreasurySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5af95dc7-4218-46c0-9717-c2f69fa832d9" xlink:to="loc_us-gaap_USTreasurySecuritiesMember_940c3739-1bf1-46b0-9904-35aaf6b608b5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetBackedSecuritiesMember_1c26af3b-b564-4dba-8cb8-b6b301872544" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetBackedSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5af95dc7-4218-46c0-9717-c2f69fa832d9" xlink:to="loc_us-gaap_AssetBackedSecuritiesMember_1c26af3b-b564-4dba-8cb8-b6b301872544" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignGovernmentDebtSecuritiesMember_7712f83c-2f80-4408-b49e-6b2250a58384" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ForeignGovernmentDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5af95dc7-4218-46c0-9717-c2f69fa832d9" xlink:to="loc_us-gaap_ForeignGovernmentDebtSecuritiesMember_7712f83c-2f80-4408-b49e-6b2250a58384" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CertificatesOfDepositMember_bb04a20a-2ffc-4ac7-9d97-bb5e9a6de869" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CertificatesOfDepositMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5af95dc7-4218-46c0-9717-c2f69fa832d9" xlink:to="loc_us-gaap_CertificatesOfDepositMember_bb04a20a-2ffc-4ac7-9d97-bb5e9a6de869" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MoneyMarketFundsMember_f6052619-31b3-483a-b56c-6f7d742e59d6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MoneyMarketFundsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5af95dc7-4218-46c0-9717-c2f69fa832d9" xlink:to="loc_us-gaap_MoneyMarketFundsMember_f6052619-31b3-483a-b56c-6f7d742e59d6" xlink:type="arc" order="7"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.guidewire.com/role/FairValueofFinancialInstrumentsDetails2" xlink:type="simple" xlink:href="gwre-20200430.xsd#FairValueofFinancialInstrumentsDetails2"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/FairValueofFinancialInstrumentsDetails2" xlink:type="extended" id="i25682e4f83fb4bceaa0ea664d6b4036d_FairValueofFinancialInstrumentsDetails2">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_72f70a72-b999-4fa0-ba81-21b6079fcb7f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_c2c20175-4c33-4f1d-a8d1-64998fd4b760" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_72f70a72-b999-4fa0-ba81-21b6079fcb7f" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_c2c20175-4c33-4f1d-a8d1-64998fd4b760" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_3a5ca070-f171-4f8a-a4aa-6e5c5cbac34b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_72f70a72-b999-4fa0-ba81-21b6079fcb7f" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_3a5ca070-f171-4f8a-a4aa-6e5c5cbac34b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_b27e5e3e-c167-499b-bcf7-645c993825fc" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_72f70a72-b999-4fa0-ba81-21b6079fcb7f" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_b27e5e3e-c167-499b-bcf7-645c993825fc" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_c12ea889-fe25-490b-9f5c-977a1164f642" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_72f70a72-b999-4fa0-ba81-21b6079fcb7f" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_c12ea889-fe25-490b-9f5c-977a1164f642" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValue_8bad38e2-ac1a-4804-8895-3a73cf555887" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_72f70a72-b999-4fa0-ba81-21b6079fcb7f" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValue_8bad38e2-ac1a-4804-8895-3a73cf555887" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_9fbc50e5-3f9f-4511-9106-938289092f9c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_72f70a72-b999-4fa0-ba81-21b6079fcb7f" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_9fbc50e5-3f9f-4511-9106-938289092f9c" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableforsaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions1_db0e0c51-a54c-4bb5-a3eb-2401e58eae78" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableforsaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_72f70a72-b999-4fa0-ba81-21b6079fcb7f" xlink:to="loc_us-gaap_AvailableforsaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions1_db0e0c51-a54c-4bb5-a3eb-2401e58eae78" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_32c50517-27ba-4c39-b44e-4eda9982c058" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_72f70a72-b999-4fa0-ba81-21b6079fcb7f" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_32c50517-27ba-4c39-b44e-4eda9982c058" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_6f083ff6-54e0-4e2c-8611-9b7d35d181a7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_32c50517-27ba-4c39-b44e-4eda9982c058" xlink:to="loc_us-gaap_FinancialInstrumentAxis_6f083ff6-54e0-4e2c-8611-9b7d35d181a7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_6f083ff6-54e0-4e2c-8611-9b7d35d181a7_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_6f083ff6-54e0-4e2c-8611-9b7d35d181a7" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_6f083ff6-54e0-4e2c-8611-9b7d35d181a7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_6ecadb11-3843-4bd5-bb12-0269f0c4e573" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_6f083ff6-54e0-4e2c-8611-9b7d35d181a7" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_6ecadb11-3843-4bd5-bb12-0269f0c4e573" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_e7e5d18f-5f9a-45d2-86b4-7f30df86dc3f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_USGovernmentAgenciesDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_6ecadb11-3843-4bd5-bb12-0269f0c4e573" xlink:to="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_e7e5d18f-5f9a-45d2-86b4-7f30df86dc3f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateBondSecuritiesMember_8d5c6d45-3b71-4c36-aaf3-158545909cdb" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CorporateBondSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_6ecadb11-3843-4bd5-bb12-0269f0c4e573" xlink:to="loc_us-gaap_CorporateBondSecuritiesMember_8d5c6d45-3b71-4c36-aaf3-158545909cdb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetBackedSecuritiesMember_5a991fd2-2288-4e4f-bd79-3a389a81c2ce" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetBackedSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_6ecadb11-3843-4bd5-bb12-0269f0c4e573" xlink:to="loc_us-gaap_AssetBackedSecuritiesMember_5a991fd2-2288-4e4f-bd79-3a389a81c2ce" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignGovernmentDebtSecuritiesMember_24d4d94a-4158-4f53-8705-9b54b6284313" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ForeignGovernmentDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_6ecadb11-3843-4bd5-bb12-0269f0c4e573" xlink:to="loc_us-gaap_ForeignGovernmentDebtSecuritiesMember_24d4d94a-4158-4f53-8705-9b54b6284313" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.guidewire.com/role/FairValueofFinancialInstrumentsDetails3" xlink:type="simple" xlink:href="gwre-20200430.xsd#FairValueofFinancialInstrumentsDetails3"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/FairValueofFinancialInstrumentsDetails3" xlink:type="extended" id="i7d966657859b448eb412507b826e447e_FairValueofFinancialInstrumentsDetails3">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_4ce76f7d-8e64-4c6e-846d-5e6864fb905a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_AvailableForSaleSecuritiesDebtMaturitiesCurrent_7843d434-d821-4359-8791-b3a0f18cbee2" xlink:href="gwre-20200430.xsd#gwre_AvailableForSaleSecuritiesDebtMaturitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_4ce76f7d-8e64-4c6e-846d-5e6864fb905a" xlink:to="loc_gwre_AvailableForSaleSecuritiesDebtMaturitiesCurrent_7843d434-d821-4359-8791-b3a0f18cbee2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_AvailableForSaleSecuritiesDebtMaturitiesNonCurrent_bfb18108-4d61-4a78-adda-a07eb79c7b78" xlink:href="gwre-20200430.xsd#gwre_AvailableForSaleSecuritiesDebtMaturitiesNonCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_4ce76f7d-8e64-4c6e-846d-5e6864fb905a" xlink:to="loc_gwre_AvailableForSaleSecuritiesDebtMaturitiesNonCurrent_bfb18108-4d61-4a78-adda-a07eb79c7b78" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecurities_cbb8cc47-0e87-49ab-894c-3cc922336be6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecurities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_4ce76f7d-8e64-4c6e-846d-5e6864fb905a" xlink:to="loc_us-gaap_AvailableForSaleSecurities_cbb8cc47-0e87-49ab-894c-3cc922336be6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_0512b897-a10d-4de5-93b1-d05b17ee380e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_4ce76f7d-8e64-4c6e-846d-5e6864fb905a" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_0512b897-a10d-4de5-93b1-d05b17ee380e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_f9d130c7-e279-4f46-be11-a227e265b102" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_0512b897-a10d-4de5-93b1-d05b17ee380e" xlink:to="loc_us-gaap_FinancialInstrumentAxis_f9d130c7-e279-4f46-be11-a227e265b102" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_f9d130c7-e279-4f46-be11-a227e265b102_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_f9d130c7-e279-4f46-be11-a227e265b102" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_f9d130c7-e279-4f46-be11-a227e265b102_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_1ae1dd66-c84b-44f8-9a17-0e785c6e800e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_f9d130c7-e279-4f46-be11-a227e265b102" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_1ae1dd66-c84b-44f8-9a17-0e785c6e800e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_e67cce81-7327-43f5-b5e0-eef4e421c21b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_USGovernmentAgenciesDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_1ae1dd66-c84b-44f8-9a17-0e785c6e800e" xlink:to="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_e67cce81-7327-43f5-b5e0-eef4e421c21b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPaperMember_e76e6a07-d0a8-416a-b41e-0b03c1c0243c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommercialPaperMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_1ae1dd66-c84b-44f8-9a17-0e785c6e800e" xlink:to="loc_us-gaap_CommercialPaperMember_e76e6a07-d0a8-416a-b41e-0b03c1c0243c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateBondSecuritiesMember_c40823d7-7bf9-4d6b-9854-62d7d2586f43" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CorporateBondSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_1ae1dd66-c84b-44f8-9a17-0e785c6e800e" xlink:to="loc_us-gaap_CorporateBondSecuritiesMember_c40823d7-7bf9-4d6b-9854-62d7d2586f43" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USTreasurySecuritiesMember_68a0bf51-1123-4fd7-a7b8-2ed331b07764" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_USTreasurySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_1ae1dd66-c84b-44f8-9a17-0e785c6e800e" xlink:to="loc_us-gaap_USTreasurySecuritiesMember_68a0bf51-1123-4fd7-a7b8-2ed331b07764" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetBackedSecuritiesMember_9d6b6ae4-0dd8-47a7-b42c-1ecfacb62f8d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetBackedSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_1ae1dd66-c84b-44f8-9a17-0e785c6e800e" xlink:to="loc_us-gaap_AssetBackedSecuritiesMember_9d6b6ae4-0dd8-47a7-b42c-1ecfacb62f8d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignGovernmentDebtSecuritiesMember_ac57fbbc-78f9-41e2-a972-b99978dc705a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ForeignGovernmentDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_1ae1dd66-c84b-44f8-9a17-0e785c6e800e" xlink:to="loc_us-gaap_ForeignGovernmentDebtSecuritiesMember_ac57fbbc-78f9-41e2-a972-b99978dc705a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CertificatesOfDepositMember_79749143-ebb5-4718-82ee-797d3f23f141" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CertificatesOfDepositMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_1ae1dd66-c84b-44f8-9a17-0e785c6e800e" xlink:to="loc_us-gaap_CertificatesOfDepositMember_79749143-ebb5-4718-82ee-797d3f23f141" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MoneyMarketFundsMember_bc45899a-f884-41e5-88f8-de91253b17ba" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MoneyMarketFundsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_1ae1dd66-c84b-44f8-9a17-0e785c6e800e" xlink:to="loc_us-gaap_MoneyMarketFundsMember_bc45899a-f884-41e5-88f8-de91253b17ba" xlink:type="arc" order="7"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.guidewire.com/role/FairValueofFinancialInstrumentsDetails4" xlink:type="simple" xlink:href="gwre-20200430.xsd#FairValueofFinancialInstrumentsDetails4"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/FairValueofFinancialInstrumentsDetails4" xlink:type="extended" id="id2e3f2885f204abfa44c8d7fafc4ecfa_FairValueofFinancialInstrumentsDetails4">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_ca14bbc5-6169-4f22-a2cb-6683731164a8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_9a241137-fd98-4748-893f-837955259b2a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_ca14bbc5-6169-4f22-a2cb-6683731164a8" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_9a241137-fd98-4748-893f-837955259b2a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesCurrent_c9b1aa4a-7cdd-4b3c-a754-0ec8cb66790c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_ca14bbc5-6169-4f22-a2cb-6683731164a8" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesCurrent_c9b1aa4a-7cdd-4b3c-a754-0ec8cb66790c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesNoncurrent_b5c3aca0-7831-455e-b6ef-1959644b9b74" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_ca14bbc5-6169-4f22-a2cb-6683731164a8" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesNoncurrent_b5c3aca0-7831-455e-b6ef-1959644b9b74" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecurities_05771864-1da9-4199-ab74-76917d93aa78" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecurities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_ca14bbc5-6169-4f22-a2cb-6683731164a8" xlink:to="loc_us-gaap_AvailableForSaleSecurities_05771864-1da9-4199-ab74-76917d93aa78" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtFairValue_29c0345c-0db1-440c-8e19-13d5af52c370" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_ca14bbc5-6169-4f22-a2cb-6683731164a8" xlink:to="loc_us-gaap_LongTermDebtFairValue_29c0345c-0db1-440c-8e19-13d5af52c370" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_131ea0a9-4d8b-4eb9-959a-26c2a70acb81" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_ca14bbc5-6169-4f22-a2cb-6683731164a8" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_131ea0a9-4d8b-4eb9-959a-26c2a70acb81" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_abf72a33-3847-4122-a117-824d94882d07" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_131ea0a9-4d8b-4eb9-959a-26c2a70acb81" xlink:to="loc_us-gaap_FinancialInstrumentAxis_abf72a33-3847-4122-a117-824d94882d07" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_abf72a33-3847-4122-a117-824d94882d07_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_abf72a33-3847-4122-a117-824d94882d07" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_abf72a33-3847-4122-a117-824d94882d07_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_73b829d6-4923-4c93-afad-e842de0b8d9a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_abf72a33-3847-4122-a117-824d94882d07" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_73b829d6-4923-4c93-afad-e842de0b8d9a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_409adba9-06e3-4605-9c21-e93a465eff7b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_USGovernmentAgenciesDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_73b829d6-4923-4c93-afad-e842de0b8d9a" xlink:to="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_409adba9-06e3-4605-9c21-e93a465eff7b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPaperMember_0f3d177d-67b5-40dc-b659-ffa8638198e3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommercialPaperMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_73b829d6-4923-4c93-afad-e842de0b8d9a" xlink:to="loc_us-gaap_CommercialPaperMember_0f3d177d-67b5-40dc-b659-ffa8638198e3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateBondSecuritiesMember_0ecd8113-f1e5-4d57-809e-e18ab9ea368e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CorporateBondSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_73b829d6-4923-4c93-afad-e842de0b8d9a" xlink:to="loc_us-gaap_CorporateBondSecuritiesMember_0ecd8113-f1e5-4d57-809e-e18ab9ea368e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USTreasurySecuritiesMember_345211a1-5845-46c7-afc2-d86568588a9a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_USTreasurySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_73b829d6-4923-4c93-afad-e842de0b8d9a" xlink:to="loc_us-gaap_USTreasurySecuritiesMember_345211a1-5845-46c7-afc2-d86568588a9a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetBackedSecuritiesMember_7adf039a-35ad-434f-9445-546f1a0588b0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetBackedSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_73b829d6-4923-4c93-afad-e842de0b8d9a" xlink:to="loc_us-gaap_AssetBackedSecuritiesMember_7adf039a-35ad-434f-9445-546f1a0588b0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignGovernmentDebtSecuritiesMember_17bfa15d-fbb0-40a0-9e2a-8e62b7425628" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ForeignGovernmentDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_73b829d6-4923-4c93-afad-e842de0b8d9a" xlink:to="loc_us-gaap_ForeignGovernmentDebtSecuritiesMember_17bfa15d-fbb0-40a0-9e2a-8e62b7425628" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CertificatesOfDepositMember_c67a140a-6a5b-43c0-9f6a-4aa54886bc11" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CertificatesOfDepositMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_73b829d6-4923-4c93-afad-e842de0b8d9a" xlink:to="loc_us-gaap_CertificatesOfDepositMember_c67a140a-6a5b-43c0-9f6a-4aa54886bc11" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAxis_34a2c1af-fd59-4e04-b105-bc64ad40ba3a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashAndCashEquivalentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_131ea0a9-4d8b-4eb9-959a-26c2a70acb81" xlink:to="loc_us-gaap_CashAndCashEquivalentsAxis_34a2c1af-fd59-4e04-b105-bc64ad40ba3a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_34a2c1af-fd59-4e04-b105-bc64ad40ba3a_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CashAndCashEquivalentsAxis_34a2c1af-fd59-4e04-b105-bc64ad40ba3a" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_34a2c1af-fd59-4e04-b105-bc64ad40ba3a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_0489e145-8165-4fd2-8723-5f68ff860430" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CashAndCashEquivalentsAxis_34a2c1af-fd59-4e04-b105-bc64ad40ba3a" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_0489e145-8165-4fd2-8723-5f68ff860430" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPaperMember_eeb138b6-2045-4eb3-810e-bd19e25e3f9a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommercialPaperMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_0489e145-8165-4fd2-8723-5f68ff860430" xlink:to="loc_us-gaap_CommercialPaperMember_eeb138b6-2045-4eb3-810e-bd19e25e3f9a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateBondSecuritiesMember_0f729525-fd8e-41d0-b142-e8ecde891208" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CorporateBondSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_0489e145-8165-4fd2-8723-5f68ff860430" xlink:to="loc_us-gaap_CorporateBondSecuritiesMember_0f729525-fd8e-41d0-b142-e8ecde891208" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MoneyMarketFundsMember_597a8f92-eef2-49ea-98a9-cdcaa226a7c1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MoneyMarketFundsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_0489e145-8165-4fd2-8723-5f68ff860430" xlink:to="loc_us-gaap_MoneyMarketFundsMember_597a8f92-eef2-49ea-98a9-cdcaa226a7c1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_ba2a48f7-7e1a-41d7-a8c8-27ae5af43fcf" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_131ea0a9-4d8b-4eb9-959a-26c2a70acb81" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_ba2a48f7-7e1a-41d7-a8c8-27ae5af43fcf" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_ba2a48f7-7e1a-41d7-a8c8-27ae5af43fcf_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_ba2a48f7-7e1a-41d7-a8c8-27ae5af43fcf" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_ba2a48f7-7e1a-41d7-a8c8-27ae5af43fcf_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5ddc16de-6771-48b4-8bea-2e74a8b0c892" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_ba2a48f7-7e1a-41d7-a8c8-27ae5af43fcf" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5ddc16de-6771-48b4-8bea-2e74a8b0c892" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_6dfbb2ef-5350-4ce4-9a66-6da5efe09266" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5ddc16de-6771-48b4-8bea-2e74a8b0c892" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_6dfbb2ef-5350-4ce4-9a66-6da5efe09266" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_66d7a3c2-d463-4a42-a228-1c728f4ae17b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5ddc16de-6771-48b4-8bea-2e74a8b0c892" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_66d7a3c2-d463-4a42-a228-1c728f4ae17b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_e0deb67c-e398-4fe8-8f2f-c171883817dd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5ddc16de-6771-48b4-8bea-2e74a8b0c892" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_e0deb67c-e398-4fe8-8f2f-c171883817dd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_12a92161-7a97-48d4-b8a9-3c50463fc728" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_131ea0a9-4d8b-4eb9-959a-26c2a70acb81" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_12a92161-7a97-48d4-b8a9-3c50463fc728" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_12a92161-7a97-48d4-b8a9-3c50463fc728_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_12a92161-7a97-48d4-b8a9-3c50463fc728" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_12a92161-7a97-48d4-b8a9-3c50463fc728_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_a736bfd2-9c4e-40b6-96fc-7c58a4967482" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_12a92161-7a97-48d4-b8a9-3c50463fc728" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_a736bfd2-9c4e-40b6-96fc-7c58a4967482" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotesMember_4fd6791b-7c1d-4035-9af9-d8d47955d70f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_a736bfd2-9c4e-40b6-96fc-7c58a4967482" xlink:to="loc_us-gaap_SeniorNotesMember_4fd6791b-7c1d-4035-9af9-d8d47955d70f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_f3623487-53d9-492b-b3c5-47846d9c3102" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_131ea0a9-4d8b-4eb9-959a-26c2a70acb81" xlink:to="loc_us-gaap_DebtInstrumentAxis_f3623487-53d9-492b-b3c5-47846d9c3102" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_f3623487-53d9-492b-b3c5-47846d9c3102_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_f3623487-53d9-492b-b3c5-47846d9c3102" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_f3623487-53d9-492b-b3c5-47846d9c3102_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_a2d7b2bf-5c87-4cc1-8d8a-73569daff379" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_f3623487-53d9-492b-b3c5-47846d9c3102" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_a2d7b2bf-5c87-4cc1-8d8a-73569daff379" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_ConvertibleSeniorNotes1.250Member_a715f58d-7590-408b-90a5-923fc93aa56b" xlink:href="gwre-20200430.xsd#gwre_ConvertibleSeniorNotes1.250Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_a2d7b2bf-5c87-4cc1-8d8a-73569daff379" xlink:to="loc_gwre_ConvertibleSeniorNotes1.250Member_a715f58d-7590-408b-90a5-923fc93aa56b" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.guidewire.com/role/BalanceSheetComponents" xlink:type="simple" xlink:href="gwre-20200430.xsd#BalanceSheetComponents"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/BalanceSheetComponents" xlink:type="extended" id="iad8239df0665483aa14dcdbe3e9eff34_BalanceSheetComponents"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/BalanceSheetComponentsTables" xlink:type="simple" xlink:href="gwre-20200430.xsd#BalanceSheetComponentsTables"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/BalanceSheetComponentsTables" xlink:type="extended" id="ie69657ddd3bb4ea6ba1f3a7174b29b86_BalanceSheetComponentsTables"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/BalanceSheetComponentsDetails1" xlink:type="simple" xlink:href="gwre-20200430.xsd#BalanceSheetComponentsDetails1"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/BalanceSheetComponentsDetails1" xlink:type="extended" id="idb60326c190540428618586527200ca6_BalanceSheetComponentsDetails1"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/BalanceSheetComponentsDetails2" xlink:type="simple" xlink:href="gwre-20200430.xsd#BalanceSheetComponentsDetails2"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/BalanceSheetComponentsDetails2" xlink:type="extended" id="i871663786d3e4832a41e1a01dc40e022_BalanceSheetComponentsDetails2"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/BalanceSheetComponentsDetails3" xlink:type="simple" xlink:href="gwre-20200430.xsd#BalanceSheetComponentsDetails3"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/BalanceSheetComponentsDetails3" xlink:type="extended" id="i4a4050b7c25c4f5a9e99a84745b4a213_BalanceSheetComponentsDetails3"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/BalanceSheetComponentsDetailsTextual" xlink:type="simple" xlink:href="gwre-20200430.xsd#BalanceSheetComponentsDetailsTextual"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/BalanceSheetComponentsDetailsTextual" xlink:type="extended" id="ife92d291d4c948bb880bd98a787b5151_BalanceSheetComponentsDetailsTextual"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/BalanceSheetComponentsDetails4" xlink:type="simple" xlink:href="gwre-20200430.xsd#BalanceSheetComponentsDetails4"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/BalanceSheetComponentsDetails4" xlink:type="extended" id="i22b574fb8e76463b9919785fbda1f80a_BalanceSheetComponentsDetails4"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/BalanceSheetComponentsDetails5" xlink:type="simple" xlink:href="gwre-20200430.xsd#BalanceSheetComponentsDetails5"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/BalanceSheetComponentsDetails5" xlink:type="extended" id="i6f86b7528a5c45b49ff9078bd91e60a5_BalanceSheetComponentsDetails5">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_34ecb879-b699-4933-993d-08f8347609c8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_7c8383bc-dd63-4c8f-b503-64edd63950a8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_34ecb879-b699-4933-993d-08f8347609c8" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_7c8383bc-dd63-4c8f-b503-64edd63950a8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_b65eb223-fbfe-4a35-9d2e-44ac168fddcb" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_34ecb879-b699-4933-993d-08f8347609c8" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_b65eb223-fbfe-4a35-9d2e-44ac168fddcb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_71a2a5a7-2c2e-42f4-832f-6a216429faad" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_34ecb879-b699-4933-993d-08f8347609c8" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_71a2a5a7-2c2e-42f4-832f-6a216429faad" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_fc564d20-2315-4adb-90f8-d054ae6f6aec" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_34ecb879-b699-4933-993d-08f8347609c8" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_fc564d20-2315-4adb-90f8-d054ae6f6aec" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_e4c4e536-1a0a-46bb-a0e8-f5ece5a300f3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_34ecb879-b699-4933-993d-08f8347609c8" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_e4c4e536-1a0a-46bb-a0e8-f5ece5a300f3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_b3a313e0-406e-44c4-90de-e4dc9cdf058c" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_e4c4e536-1a0a-46bb-a0e8-f5ece5a300f3" xlink:to="loc_srt_RangeAxis_b3a313e0-406e-44c4-90de-e4dc9cdf058c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_b3a313e0-406e-44c4-90de-e4dc9cdf058c_default" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_b3a313e0-406e-44c4-90de-e4dc9cdf058c" xlink:to="loc_srt_RangeMember_b3a313e0-406e-44c4-90de-e4dc9cdf058c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_48d6ffa8-343b-45e9-bb7e-a97559c476b0" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_b3a313e0-406e-44c4-90de-e4dc9cdf058c" xlink:to="loc_srt_RangeMember_48d6ffa8-343b-45e9-bb7e-a97559c476b0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_WeightedAverageMember_8c8ac142-a740-4743-b5d5-3497cb3e6ee4" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_WeightedAverageMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_48d6ffa8-343b-45e9-bb7e-a97559c476b0" xlink:to="loc_srt_WeightedAverageMember_8c8ac142-a740-4743-b5d5-3497cb3e6ee4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_e1b50ee3-4464-4ba3-b829-cd0324127da8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_e4c4e536-1a0a-46bb-a0e8-f5ece5a300f3" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_e1b50ee3-4464-4ba3-b829-cd0324127da8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_e1b50ee3-4464-4ba3-b829-cd0324127da8_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_e1b50ee3-4464-4ba3-b829-cd0324127da8" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_e1b50ee3-4464-4ba3-b829-cd0324127da8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_6352a2a1-7799-4da8-a7ca-9446ad96a42a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_e1b50ee3-4464-4ba3-b829-cd0324127da8" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_6352a2a1-7799-4da8-a7ca-9446ad96a42a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TechnologyBasedIntangibleAssetsMember_06044036-5886-4ab6-8417-23db1a038748" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TechnologyBasedIntangibleAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_6352a2a1-7799-4da8-a7ca-9446ad96a42a" xlink:to="loc_us-gaap_TechnologyBasedIntangibleAssetsMember_06044036-5886-4ab6-8417-23db1a038748" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_CustomerRelationshipsandCustomerContractsMember_f6309d4e-a0b5-41b0-a0e1-2221994d676d" xlink:href="gwre-20200430.xsd#gwre_CustomerRelationshipsandCustomerContractsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_6352a2a1-7799-4da8-a7ca-9446ad96a42a" xlink:to="loc_gwre_CustomerRelationshipsandCustomerContractsMember_f6309d4e-a0b5-41b0-a0e1-2221994d676d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_PartnerRelationshipsMember_3223dba9-a56e-4f75-bbdc-6ec8353dc20c" xlink:href="gwre-20200430.xsd#gwre_PartnerRelationshipsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_6352a2a1-7799-4da8-a7ca-9446ad96a42a" xlink:to="loc_gwre_PartnerRelationshipsMember_3223dba9-a56e-4f75-bbdc-6ec8353dc20c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TrademarksMember_8e1c87b3-ba1d-4f5b-a36a-a716fde7e6f9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TrademarksMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_6352a2a1-7799-4da8-a7ca-9446ad96a42a" xlink:to="loc_us-gaap_TrademarksMember_8e1c87b3-ba1d-4f5b-a36a-a716fde7e6f9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OrderOrProductionBacklogMember_034d1ad1-b46d-488d-a5c7-2558a3dcd0b0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OrderOrProductionBacklogMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_6352a2a1-7799-4da8-a7ca-9446ad96a42a" xlink:to="loc_us-gaap_OrderOrProductionBacklogMember_034d1ad1-b46d-488d-a5c7-2558a3dcd0b0" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.guidewire.com/role/BalanceSheetComponentsDetails6" xlink:type="simple" xlink:href="gwre-20200430.xsd#BalanceSheetComponentsDetails6"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/BalanceSheetComponentsDetails6" xlink:type="extended" id="i4347483ab4e9426684e4a46fdc4964d5_BalanceSheetComponentsDetails6"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/BalanceSheetComponentsDetails7" xlink:type="simple" xlink:href="gwre-20200430.xsd#BalanceSheetComponentsDetails7"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/BalanceSheetComponentsDetails7" xlink:type="extended" id="if2c1737371a1472d9b1e993750b1066b_BalanceSheetComponentsDetails7"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/BalanceSheetComponentsDetails8" xlink:type="simple" xlink:href="gwre-20200430.xsd#BalanceSheetComponentsDetails8"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/BalanceSheetComponentsDetails8" xlink:type="extended" id="i79709f7097774e73be37ff93387c0571_BalanceSheetComponentsDetails8"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/BalanceSheetComponentsDetails9" xlink:type="simple" xlink:href="gwre-20200430.xsd#BalanceSheetComponentsDetails9"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/BalanceSheetComponentsDetails9" xlink:type="extended" id="ief3a2e686b744a5788c28044c040bb0c_BalanceSheetComponentsDetails9"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/NetIncomeLossPerShare" xlink:type="simple" xlink:href="gwre-20200430.xsd#NetIncomeLossPerShare"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/NetIncomeLossPerShare" xlink:type="extended" id="i5ebd2d27b3724da287c28b08bb7810f5_NetIncomeLossPerShare"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/NetIncomeLossPerShareTables" xlink:type="simple" xlink:href="gwre-20200430.xsd#NetIncomeLossPerShareTables"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/NetIncomeLossPerShareTables" xlink:type="extended" id="i87f3110bdf3749a0bcd2a8d6fb84a295_NetIncomeLossPerShareTables"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/NetIncomeLossPerShareDetails1" xlink:type="simple" xlink:href="gwre-20200430.xsd#NetIncomeLossPerShareDetails1"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/NetIncomeLossPerShareDetails1" xlink:type="extended" id="i6c4572b58eb94ff49c8a2a1f47943642_NetIncomeLossPerShareDetails1"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/NetIncomeLossPerShareDetails2" xlink:type="simple" xlink:href="gwre-20200430.xsd#NetIncomeLossPerShareDetails2"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/NetIncomeLossPerShareDetails2" xlink:type="extended" id="i8f28779e9ac94aeaa2f18133ce3ff03e_NetIncomeLossPerShareDetails2">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_e990cc9d-610a-47b3-a21f-2065b7162798" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_60451e7c-56bd-4e8e-a3a3-8fb5241c9a83" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_e990cc9d-610a-47b3-a21f-2065b7162798" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_60451e7c-56bd-4e8e-a3a3-8fb5241c9a83" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleConversionPrice1_d181da3f-ba1f-44ca-9d25-e1b6b548e5fa" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentConvertibleConversionPrice1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_e990cc9d-610a-47b3-a21f-2065b7162798" xlink:to="loc_us-gaap_DebtInstrumentConvertibleConversionPrice1_d181da3f-ba1f-44ca-9d25-e1b6b548e5fa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_b408c273-02dc-46f1-ace8-c046b7819e75" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_e990cc9d-610a-47b3-a21f-2065b7162798" xlink:to="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_b408c273-02dc-46f1-ace8-c046b7819e75" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_199341c2-cf94-4115-99b5-3f786ca0d5ee" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_b408c273-02dc-46f1-ace8-c046b7819e75" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_199341c2-cf94-4115-99b5-3f786ca0d5ee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_199341c2-cf94-4115-99b5-3f786ca0d5ee_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_199341c2-cf94-4115-99b5-3f786ca0d5ee" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_199341c2-cf94-4115-99b5-3f786ca0d5ee_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_92a417a2-e340-46a9-815a-cbfa788f8c2d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_199341c2-cf94-4115-99b5-3f786ca0d5ee" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_92a417a2-e340-46a9-815a-cbfa788f8c2d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_b3c3aa18-6792-41e7-9d2d-af6a79e95c9e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeStockOptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_92a417a2-e340-46a9-815a-cbfa788f8c2d" xlink:to="loc_us-gaap_EmployeeStockOptionMember_b3c3aa18-6792-41e7-9d2d-af6a79e95c9e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockMember_39b545e5-e5f0-4729-99d9-d6b4e0c0e3bb" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestrictedStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_92a417a2-e340-46a9-815a-cbfa788f8c2d" xlink:to="loc_us-gaap_RestrictedStockMember_39b545e5-e5f0-4729-99d9-d6b4e0c0e3bb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_6d9d8aae-0a4e-489a-a932-d3091a0b6ecf" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_b408c273-02dc-46f1-ace8-c046b7819e75" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_6d9d8aae-0a4e-489a-a932-d3091a0b6ecf" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_6d9d8aae-0a4e-489a-a932-d3091a0b6ecf_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_6d9d8aae-0a4e-489a-a932-d3091a0b6ecf" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_6d9d8aae-0a4e-489a-a932-d3091a0b6ecf_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_c7303a9d-f5f3-4d94-87c4-21b9bdfe4488" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_6d9d8aae-0a4e-489a-a932-d3091a0b6ecf" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_c7303a9d-f5f3-4d94-87c4-21b9bdfe4488" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotesMember_1c01c0a5-2d41-4c74-b417-78a3c11d0016" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_c7303a9d-f5f3-4d94-87c4-21b9bdfe4488" xlink:to="loc_us-gaap_SeniorNotesMember_1c01c0a5-2d41-4c74-b417-78a3c11d0016" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_bb2986f4-40c1-4a66-ae30-b74228fc5267" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_b408c273-02dc-46f1-ace8-c046b7819e75" xlink:to="loc_us-gaap_DebtInstrumentAxis_bb2986f4-40c1-4a66-ae30-b74228fc5267" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_bb2986f4-40c1-4a66-ae30-b74228fc5267_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_bb2986f4-40c1-4a66-ae30-b74228fc5267" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_bb2986f4-40c1-4a66-ae30-b74228fc5267_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_960e4777-8c04-418b-b2e2-6d0bb9f658ab" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_bb2986f4-40c1-4a66-ae30-b74228fc5267" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_960e4777-8c04-418b-b2e2-6d0bb9f658ab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtMember_f242a753-6dae-4177-9007-b902aed4b838" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConvertibleDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_960e4777-8c04-418b-b2e2-6d0bb9f658ab" xlink:to="loc_us-gaap_ConvertibleDebtMember_f242a753-6dae-4177-9007-b902aed4b838" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPeriodAxis_3a3c6365-7495-4fd0-bfdf-1b975df885bb" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentRedemptionPeriodAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_b408c273-02dc-46f1-ace8-c046b7819e75" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPeriodAxis_3a3c6365-7495-4fd0-bfdf-1b975df885bb" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPeriodDomain_3a3c6365-7495-4fd0-bfdf-1b975df885bb_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentRedemptionPeriodDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentRedemptionPeriodAxis_3a3c6365-7495-4fd0-bfdf-1b975df885bb" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPeriodDomain_3a3c6365-7495-4fd0-bfdf-1b975df885bb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPeriodDomain_5222955b-972e-462e-8cb3-47bdd7555d34" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentRedemptionPeriodDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentRedemptionPeriodAxis_3a3c6365-7495-4fd0-bfdf-1b975df885bb" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPeriodDomain_5222955b-972e-462e-8cb3-47bdd7555d34" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPeriodTwoMember_1f8b0cc7-c55d-496f-bfce-ebf136a07e58" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentRedemptionPeriodTwoMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentRedemptionPeriodDomain_5222955b-972e-462e-8cb3-47bdd7555d34" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPeriodTwoMember_1f8b0cc7-c55d-496f-bfce-ebf136a07e58" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.guidewire.com/role/ConvertibleSeniorNotes" xlink:type="simple" xlink:href="gwre-20200430.xsd#ConvertibleSeniorNotes"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/ConvertibleSeniorNotes" xlink:type="extended" id="ia246052f95264db1ad809521c0ce8619_ConvertibleSeniorNotes"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/ConvertibleSeniorNotesTables" xlink:type="simple" xlink:href="gwre-20200430.xsd#ConvertibleSeniorNotesTables"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/ConvertibleSeniorNotesTables" xlink:type="extended" id="i01f9353c9090455bbdec39c23f054e23_ConvertibleSeniorNotesTables"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/ConvertibleSeniorNotesDetails" xlink:type="simple" xlink:href="gwre-20200430.xsd#ConvertibleSeniorNotesDetails"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/ConvertibleSeniorNotesDetails" xlink:type="extended" id="i539f941e5b8e48179ad1f7d304c0817d_ConvertibleSeniorNotesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_83ebb216-a911-4c02-b658-a06bf8fa5077" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_212034c6-04e5-4980-abe6-045b395445fb" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_83ebb216-a911-4c02-b658-a06bf8fa5077" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_212034c6-04e5-4980-abe6-045b395445fb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_cc091d30-1ae7-4f59-b90b-c1f8d1c06dda" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_83ebb216-a911-4c02-b658-a06bf8fa5077" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_cc091d30-1ae7-4f59-b90b-c1f8d1c06dda" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromConvertibleDebt_8a848e39-dcad-4b24-a55e-abbcdb2615ef" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromConvertibleDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_83ebb216-a911-4c02-b658-a06bf8fa5077" xlink:to="loc_us-gaap_ProceedsFromConvertibleDebt_8a848e39-dcad-4b24-a55e-abbcdb2615ef" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_DebtInstrumentConvertibleNumberofSharesIssuablePer1000PrincipalConverted_eae4db05-c68b-40b0-b02e-f30742f74628" xlink:href="gwre-20200430.xsd#gwre_DebtInstrumentConvertibleNumberofSharesIssuablePer1000PrincipalConverted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_83ebb216-a911-4c02-b658-a06bf8fa5077" xlink:to="loc_gwre_DebtInstrumentConvertibleNumberofSharesIssuablePer1000PrincipalConverted_eae4db05-c68b-40b0-b02e-f30742f74628" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleConversionPrice1_dacdfa9f-743a-45d5-97ff-45884aec1f16" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentConvertibleConversionPrice1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_83ebb216-a911-4c02-b658-a06bf8fa5077" xlink:to="loc_us-gaap_DebtInstrumentConvertibleConversionPrice1_dacdfa9f-743a-45d5-97ff-45884aec1f16" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPricePercentage_8751ccf7-0f21-4cdd-b169-1bf097ec6d96" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentRedemptionPricePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_83ebb216-a911-4c02-b658-a06bf8fa5077" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPricePercentage_8751ccf7-0f21-4cdd-b169-1bf097ec6d96" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleThresholdPercentageOfStockPriceTrigger_87c585ec-ee9e-43a3-9fba-13366890a19d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentConvertibleThresholdPercentageOfStockPriceTrigger"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_83ebb216-a911-4c02-b658-a06bf8fa5077" xlink:to="loc_us-gaap_DebtInstrumentConvertibleThresholdPercentageOfStockPriceTrigger_87c585ec-ee9e-43a3-9fba-13366890a19d" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleThresholdTradingDays_fae0dccf-61a1-4401-9be5-8490de636ca5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentConvertibleThresholdTradingDays"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_83ebb216-a911-4c02-b658-a06bf8fa5077" xlink:to="loc_us-gaap_DebtInstrumentConvertibleThresholdTradingDays_fae0dccf-61a1-4401-9be5-8490de636ca5" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_DebtInstrumentConvertibleConversionNoticePeriod_37f030ef-7047-4c14-ad07-a15f1a513ebd" xlink:href="gwre-20200430.xsd#gwre_DebtInstrumentConvertibleConversionNoticePeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_83ebb216-a911-4c02-b658-a06bf8fa5077" xlink:to="loc_gwre_DebtInstrumentConvertibleConversionNoticePeriod_37f030ef-7047-4c14-ad07-a15f1a513ebd" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_8aebf681-e350-44db-92c8-cd7409ec3ffa" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_83ebb216-a911-4c02-b658-a06bf8fa5077" xlink:to="loc_us-gaap_DebtInstrumentTable_8aebf681-e350-44db-92c8-cd7409ec3ffa" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPeriodAxis_cac86cef-95c5-40aa-b3f7-6975dfc5bc34" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentRedemptionPeriodAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_8aebf681-e350-44db-92c8-cd7409ec3ffa" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPeriodAxis_cac86cef-95c5-40aa-b3f7-6975dfc5bc34" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPeriodDomain_cac86cef-95c5-40aa-b3f7-6975dfc5bc34_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentRedemptionPeriodDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentRedemptionPeriodAxis_cac86cef-95c5-40aa-b3f7-6975dfc5bc34" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPeriodDomain_cac86cef-95c5-40aa-b3f7-6975dfc5bc34_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPeriodDomain_e1c8156e-b093-4a0d-85fa-c8d58350b452" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentRedemptionPeriodDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentRedemptionPeriodAxis_cac86cef-95c5-40aa-b3f7-6975dfc5bc34" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPeriodDomain_e1c8156e-b093-4a0d-85fa-c8d58350b452" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPeriodTwoMember_871646b7-cac3-4baf-af6e-d9cd80066475" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentRedemptionPeriodTwoMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentRedemptionPeriodDomain_e1c8156e-b093-4a0d-85fa-c8d58350b452" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPeriodTwoMember_871646b7-cac3-4baf-af6e-d9cd80066475" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPeriodOneMember_a70882ca-8c06-463a-bed0-3333aec479e2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentRedemptionPeriodOneMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentRedemptionPeriodDomain_e1c8156e-b093-4a0d-85fa-c8d58350b452" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPeriodOneMember_a70882ca-8c06-463a-bed0-3333aec479e2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_a37e37a2-1649-4e0e-831e-594fa1b99385" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_8aebf681-e350-44db-92c8-cd7409ec3ffa" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_a37e37a2-1649-4e0e-831e-594fa1b99385" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_a37e37a2-1649-4e0e-831e-594fa1b99385_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_a37e37a2-1649-4e0e-831e-594fa1b99385" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_a37e37a2-1649-4e0e-831e-594fa1b99385_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_ca033b9a-4faf-4a72-b6c2-37423a0c5504" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_a37e37a2-1649-4e0e-831e-594fa1b99385" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_ca033b9a-4faf-4a72-b6c2-37423a0c5504" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotesMember_5213128b-8fde-49ce-a25f-1a485c22afd8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_ca033b9a-4faf-4a72-b6c2-37423a0c5504" xlink:to="loc_us-gaap_SeniorNotesMember_5213128b-8fde-49ce-a25f-1a485c22afd8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_bec9c165-8b43-4802-be00-4a5d5d63f028" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_8aebf681-e350-44db-92c8-cd7409ec3ffa" xlink:to="loc_us-gaap_DebtInstrumentAxis_bec9c165-8b43-4802-be00-4a5d5d63f028" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_bec9c165-8b43-4802-be00-4a5d5d63f028_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_bec9c165-8b43-4802-be00-4a5d5d63f028" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_bec9c165-8b43-4802-be00-4a5d5d63f028_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_71bbe8bd-6743-44a5-8642-a5345f3569e5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_bec9c165-8b43-4802-be00-4a5d5d63f028" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_71bbe8bd-6743-44a5-8642-a5345f3569e5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtMember_ea9d895c-b6b9-443e-96f5-584d0e7c7515" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConvertibleDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_71bbe8bd-6743-44a5-8642-a5345f3569e5" xlink:to="loc_us-gaap_ConvertibleDebtMember_ea9d895c-b6b9-443e-96f5-584d0e7c7515" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.guidewire.com/role/ConvertibleSeniorNotesNetcarryingvalueoftheliabilitycomponentDetails" xlink:type="simple" xlink:href="gwre-20200430.xsd#ConvertibleSeniorNotesNetcarryingvalueoftheliabilitycomponentDetails"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/ConvertibleSeniorNotesNetcarryingvalueoftheliabilitycomponentDetails" xlink:type="extended" id="if179cb7e9c50484eb4f261d9f62ce0d9_ConvertibleSeniorNotesNetcarryingvalueoftheliabilitycomponentDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_48e802c8-691e-4bc5-96ee-7bb1903e166a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_885b2cb6-3c39-436e-a739-e6eddc07d1ce" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_48e802c8-691e-4bc5-96ee-7bb1903e166a" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_885b2cb6-3c39-436e-a739-e6eddc07d1ce" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_d8db4f1d-3c89-4fcd-a097-2fd22f0dca1e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_48e802c8-691e-4bc5-96ee-7bb1903e166a" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_d8db4f1d-3c89-4fcd-a097-2fd22f0dca1e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_075ec7b9-8fcf-4868-a746-605a33c978af" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredFinanceCostsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_48e802c8-691e-4bc5-96ee-7bb1903e166a" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_075ec7b9-8fcf-4868-a746-605a33c978af" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_4e3a01f6-78b9-4f53-918d-e95f363a299d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_48e802c8-691e-4bc5-96ee-7bb1903e166a" xlink:to="loc_us-gaap_LongTermDebt_4e3a01f6-78b9-4f53-918d-e95f363a299d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_bfbc18b8-a4a0-40eb-8083-dad3e30f2e2e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_48e802c8-691e-4bc5-96ee-7bb1903e166a" xlink:to="loc_us-gaap_DebtInstrumentTable_bfbc18b8-a4a0-40eb-8083-dad3e30f2e2e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_05a37fde-e9be-407f-8459-941119a1775a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_bfbc18b8-a4a0-40eb-8083-dad3e30f2e2e" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_05a37fde-e9be-407f-8459-941119a1775a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_05a37fde-e9be-407f-8459-941119a1775a_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_05a37fde-e9be-407f-8459-941119a1775a" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_05a37fde-e9be-407f-8459-941119a1775a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_731f9209-8bdc-4728-9ea7-4486737550cd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_05a37fde-e9be-407f-8459-941119a1775a" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_731f9209-8bdc-4728-9ea7-4486737550cd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotesMember_14127a3a-8b2e-4147-9aca-30d38c90e029" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_731f9209-8bdc-4728-9ea7-4486737550cd" xlink:to="loc_us-gaap_SeniorNotesMember_14127a3a-8b2e-4147-9aca-30d38c90e029" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_5bbef7bb-07a3-4dea-b9d3-f6f6aedd9b1b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_bfbc18b8-a4a0-40eb-8083-dad3e30f2e2e" xlink:to="loc_us-gaap_DebtInstrumentAxis_5bbef7bb-07a3-4dea-b9d3-f6f6aedd9b1b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_5bbef7bb-07a3-4dea-b9d3-f6f6aedd9b1b_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_5bbef7bb-07a3-4dea-b9d3-f6f6aedd9b1b" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_5bbef7bb-07a3-4dea-b9d3-f6f6aedd9b1b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_691f16c1-e8c8-4efc-a054-8942c6439b7b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_5bbef7bb-07a3-4dea-b9d3-f6f6aedd9b1b" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_691f16c1-e8c8-4efc-a054-8942c6439b7b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtMember_a1a4ecdd-08ae-4eb7-b270-8be0dd3bc7d1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConvertibleDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_691f16c1-e8c8-4efc-a054-8942c6439b7b" xlink:to="loc_us-gaap_ConvertibleDebtMember_a1a4ecdd-08ae-4eb7-b270-8be0dd3bc7d1" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.guidewire.com/role/ConvertibleSeniorNotesScheduleofinterestexpenserecognizedDetails" xlink:type="simple" xlink:href="gwre-20200430.xsd#ConvertibleSeniorNotesScheduleofinterestexpenserecognizedDetails"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/ConvertibleSeniorNotesScheduleofinterestexpenserecognizedDetails" xlink:type="extended" id="i1792b85f1a534a4ca83e1dee1e8f604b_ConvertibleSeniorNotesScheduleofinterestexpenserecognizedDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_5c284fba-365b-47c1-9ce0-ef8a1e1bcd67" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_c32fc0df-f3c7-43ec-bdfd-d3976402c8b1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5c284fba-365b-47c1-9ce0-ef8a1e1bcd67" xlink:to="loc_us-gaap_InterestExpense_c32fc0df-f3c7-43ec-bdfd-d3976402c8b1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfDebtDiscountPremium_5a1ad5a5-a390-49bb-b7f6-ebff07d3e654" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AmortizationOfDebtDiscountPremium"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5c284fba-365b-47c1-9ce0-ef8a1e1bcd67" xlink:to="loc_us-gaap_AmortizationOfDebtDiscountPremium_5a1ad5a5-a390-49bb-b7f6-ebff07d3e654" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_866be099-10f7-4213-af3d-e02e25646672" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AmortizationOfFinancingCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5c284fba-365b-47c1-9ce0-ef8a1e1bcd67" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_866be099-10f7-4213-af3d-e02e25646672" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_AmortizationofDebtIssuanceCostsandDiscountsAndDebtInterestExpense_18423340-62b7-4421-8da0-bbb2b1f33db5" xlink:href="gwre-20200430.xsd#gwre_AmortizationofDebtIssuanceCostsandDiscountsAndDebtInterestExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5c284fba-365b-47c1-9ce0-ef8a1e1bcd67" xlink:to="loc_gwre_AmortizationofDebtIssuanceCostsandDiscountsAndDebtInterestExpense_18423340-62b7-4421-8da0-bbb2b1f33db5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateEffectivePercentage_3afeee7b-1034-48f2-a84f-3bdbe2b1f10d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentInterestRateEffectivePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5c284fba-365b-47c1-9ce0-ef8a1e1bcd67" xlink:to="loc_us-gaap_DebtInstrumentInterestRateEffectivePercentage_3afeee7b-1034-48f2-a84f-3bdbe2b1f10d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_28372c90-c68a-4c2f-8c82-cee97d04d03e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5c284fba-365b-47c1-9ce0-ef8a1e1bcd67" xlink:to="loc_us-gaap_DebtInstrumentTable_28372c90-c68a-4c2f-8c82-cee97d04d03e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_e0850483-0790-40a3-ac19-e3388173794b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_28372c90-c68a-4c2f-8c82-cee97d04d03e" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_e0850483-0790-40a3-ac19-e3388173794b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_e0850483-0790-40a3-ac19-e3388173794b_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_e0850483-0790-40a3-ac19-e3388173794b" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_e0850483-0790-40a3-ac19-e3388173794b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_a02aa3aa-4ab2-4d6d-815b-50cab8438ca1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_e0850483-0790-40a3-ac19-e3388173794b" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_a02aa3aa-4ab2-4d6d-815b-50cab8438ca1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotesMember_cbda1862-f72a-47b5-a892-625b19bda315" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_a02aa3aa-4ab2-4d6d-815b-50cab8438ca1" xlink:to="loc_us-gaap_SeniorNotesMember_cbda1862-f72a-47b5-a892-625b19bda315" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_558999f9-09bb-4451-bb5f-d42ec0592e5a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_28372c90-c68a-4c2f-8c82-cee97d04d03e" xlink:to="loc_us-gaap_DebtInstrumentAxis_558999f9-09bb-4451-bb5f-d42ec0592e5a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_558999f9-09bb-4451-bb5f-d42ec0592e5a_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_558999f9-09bb-4451-bb5f-d42ec0592e5a" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_558999f9-09bb-4451-bb5f-d42ec0592e5a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_97b87bc3-1dc9-43f2-b367-8ef12b125f21" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_558999f9-09bb-4451-bb5f-d42ec0592e5a" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_97b87bc3-1dc9-43f2-b367-8ef12b125f21" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtMember_8c5ce9d9-1187-455b-8297-19992e021f72" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConvertibleDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_97b87bc3-1dc9-43f2-b367-8ef12b125f21" xlink:to="loc_us-gaap_ConvertibleDebtMember_8c5ce9d9-1187-455b-8297-19992e021f72" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.guidewire.com/role/ConvertibleSeniorNotesCappedCallDetails" xlink:type="simple" xlink:href="gwre-20200430.xsd#ConvertibleSeniorNotesCappedCallDetails"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/ConvertibleSeniorNotesCappedCallDetails" xlink:type="extended" id="ia1afce87e37b4cf79b8b074c47774538_ConvertibleSeniorNotesCappedCallDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLineItems_27ac3dc4-c3c4-4b93-9992-82dd5f7373d0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeNotionalAmount_2d4cc204-48f2-42c4-a956-3e3f1d4d05a5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeNotionalAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_27ac3dc4-c3c4-4b93-9992-82dd5f7373d0" xlink:to="loc_us-gaap_DerivativeNotionalAmount_2d4cc204-48f2-42c4-a956-3e3f1d4d05a5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativePriceRiskOptionStrikePrice_dc8688b1-2446-4ae5-98ee-216c022abeb0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativePriceRiskOptionStrikePrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_27ac3dc4-c3c4-4b93-9992-82dd5f7373d0" xlink:to="loc_us-gaap_DerivativePriceRiskOptionStrikePrice_dc8688b1-2446-4ae5-98ee-216c022abeb0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCapPrice_b4ce3f8e-7832-4dd5-98d5-f0dec0887d3f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeCapPrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_27ac3dc4-c3c4-4b93-9992-82dd5f7373d0" xlink:to="loc_us-gaap_DerivativeCapPrice_b4ce3f8e-7832-4dd5-98d5-f0dec0887d3f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_DerivativeNumberOfSharesCovered_5d19ff44-c36e-4d63-b379-ca01a75cd783" xlink:href="gwre-20200430.xsd#gwre_DerivativeNumberOfSharesCovered"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_27ac3dc4-c3c4-4b93-9992-82dd5f7373d0" xlink:to="loc_gwre_DerivativeNumberOfSharesCovered_5d19ff44-c36e-4d63-b379-ca01a75cd783" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTable_15fe3962-01dd-4d14-9b20-25f423a8d189" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_27ac3dc4-c3c4-4b93-9992-82dd5f7373d0" xlink:to="loc_us-gaap_DerivativeTable_15fe3962-01dd-4d14-9b20-25f423a8d189" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_f1bd7994-a187-4bea-9f26-3ded10972d59" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_15fe3962-01dd-4d14-9b20-25f423a8d189" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_f1bd7994-a187-4bea-9f26-3ded10972d59" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_f1bd7994-a187-4bea-9f26-3ded10972d59_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_f1bd7994-a187-4bea-9f26-3ded10972d59" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_f1bd7994-a187-4bea-9f26-3ded10972d59_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_7be41bb8-9f37-4bc6-8e24-3a458bb414ea" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_f1bd7994-a187-4bea-9f26-3ded10972d59" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_7be41bb8-9f37-4bc6-8e24-3a458bb414ea" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_CappedCallMember_90003877-5dcd-4b80-b611-1b804ab38b33" xlink:href="gwre-20200430.xsd#gwre_CappedCallMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_7be41bb8-9f37-4bc6-8e24-3a458bb414ea" xlink:to="loc_gwre_CappedCallMember_90003877-5dcd-4b80-b611-1b804ab38b33" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.guidewire.com/role/Leases" xlink:type="simple" xlink:href="gwre-20200430.xsd#Leases"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/Leases" xlink:type="extended" id="i7c35bddfae2a4221ab745b19d9a24ebe_Leases"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/LeasesTables" xlink:type="simple" xlink:href="gwre-20200430.xsd#LeasesTables"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/LeasesTables" xlink:type="extended" id="iec52613ef75e4608aaf8eba01a5f335c_LeasesTables"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/LeasesLeaseCostDetails" xlink:type="simple" xlink:href="gwre-20200430.xsd#LeasesLeaseCostDetails"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/LeasesLeaseCostDetails" xlink:type="extended" id="id446f4e282d74bc58122e4247c3dd741_LeasesLeaseCostDetails"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/LeasesTextualDetails" xlink:type="simple" xlink:href="gwre-20200430.xsd#LeasesTextualDetails"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/LeasesTextualDetails" xlink:type="extended" id="i712b76c193824678b3976605b261a2a6_LeasesTextualDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeLeaseDescriptionLineItems_f6fb9cb0-2028-49d3-9e19-f05c6247431f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeLeaseDescriptionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseExpense_a0758f47-371c-45d8-8f04-95595122327c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_f6fb9cb0-2028-49d3-9e19-f05c6247431f" xlink:to="loc_us-gaap_OperatingLeaseExpense_a0758f47-371c-45d8-8f04-95595122327c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_212cb055-adae-4856-b849-1353771b1613" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_f6fb9cb0-2028-49d3-9e19-f05c6247431f" xlink:to="loc_us-gaap_OperatingLeaseLiability_212cb055-adae-4856-b849-1353771b1613" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseTermOfContract_4b379b6e-81f9-4c43-b32b-fb1ebcb39f68" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseTermOfContract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_f6fb9cb0-2028-49d3-9e19-f05c6247431f" xlink:to="loc_us-gaap_LesseeOperatingLeaseTermOfContract_4b379b6e-81f9-4c43-b32b-fb1ebcb39f68" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeLeaseDescriptionTable_44e94156-48d3-47f0-a36f-3860b6c15e7f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeLeaseDescriptionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_f6fb9cb0-2028-49d3-9e19-f05c6247431f" xlink:to="loc_us-gaap_LesseeLeaseDescriptionTable_44e94156-48d3-47f0-a36f-3860b6c15e7f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_47068627-0a79-47ed-a8a0-d5e391d73c35" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LesseeLeaseDescriptionTable_44e94156-48d3-47f0-a36f-3860b6c15e7f" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_47068627-0a79-47ed-a8a0-d5e391d73c35" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_47068627-0a79-47ed-a8a0-d5e391d73c35_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_47068627-0a79-47ed-a8a0-d5e391d73c35" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_47068627-0a79-47ed-a8a0-d5e391d73c35_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_d37a32f7-c397-4547-8b9c-512a74344c27" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_47068627-0a79-47ed-a8a0-d5e391d73c35" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_d37a32f7-c397-4547-8b9c-512a74344c27" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BuildingMember_48ffdf52-1ad0-4be8-a0cd-210b56d01d75" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BuildingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_d37a32f7-c397-4547-8b9c-512a74344c27" xlink:to="loc_us-gaap_BuildingMember_48ffdf52-1ad0-4be8-a0cd-210b56d01d75" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.guidewire.com/role/LeasesFutureOperatingLeasePaymentsDetails" xlink:type="simple" xlink:href="gwre-20200430.xsd#LeasesFutureOperatingLeasePaymentsDetails"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/LeasesFutureOperatingLeasePaymentsDetails" xlink:type="extended" id="i7c5dc524bfe24f8194d8388fc1fe8d04_LeasesFutureOperatingLeasePaymentsDetails"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/LeasesSupplementalLeaseInformationDetails" xlink:type="simple" xlink:href="gwre-20200430.xsd#LeasesSupplementalLeaseInformationDetails"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/LeasesSupplementalLeaseInformationDetails" xlink:type="extended" id="i14de5d6cca80489a9b912cad71221de8_LeasesSupplementalLeaseInformationDetails"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/LeasesSupplementalCashandNonCashInformationDetails" xlink:type="simple" xlink:href="gwre-20200430.xsd#LeasesSupplementalCashandNonCashInformationDetails"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/LeasesSupplementalCashandNonCashInformationDetails" xlink:type="extended" id="i35eb084ddf6c49b9a481127a0424f515_LeasesSupplementalCashandNonCashInformationDetails"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/CommitmentsandContingencies" xlink:type="simple" xlink:href="gwre-20200430.xsd#CommitmentsandContingencies"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/CommitmentsandContingencies" xlink:type="extended" id="iebad59557328460bbe53437dce84080e_CommitmentsandContingencies"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/CommitmentsandContingenciesDetailsTextual" xlink:type="simple" xlink:href="gwre-20200430.xsd#CommitmentsandContingenciesDetailsTextual"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/CommitmentsandContingenciesDetailsTextual" xlink:type="extended" id="i2970139382714bd59ed2fbc93953cc40_CommitmentsandContingenciesDetailsTextual"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/StockBasedCompensationExpenseandShareholdersEquity" xlink:type="simple" xlink:href="gwre-20200430.xsd#StockBasedCompensationExpenseandShareholdersEquity"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/StockBasedCompensationExpenseandShareholdersEquity" xlink:type="extended" id="i515ae9ef3eea40bfa098d2e080c9eaea_StockBasedCompensationExpenseandShareholdersEquity"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/StockBasedCompensationExpenseandShareholdersEquityTables" xlink:type="simple" xlink:href="gwre-20200430.xsd#StockBasedCompensationExpenseandShareholdersEquityTables"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/StockBasedCompensationExpenseandShareholdersEquityTables" xlink:type="extended" id="if5a8b5ac14c44302aa967f7f81dbf43f_StockBasedCompensationExpenseandShareholdersEquityTables"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/StockBasedCompensationExpenseandShareholdersEquityDetails1" xlink:type="simple" xlink:href="gwre-20200430.xsd#StockBasedCompensationExpenseandShareholdersEquityDetails1"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/StockBasedCompensationExpenseandShareholdersEquityDetails1" xlink:type="extended" id="ia2fce5b3421140f8b965f4c05f7c0ecc_StockBasedCompensationExpenseandShareholdersEquityDetails1">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_6f3def60-857f-41bd-96e7-98c3ecd3af94" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardCompensationCost1_0fbf2294-649d-417b-b47d-18dfce75458d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardCompensationCost1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_6f3def60-857f-41bd-96e7-98c3ecd3af94" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardCompensationCost1_0fbf2294-649d-417b-b47d-18dfce75458d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsCapitalizedAmount_1a0529f8-a0ec-45fc-ac9a-cea5e472cbf5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsCapitalizedAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_6f3def60-857f-41bd-96e7-98c3ecd3af94" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsCapitalizedAmount_1a0529f8-a0ec-45fc-ac9a-cea5e472cbf5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_d4d9d6f3-a5cb-420c-a25b-5f7953c23694" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_6f3def60-857f-41bd-96e7-98c3ecd3af94" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_d4d9d6f3-a5cb-420c-a25b-5f7953c23694" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_8d028d1f-b5a8-4a36-9029-a21045ec46fb" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_6f3def60-857f-41bd-96e7-98c3ecd3af94" xlink:to="loc_us-gaap_ShareBasedCompensation_8d028d1f-b5a8-4a36-9029-a21045ec46fb" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_a56cc9c4-12c5-476a-aa85-3005f753b613" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_6f3def60-857f-41bd-96e7-98c3ecd3af94" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_a56cc9c4-12c5-476a-aa85-3005f753b613" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_3c8afbd4-34ca-452a-a89a-4d6a7c2ca835" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_6f3def60-857f-41bd-96e7-98c3ecd3af94" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_3c8afbd4-34ca-452a-a89a-4d6a7c2ca835" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_540f2dc6-787f-43ba-b0ba-9d2c2e7adee9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_6f3def60-857f-41bd-96e7-98c3ecd3af94" xlink:to="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_540f2dc6-787f-43ba-b0ba-9d2c2e7adee9" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_b66800dd-2424-4cca-9c94-4b5b1e2a743d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_540f2dc6-787f-43ba-b0ba-9d2c2e7adee9" xlink:to="loc_us-gaap_AwardTypeAxis_b66800dd-2424-4cca-9c94-4b5b1e2a743d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_b66800dd-2424-4cca-9c94-4b5b1e2a743d_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_b66800dd-2424-4cca-9c94-4b5b1e2a743d" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_b66800dd-2424-4cca-9c94-4b5b1e2a743d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_2830f95f-1332-4481-98f1-3c0bbba09bfd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_b66800dd-2424-4cca-9c94-4b5b1e2a743d" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_2830f95f-1332-4481-98f1-3c0bbba09bfd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_fef9aeef-7844-4696-8c40-64d1e2b7f3d1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeStockOptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_2830f95f-1332-4481-98f1-3c0bbba09bfd" xlink:to="loc_us-gaap_EmployeeStockOptionMember_fef9aeef-7844-4696-8c40-64d1e2b7f3d1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_8a658637-acf6-4fab-80c3-e9aaf5bfcca5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_2830f95f-1332-4481-98f1-3c0bbba09bfd" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_8a658637-acf6-4fab-80c3-e9aaf5bfcca5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_5f0bc321-0b24-4e7b-88e0-80352bfe91d7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeStatementLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_540f2dc6-787f-43ba-b0ba-9d2c2e7adee9" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_5f0bc321-0b24-4e7b-88e0-80352bfe91d7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_5f0bc321-0b24-4e7b-88e0-80352bfe91d7_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_5f0bc321-0b24-4e7b-88e0-80352bfe91d7" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_5f0bc321-0b24-4e7b-88e0-80352bfe91d7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_450989be-2827-4bfd-8ea8-039de4d9fcd0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_5f0bc321-0b24-4e7b-88e0-80352bfe91d7" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_450989be-2827-4bfd-8ea8-039de4d9fcd0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_CostoflicenseandotherMember_6a723f87-5e14-42a5-81c4-5d7a9448eaae" xlink:href="gwre-20200430.xsd#gwre_CostoflicenseandotherMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_450989be-2827-4bfd-8ea8-039de4d9fcd0" xlink:to="loc_gwre_CostoflicenseandotherMember_6a723f87-5e14-42a5-81c4-5d7a9448eaae" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_CostOfMaintenanceRevenuesMember_5fd95ee7-d1a1-489c-ad66-804023ceab7d" xlink:href="gwre-20200430.xsd#gwre_CostOfMaintenanceRevenuesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_450989be-2827-4bfd-8ea8-039de4d9fcd0" xlink:to="loc_gwre_CostOfMaintenanceRevenuesMember_5fd95ee7-d1a1-489c-ad66-804023ceab7d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_CostOfServicesRevenuesMember_0f5d12f5-824f-4fd8-8dfc-250c1cd3e16f" xlink:href="gwre-20200430.xsd#gwre_CostOfServicesRevenuesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_450989be-2827-4bfd-8ea8-039de4d9fcd0" xlink:to="loc_gwre_CostOfServicesRevenuesMember_0f5d12f5-824f-4fd8-8dfc-250c1cd3e16f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpenseMember_b8e7529e-6ed0-4cc2-a9dd-b611f4a51b50" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ResearchAndDevelopmentExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_450989be-2827-4bfd-8ea8-039de4d9fcd0" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpenseMember_b8e7529e-6ed0-4cc2-a9dd-b611f4a51b50" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingAndMarketingExpenseMember_87906375-d60c-4f64-b10b-951fa6279edc" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SellingAndMarketingExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_450989be-2827-4bfd-8ea8-039de4d9fcd0" xlink:to="loc_us-gaap_SellingAndMarketingExpenseMember_87906375-d60c-4f64-b10b-951fa6279edc" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpenseMember_669322c7-f761-4c7b-bb06-b372055a2c1f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GeneralAndAdministrativeExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_450989be-2827-4bfd-8ea8-039de4d9fcd0" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpenseMember_669322c7-f761-4c7b-bb06-b372055a2c1f" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.guidewire.com/role/StockBasedCompensationExpenseandShareholdersEquityDetails2" xlink:type="simple" xlink:href="gwre-20200430.xsd#StockBasedCompensationExpenseandShareholdersEquityDetails2"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/StockBasedCompensationExpenseandShareholdersEquityDetails2" xlink:type="extended" id="i0def759a9f324d029a7d7abd23233940_StockBasedCompensationExpenseandShareholdersEquityDetails2">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_31b394cf-524a-4095-90a6-0929914a2fa6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_2fd03380-951e-4cc2-9c59-7b265f2d9998" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_31b394cf-524a-4095-90a6-0929914a2fa6" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_2fd03380-951e-4cc2-9c59-7b265f2d9998" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_24a5f5c7-07f4-44dc-bd99-af8f6c3f5648" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_2fd03380-951e-4cc2-9c59-7b265f2d9998" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_24a5f5c7-07f4-44dc-bd99-af8f6c3f5648" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_8403f6bd-1a29-4662-8c1b-a34f04527a66" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_2fd03380-951e-4cc2-9c59-7b265f2d9998" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_8403f6bd-1a29-4662-8c1b-a34f04527a66" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_747676d6-950b-430c-a1b1-453ded758dfd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_2fd03380-951e-4cc2-9c59-7b265f2d9998" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_747676d6-950b-430c-a1b1-453ded758dfd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_115382d0-a629-413c-8b92-2206de224740" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_2fd03380-951e-4cc2-9c59-7b265f2d9998" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_115382d0-a629-413c-8b92-2206de224740" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_766c6588-5009-49fa-b54c-e67f4c942a9e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_SharebasedCompensationArrangementbySharebasedPaymentAwardEquityInstrumentsOtherthanOptionsExpectedtoVest_204993a7-db99-4ed7-8fc1-8b155f997a3c" xlink:href="gwre-20200430.xsd#gwre_SharebasedCompensationArrangementbySharebasedPaymentAwardEquityInstrumentsOtherthanOptionsExpectedtoVest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_2fd03380-951e-4cc2-9c59-7b265f2d9998" xlink:to="loc_gwre_SharebasedCompensationArrangementbySharebasedPaymentAwardEquityInstrumentsOtherthanOptionsExpectedtoVest_204993a7-db99-4ed7-8fc1-8b155f997a3c" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_5f380066-bc57-489e-9ee8-7b6422351a39" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_31b394cf-524a-4095-90a6-0929914a2fa6" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_5f380066-bc57-489e-9ee8-7b6422351a39" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_30d048e2-d677-4690-bd04-105088ae9de6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_5f380066-bc57-489e-9ee8-7b6422351a39" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_30d048e2-d677-4690-bd04-105088ae9de6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_b584dd89-54c9-47b0-8d63-a537d39dd655" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_5f380066-bc57-489e-9ee8-7b6422351a39" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_b584dd89-54c9-47b0-8d63-a537d39dd655" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_fb0de831-6447-49a8-9198-20a83307b722" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_5f380066-bc57-489e-9ee8-7b6422351a39" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_fb0de831-6447-49a8-9198-20a83307b722" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_1430035c-259e-42e7-834b-87de1cc2660e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_5f380066-bc57-489e-9ee8-7b6422351a39" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_1430035c-259e-42e7-834b-87de1cc2660e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_481681c8-3205-46bd-bff3-e3895e7f7924" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_SharebasedCompensationArrangementbySharebasedPaymentAwardEquityInstrumentsOtherthanOptionsExpectedtoVestWeightedAverageGrantDateFairValue_e12e9165-16e7-45c8-bc81-c5aa34cca0be" xlink:href="gwre-20200430.xsd#gwre_SharebasedCompensationArrangementbySharebasedPaymentAwardEquityInstrumentsOtherthanOptionsExpectedtoVestWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_5f380066-bc57-489e-9ee8-7b6422351a39" xlink:to="loc_gwre_SharebasedCompensationArrangementbySharebasedPaymentAwardEquityInstrumentsOtherthanOptionsExpectedtoVestWeightedAverageGrantDateFairValue_e12e9165-16e7-45c8-bc81-c5aa34cca0be" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueNonvested_55d4d5f0-48ef-40af-a182-507597341ea6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueNonvested"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_31b394cf-524a-4095-90a6-0929914a2fa6" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueNonvested_55d4d5f0-48ef-40af-a182-507597341ea6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueVested_7298fab3-4e53-4208-b27c-8eb7c4710f99" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueVested"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_31b394cf-524a-4095-90a6-0929914a2fa6" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueVested_7298fab3-4e53-4208-b27c-8eb7c4710f99" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_SharebasedCompensationArrangementbySharebasedPaymentAwardEquityInstrumentsOtherthanOptionsAggregateIntrinsicValueExpectedtoVest_401aff8d-3a91-4aea-8c19-b358a7ce4191" xlink:href="gwre-20200430.xsd#gwre_SharebasedCompensationArrangementbySharebasedPaymentAwardEquityInstrumentsOtherthanOptionsAggregateIntrinsicValueExpectedtoVest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_31b394cf-524a-4095-90a6-0929914a2fa6" xlink:to="loc_gwre_SharebasedCompensationArrangementbySharebasedPaymentAwardEquityInstrumentsOtherthanOptionsAggregateIntrinsicValueExpectedtoVest_401aff8d-3a91-4aea-8c19-b358a7ce4191" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_ee70051a-f63a-4d99-9cbc-32ffc815a49c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_31b394cf-524a-4095-90a6-0929914a2fa6" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_ee70051a-f63a-4d99-9cbc-32ffc815a49c" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_08af857d-c0eb-4257-901b-83dbd36d13ad" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_ee70051a-f63a-4d99-9cbc-32ffc815a49c" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_08af857d-c0eb-4257-901b-83dbd36d13ad" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriod_3f27dd7d-9189-46be-9aa0-270fa14b156e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_ee70051a-f63a-4d99-9cbc-32ffc815a49c" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriod_3f27dd7d-9189-46be-9aa0-270fa14b156e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_7afd77d9-561c-4710-b0bc-77f914647497" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_ee70051a-f63a-4d99-9cbc-32ffc815a49c" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_7afd77d9-561c-4710-b0bc-77f914647497" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresInPeriod_9c9611ee-81ea-4cca-b464-524781be08bc" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_ee70051a-f63a-4d99-9cbc-32ffc815a49c" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresInPeriod_9c9611ee-81ea-4cca-b464-524781be08bc" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_f1356fd3-1a27-4167-ace6-2d148ae86348" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingNumber_4d9f2d93-66a7-49b5-bfa3-d0c531938f88" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_ee70051a-f63a-4d99-9cbc-32ffc815a49c" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingNumber_4d9f2d93-66a7-49b5-bfa3-d0c531938f88" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber_ec3fdc28-e81d-458e-897a-975941bba9a3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_ee70051a-f63a-4d99-9cbc-32ffc815a49c" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber_ec3fdc28-e81d-458e-897a-975941bba9a3" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_5a2a76c6-81bf-4bd7-b0de-3ed3bad8b55b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_31b394cf-524a-4095-90a6-0929914a2fa6" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_5a2a76c6-81bf-4bd7-b0de-3ed3bad8b55b" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice_2c511054-e31f-4c72-ac07-039c4f93b241" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_5a2a76c6-81bf-4bd7-b0de-3ed3bad8b55b" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice_2c511054-e31f-4c72-ac07-039c4f93b241" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice_b03b81b0-7528-4609-bfa3-f987130c1fad" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_5a2a76c6-81bf-4bd7-b0de-3ed3bad8b55b" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice_b03b81b0-7528-4609-bfa3-f987130c1fad" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice_e47d8a00-83d1-4dcc-b45b-646e854ecadc" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_5a2a76c6-81bf-4bd7-b0de-3ed3bad8b55b" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice_e47d8a00-83d1-4dcc-b45b-646e854ecadc" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice_e0f5e488-05b3-4940-ba4a-86ed1cd6cc55" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice_63690e44-957b-4ab9-8ddd-68d501372471" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_5a2a76c6-81bf-4bd7-b0de-3ed3bad8b55b" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice_63690e44-957b-4ab9-8ddd-68d501372471" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice_41a48c00-b6b7-42c5-b353-4f3d5e95a7f3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_5a2a76c6-81bf-4bd7-b0de-3ed3bad8b55b" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice_41a48c00-b6b7-42c5-b353-4f3d5e95a7f3" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsAdditionalDisclosuresAbstract_0b02dd74-bd99-460b-96b6-6ba73f5185e3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsAdditionalDisclosuresAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_31b394cf-524a-4095-90a6-0929914a2fa6" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsAdditionalDisclosuresAbstract_0b02dd74-bd99-460b-96b6-6ba73f5185e3" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2_360ca16f-f4d6-4396-b251-7cccd85d9fe7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsAdditionalDisclosuresAbstract_0b02dd74-bd99-460b-96b6-6ba73f5185e3" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2_360ca16f-f4d6-4396-b251-7cccd85d9fe7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageRemainingContractualTerm1_473f1080-0879-4926-a8cc-e5984fe60b4d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageRemainingContractualTerm1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsAdditionalDisclosuresAbstract_0b02dd74-bd99-460b-96b6-6ba73f5185e3" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageRemainingContractualTerm1_473f1080-0879-4926-a8cc-e5984fe60b4d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageRemainingContractualTerm1_287abc52-bd83-4d7c-b097-67472ee4483d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageRemainingContractualTerm1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsAdditionalDisclosuresAbstract_0b02dd74-bd99-460b-96b6-6ba73f5185e3" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageRemainingContractualTerm1_287abc52-bd83-4d7c-b097-67472ee4483d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_SharebasedCompensationArrangementbySharebasedPaymentAwardAggregateIntrinsicValueAbstract_bd69a6ca-2fde-4c50-b7fb-1a2f4177b635" xlink:href="gwre-20200430.xsd#gwre_SharebasedCompensationArrangementbySharebasedPaymentAwardAggregateIntrinsicValueAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_31b394cf-524a-4095-90a6-0929914a2fa6" xlink:to="loc_gwre_SharebasedCompensationArrangementbySharebasedPaymentAwardAggregateIntrinsicValueAbstract_bd69a6ca-2fde-4c50-b7fb-1a2f4177b635" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue_aa20a830-de6f-494b-94e3-13deec97b6da" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_gwre_SharebasedCompensationArrangementbySharebasedPaymentAwardAggregateIntrinsicValueAbstract_bd69a6ca-2fde-4c50-b7fb-1a2f4177b635" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue_aa20a830-de6f-494b-94e3-13deec97b6da" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue_1279dc8c-ec63-4fc9-a51d-361b0a2ad6a3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_gwre_SharebasedCompensationArrangementbySharebasedPaymentAwardAggregateIntrinsicValueAbstract_bd69a6ca-2fde-4c50-b7fb-1a2f4177b635" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue_1279dc8c-ec63-4fc9-a51d-361b0a2ad6a3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingAggregateIntrinsicValue_988b60d8-7415-4c8b-8bd4-70324823821b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingAggregateIntrinsicValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_gwre_SharebasedCompensationArrangementbySharebasedPaymentAwardAggregateIntrinsicValueAbstract_bd69a6ca-2fde-4c50-b7fb-1a2f4177b635" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingAggregateIntrinsicValue_988b60d8-7415-4c8b-8bd4-70324823821b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableIntrinsicValue1_4633b7f9-1fcc-4243-b3e1-49915c689843" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableIntrinsicValue1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_gwre_SharebasedCompensationArrangementbySharebasedPaymentAwardAggregateIntrinsicValueAbstract_bd69a6ca-2fde-4c50-b7fb-1a2f4177b635" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableIntrinsicValue1_4633b7f9-1fcc-4243-b3e1-49915c689843" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharePrice_1a0805e4-11a2-4b51-83dd-67a0b578f5ea" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SharePrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_31b394cf-524a-4095-90a6-0929914a2fa6" xlink:to="loc_us-gaap_SharePrice_1a0805e4-11a2-4b51-83dd-67a0b578f5ea" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_6fa18244-5661-41c2-a8e2-432159d92a99" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_31b394cf-524a-4095-90a6-0929914a2fa6" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_6fa18244-5661-41c2-a8e2-432159d92a99" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_e90ba406-2bde-42f8-ac9c-be87ac270cfd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_6fa18244-5661-41c2-a8e2-432159d92a99" xlink:to="loc_us-gaap_AwardTypeAxis_e90ba406-2bde-42f8-ac9c-be87ac270cfd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_e90ba406-2bde-42f8-ac9c-be87ac270cfd_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_e90ba406-2bde-42f8-ac9c-be87ac270cfd" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_e90ba406-2bde-42f8-ac9c-be87ac270cfd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_2d56322d-3041-4ccd-ad50-bd65c02147dc" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_e90ba406-2bde-42f8-ac9c-be87ac270cfd" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_2d56322d-3041-4ccd-ad50-bd65c02147dc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_a076ecc1-d2ea-4980-877f-8e5309bb4b33" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_2d56322d-3041-4ccd-ad50-bd65c02147dc" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_a076ecc1-d2ea-4980-877f-8e5309bb4b33" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.guidewire.com/role/StockBasedCompensationExpenseandShareholdersEquityDetails3" xlink:type="simple" xlink:href="gwre-20200430.xsd#StockBasedCompensationExpenseandShareholdersEquityDetails3"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/StockBasedCompensationExpenseandShareholdersEquityDetails3" xlink:type="extended" id="i80bc7ecd9d1a4a07b95b9e86a8247513_StockBasedCompensationExpenseandShareholdersEquityDetails3">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_8b30088d-2c71-4842-9c19-98b7f7124131" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_4ea32bbe-4e43-420b-aaad-08b621dc257a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_8b30088d-2c71-4842-9c19-98b7f7124131" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_4ea32bbe-4e43-420b-aaad-08b621dc257a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1_ffef9526-99f7-4008-8998-05288225d828" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_4ea32bbe-4e43-420b-aaad-08b621dc257a" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1_ffef9526-99f7-4008-8998-05288225d828" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate_d3e574f1-667f-4db5-99e2-feb810010aa3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_4ea32bbe-4e43-420b-aaad-08b621dc257a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate_d3e574f1-667f-4db5-99e2-feb810010aa3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_44970b76-4c02-4cb8-883a-82213ece9e92" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_4ea32bbe-4e43-420b-aaad-08b621dc257a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_44970b76-4c02-4cb8-883a-82213ece9e92" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_SharebasedCompensationArrangementbySharebasedPaymentAwardFairValueAssumptionsExpectedVolatilityRateofPeerCompaniesinIndex_479cf22d-48ea-4d64-87fd-31820cec18a9" xlink:href="gwre-20200430.xsd#gwre_SharebasedCompensationArrangementbySharebasedPaymentAwardFairValueAssumptionsExpectedVolatilityRateofPeerCompaniesinIndex"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_4ea32bbe-4e43-420b-aaad-08b621dc257a" xlink:to="loc_gwre_SharebasedCompensationArrangementbySharebasedPaymentAwardFairValueAssumptionsExpectedVolatilityRateofPeerCompaniesinIndex_479cf22d-48ea-4d64-87fd-31820cec18a9" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_a77db78f-9115-4eba-a918-35b5dc0f69e2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_4ea32bbe-4e43-420b-aaad-08b621dc257a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_a77db78f-9115-4eba-a918-35b5dc0f69e2" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_9de8e796-1510-4471-b356-6a6897abbb55" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_8b30088d-2c71-4842-9c19-98b7f7124131" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_9de8e796-1510-4471-b356-6a6897abbb55" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_326bb357-3281-4324-b4fb-a54fd03f868e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_9de8e796-1510-4471-b356-6a6897abbb55" xlink:to="loc_us-gaap_AwardTypeAxis_326bb357-3281-4324-b4fb-a54fd03f868e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_326bb357-3281-4324-b4fb-a54fd03f868e_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_326bb357-3281-4324-b4fb-a54fd03f868e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_326bb357-3281-4324-b4fb-a54fd03f868e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_2ec171ae-7569-439e-a85e-783ab8010c77" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_326bb357-3281-4324-b4fb-a54fd03f868e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_2ec171ae-7569-439e-a85e-783ab8010c77" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_TotalShareholderReturnPerformanceSharesTSRPSUsMember_468e7615-0898-474e-95c9-a044c243f974" xlink:href="gwre-20200430.xsd#gwre_TotalShareholderReturnPerformanceSharesTSRPSUsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_2ec171ae-7569-439e-a85e-783ab8010c77" xlink:to="loc_gwre_TotalShareholderReturnPerformanceSharesTSRPSUsMember_468e7615-0898-474e-95c9-a044c243f974" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.guidewire.com/role/StockBasedCompensationExpenseandShareholdersEquityDetails4" xlink:type="simple" xlink:href="gwre-20200430.xsd#StockBasedCompensationExpenseandShareholdersEquityDetails4"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/StockBasedCompensationExpenseandShareholdersEquityDetails4" xlink:type="extended" id="idb93d4bdfc43451b87a79576cc3e0012_StockBasedCompensationExpenseandShareholdersEquityDetails4">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_8d3a5405-74f9-49e2-b1ac-8c60d5fb92c9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_CommonStockReservedForIssuanceAbstract_b8d6c36b-890d-42b1-92b8-45406e711292" xlink:href="gwre-20200430.xsd#gwre_CommonStockReservedForIssuanceAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_8d3a5405-74f9-49e2-b1ac-8c60d5fb92c9" xlink:to="loc_gwre_CommonStockReservedForIssuanceAbstract_b8d6c36b-890d-42b1-92b8-45406e711292" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_8c963145-c526-460e-9a98-32c8dbd01fcd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_gwre_CommonStockReservedForIssuanceAbstract_b8d6c36b-890d-42b1-92b8-45406e711292" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_8c963145-c526-460e-9a98-32c8dbd01fcd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_ec4dba50-cfe9-415c-b56c-f86ff12cc377" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_gwre_CommonStockReservedForIssuanceAbstract_b8d6c36b-890d-42b1-92b8-45406e711292" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_ec4dba50-cfe9-415c-b56c-f86ff12cc377" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_fceb9e3f-e6bc-4b2b-bb59-e436869eabf7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_gwre_CommonStockReservedForIssuanceAbstract_b8d6c36b-890d-42b1-92b8-45406e711292" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_fceb9e3f-e6bc-4b2b-bb59-e436869eabf7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_1e1455c5-f3c7-44a1-988e-b503f2a9de17" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockCapitalSharesReservedForFutureIssuance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_gwre_CommonStockReservedForIssuanceAbstract_b8d6c36b-890d-42b1-92b8-45406e711292" xlink:to="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_1e1455c5-f3c7-44a1-988e-b503f2a9de17" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_587bbf5e-cf88-46b3-9aaa-972bab31adff" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_8d3a5405-74f9-49e2-b1ac-8c60d5fb92c9" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_587bbf5e-cf88-46b3-9aaa-972bab31adff" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_6ffb21b5-2254-4e2a-8ee3-cf858922c0c2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_587bbf5e-cf88-46b3-9aaa-972bab31adff" xlink:to="loc_us-gaap_AwardTypeAxis_6ffb21b5-2254-4e2a-8ee3-cf858922c0c2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_6ffb21b5-2254-4e2a-8ee3-cf858922c0c2_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_6ffb21b5-2254-4e2a-8ee3-cf858922c0c2" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_6ffb21b5-2254-4e2a-8ee3-cf858922c0c2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_871dd518-d940-4364-b45f-dd6a10457905" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_6ffb21b5-2254-4e2a-8ee3-cf858922c0c2" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_871dd518-d940-4364-b45f-dd6a10457905" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_f44150af-11c0-409a-af59-a7962a6c51ba" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeStockOptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_871dd518-d940-4364-b45f-dd6a10457905" xlink:to="loc_us-gaap_EmployeeStockOptionMember_f44150af-11c0-409a-af59-a7962a6c51ba" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.guidewire.com/role/StockBasedCompensationExpenseandShareholdersEquityDetailsTextual" xlink:type="simple" xlink:href="gwre-20200430.xsd#StockBasedCompensationExpenseandShareholdersEquityDetailsTextual"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/StockBasedCompensationExpenseandShareholdersEquityDetailsTextual" xlink:type="extended" id="i78b3d09a85704e6ca2c66b72e34e1691_StockBasedCompensationExpenseandShareholdersEquityDetailsTextual">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockLineItems_f98e25da-0f2f-40b3-923c-3897f1f084c9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_461dbcf9-1f37-41c9-95c5-a08a7cbca591" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_f98e25da-0f2f-40b3-923c-3897f1f084c9" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_461dbcf9-1f37-41c9-95c5-a08a7cbca591" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_ShareBasedCompensationExpensePerformanceBasedAwards_881e9dc2-aa82-4404-bc83-45634438351b" xlink:href="gwre-20200430.xsd#gwre_ShareBasedCompensationExpensePerformanceBasedAwards"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_f98e25da-0f2f-40b3-923c-3897f1f084c9" xlink:to="loc_gwre_ShareBasedCompensationExpensePerformanceBasedAwards_881e9dc2-aa82-4404-bc83-45634438351b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_StockholdersEquityAndStockBasedCompensationAdditionalTextualAbstract_616c57bb-5dfd-4633-b398-03b3fdaf4deb" xlink:href="gwre-20200430.xsd#gwre_StockholdersEquityAndStockBasedCompensationAdditionalTextualAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_f98e25da-0f2f-40b3-923c-3897f1f084c9" xlink:to="loc_gwre_StockholdersEquityAndStockBasedCompensationAdditionalTextualAbstract_616c57bb-5dfd-4633-b398-03b3fdaf4deb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesAuthorized_8f5dadbe-9eae-42d6-919f-2933820d866f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockSharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_gwre_StockholdersEquityAndStockBasedCompensationAdditionalTextualAbstract_616c57bb-5dfd-4633-b398-03b3fdaf4deb" xlink:to="loc_us-gaap_CommonStockSharesAuthorized_8f5dadbe-9eae-42d6-919f-2933820d866f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockParOrStatedValuePerShare_bab58195-8c42-4a02-b579-20dace3398a3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockParOrStatedValuePerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_gwre_StockholdersEquityAndStockBasedCompensationAdditionalTextualAbstract_616c57bb-5dfd-4633-b398-03b3fdaf4deb" xlink:to="loc_us-gaap_CommonStockParOrStatedValuePerShare_bab58195-8c42-4a02-b579-20dace3398a3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesIssued_2f2cd2cf-b0fd-4c46-8088-8d372d6eb524" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_gwre_StockholdersEquityAndStockBasedCompensationAdditionalTextualAbstract_616c57bb-5dfd-4633-b398-03b3fdaf4deb" xlink:to="loc_us-gaap_CommonStockSharesIssued_2f2cd2cf-b0fd-4c46-8088-8d372d6eb524" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_6b187e99-bcab-4a31-9854-61ada8839e0e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_gwre_StockholdersEquityAndStockBasedCompensationAdditionalTextualAbstract_616c57bb-5dfd-4633-b398-03b3fdaf4deb" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_6b187e99-bcab-4a31-9854-61ada8839e0e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_ShareBasedCompensationArrangementByShareBasedPaymentAwardAdditionalSharesReservedPercentage_dbdc3cb5-6e8e-4bbf-b28b-ecd0b186fff3" xlink:href="gwre-20200430.xsd#gwre_ShareBasedCompensationArrangementByShareBasedPaymentAwardAdditionalSharesReservedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_gwre_StockholdersEquityAndStockBasedCompensationAdditionalTextualAbstract_616c57bb-5dfd-4633-b398-03b3fdaf4deb" xlink:to="loc_gwre_ShareBasedCompensationArrangementByShareBasedPaymentAwardAdditionalSharesReservedPercentage_dbdc3cb5-6e8e-4bbf-b28b-ecd0b186fff3" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfStockByClassTable_0ae2d6cd-d5ff-45a0-b350-98ab343d734c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfStockByClassTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ClassOfStockLineItems_f98e25da-0f2f-40b3-923c-3897f1f084c9" xlink:to="loc_us-gaap_ScheduleOfStockByClassTable_0ae2d6cd-d5ff-45a0-b350-98ab343d734c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_46709e13-8725-4162-8268-1eab48bd7c2e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_0ae2d6cd-d5ff-45a0-b350-98ab343d734c" xlink:to="loc_us-gaap_AwardTypeAxis_46709e13-8725-4162-8268-1eab48bd7c2e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_46709e13-8725-4162-8268-1eab48bd7c2e_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_46709e13-8725-4162-8268-1eab48bd7c2e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_46709e13-8725-4162-8268-1eab48bd7c2e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_50f75520-1cf0-4a3d-bc08-0f4cae223a3f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_46709e13-8725-4162-8268-1eab48bd7c2e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_50f75520-1cf0-4a3d-bc08-0f4cae223a3f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_dd00fe4f-af71-400a-a32d-404c9d46fb43" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_50f75520-1cf0-4a3d-bc08-0f4cae223a3f" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_dd00fe4f-af71-400a-a32d-404c9d46fb43" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_TotalShareholderReturnPerformanceSharesTSRPSUsMember_bf5b4988-77f2-4b7b-8334-9a7828e6befd" xlink:href="gwre-20200430.xsd#gwre_TotalShareholderReturnPerformanceSharesTSRPSUsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_50f75520-1cf0-4a3d-bc08-0f4cae223a3f" xlink:to="loc_gwre_TotalShareholderReturnPerformanceSharesTSRPSUsMember_bf5b4988-77f2-4b7b-8334-9a7828e6befd" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.guidewire.com/role/IncomeTaxes" xlink:type="simple" xlink:href="gwre-20200430.xsd#IncomeTaxes"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/IncomeTaxes" xlink:type="extended" id="id23baf62cb3e4db2b9f52294816112bf_IncomeTaxes"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/IncomeTaxesDetailsTextual" xlink:type="simple" xlink:href="gwre-20200430.xsd#IncomeTaxesDetailsTextual"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/IncomeTaxesDetailsTextual" xlink:type="extended" id="if49a7a9f7dfc46b0baf2af8f163368ea_IncomeTaxesDetailsTextual">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxContingencyLineItems_7058b930-8675-4755-ac38-172973394811" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxContingencyLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_45014486-bf91-46b0-b114-e6e41c17f638" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_7058b930-8675-4755-ac38-172973394811" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_45014486-bf91-46b0-b114-e6e41c17f638" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_TaxCutsAndJobsActChangeInTaxRateBaseErosionAndAntiAbuseTaxLiability_e6df4384-abe5-4026-af4d-80bea3aff20a" xlink:href="gwre-20200430.xsd#gwre_TaxCutsAndJobsActChangeInTaxRateBaseErosionAndAntiAbuseTaxLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_7058b930-8675-4755-ac38-172973394811" xlink:to="loc_gwre_TaxCutsAndJobsActChangeInTaxRateBaseErosionAndAntiAbuseTaxLiability_e6df4384-abe5-4026-af4d-80bea3aff20a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_TaxCutsAndJobsActChangeInTaxRateChangeInBaseErosionAndAntiAbuseTaxLiability_95e7da7b-b27f-4461-85d3-d847ab9cd7aa" xlink:href="gwre-20200430.xsd#gwre_TaxCutsAndJobsActChangeInTaxRateChangeInBaseErosionAndAntiAbuseTaxLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_7058b930-8675-4755-ac38-172973394811" xlink:to="loc_gwre_TaxCutsAndJobsActChangeInTaxRateChangeInBaseErosionAndAntiAbuseTaxLiability_95e7da7b-b27f-4461-85d3-d847ab9cd7aa" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_924fa5cf-7d88-43f5-be87-3f7d168ac10e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_7058b930-8675-4755-ac38-172973394811" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_924fa5cf-7d88-43f5-be87-3f7d168ac10e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_a4828e14-b5f5-4b48-86be-08ba743a9d09" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_7058b930-8675-4755-ac38-172973394811" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_a4828e14-b5f5-4b48-86be-08ba743a9d09" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecognizedTaxBenefitsPeriodIncreaseDecrease_791f58ae-0bc5-446c-9909-df1a7df0a329" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_UnrecognizedTaxBenefitsPeriodIncreaseDecrease"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_7058b930-8675-4755-ac38-172973394811" xlink:to="loc_us-gaap_UnrecognizedTaxBenefitsPeriodIncreaseDecrease_791f58ae-0bc5-446c-9909-df1a7df0a329" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecognizedTaxBenefitsThatWouldImpactEffectiveTaxRate_e8475c8f-09e0-421e-a5a6-dbccfbbe84cc" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_UnrecognizedTaxBenefitsThatWouldImpactEffectiveTaxRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_7058b930-8675-4755-ac38-172973394811" xlink:to="loc_us-gaap_UnrecognizedTaxBenefitsThatWouldImpactEffectiveTaxRate_e8475c8f-09e0-421e-a5a6-dbccfbbe84cc" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxContingencyTable_291fcd29-c863-4342-84b3-744e01a0ff4b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxContingencyTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_7058b930-8675-4755-ac38-172973394811" xlink:to="loc_us-gaap_IncomeTaxContingencyTable_291fcd29-c863-4342-84b3-744e01a0ff4b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxPeriodAxis_e3b0f33d-f627-4d4a-81c1-031992b112f9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TaxPeriodAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeTaxContingencyTable_291fcd29-c863-4342-84b3-744e01a0ff4b" xlink:to="loc_us-gaap_TaxPeriodAxis_e3b0f33d-f627-4d4a-81c1-031992b112f9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxPeriodDomain_e3b0f33d-f627-4d4a-81c1-031992b112f9_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TaxPeriodDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TaxPeriodAxis_e3b0f33d-f627-4d4a-81c1-031992b112f9" xlink:to="loc_us-gaap_TaxPeriodDomain_e3b0f33d-f627-4d4a-81c1-031992b112f9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxPeriodDomain_d8fc6483-e431-4737-9014-14262ef6f907" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TaxPeriodDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TaxPeriodAxis_e3b0f33d-f627-4d4a-81c1-031992b112f9" xlink:to="loc_us-gaap_TaxPeriodDomain_d8fc6483-e431-4737-9014-14262ef6f907" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LatestTaxYearMember_00593b47-360f-4d90-a6d2-afd6f5a7f068" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LatestTaxYearMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxPeriodDomain_d8fc6483-e431-4737-9014-14262ef6f907" xlink:to="loc_us-gaap_LatestTaxYearMember_00593b47-360f-4d90-a6d2-afd6f5a7f068" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxYear2019Member_7a59dbf0-d5f7-4df3-b343-c8356143051d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TaxYear2019Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxPeriodDomain_d8fc6483-e431-4737-9014-14262ef6f907" xlink:to="loc_us-gaap_TaxYear2019Member_7a59dbf0-d5f7-4df3-b343-c8356143051d" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.guidewire.com/role/SegmentInformation" xlink:type="simple" xlink:href="gwre-20200430.xsd#SegmentInformation"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/SegmentInformation" xlink:type="extended" id="i349e096b07854250b8c53dae306b570e_SegmentInformation"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/SegmentInformationTables" xlink:type="simple" xlink:href="gwre-20200430.xsd#SegmentInformationTables"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/SegmentInformationTables" xlink:type="extended" id="ic93bba53fa2e4cb48ebd1773879d9661_SegmentInformationTables"/>
  <link:roleRef roleURI="http://www.guidewire.com/role/SegmentInformationDetails" xlink:type="simple" xlink:href="gwre-20200430.xsd#SegmentInformationDetails"/>
  <link:definitionLink xlink:role="http://www.guidewire.com/role/SegmentInformationDetails" xlink:type="extended" id="i6a5384b0380a4de7b937556998e12838_SegmentInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingAssetReconcilingItemLineItems_b6e6cf82-cdb8-4716-ab8e-6aa1e96299af" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentReportingAssetReconcilingItemLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NumberOfOperatingSegments_012cd8e5-4eca-4385-b55c-79fad4fa7847" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NumberOfOperatingSegments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingAssetReconcilingItemLineItems_b6e6cf82-cdb8-4716-ab8e-6aa1e96299af" xlink:to="loc_us-gaap_NumberOfOperatingSegments_012cd8e5-4eca-4385-b55c-79fad4fa7847" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAbstract_7afd71c3-c637-4217-ae68-cc27d688f94a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingAssetReconcilingItemLineItems_b6e6cf82-cdb8-4716-ab8e-6aa1e96299af" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAbstract_7afd71c3-c637-4217-ae68-cc27d688f94a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_LonglivedAssetsPropertyPlantandEquipmentNetIncludingIntangiblesandGoodwill_80cfe249-daa2-42b5-a19d-c4552e9aba15" xlink:href="gwre-20200430.xsd#gwre_LonglivedAssetsPropertyPlantandEquipmentNetIncludingIntangiblesandGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentAbstract_7afd71c3-c637-4217-ae68-cc27d688f94a" xlink:to="loc_gwre_LonglivedAssetsPropertyPlantandEquipmentNetIncludingIntangiblesandGoodwill_80cfe249-daa2-42b5-a19d-c4552e9aba15" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_53a1aeed-d84f-41cc-84d9-c4b179159322" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingAssetReconcilingItemLineItems_b6e6cf82-cdb8-4716-ab8e-6aa1e96299af" xlink:to="loc_us-gaap_StatementTable_53a1aeed-d84f-41cc-84d9-c4b179159322" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_c8db08f5-0dc9-4046-af7e-2d984f0f784f" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_53a1aeed-d84f-41cc-84d9-c4b179159322" xlink:to="loc_srt_StatementGeographicalAxis_c8db08f5-0dc9-4046-af7e-2d984f0f784f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_c8db08f5-0dc9-4046-af7e-2d984f0f784f_default" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_c8db08f5-0dc9-4046-af7e-2d984f0f784f" xlink:to="loc_srt_SegmentGeographicalDomain_c8db08f5-0dc9-4046-af7e-2d984f0f784f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_8507130a-65dd-4243-a09d-f2f55752f794" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_c8db08f5-0dc9-4046-af7e-2d984f0f784f" xlink:to="loc_srt_SegmentGeographicalDomain_8507130a-65dd-4243-a09d-f2f55752f794" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NorthAmericaMember_43efec4a-a07c-4f33-a940-9734477972c7" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_NorthAmericaMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_8507130a-65dd-4243-a09d-f2f55752f794" xlink:to="loc_srt_NorthAmericaMember_43efec4a-a07c-4f33-a940-9734477972c7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EMEAMember_e3b09dfa-f13b-4dd5-a4a0-a29474854c5a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EMEAMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_8507130a-65dd-4243-a09d-f2f55752f794" xlink:to="loc_us-gaap_EMEAMember_e3b09dfa-f13b-4dd5-a4a0-a29474854c5a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_gwre_APACMember_48a98d1f-47fc-4f19-b744-85b0f8172c79" xlink:href="gwre-20200430.xsd#gwre_APACMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_8507130a-65dd-4243-a09d-f2f55752f794" xlink:to="loc_gwre_APACMember_48a98d1f-47fc-4f19-b744-85b0f8172c79" xlink:type="arc" order="2"/>
  </link:definitionLink>
</link:linkbase>
