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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2024 Workiva-->
<!--r:6d806804-b520-4ae4-b409-55de7e83da99,g:fde05f07-b2f3-4926-ab60-fea1791281b8-->
<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.oneok.com/role/CONSOLIDATEDSTATEMENTSOFINCOME" xlink:type="simple" xlink:href="oke-20231231.xsd#CONSOLIDATEDSTATEMENTSOFINCOME"/>
  <link:definitionLink xlink:role="http://www.oneok.com/role/CONSOLIDATEDSTATEMENTSOFINCOME" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_90d88821-7193-4c65-8b56-a2bf8c892312" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_328334ba-7b4b-4b57-8d93-86fa8bc202a5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_90d88821-7193-4c65-8b56-a2bf8c892312" xlink:to="loc_us-gaap_StatementTable_328334ba-7b4b-4b57-8d93-86fa8bc202a5" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_402b611e-12a8-4a18-9fb3-86c8efee4248" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_328334ba-7b4b-4b57-8d93-86fa8bc202a5" xlink:to="loc_srt_ProductOrServiceAxis_402b611e-12a8-4a18-9fb3-86c8efee4248" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_402b611e-12a8-4a18-9fb3-86c8efee4248_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_402b611e-12a8-4a18-9fb3-86c8efee4248" xlink:to="loc_srt_ProductsAndServicesDomain_402b611e-12a8-4a18-9fb3-86c8efee4248_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_5a26ad1d-8570-4c3d-a400-3ea31a4771e1" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_402b611e-12a8-4a18-9fb3-86c8efee4248" xlink:to="loc_srt_ProductsAndServicesDomain_5a26ad1d-8570-4c3d-a400-3ea31a4771e1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_CommoditySalesMember_8d5fec4c-1a97-4ce3-9d3a-488864800c63" xlink:href="oke-20231231.xsd#oke_CommoditySalesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_5a26ad1d-8570-4c3d-a400-3ea31a4771e1" xlink:to="loc_oke_CommoditySalesMember_8d5fec4c-1a97-4ce3-9d3a-488864800c63" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_ServicesMember_7464fb4d-64b0-4cac-bd77-79524087218e" xlink:href="oke-20231231.xsd#oke_ServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_5a26ad1d-8570-4c3d-a400-3ea31a4771e1" xlink:to="loc_oke_ServicesMember_7464fb4d-64b0-4cac-bd77-79524087218e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenuesAbstract_4a649f1b-c1d9-4ed9-840c-f5a5f5133159" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenuesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_90d88821-7193-4c65-8b56-a2bf8c892312" xlink:to="loc_us-gaap_RevenuesAbstract_4a649f1b-c1d9-4ed9-840c-f5a5f5133159" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_1facf183-178b-4c78-9307-2cde26a03fc3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesAbstract_4a649f1b-c1d9-4ed9-840c-f5a5f5133159" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_1facf183-178b-4c78-9307-2cde26a03fc3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfRevenue_5b49984d-ba97-4266-a21c-833926f868d1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CostOfRevenue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesAbstract_4a649f1b-c1d9-4ed9-840c-f5a5f5133159" xlink:to="loc_us-gaap_CostOfRevenue_5b49984d-ba97-4266-a21c-833926f868d1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCostAndExpenseOperating_ab8a8cc0-2db2-47b9-a242-9504d25f301a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherCostAndExpenseOperating"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_90d88821-7193-4c65-8b56-a2bf8c892312" xlink:to="loc_us-gaap_OtherCostAndExpenseOperating_ab8a8cc0-2db2-47b9-a242-9504d25f301a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_da11a286-8622-4e65-b9ef-7e55132786a0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_90d88821-7193-4c65-8b56-a2bf8c892312" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_da11a286-8622-4e65-b9ef-7e55132786a0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxesOther_a8da4690-af02-4078-a586-25b3f6d85651" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TaxesOther"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_90d88821-7193-4c65-8b56-a2bf8c892312" xlink:to="loc_us-gaap_TaxesOther_a8da4690-af02-4078-a586-25b3f6d85651" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_26b2a178-094f-4f25-9c7f-3cd60eaad75e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationAcquisitionRelatedCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_90d88821-7193-4c65-8b56-a2bf8c892312" xlink:to="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_26b2a178-094f-4f25-9c7f-3cd60eaad75e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingIncomeExpenseNet_06b3c7bf-7aa5-4b54-853c-6a352b1a5bd8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherOperatingIncomeExpenseNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_90d88821-7193-4c65-8b56-a2bf8c892312" xlink:to="loc_us-gaap_OtherOperatingIncomeExpenseNet_06b3c7bf-7aa5-4b54-853c-6a352b1a5bd8" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_d8e15e9e-f8ad-4700-a06a-8790d6fbc79c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_90d88821-7193-4c65-8b56-a2bf8c892312" xlink:to="loc_us-gaap_OperatingIncomeLoss_d8e15e9e-f8ad-4700-a06a-8790d6fbc79c" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromEquityMethodInvestments_16ca57a0-c094-4d3d-8e36-f5500c40d97d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromEquityMethodInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_90d88821-7193-4c65-8b56-a2bf8c892312" xlink:to="loc_us-gaap_IncomeLossFromEquityMethodInvestments_16ca57a0-c094-4d3d-8e36-f5500c40d97d" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_c9645ace-2ee4-4aa3-a39b-fb8ddb9756b6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_90d88821-7193-4c65-8b56-a2bf8c892312" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_c9645ace-2ee4-4aa3-a39b-fb8ddb9756b6" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_8ab51ced-4064-4f12-ad08-3252cabb23f6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_90d88821-7193-4c65-8b56-a2bf8c892312" xlink:to="loc_us-gaap_InterestExpense_8ab51ced-4064-4f12-ad08-3252cabb23f6" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_6890d174-c157-4874-9194-19a77f2b6ab2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_90d88821-7193-4c65-8b56-a2bf8c892312" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_6890d174-c157-4874-9194-19a77f2b6ab2" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_f81e3f6d-700c-45cd-96e0-81c69fce9b2c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_90d88821-7193-4c65-8b56-a2bf8c892312" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_f81e3f6d-700c-45cd-96e0-81c69fce9b2c" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_7be3f698-d1ea-4784-a944-4cc4888a052c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProfitLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_90d88821-7193-4c65-8b56-a2bf8c892312" xlink:to="loc_us-gaap_ProfitLoss_7be3f698-d1ea-4784-a944-4cc4888a052c" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_2f96911b-a7dd-48dd-a243-3ac0275ab9bb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PreferredStockDividendsIncomeStatementImpact"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_90d88821-7193-4c65-8b56-a2bf8c892312" xlink:to="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_2f96911b-a7dd-48dd-a243-3ac0275ab9bb" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_cc04f4a3-410e-4c88-946e-4f93e2274d48" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_90d88821-7193-4c65-8b56-a2bf8c892312" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_cc04f4a3-410e-4c88-946e-4f93e2274d48" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasic_7ca06d9e-1887-40df-99a8-97a8d4ffedbd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EarningsPerShareBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_90d88821-7193-4c65-8b56-a2bf8c892312" xlink:to="loc_us-gaap_EarningsPerShareBasic_7ca06d9e-1887-40df-99a8-97a8d4ffedbd" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDiluted_112df4f1-65cd-4a11-989d-ac97b89c216b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EarningsPerShareDiluted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_90d88821-7193-4c65-8b56-a2bf8c892312" xlink:to="loc_us-gaap_EarningsPerShareDiluted_112df4f1-65cd-4a11-989d-ac97b89c216b" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasicAbstract_3b6ac2c2-a65c-4c2d-994d-148359f79c0e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasicAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_90d88821-7193-4c65-8b56-a2bf8c892312" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasicAbstract_3b6ac2c2-a65c-4c2d-994d-148359f79c0e" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_200fa233-a3a4-44f0-9124-9fa73520208a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasicAbstract_3b6ac2c2-a65c-4c2d-994d-148359f79c0e" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_200fa233-a3a4-44f0-9124-9fa73520208a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_ef99c5d3-d843-4e83-b331-d7c8de8dd211" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasicAbstract_3b6ac2c2-a65c-4c2d-994d-148359f79c0e" xlink:to="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_ef99c5d3-d843-4e83-b331-d7c8de8dd211" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.oneok.com/role/CONSOLIDATEDSTATEMENTSOFCHANGESINEQUITY" xlink:type="simple" xlink:href="oke-20231231.xsd#CONSOLIDATEDSTATEMENTSOFCHANGESINEQUITY"/>
  <link:definitionLink xlink:role="http://www.oneok.com/role/CONSOLIDATEDSTATEMENTSOFCHANGESINEQUITY" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_f2c553d4-afec-4521-aedc-76621e50e0b2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_30b3595a-8e6a-4c62-992f-4b0671ffb67e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_f2c553d4-afec-4521-aedc-76621e50e0b2" xlink:to="loc_us-gaap_StatementTable_30b3595a-8e6a-4c62-992f-4b0671ffb67e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_1cf2b138-8f5e-47c4-ad5b-378369423693" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_30b3595a-8e6a-4c62-992f-4b0671ffb67e" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_1cf2b138-8f5e-47c4-ad5b-378369423693" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_1cf2b138-8f5e-47c4-ad5b-378369423693_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_1cf2b138-8f5e-47c4-ad5b-378369423693" xlink:to="loc_us-gaap_EquityComponentDomain_1cf2b138-8f5e-47c4-ad5b-378369423693_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_c6856ceb-8e9f-4490-8ded-0da89531061b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_1cf2b138-8f5e-47c4-ad5b-378369423693" xlink:to="loc_us-gaap_EquityComponentDomain_c6856ceb-8e9f-4490-8ded-0da89531061b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockMember_de17a818-ee0b-4256-943a-0396a49b0ee6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PreferredStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_c6856ceb-8e9f-4490-8ded-0da89531061b" xlink:to="loc_us-gaap_PreferredStockMember_de17a818-ee0b-4256-943a-0396a49b0ee6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_ec0ef374-8bee-46f4-9cce-558320852341" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_c6856ceb-8e9f-4490-8ded-0da89531061b" xlink:to="loc_us-gaap_CommonStockMember_ec0ef374-8bee-46f4-9cce-558320852341" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_9e046d9e-b544-48c7-b642-2a2bdd9ef1ce" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_c6856ceb-8e9f-4490-8ded-0da89531061b" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_9e046d9e-b544-48c7-b642-2a2bdd9ef1ce" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_2f4c06b7-7089-4c34-be1e-2a0579d3e8d7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_c6856ceb-8e9f-4490-8ded-0da89531061b" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_2f4c06b7-7089-4c34-be1e-2a0579d3e8d7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_1ba4d9d2-14bd-4527-bd6b-a0ab687677b1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_c6856ceb-8e9f-4490-8ded-0da89531061b" xlink:to="loc_us-gaap_RetainedEarningsMember_1ba4d9d2-14bd-4527-bd6b-a0ab687677b1" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockCommonMember_56b59339-c1b6-45a0-b382-b76eb887df8c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TreasuryStockCommonMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_c6856ceb-8e9f-4490-8ded-0da89531061b" xlink:to="loc_us-gaap_TreasuryStockCommonMember_56b59339-c1b6-45a0-b382-b76eb887df8c" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_581976e2-d587-406f-b698-d552a754c981" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_f2c553d4-afec-4521-aedc-76621e50e0b2" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_581976e2-d587-406f-b698-d552a754c981" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharesIssued_ddc335b6-0438-48cd-a578-89d43dbbc08f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_581976e2-d587-406f-b698-d552a754c981" xlink:to="loc_us-gaap_SharesIssued_ddc335b6-0438-48cd-a578-89d43dbbc08f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_6fdcf16e-f021-44bb-8d46-d3bad974df12" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_581976e2-d587-406f-b698-d552a754c981" xlink:to="loc_us-gaap_StockholdersEquity_6fdcf16e-f021-44bb-8d46-d3bad974df12" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_337ca366-099b-438c-a324-32d0ce5e2453" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProfitLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_581976e2-d587-406f-b698-d552a754c981" xlink:to="loc_us-gaap_ProfitLoss_337ca366-099b-438c-a324-32d0ce5e2453" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_b4bc7f55-d723-4c2e-9265-15c85633166a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_581976e2-d587-406f-b698-d552a754c981" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_b4bc7f55-d723-4c2e-9265-15c85633166a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsPreferredStock_6de1fef2-3fc3-4c41-895c-6f5cfd21f3be" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DividendsPreferredStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_581976e2-d587-406f-b698-d552a754c981" xlink:to="loc_us-gaap_DividendsPreferredStock_6de1fef2-3fc3-4c41-895c-6f5cfd21f3be" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesAcquisitions_9f1cf4f8-ec6c-42d3-9c18-a67d1df0730e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockIssuedDuringPeriodSharesAcquisitions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_581976e2-d587-406f-b698-d552a754c981" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesAcquisitions_9f1cf4f8-ec6c-42d3-9c18-a67d1df0730e" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueAcquisitions_3a918193-1c2b-4add-8539-296ad831b2d5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockIssuedDuringPeriodValueAcquisitions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_581976e2-d587-406f-b698-d552a754c981" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueAcquisitions_3a918193-1c2b-4add-8539-296ad831b2d5" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueOther_a55d0487-145e-4c4e-a826-f9eb1f780ec0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockIssuedDuringPeriodValueOther"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_581976e2-d587-406f-b698-d552a754c981" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueOther_a55d0487-145e-4c4e-a826-f9eb1f780ec0" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsCommonStock_42dc0d5d-5d89-4483-9d46-2de3580351de" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DividendsCommonStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_581976e2-d587-406f-b698-d552a754c981" xlink:to="loc_us-gaap_DividendsCommonStock_42dc0d5d-5d89-4483-9d46-2de3580351de" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityOther_61111198-eac5-43a1-9f30-f02dd0f8a264" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquityOther"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_581976e2-d587-406f-b698-d552a754c981" xlink:to="loc_us-gaap_StockholdersEquityOther_61111198-eac5-43a1-9f30-f02dd0f8a264" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharesIssued_f189463b-be27-4d20-bd78-fb4c282ecc03" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SharesIssued"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_9481b386-a86b-4e34-8c81-1ea646e62caf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquity"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.oneok.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESDetails" xlink:type="simple" xlink:href="oke-20231231.xsd#SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESDetails"/>
  <link:definitionLink xlink:role="http://www.oneok.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityInformationLineItems_5841db3a-1be7-4b05-922f-42966a257632" xlink:href="https://xbrl.sec.gov/dei/2023/dei-2023.xsd#dei_EntityInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntitiesTable_f62394bc-5cbe-4fbe-9ff6-ae573be72c18" xlink:href="https://xbrl.sec.gov/dei/2023/dei-2023.xsd#dei_EntitiesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_dei_EntityInformationLineItems_5841db3a-1be7-4b05-922f-42966a257632" xlink:to="loc_dei_EntitiesTable_f62394bc-5cbe-4fbe-9ff6-ae573be72c18" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_3478786e-3ee9-4685-8370-c2d68c63b102" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_dei_EntitiesTable_f62394bc-5cbe-4fbe-9ff6-ae573be72c18" xlink:to="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_3478786e-3ee9-4685-8370-c2d68c63b102" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_3478786e-3ee9-4685-8370-c2d68c63b102_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_3478786e-3ee9-4685-8370-c2d68c63b102" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_3478786e-3ee9-4685-8370-c2d68c63b102_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_0851ef84-9459-4d06-ba61-b1f69d61e6a0" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_3478786e-3ee9-4685-8370-c2d68c63b102" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_0851ef84-9459-4d06-ba61-b1f69d61e6a0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_NorthernBorderPipelineMember_bd5107b5-a098-4144-b37f-c5ad9841d4ed" xlink:href="oke-20231231.xsd#oke_NorthernBorderPipelineMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_0851ef84-9459-4d06-ba61-b1f69d61e6a0" xlink:to="loc_oke_NorthernBorderPipelineMember_bd5107b5-a098-4144-b37f-c5ad9841d4ed" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_RoadrunnerGasTransmissionMember_d22bedee-19ff-4227-8efe-3227e85bc128" xlink:href="oke-20231231.xsd#oke_RoadrunnerGasTransmissionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_0851ef84-9459-4d06-ba61-b1f69d61e6a0" xlink:to="loc_oke_RoadrunnerGasTransmissionMember_d22bedee-19ff-4227-8efe-3227e85bc128" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_OverlandPassPipelineCompanyMember_75327cb0-c5f9-41ff-a41a-5152a9c64b12" xlink:href="oke-20231231.xsd#oke_OverlandPassPipelineCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_0851ef84-9459-4d06-ba61-b1f69d61e6a0" xlink:to="loc_oke_OverlandPassPipelineCompanyMember_75327cb0-c5f9-41ff-a41a-5152a9c64b12" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_a4bf72b9-ee0b-4e16-9614-1d89a86be8a7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_dei_EntitiesTable_f62394bc-5cbe-4fbe-9ff6-ae573be72c18" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_a4bf72b9-ee0b-4e16-9614-1d89a86be8a7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_a4bf72b9-ee0b-4e16-9614-1d89a86be8a7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_a4bf72b9-ee0b-4e16-9614-1d89a86be8a7" xlink:to="loc_us-gaap_SegmentDomain_a4bf72b9-ee0b-4e16-9614-1d89a86be8a7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_f020f435-9ed9-4860-ace4-7d3716ada44b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_a4bf72b9-ee0b-4e16-9614-1d89a86be8a7" xlink:to="loc_us-gaap_SegmentDomain_f020f435-9ed9-4860-ace4-7d3716ada44b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_NaturalGasLiquidsMember_e0b55648-7e50-49e6-abd7-21fc620ac87f" xlink:href="oke-20231231.xsd#oke_NaturalGasLiquidsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_f020f435-9ed9-4860-ace4-7d3716ada44b" xlink:to="loc_oke_NaturalGasLiquidsMember_e0b55648-7e50-49e6-abd7-21fc620ac87f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_NaturalGasPipelinesMember_8239450d-48d3-41d3-9010-cc8ef309ded6" xlink:href="oke-20231231.xsd#oke_NaturalGasPipelinesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_f020f435-9ed9-4860-ace4-7d3716ada44b" xlink:to="loc_oke_NaturalGasPipelinesMember_8239450d-48d3-41d3-9010-cc8ef309ded6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_5558ed4e-5a8a-4a95-9412-1bf805784cd4" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_dei_EntitiesTable_f62394bc-5cbe-4fbe-9ff6-ae573be72c18" xlink:to="loc_srt_RangeAxis_5558ed4e-5a8a-4a95-9412-1bf805784cd4" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_5558ed4e-5a8a-4a95-9412-1bf805784cd4_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_5558ed4e-5a8a-4a95-9412-1bf805784cd4" xlink:to="loc_srt_RangeMember_5558ed4e-5a8a-4a95-9412-1bf805784cd4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_8f068d46-4a33-4b7c-99bd-75ee26f34b7c" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_5558ed4e-5a8a-4a95-9412-1bf805784cd4" xlink:to="loc_srt_RangeMember_8f068d46-4a33-4b7c-99bd-75ee26f34b7c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_e45090f8-bdef-4067-b29c-66685633c448" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_8f068d46-4a33-4b7c-99bd-75ee26f34b7c" xlink:to="loc_srt_MaximumMember_e45090f8-bdef-4067-b29c-66685633c448" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_3f66b682-1287-4629-9137-5067d3b51e85" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_8f068d46-4a33-4b7c-99bd-75ee26f34b7c" xlink:to="loc_srt_MinimumMember_3f66b682-1287-4629-9137-5067d3b51e85" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_8b84915d-0ebf-4ab2-928d-25f8546459fc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_dei_EntitiesTable_f62394bc-5cbe-4fbe-9ff6-ae573be72c18" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_8b84915d-0ebf-4ab2-928d-25f8546459fc" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_8b84915d-0ebf-4ab2-928d-25f8546459fc_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_8b84915d-0ebf-4ab2-928d-25f8546459fc" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_8b84915d-0ebf-4ab2-928d-25f8546459fc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_763876bf-0546-4270-a4d0-641a502e8a0e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_8b84915d-0ebf-4ab2-928d-25f8546459fc" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_763876bf-0546-4270-a4d0-641a502e8a0e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_MagellanAcquisitionMember_c48c9ff2-31fc-407b-b789-4d82404d720a" xlink:href="oke-20231231.xsd#oke_MagellanAcquisitionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_763876bf-0546-4270-a4d0-641a502e8a0e" xlink:to="loc_oke_MagellanAcquisitionMember_c48c9ff2-31fc-407b-b789-4d82404d720a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_845a05f2-3c2c-4631-ac2d-c5ebafcc1eec" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_dei_EntitiesTable_f62394bc-5cbe-4fbe-9ff6-ae573be72c18" xlink:to="loc_srt_ProductOrServiceAxis_845a05f2-3c2c-4631-ac2d-c5ebafcc1eec" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_845a05f2-3c2c-4631-ac2d-c5ebafcc1eec_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_845a05f2-3c2c-4631-ac2d-c5ebafcc1eec" xlink:to="loc_srt_ProductsAndServicesDomain_845a05f2-3c2c-4631-ac2d-c5ebafcc1eec_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_8b1041fb-0632-4478-b253-7810e2d7637d" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_845a05f2-3c2c-4631-ac2d-c5ebafcc1eec" xlink:to="loc_srt_ProductsAndServicesDomain_8b1041fb-0632-4478-b253-7810e2d7637d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_RefinedProductsCrudeTransportationAndNGLStorageMember_b0b9836d-3b0c-4629-82ff-3683f2cb6090" xlink:href="oke-20231231.xsd#oke_RefinedProductsCrudeTransportationAndNGLStorageMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_8b1041fb-0632-4478-b253-7810e2d7637d" xlink:to="loc_oke_RefinedProductsCrudeTransportationAndNGLStorageMember_b0b9836d-3b0c-4629-82ff-3683f2cb6090" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_ConstructionContracts1Member_f2ac06df-b254-4aca-b41a-d46ea49038a9" xlink:href="oke-20231231.xsd#oke_ConstructionContracts1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_8b1041fb-0632-4478-b253-7810e2d7637d" xlink:to="loc_oke_ConstructionContracts1Member_f2ac06df-b254-4aca-b41a-d46ea49038a9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestmentOwnershipPercentage_beb32103-a877-4453-be22-f09cc44294a5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityMethodInvestmentOwnershipPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_5841db3a-1be7-4b05-922f-42966a257632" xlink:to="loc_us-gaap_EquityMethodInvestmentOwnershipPercentage_beb32103-a877-4453-be22-f09cc44294a5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_RefinedProductsPipelineLength_37e0747f-dc97-495f-863d-099041593e60" xlink:href="oke-20231231.xsd#oke_RefinedProductsPipelineLength"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_5841db3a-1be7-4b05-922f-42966a257632" xlink:to="loc_oke_RefinedProductsPipelineLength_37e0747f-dc97-495f-863d-099041593e60" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_CoverageOfPipelineAcquisition_2080fc81-ef47-4b7c-a4e9-2d69cbadd014" xlink:href="oke-20231231.xsd#oke_CoverageOfPipelineAcquisition"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_5841db3a-1be7-4b05-922f-42966a257632" xlink:to="loc_oke_CoverageOfPipelineAcquisition_2080fc81-ef47-4b7c-a4e9-2d69cbadd014" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_ContractLiabilityTermOfContract_b4054682-2f71-4942-a021-2917f842a7a6" xlink:href="oke-20231231.xsd#oke_ContractLiabilityTermOfContract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_5841db3a-1be7-4b05-922f-42966a257632" xlink:to="loc_oke_ContractLiabilityTermOfContract_b4054682-2f71-4942-a021-2917f842a7a6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_NumberOfYearsOfServiceEmployeesMustWorkToBeEntitledToPostretirementMedicalAndLifeInsuranceBenefits_cb23fc9c-b248-46ba-beb2-35e6a62484f1" xlink:href="oke-20231231.xsd#oke_NumberOfYearsOfServiceEmployeesMustWorkToBeEntitledToPostretirementMedicalAndLifeInsuranceBenefits"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_5841db3a-1be7-4b05-922f-42966a257632" xlink:to="loc_oke_NumberOfYearsOfServiceEmployeesMustWorkToBeEntitledToPostretirementMedicalAndLifeInsuranceBenefits_cb23fc9c-b248-46ba-beb2-35e6a62484f1" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NumberOfOperatingSegments_c16be8f3-84c3-4df7-96fa-601836441cbe" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NumberOfOperatingSegments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_5841db3a-1be7-4b05-922f-42966a257632" xlink:to="loc_us-gaap_NumberOfOperatingSegments_c16be8f3-84c3-4df7-96fa-601836441cbe" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_AdditionalAdjustedEBITDA_7e3643cc-ac8e-4eb0-8471-9208fb9468f8" xlink:href="oke-20231231.xsd#oke_AdditionalAdjustedEBITDA"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_5841db3a-1be7-4b05-922f-42966a257632" xlink:to="loc_oke_AdditionalAdjustedEBITDA_7e3643cc-ac8e-4eb0-8471-9208fb9468f8" xlink:type="arc" order="6"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.oneok.com/role/MAGELLANACQUISITIONNarrativeDetails" xlink:type="simple" xlink:href="oke-20231231.xsd#MAGELLANACQUISITIONNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.oneok.com/role/MAGELLANACQUISITIONNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_ad1e0789-e576-41f7-84fe-c77807c7b250" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_bfb1eb42-8de0-4f4a-a65f-7c0c64921c14" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_ad1e0789-e576-41f7-84fe-c77807c7b250" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_bfb1eb42-8de0-4f4a-a65f-7c0c64921c14" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_6c250226-4ead-4a85-9cbe-3320d67118b2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_bfb1eb42-8de0-4f4a-a65f-7c0c64921c14" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_6c250226-4ead-4a85-9cbe-3320d67118b2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_6c250226-4ead-4a85-9cbe-3320d67118b2_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_6c250226-4ead-4a85-9cbe-3320d67118b2" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_6c250226-4ead-4a85-9cbe-3320d67118b2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_5603cf5e-cd32-4dc8-b5e4-158306a52bd9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_6c250226-4ead-4a85-9cbe-3320d67118b2" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_5603cf5e-cd32-4dc8-b5e4-158306a52bd9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_MagellanAcquisitionMember_f501ca97-53a3-4e0a-ae28-a5b218bd8a58" xlink:href="oke-20231231.xsd#oke_MagellanAcquisitionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_5603cf5e-cd32-4dc8-b5e4-158306a52bd9" xlink:to="loc_oke_MagellanAcquisitionMember_f501ca97-53a3-4e0a-ae28-a5b218bd8a58" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityInterestIssuedOrIssuableByTypeAxis_b74eed2c-80f4-4b85-959f-304112d430c9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityInterestIssuedOrIssuableByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_bfb1eb42-8de0-4f4a-a65f-7c0c64921c14" xlink:to="loc_us-gaap_EquityInterestIssuedOrIssuableByTypeAxis_b74eed2c-80f4-4b85-959f-304112d430c9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityInterestIssuedOrIssuableTypeDomain_b74eed2c-80f4-4b85-959f-304112d430c9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityInterestIssuedOrIssuableTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_EquityInterestIssuedOrIssuableByTypeAxis_b74eed2c-80f4-4b85-959f-304112d430c9" xlink:to="loc_us-gaap_EquityInterestIssuedOrIssuableTypeDomain_b74eed2c-80f4-4b85-959f-304112d430c9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityInterestIssuedOrIssuableTypeDomain_0b2f5f11-b01a-4c47-bc6e-2e2895dae9c3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityInterestIssuedOrIssuableTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_EquityInterestIssuedOrIssuableByTypeAxis_b74eed2c-80f4-4b85-959f-304112d430c9" xlink:to="loc_us-gaap_EquityInterestIssuedOrIssuableTypeDomain_0b2f5f11-b01a-4c47-bc6e-2e2895dae9c3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_293d7613-9b99-4224-adb3-ed548e2b94f3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityInterestIssuedOrIssuableTypeDomain_0b2f5f11-b01a-4c47-bc6e-2e2895dae9c3" xlink:to="loc_us-gaap_CommonStockMember_293d7613-9b99-4224-adb3-ed548e2b94f3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_9732021f-f899-4e5a-ab10-c9e9a0ef3d2d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_bfb1eb42-8de0-4f4a-a65f-7c0c64921c14" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_9732021f-f899-4e5a-ab10-c9e9a0ef3d2d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_9732021f-f899-4e5a-ab10-c9e9a0ef3d2d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_9732021f-f899-4e5a-ab10-c9e9a0ef3d2d" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_9732021f-f899-4e5a-ab10-c9e9a0ef3d2d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_2673782b-9af2-457a-9c42-3d263ff6acce" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_9732021f-f899-4e5a-ab10-c9e9a0ef3d2d" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_2673782b-9af2-457a-9c42-3d263ff6acce" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotesMember_c6755f7b-0d4b-4c51-b9ba-acd7963b13c4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_2673782b-9af2-457a-9c42-3d263ff6acce" xlink:to="loc_us-gaap_SeniorNotesMember_c6755f7b-0d4b-4c51-b9ba-acd7963b13c4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_MedfordIncidentAxis_782cd8b7-61eb-4116-bfc9-e40291fb2266" xlink:href="oke-20231231.xsd#oke_MedfordIncidentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_bfb1eb42-8de0-4f4a-a65f-7c0c64921c14" xlink:to="loc_oke_MedfordIncidentAxis_782cd8b7-61eb-4116-bfc9-e40291fb2266" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_MedfordIncidentDomain_782cd8b7-61eb-4116-bfc9-e40291fb2266_default" xlink:href="oke-20231231.xsd#oke_MedfordIncidentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_oke_MedfordIncidentAxis_782cd8b7-61eb-4116-bfc9-e40291fb2266" xlink:to="loc_oke_MedfordIncidentDomain_782cd8b7-61eb-4116-bfc9-e40291fb2266_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_MedfordIncidentDomain_b17d13fa-0001-4ba3-98e7-53b1ce5add40" xlink:href="oke-20231231.xsd#oke_MedfordIncidentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_oke_MedfordIncidentAxis_782cd8b7-61eb-4116-bfc9-e40291fb2266" xlink:to="loc_oke_MedfordIncidentDomain_b17d13fa-0001-4ba3-98e7-53b1ce5add40" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_BusinessInterruptionSettlementProceedsMember_a63d7260-f83b-43e8-8c0c-b6e327c44cee" xlink:href="oke-20231231.xsd#oke_BusinessInterruptionSettlementProceedsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oke_MedfordIncidentDomain_b17d13fa-0001-4ba3-98e7-53b1ce5add40" xlink:to="loc_oke_BusinessInterruptionSettlementProceedsMember_a63d7260-f83b-43e8-8c0c-b6e327c44cee" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_NaturalGasLiquidsAxis_8210722e-f6ea-4ca2-8feb-a3c2dd624867" xlink:href="oke-20231231.xsd#oke_NaturalGasLiquidsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_bfb1eb42-8de0-4f4a-a65f-7c0c64921c14" xlink:to="loc_oke_NaturalGasLiquidsAxis_8210722e-f6ea-4ca2-8feb-a3c2dd624867" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_NaturalGasLiquidsDomain_8210722e-f6ea-4ca2-8feb-a3c2dd624867_default" xlink:href="oke-20231231.xsd#oke_NaturalGasLiquidsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_oke_NaturalGasLiquidsAxis_8210722e-f6ea-4ca2-8feb-a3c2dd624867" xlink:to="loc_oke_NaturalGasLiquidsDomain_8210722e-f6ea-4ca2-8feb-a3c2dd624867_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_NaturalGasLiquidsDomain_2a071256-7866-4e4a-b3e0-6f606fc4e962" xlink:href="oke-20231231.xsd#oke_NaturalGasLiquidsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_oke_NaturalGasLiquidsAxis_8210722e-f6ea-4ca2-8feb-a3c2dd624867" xlink:to="loc_oke_NaturalGasLiquidsDomain_2a071256-7866-4e4a-b3e0-6f606fc4e962" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_MedfordIncidentMember_36ac0c25-0248-4bec-9fc6-3711bd9493cf" xlink:href="oke-20231231.xsd#oke_MedfordIncidentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oke_NaturalGasLiquidsDomain_2a071256-7866-4e4a-b3e0-6f606fc4e962" xlink:to="loc_oke_MedfordIncidentMember_36ac0c25-0248-4bec-9fc6-3711bd9493cf" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuableEntitySharesIssuedPerAcquireeShare_54f36d5a-5fb2-4101-9723-287f423c73ca" xlink:href="oke-20231231.xsd#oke_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuableEntitySharesIssuedPerAcquireeShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_ad1e0789-e576-41f7-84fe-c77807c7b250" xlink:to="loc_oke_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuableEntitySharesIssuedPerAcquireeShare_54f36d5a-5fb2-4101-9723-287f423c73ca" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionSharePrice_3dc1dddf-bfa0-43c1-81de-d5f77fc3364d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionSharePrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_ad1e0789-e576-41f7-84fe-c77807c7b250" xlink:to="loc_us-gaap_BusinessAcquisitionSharePrice_3dc1dddf-bfa0-43c1-81de-d5f77fc3364d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_7bf0f8e3-d9db-4535-869d-cc4f1a10ca90" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationConsiderationTransferred1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_ad1e0789-e576-41f7-84fe-c77807c7b250" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferred1_7bf0f8e3-d9db-4535-869d-cc4f1a10ca90" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued_c2c512a9-acf4-44b0-b0c1-7bdd06014d6b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_ad1e0789-e576-41f7-84fe-c77807c7b250" xlink:to="loc_us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued_c2c512a9-acf4-44b0-b0c1-7bdd06014d6b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable_d94e18fa-96ea-4d91-8373-9b967a6e0337" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_ad1e0789-e576-41f7-84fe-c77807c7b250" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable_d94e18fa-96ea-4d91-8373-9b967a6e0337" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt_7f576b8d-bc00-4384-8083-98fd72714d9f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_ad1e0789-e576-41f7-84fe-c77807c7b250" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt_7f576b8d-bc00-4384-8083-98fd72714d9f" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ExtinguishmentOfDebtAmount_998cfd8c-a991-45db-9cf0-3af35e0442a5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ExtinguishmentOfDebtAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_ad1e0789-e576-41f7-84fe-c77807c7b250" xlink:to="loc_us-gaap_ExtinguishmentOfDebtAmount_998cfd8c-a991-45db-9cf0-3af35e0442a5" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_RefinedProductsPipelineLength_3e1e174e-b679-48f5-bb15-4449cb5bdf57" xlink:href="oke-20231231.xsd#oke_RefinedProductsPipelineLength"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_ad1e0789-e576-41f7-84fe-c77807c7b250" xlink:to="loc_oke_RefinedProductsPipelineLength_3e1e174e-b679-48f5-bb15-4449cb5bdf57" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_NumberOfMarineTerminals_db9136db-b52b-4673-886a-05a59e935cd5" xlink:href="oke-20231231.xsd#oke_NumberOfMarineTerminals"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_ad1e0789-e576-41f7-84fe-c77807c7b250" xlink:to="loc_oke_NumberOfMarineTerminals_db9136db-b52b-4673-886a-05a59e935cd5" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_NumberOfPipelineTerminals_47652f99-5d89-49b9-bff8-0209e2d7c4d7" xlink:href="oke-20231231.xsd#oke_NumberOfPipelineTerminals"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_ad1e0789-e576-41f7-84fe-c77807c7b250" xlink:to="loc_oke_NumberOfPipelineTerminals_47652f99-5d89-49b9-bff8-0209e2d7c4d7" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_CrudeOilPipelineLength_7f49c3eb-f887-4677-9dab-ffbc73b380d1" xlink:href="oke-20231231.xsd#oke_CrudeOilPipelineLength"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_ad1e0789-e576-41f7-84fe-c77807c7b250" xlink:to="loc_oke_CrudeOilPipelineLength_7f49c3eb-f887-4677-9dab-ffbc73b380d1" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_OperatingStorageCapacity_a84dee43-27a7-42e1-99e4-1d89ff607dea" xlink:href="oke-20231231.xsd#oke_OperatingStorageCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_ad1e0789-e576-41f7-84fe-c77807c7b250" xlink:to="loc_oke_OperatingStorageCapacity_a84dee43-27a7-42e1-99e4-1d89ff607dea" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_NumberOfUnconsolidatedAffiliates_38afe481-5046-4bb9-9b53-f9ac62f2d618" xlink:href="oke-20231231.xsd#oke_NumberOfUnconsolidatedAffiliates"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_ad1e0789-e576-41f7-84fe-c77807c7b250" xlink:to="loc_oke_NumberOfUnconsolidatedAffiliates_38afe481-5046-4bb9-9b53-f9ac62f2d618" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_ee2f283b-14f1-4e27-8725-4b2abb74fb3c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GoodwillPurchaseAccountingAdjustments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_ad1e0789-e576-41f7-84fe-c77807c7b250" xlink:to="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_ee2f283b-14f1-4e27-8725-4b2abb74fb3c" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentIntangibles_6fbfb93f-19d9-4efd-9d8d-426f35f599ac" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentIntangibles"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_ad1e0789-e576-41f7-84fe-c77807c7b250" xlink:to="loc_us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentIntangibles_6fbfb93f-19d9-4efd-9d8d-426f35f599ac" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentPropertyPlantAndEquipment_314a7721-1c82-46b0-8b73-bfac342d568b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentPropertyPlantAndEquipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_ad1e0789-e576-41f7-84fe-c77807c7b250" xlink:to="loc_us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentPropertyPlantAndEquipment_314a7721-1c82-46b0-8b73-bfac342d568b" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_5b3fa84e-b27d-4609-b7b6-0535ab829bec" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProfitLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_ad1e0789-e576-41f7-84fe-c77807c7b250" xlink:to="loc_us-gaap_ProfitLoss_5b3fa84e-b27d-4609-b7b6-0535ab829bec" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationProFormaInformationRevenueOfAcquireeSinceAcquisitionDateActual_fccae85a-4f76-4937-9f34-9be95c4ecdaa" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationProFormaInformationRevenueOfAcquireeSinceAcquisitionDateActual"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_ad1e0789-e576-41f7-84fe-c77807c7b250" xlink:to="loc_us-gaap_BusinessCombinationProFormaInformationRevenueOfAcquireeSinceAcquisitionDateActual_fccae85a-4f76-4937-9f34-9be95c4ecdaa" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationProFormaInformationEarningsOrLossOfAcquireeSinceAcquisitionDateActual_d18dd117-ea26-474c-a475-a4f68c6811e8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationProFormaInformationEarningsOrLossOfAcquireeSinceAcquisitionDateActual"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_ad1e0789-e576-41f7-84fe-c77807c7b250" xlink:to="loc_us-gaap_BusinessCombinationProFormaInformationEarningsOrLossOfAcquireeSinceAcquisitionDateActual_d18dd117-ea26-474c-a475-a4f68c6811e8" xlink:type="arc" order="18"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsAdditionalDisclosuresAcquisitionCostExpensed_afd8b972-860a-4dba-8f65-49eec4140c2a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsAdditionalDisclosuresAcquisitionCostExpensed"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_ad1e0789-e576-41f7-84fe-c77807c7b250" xlink:to="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsAdditionalDisclosuresAcquisitionCostExpensed_afd8b972-860a-4dba-8f65-49eec4140c2a" xlink:type="arc" order="19"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_3f8bb8fe-0740-475d-9207-8419d277969b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_ad1e0789-e576-41f7-84fe-c77807c7b250" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_3f8bb8fe-0740-475d-9207-8419d277969b" xlink:type="arc" order="20"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainOnBusinessInterruptionInsuranceRecovery_c080333e-2a98-4808-8024-ef3cad8ae7ee" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GainOnBusinessInterruptionInsuranceRecovery"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_ad1e0789-e576-41f7-84fe-c77807c7b250" xlink:to="loc_us-gaap_GainOnBusinessInterruptionInsuranceRecovery_c080333e-2a98-4808-8024-ef3cad8ae7ee" xlink:type="arc" order="21"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.oneok.com/role/MAGELLANACQUISITIONAcquisitionConsiderationDetails" xlink:type="simple" xlink:href="oke-20231231.xsd#MAGELLANACQUISITIONAcquisitionConsiderationDetails"/>
  <link:definitionLink xlink:role="http://www.oneok.com/role/MAGELLANACQUISITIONAcquisitionConsiderationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationSegmentAllocationLineItems_bc09e66d-ba00-45ed-b09c-263c4556df33" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationSegmentAllocationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationSegmentAllocationTable_7aaab5fa-2395-4af5-bc91-5003668d53da" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationSegmentAllocationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessCombinationSegmentAllocationLineItems_bc09e66d-ba00-45ed-b09c-263c4556df33" xlink:to="loc_us-gaap_BusinessCombinationSegmentAllocationTable_7aaab5fa-2395-4af5-bc91-5003668d53da" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_3027913e-26e1-485e-b7c4-2012c6f24a1e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_BusinessCombinationSegmentAllocationTable_7aaab5fa-2395-4af5-bc91-5003668d53da" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_3027913e-26e1-485e-b7c4-2012c6f24a1e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_3027913e-26e1-485e-b7c4-2012c6f24a1e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_3027913e-26e1-485e-b7c4-2012c6f24a1e" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_3027913e-26e1-485e-b7c4-2012c6f24a1e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_df940a6d-f997-4820-9846-8de78ddf262d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_3027913e-26e1-485e-b7c4-2012c6f24a1e" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_df940a6d-f997-4820-9846-8de78ddf262d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_MagellanAcquisitionMember_d90de277-960b-49b9-8e91-10f367eee247" xlink:href="oke-20231231.xsd#oke_MagellanAcquisitionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_df940a6d-f997-4820-9846-8de78ddf262d" xlink:to="loc_oke_MagellanAcquisitionMember_d90de277-960b-49b9-8e91-10f367eee247" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityInterestIssuedOrIssuableByTypeAxis_6c298c3c-ad3d-478e-acdd-c088b4897744" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityInterestIssuedOrIssuableByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_BusinessCombinationSegmentAllocationTable_7aaab5fa-2395-4af5-bc91-5003668d53da" xlink:to="loc_us-gaap_EquityInterestIssuedOrIssuableByTypeAxis_6c298c3c-ad3d-478e-acdd-c088b4897744" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityInterestIssuedOrIssuableTypeDomain_6c298c3c-ad3d-478e-acdd-c088b4897744_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityInterestIssuedOrIssuableTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_EquityInterestIssuedOrIssuableByTypeAxis_6c298c3c-ad3d-478e-acdd-c088b4897744" xlink:to="loc_us-gaap_EquityInterestIssuedOrIssuableTypeDomain_6c298c3c-ad3d-478e-acdd-c088b4897744_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityInterestIssuedOrIssuableTypeDomain_e80b27a0-7c81-4ce5-afa3-5fb727655c68" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityInterestIssuedOrIssuableTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_EquityInterestIssuedOrIssuableByTypeAxis_6c298c3c-ad3d-478e-acdd-c088b4897744" xlink:to="loc_us-gaap_EquityInterestIssuedOrIssuableTypeDomain_e80b27a0-7c81-4ce5-afa3-5fb727655c68" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_6937f57f-e68d-4aae-95a5-ac1442106578" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityInterestIssuedOrIssuableTypeDomain_e80b27a0-7c81-4ce5-afa3-5fb727655c68" xlink:to="loc_us-gaap_CommonStockMember_6937f57f-e68d-4aae-95a5-ac1442106578" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_ReplacementEquityAwardsMember_b892eb5a-88ea-4595-ad51-2693246f6ad5" xlink:href="oke-20231231.xsd#oke_ReplacementEquityAwardsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityInterestIssuedOrIssuableTypeDomain_e80b27a0-7c81-4ce5-afa3-5fb727655c68" xlink:to="loc_oke_ReplacementEquityAwardsMember_b892eb5a-88ea-4595-ad51-2693246f6ad5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_BusinessAcquisitionNumberOfCommonStockSharesAcquired_08ffdf5b-ed39-4c00-8ed1-121ce08000e9" xlink:href="oke-20231231.xsd#oke_BusinessAcquisitionNumberOfCommonStockSharesAcquired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationSegmentAllocationLineItems_bc09e66d-ba00-45ed-b09c-263c4556df33" xlink:to="loc_oke_BusinessAcquisitionNumberOfCommonStockSharesAcquired_08ffdf5b-ed39-4c00-8ed1-121ce08000e9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionSharePrice_5f45f03b-5f46-484f-b7de-5fb8ea8c2079" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionSharePrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationSegmentAllocationLineItems_bc09e66d-ba00-45ed-b09c-263c4556df33" xlink:to="loc_us-gaap_BusinessAcquisitionSharePrice_5f45f03b-5f46-484f-b7de-5fb8ea8c2079" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesGross_cf511a15-bbe1-49c9-9b66-109fe14c9ba5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquireBusinessesGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationSegmentAllocationLineItems_bc09e66d-ba00-45ed-b09c-263c4556df33" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesGross_cf511a15-bbe1-49c9-9b66-109fe14c9ba5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuableEntitySharesIssuedPerAcquireeShare_405adc03-1fb2-485d-b3e0-1dfa7113299d" xlink:href="oke-20231231.xsd#oke_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuableEntitySharesIssuedPerAcquireeShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationSegmentAllocationLineItems_bc09e66d-ba00-45ed-b09c-263c4556df33" xlink:to="loc_oke_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuableEntitySharesIssuedPerAcquireeShare_405adc03-1fb2-485d-b3e0-1dfa7113299d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued_a86afe01-544f-43cd-a37a-117c4c35b35f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationSegmentAllocationLineItems_bc09e66d-ba00-45ed-b09c-263c4556df33" xlink:to="loc_us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued_a86afe01-544f-43cd-a37a-117c4c35b35f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharePrice_8f840f67-3582-47eb-8b6b-e190fce72891" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SharePrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationSegmentAllocationLineItems_bc09e66d-ba00-45ed-b09c-263c4556df33" xlink:to="loc_us-gaap_SharePrice_8f840f67-3582-47eb-8b6b-e190fce72891" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable_4342a529-682a-495b-be2c-5713ce396b3d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationSegmentAllocationLineItems_bc09e66d-ba00-45ed-b09c-263c4556df33" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable_4342a529-682a-495b-be2c-5713ce396b3d" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_9a078b7b-8104-46e1-aa0d-b64081ad7392" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationConsiderationTransferred1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationSegmentAllocationLineItems_bc09e66d-ba00-45ed-b09c-263c4556df33" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferred1_9a078b7b-8104-46e1-aa0d-b64081ad7392" xlink:type="arc" order="7"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.oneok.com/role/MAGELLANACQUISITIONAssetsAcquiredandLiabilitiesAssumedDetails" xlink:type="simple" xlink:href="oke-20231231.xsd#MAGELLANACQUISITIONAssetsAcquiredandLiabilitiesAssumedDetails"/>
  <link:definitionLink xlink:role="http://www.oneok.com/role/MAGELLANACQUISITIONAssetsAcquiredandLiabilitiesAssumedDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsLineItems_ebad2571-0710-4aa6-acad-2e8b7e2da542" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsTable_b400dc97-f4fa-4527-86aa-12344798958c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsLineItems_ebad2571-0710-4aa6-acad-2e8b7e2da542" xlink:to="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsTable_b400dc97-f4fa-4527-86aa-12344798958c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_0810e337-6945-4d0d-b9ad-030dd85a1f8f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsTable_b400dc97-f4fa-4527-86aa-12344798958c" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_0810e337-6945-4d0d-b9ad-030dd85a1f8f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_0810e337-6945-4d0d-b9ad-030dd85a1f8f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_0810e337-6945-4d0d-b9ad-030dd85a1f8f" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_0810e337-6945-4d0d-b9ad-030dd85a1f8f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_f5cb44ba-55d1-429a-8260-8f01b9bd7e45" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_0810e337-6945-4d0d-b9ad-030dd85a1f8f" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_f5cb44ba-55d1-429a-8260-8f01b9bd7e45" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_MagellanAcquisitionMember_5b047a0b-56b8-44c0-b03b-fc307c54e294" xlink:href="oke-20231231.xsd#oke_MagellanAcquisitionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_f5cb44ba-55d1-429a-8260-8f01b9bd7e45" xlink:to="loc_oke_MagellanAcquisitionMember_5b047a0b-56b8-44c0-b03b-fc307c54e294" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract_79202506-6d15-47bc-b258-e63df4f35172" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsLineItems_ebad2571-0710-4aa6-acad-2e8b7e2da542" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract_79202506-6d15-47bc-b258-e63df4f35172" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_48c3563b-2fd1-486b-96c6-1dc360bf9782" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract_79202506-6d15-47bc-b258-e63df4f35172" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_48c3563b-2fd1-486b-96c6-1dc360bf9782" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables_657ef80c-6351-42b1-b8bb-1b50564fc9ab" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract_79202506-6d15-47bc-b258-e63df4f35172" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables_657ef80c-6351-42b1-b8bb-1b50564fc9ab" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedInventory_badc4029-5e3a-4723-8a1b-79b0b560ee99" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedInventory"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract_79202506-6d15-47bc-b258-e63df4f35172" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedInventory_badc4029-5e3a-4723-8a1b-79b0b560ee99" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther_26cc1053-c185-4761-8d9a-21b0c31ff2b8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract_79202506-6d15-47bc-b258-e63df4f35172" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther_26cc1053-c185-4761-8d9a-21b0c31ff2b8" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_c05b87d8-86c2-4fa9-92dd-a74fd2c8f01c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract_79202506-6d15-47bc-b258-e63df4f35172" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_c05b87d8-86c2-4fa9-92dd-a74fd2c8f01c" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedInvestmentsInUnconsolidatedAffiliates_231efb5d-a8cb-458c-a0b9-7a174277c73e" xlink:href="oke-20231231.xsd#oke_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedInvestmentsInUnconsolidatedAffiliates"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract_79202506-6d15-47bc-b258-e63df4f35172" xlink:to="loc_oke_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedInvestmentsInUnconsolidatedAffiliates_231efb5d-a8cb-458c-a0b9-7a174277c73e" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill_427462a8-c7d6-495f-ac5b-a9eb2270cf20" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract_79202506-6d15-47bc-b258-e63df4f35172" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill_427462a8-c7d6-495f-ac5b-a9eb2270cf20" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets_b63d7f40-28ea-4248-ae58-94bf806f6eb7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract_79202506-6d15-47bc-b258-e63df4f35172" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets_b63d7f40-28ea-4248-ae58-94bf806f6eb7" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_1e506eaa-ba6a-4611-8353-31cedd666b52" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract_79202506-6d15-47bc-b258-e63df4f35172" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_1e506eaa-ba6a-4611-8353-31cedd666b52" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract_afffe01a-cc8b-4611-a247-8963ec4ca7f3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsLineItems_ebad2571-0710-4aa6-acad-2e8b7e2da542" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract_afffe01a-cc8b-4611-a247-8963ec4ca7f3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable_3b542f75-1e84-4995-88b8-b856c72e56de" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract_afffe01a-cc8b-4611-a247-8963ec4ca7f3" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable_3b542f75-1e84-4995-88b8-b856c72e56de" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther_683aa9f2-8a66-4a56-af2d-09524e84cd7e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract_afffe01a-cc8b-4611-a247-8963ec4ca7f3" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther_683aa9f2-8a66-4a56-af2d-09524e84cd7e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesLongTermDebt_6a1ea5c3-4bf1-42fe-99ff-d76d16600247" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesLongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract_afffe01a-cc8b-4611-a247-8963ec4ca7f3" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesLongTermDebt_6a1ea5c3-4bf1-42fe-99ff-d76d16600247" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherDeferredCreditsAndLiabilities_bc490262-9cdb-4dac-a78b-4ac24af1755e" xlink:href="oke-20231231.xsd#oke_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherDeferredCreditsAndLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract_afffe01a-cc8b-4611-a247-8963ec4ca7f3" xlink:to="loc_oke_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherDeferredCreditsAndLiabilities_bc490262-9cdb-4dac-a78b-4ac24af1755e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities_a3e62b59-32c7-4f39-87c4-f55021d2b465" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract_afffe01a-cc8b-4611-a247-8963ec4ca7f3" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities_a3e62b59-32c7-4f39-87c4-f55021d2b465" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_323fd4e0-1dd1-46ff-9177-32e320bbf9e9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsLineItems_ebad2571-0710-4aa6-acad-2e8b7e2da542" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_323fd4e0-1dd1-46ff-9177-32e320bbf9e9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_def4d2b6-9eff-4397-a25c-fc90516efb76" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Goodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsLineItems_ebad2571-0710-4aa6-acad-2e8b7e2da542" xlink:to="loc_us-gaap_Goodwill_def4d2b6-9eff-4397-a25c-fc90516efb76" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_12db1ca7-d0e2-4452-b932-1677a4afe15f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsLineItems_ebad2571-0710-4aa6-acad-2e8b7e2da542" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_12db1ca7-d0e2-4452-b932-1677a4afe15f" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.oneok.com/role/MAGELLANACQUISITIONAcquisitionRelatedTransactionCostsDetails" xlink:type="simple" xlink:href="oke-20231231.xsd#MAGELLANACQUISITIONAcquisitionRelatedTransactionCostsDetails"/>
  <link:definitionLink xlink:role="http://www.oneok.com/role/MAGELLANACQUISITIONAcquisitionRelatedTransactionCostsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsLineItems_52c28ca1-fd0d-4738-b954-4eae2efda0bd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsTable_2ce523bc-a32e-406e-a667-94ba78f12224" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsLineItems_52c28ca1-fd0d-4738-b954-4eae2efda0bd" xlink:to="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsTable_2ce523bc-a32e-406e-a667-94ba78f12224" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_946e9941-11fd-4bb7-a37d-d24f726303df" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsTable_2ce523bc-a32e-406e-a667-94ba78f12224" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_946e9941-11fd-4bb7-a37d-d24f726303df" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_946e9941-11fd-4bb7-a37d-d24f726303df_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_946e9941-11fd-4bb7-a37d-d24f726303df" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_946e9941-11fd-4bb7-a37d-d24f726303df_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_6a2e1283-1f8b-49c7-9c0d-e1248ac8f22f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_946e9941-11fd-4bb7-a37d-d24f726303df" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_6a2e1283-1f8b-49c7-9c0d-e1248ac8f22f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_MagellanAcquisitionMember_db72b053-e543-460a-a05e-bf57f103f381" xlink:href="oke-20231231.xsd#oke_MagellanAcquisitionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_6a2e1283-1f8b-49c7-9c0d-e1248ac8f22f" xlink:to="loc_oke_MagellanAcquisitionMember_db72b053-e543-460a-a05e-bf57f103f381" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_aa219326-0656-4614-920f-bbd72f72997c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationAcquisitionRelatedCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsLineItems_52c28ca1-fd0d-4738-b954-4eae2efda0bd" xlink:to="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_aa219326-0656-4614-920f-bbd72f72997c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_0e9257ce-a95a-46e1-aa79-03e98f66c5d9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsLineItems_52c28ca1-fd0d-4738-b954-4eae2efda0bd" xlink:to="loc_us-gaap_InterestExpense_0e9257ce-a95a-46e1-aa79-03e98f66c5d9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsAdditionalDisclosuresAcquisitionCostExpensed_0e1e22c8-06eb-450b-8a6c-4b74679e216d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsAdditionalDisclosuresAcquisitionCostExpensed"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsLineItems_52c28ca1-fd0d-4738-b954-4eae2efda0bd" xlink:to="loc_us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsAdditionalDisclosuresAcquisitionCostExpensed_0e1e22c8-06eb-450b-8a6c-4b74679e216d" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.oneok.com/role/MAGELLANACQUISITIONAcquisitionProFormaFinancialInformationDetails" xlink:type="simple" xlink:href="oke-20231231.xsd#MAGELLANACQUISITIONAcquisitionProFormaFinancialInformationDetails"/>
  <link:definitionLink xlink:role="http://www.oneok.com/role/MAGELLANACQUISITIONAcquisitionProFormaFinancialInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentLineItems_1ef45c38-5ac5-4180-a457-8b3de17cfafe" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentsTable_53a4c0f2-a772-4d05-bdeb-ea7792a6622c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentLineItems_1ef45c38-5ac5-4180-a457-8b3de17cfafe" xlink:to="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentsTable_53a4c0f2-a772-4d05-bdeb-ea7792a6622c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_7d0121ec-2d9a-4970-a479-c914ba8a1f79" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentsTable_53a4c0f2-a772-4d05-bdeb-ea7792a6622c" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_7d0121ec-2d9a-4970-a479-c914ba8a1f79" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_7d0121ec-2d9a-4970-a479-c914ba8a1f79_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_7d0121ec-2d9a-4970-a479-c914ba8a1f79" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_7d0121ec-2d9a-4970-a479-c914ba8a1f79_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_cdd6f366-416a-45e0-891d-b09d20c2f295" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_7d0121ec-2d9a-4970-a479-c914ba8a1f79" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_cdd6f366-416a-45e0-891d-b09d20c2f295" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_MagellanAcquisitionMember_70c5c3cf-82ad-46a1-a794-d0cbe1f87f6b" xlink:href="oke-20231231.xsd#oke_MagellanAcquisitionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_cdd6f366-416a-45e0-891d-b09d20c2f295" xlink:to="loc_oke_MagellanAcquisitionMember_70c5c3cf-82ad-46a1-a794-d0cbe1f87f6b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionsProFormaRevenue_5b9f3b7b-07ee-4925-914b-44a6bcda676d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionsProFormaRevenue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentLineItems_1ef45c38-5ac5-4180-a457-8b3de17cfafe" xlink:to="loc_us-gaap_BusinessAcquisitionsProFormaRevenue_5b9f3b7b-07ee-4925-914b-44a6bcda676d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss_e45965f4-2685-4a08-a836-dbe63c69638b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentLineItems_1ef45c38-5ac5-4180-a457-8b3de17cfafe" xlink:to="loc_us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss_e45965f4-2685-4a08-a836-dbe63c69638b" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.oneok.com/role/MEDFORDINCIDENTDetails" xlink:type="simple" xlink:href="oke-20231231.xsd#MEDFORDINCIDENTDetails"/>
  <link:definitionLink xlink:role="http://www.oneok.com/role/MEDFORDINCIDENTDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessInterruptionLossLineItems_92ffff61-27c1-4fda-9ce7-002645298494" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessInterruptionLossLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfBusinessInsuranceRecoveriesTable_a595a67a-8801-42cd-b23b-4eacd4a028f3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfBusinessInsuranceRecoveriesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessInterruptionLossLineItems_92ffff61-27c1-4fda-9ce7-002645298494" xlink:to="loc_us-gaap_ScheduleOfBusinessInsuranceRecoveriesTable_a595a67a-8801-42cd-b23b-4eacd4a028f3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_NaturalGasLiquidsAxis_19eff69b-7b97-48b4-83af-a96ca2b152a7" xlink:href="oke-20231231.xsd#oke_NaturalGasLiquidsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessInsuranceRecoveriesTable_a595a67a-8801-42cd-b23b-4eacd4a028f3" xlink:to="loc_oke_NaturalGasLiquidsAxis_19eff69b-7b97-48b4-83af-a96ca2b152a7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_NaturalGasLiquidsDomain_19eff69b-7b97-48b4-83af-a96ca2b152a7_default" xlink:href="oke-20231231.xsd#oke_NaturalGasLiquidsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_oke_NaturalGasLiquidsAxis_19eff69b-7b97-48b4-83af-a96ca2b152a7" xlink:to="loc_oke_NaturalGasLiquidsDomain_19eff69b-7b97-48b4-83af-a96ca2b152a7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_NaturalGasLiquidsDomain_966b92af-ffae-4803-8f85-072fbf83fc06" xlink:href="oke-20231231.xsd#oke_NaturalGasLiquidsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_oke_NaturalGasLiquidsAxis_19eff69b-7b97-48b4-83af-a96ca2b152a7" xlink:to="loc_oke_NaturalGasLiquidsDomain_966b92af-ffae-4803-8f85-072fbf83fc06" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_MedfordIncidentMember_ee428bbc-4a63-4f89-9121-5eaca4f0d9b4" xlink:href="oke-20231231.xsd#oke_MedfordIncidentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oke_NaturalGasLiquidsDomain_966b92af-ffae-4803-8f85-072fbf83fc06" xlink:to="loc_oke_MedfordIncidentMember_ee428bbc-4a63-4f89-9121-5eaca4f0d9b4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_MedfordIncidentAxis_eb878d8f-3517-4d70-b47f-6cefb8d70ebd" xlink:href="oke-20231231.xsd#oke_MedfordIncidentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessInsuranceRecoveriesTable_a595a67a-8801-42cd-b23b-4eacd4a028f3" xlink:to="loc_oke_MedfordIncidentAxis_eb878d8f-3517-4d70-b47f-6cefb8d70ebd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_MedfordIncidentDomain_eb878d8f-3517-4d70-b47f-6cefb8d70ebd_default" xlink:href="oke-20231231.xsd#oke_MedfordIncidentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_oke_MedfordIncidentAxis_eb878d8f-3517-4d70-b47f-6cefb8d70ebd" xlink:to="loc_oke_MedfordIncidentDomain_eb878d8f-3517-4d70-b47f-6cefb8d70ebd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_MedfordIncidentDomain_f427c0a1-33cd-4583-8dfc-8aae42422022" xlink:href="oke-20231231.xsd#oke_MedfordIncidentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_oke_MedfordIncidentAxis_eb878d8f-3517-4d70-b47f-6cefb8d70ebd" xlink:to="loc_oke_MedfordIncidentDomain_f427c0a1-33cd-4583-8dfc-8aae42422022" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_TotalReceivables2022Member_d269b171-2638-48e6-9e79-79afd90f437a" xlink:href="oke-20231231.xsd#oke_TotalReceivables2022Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oke_MedfordIncidentDomain_f427c0a1-33cd-4583-8dfc-8aae42422022" xlink:to="loc_oke_TotalReceivables2022Member_d269b171-2638-48e6-9e79-79afd90f437a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_InsuranceRecoveriesMember_d4b60e75-8aca-4737-9fe9-f6f0b536febe" xlink:href="oke-20231231.xsd#oke_InsuranceRecoveriesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oke_MedfordIncidentDomain_f427c0a1-33cd-4583-8dfc-8aae42422022" xlink:to="loc_oke_InsuranceRecoveriesMember_d4b60e75-8aca-4737-9fe9-f6f0b536febe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_InsuranceRecoveriesIn2022Member_d6e99d5d-a9ce-45bd-b0b2-172636a154d0" xlink:href="oke-20231231.xsd#oke_InsuranceRecoveriesIn2022Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oke_MedfordIncidentDomain_f427c0a1-33cd-4583-8dfc-8aae42422022" xlink:to="loc_oke_InsuranceRecoveriesIn2022Member_d6e99d5d-a9ce-45bd-b0b2-172636a154d0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_BusinessInterruptionSettlementProceedsReceivedIn2023Member_27247b0f-10ee-4824-9dd3-b606ea1ac1f0" xlink:href="oke-20231231.xsd#oke_BusinessInterruptionSettlementProceedsReceivedIn2023Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oke_MedfordIncidentDomain_f427c0a1-33cd-4583-8dfc-8aae42422022" xlink:to="loc_oke_BusinessInterruptionSettlementProceedsReceivedIn2023Member_27247b0f-10ee-4824-9dd3-b606ea1ac1f0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_BusinessInterruptionSettlementProceedsMember_095fdd4a-828d-488c-8c69-91b39733b7e7" xlink:href="oke-20231231.xsd#oke_BusinessInterruptionSettlementProceedsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oke_MedfordIncidentDomain_f427c0a1-33cd-4583-8dfc-8aae42422022" xlink:to="loc_oke_BusinessInterruptionSettlementProceedsMember_095fdd4a-828d-488c-8c69-91b39733b7e7" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_PropertyDamageAndBusinessInterruptionTotalReceivableMember_bd8c10ba-5f6f-487e-80ce-401a2cbb032c" xlink:href="oke-20231231.xsd#oke_PropertyDamageAndBusinessInterruptionTotalReceivableMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oke_MedfordIncidentDomain_f427c0a1-33cd-4583-8dfc-8aae42422022" xlink:to="loc_oke_PropertyDamageAndBusinessInterruptionTotalReceivableMember_bd8c10ba-5f6f-487e-80ce-401a2cbb032c" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingencyReceivable_e58e9a5e-4863-430c-b27d-a37f6be1b301" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LossContingencyReceivable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessInterruptionLossLineItems_92ffff61-27c1-4fda-9ce7-002645298494" xlink:to="loc_us-gaap_LossContingencyReceivable_e58e9a5e-4863-430c-b27d-a37f6be1b301" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsDisposedOfByMethodOtherThanSaleInPeriodOfDispositionGainLossOnDisposition1_ef3f5ddc-4c42-43f8-b5c8-120c3dbf968a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AssetsDisposedOfByMethodOtherThanSaleInPeriodOfDispositionGainLossOnDisposition1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessInterruptionLossLineItems_92ffff61-27c1-4fda-9ce7-002645298494" xlink:to="loc_us-gaap_AssetsDisposedOfByMethodOtherThanSaleInPeriodOfDispositionGainLossOnDisposition1_ef3f5ddc-4c42-43f8-b5c8-120c3dbf968a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnusualOrInfrequentItemInsuranceProceeds_56b13c4a-0efa-46c9-940e-e26b5767344a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_UnusualOrInfrequentItemInsuranceProceeds"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessInterruptionLossLineItems_92ffff61-27c1-4fda-9ce7-002645298494" xlink:to="loc_us-gaap_UnusualOrInfrequentItemInsuranceProceeds_56b13c4a-0efa-46c9-940e-e26b5767344a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_OutstandingInsuranceReceivable_29ebfca9-0f4c-445f-a341-526cbb98663f" xlink:href="oke-20231231.xsd#oke_OutstandingInsuranceReceivable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessInterruptionLossLineItems_92ffff61-27c1-4fda-9ce7-002645298494" xlink:to="loc_oke_OutstandingInsuranceReceivable_29ebfca9-0f4c-445f-a341-526cbb98663f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainOnBusinessInterruptionInsuranceRecovery_81d8909f-9cd0-4e9f-8462-2ca47eedd71d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GainOnBusinessInterruptionInsuranceRecovery"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessInterruptionLossLineItems_92ffff61-27c1-4fda-9ce7-002645298494" xlink:to="loc_us-gaap_GainOnBusinessInterruptionInsuranceRecovery_81d8909f-9cd0-4e9f-8462-2ca47eedd71d" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.oneok.com/role/FAIRVALUEMEASUREMENTSRecurringFairValueMeasurementsDetails" xlink:type="simple" xlink:href="oke-20231231.xsd#FAIRVALUEMEASUREMENTSRecurringFairValueMeasurementsDetails"/>
  <link:definitionLink xlink:role="http://www.oneok.com/role/FAIRVALUEMEASUREMENTSRecurringFairValueMeasurementsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_f9aa9130-f1c9-47da-b643-86df7a0d818b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_90e51a54-9e5b-49ac-8273-0581a98769a4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_f9aa9130-f1c9-47da-b643-86df7a0d818b" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_90e51a54-9e5b-49ac-8273-0581a98769a4" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_2a6590d8-be7f-44c3-9366-5c84f34b5c99" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueByMeasurementFrequencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_90e51a54-9e5b-49ac-8273-0581a98769a4" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_2a6590d8-be7f-44c3-9366-5c84f34b5c99" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_2a6590d8-be7f-44c3-9366-5c84f34b5c99_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_2a6590d8-be7f-44c3-9366-5c84f34b5c99" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_2a6590d8-be7f-44c3-9366-5c84f34b5c99_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_fff860c9-f6b7-4f08-bde7-7e1745302917" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_2a6590d8-be7f-44c3-9366-5c84f34b5c99" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_fff860c9-f6b7-4f08-bde7-7e1745302917" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_09d780c1-57cb-4ba8-8cd7-34900d7b968d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementsRecurringMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_fff860c9-f6b7-4f08-bde7-7e1745302917" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_09d780c1-57cb-4ba8-8cd7-34900d7b968d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementBasisAxis_96aa4f3b-3078-4e2b-a64d-145993a3aa29" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueByMeasurementBasisAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_90e51a54-9e5b-49ac-8273-0581a98769a4" xlink:to="loc_us-gaap_FairValueByMeasurementBasisAxis_96aa4f3b-3078-4e2b-a64d-145993a3aa29" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_96aa4f3b-3078-4e2b-a64d-145993a3aa29_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_96aa4f3b-3078-4e2b-a64d-145993a3aa29" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_96aa4f3b-3078-4e2b-a64d-145993a3aa29_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueDisclosureItemAmountsDomain_f37a3b76-bc2d-459a-ac2e-44ca9b43b5a5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueDisclosureItemAmountsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_96aa4f3b-3078-4e2b-a64d-145993a3aa29" xlink:to="loc_us-gaap_FairValueDisclosureItemAmountsDomain_f37a3b76-bc2d-459a-ac2e-44ca9b43b5a5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_3671a551-f755-4cf4-9cc2-3e8b8ca4f0f3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_f37a3b76-bc2d-459a-ac2e-44ca9b43b5a5" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_3671a551-f755-4cf4-9cc2-3e8b8ca4f0f3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_4fe33f33-0321-436d-964a-6a3f52852e7c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EstimateOfFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_3671a551-f755-4cf4-9cc2-3e8b8ca4f0f3" xlink:to="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_4fe33f33-0321-436d-964a-6a3f52852e7c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_f2c2d325-48a2-469d-9443-0edfc39f86bc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_90e51a54-9e5b-49ac-8273-0581a98769a4" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_f2c2d325-48a2-469d-9443-0edfc39f86bc" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_f2c2d325-48a2-469d-9443-0edfc39f86bc_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_f2c2d325-48a2-469d-9443-0edfc39f86bc" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_f2c2d325-48a2-469d-9443-0edfc39f86bc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_1069e0fc-1224-426c-ac85-a664d416fd8f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_f2c2d325-48a2-469d-9443-0edfc39f86bc" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_1069e0fc-1224-426c-ac85-a664d416fd8f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_32d54344-4947-49a4-ba5f-4cfc2fb38638" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_1069e0fc-1224-426c-ac85-a664d416fd8f" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_32d54344-4947-49a4-ba5f-4cfc2fb38638" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_8f80ed7c-9b3a-48b9-a6ec-69e92f392c56" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_1069e0fc-1224-426c-ac85-a664d416fd8f" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_8f80ed7c-9b3a-48b9-a6ec-69e92f392c56" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_4d5cef8f-e04b-44a4-94ab-f4fb1425e1aa" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_1069e0fc-1224-426c-ac85-a664d416fd8f" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_4d5cef8f-e04b-44a4-94ab-f4fb1425e1aa" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_694e0381-4cb2-4e80-8e88-ddc5817b7e18" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_90e51a54-9e5b-49ac-8273-0581a98769a4" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_694e0381-4cb2-4e80-8e88-ddc5817b7e18" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_694e0381-4cb2-4e80-8e88-ddc5817b7e18_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_694e0381-4cb2-4e80-8e88-ddc5817b7e18" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_694e0381-4cb2-4e80-8e88-ddc5817b7e18_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_274f9dee-6669-4508-877d-5af27df10265" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_694e0381-4cb2-4e80-8e88-ddc5817b7e18" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_274f9dee-6669-4508-877d-5af27df10265" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_FinancialContractsMember_1708fb83-9db3-4b0d-8fac-08fdb7bb63cc" xlink:href="oke-20231231.xsd#oke_FinancialContractsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_274f9dee-6669-4508-877d-5af27df10265" xlink:to="loc_oke_FinancialContractsMember_1708fb83-9db3-4b0d-8fac-08fdb7bb63cc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateContractMember_cd2d4471-fa5f-4c29-a192-8f0663343534" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestRateContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_274f9dee-6669-4508-877d-5af27df10265" xlink:to="loc_us-gaap_InterestRateContractMember_cd2d4471-fa5f-4c29-a192-8f0663343534" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetsAbstract_d437f094-7b93-4992-a5b6-4a0297e89f9b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeAssetsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_f9aa9130-f1c9-47da-b643-86df7a0d818b" xlink:to="loc_us-gaap_DerivativeAssetsAbstract_d437f094-7b93-4992-a5b6-4a0297e89f9b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossAssetIncludingNotSubjectToMasterNettingArrangement_c866f368-c547-423e-b3ff-5603a6d88237" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeAssetFairValueGrossAssetIncludingNotSubjectToMasterNettingArrangement"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeAssetsAbstract_d437f094-7b93-4992-a5b6-4a0297e89f9b" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossAssetIncludingNotSubjectToMasterNettingArrangement_c866f368-c547-423e-b3ff-5603a6d88237" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossLiabilityAndObligationToReturnCashOffset_113e23b3-dab9-4655-8742-6bcf56ead5a9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeAssetFairValueGrossLiabilityAndObligationToReturnCashOffset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeAssetsAbstract_d437f094-7b93-4992-a5b6-4a0297e89f9b" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossLiabilityAndObligationToReturnCashOffset_113e23b3-dab9-4655-8742-6bcf56ead5a9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateDerivativeAssetsAtFairValue_0cfbda94-751b-4238-aef3-6945b5cd374a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestRateDerivativeAssetsAtFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeAssetsAbstract_d437f094-7b93-4992-a5b6-4a0297e89f9b" xlink:to="loc_us-gaap_InterestRateDerivativeAssetsAtFairValue_0cfbda94-751b-4238-aef3-6945b5cd374a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_38024279-8bbb-4cbc-ad03-3c7eb3f77a52" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeAssetsAbstract_d437f094-7b93-4992-a5b6-4a0297e89f9b" xlink:to="loc_us-gaap_DerivativeAssets_38024279-8bbb-4cbc-ad03-3c7eb3f77a52" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilitiesAbstract_a95a5f45-0bf3-44db-907b-5363e805d421" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeLiabilitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_f9aa9130-f1c9-47da-b643-86df7a0d818b" xlink:to="loc_us-gaap_DerivativeLiabilitiesAbstract_a95a5f45-0bf3-44db-907b-5363e805d421" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossLiabilityIncludingNotSubjectToMasterNettingArrangement_584da761-f9a7-4577-8699-6b62bce66f97" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeLiabilityFairValueGrossLiabilityIncludingNotSubjectToMasterNettingArrangement"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLiabilitiesAbstract_a95a5f45-0bf3-44db-907b-5363e805d421" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossLiabilityIncludingNotSubjectToMasterNettingArrangement_584da761-f9a7-4577-8699-6b62bce66f97" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossAssetAndRightToReclaimCashOffset_6347428b-ff2f-4fef-b8cd-fed1f2233629" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeLiabilityFairValueGrossAssetAndRightToReclaimCashOffset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLiabilitiesAbstract_a95a5f45-0bf3-44db-907b-5363e805d421" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAssetAndRightToReclaimCashOffset_6347428b-ff2f-4fef-b8cd-fed1f2233629" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_35942b88-6667-4153-84f4-66b543e08a71" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLiabilitiesAbstract_a95a5f45-0bf3-44db-907b-5363e805d421" xlink:to="loc_us-gaap_DerivativeLiabilities_35942b88-6667-4153-84f4-66b543e08a71" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetCollateralObligationToReturnCashOffset_5d785e62-dc88-4f27-a706-f23f91c686ac" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeAssetCollateralObligationToReturnCashOffset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_f9aa9130-f1c9-47da-b643-86df7a0d818b" xlink:to="loc_us-gaap_DerivativeAssetCollateralObligationToReturnCashOffset_5d785e62-dc88-4f27-a706-f23f91c686ac" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_DerivativeCollateralRighttoReclaimCashTotal_7b697e91-11a0-43cf-a247-130abc8cbcb8" xlink:href="oke-20231231.xsd#oke_DerivativeCollateralRighttoReclaimCashTotal"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_f9aa9130-f1c9-47da-b643-86df7a0d818b" xlink:to="loc_oke_DerivativeCollateralRighttoReclaimCashTotal_7b697e91-11a0-43cf-a247-130abc8cbcb8" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetStatementOfFinancialPositionExtensibleEnumeration_427f2952-4cd2-4261-b0d5-c36d17918c9a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeAssetStatementOfFinancialPositionExtensibleEnumeration"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_f9aa9130-f1c9-47da-b643-86df7a0d818b" xlink:to="loc_us-gaap_DerivativeAssetStatementOfFinancialPositionExtensibleEnumeration_427f2952-4cd2-4261-b0d5-c36d17918c9a" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.oneok.com/role/RISKMANAGEMENTANDHEDGINGACTIVITIESUSINGDERIVATIVESNarrativeDetails" xlink:type="simple" xlink:href="oke-20231231.xsd#RISKMANAGEMENTANDHEDGINGACTIVITIESUSINGDERIVATIVESNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.oneok.com/role/RISKMANAGEMENTANDHEDGINGACTIVITIESUSINGDERIVATIVESNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems_b09c754d-460f-4510-a783-fc977bc0fe0b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable_3a1057f8-3f24-418c-b770-c5d6aa590ab7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems_b09c754d-460f-4510-a783-fc977bc0fe0b" xlink:to="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable_3a1057f8-3f24-418c-b770-c5d6aa590ab7" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_61b507e6-6f5f-4472-b618-95b1fd0b12d6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable_3a1057f8-3f24-418c-b770-c5d6aa590ab7" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_61b507e6-6f5f-4472-b618-95b1fd0b12d6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_61b507e6-6f5f-4472-b618-95b1fd0b12d6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_61b507e6-6f5f-4472-b618-95b1fd0b12d6" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_61b507e6-6f5f-4472-b618-95b1fd0b12d6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_654da66a-f7ce-49d3-8e3a-3f298dd1b08e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_61b507e6-6f5f-4472-b618-95b1fd0b12d6" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_654da66a-f7ce-49d3-8e3a-3f298dd1b08e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommodityContractMember_cce28fd4-d64b-4779-b88d-e0f25c11ced3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommodityContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_654da66a-f7ce-49d3-8e3a-3f298dd1b08e" xlink:to="loc_us-gaap_CommodityContractMember_cce28fd4-d64b-4779-b88d-e0f25c11ced3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryLockMember_b8fbd540-a0eb-4ff5-a388-cb6e9a6f7be3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TreasuryLockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_654da66a-f7ce-49d3-8e3a-3f298dd1b08e" xlink:to="loc_us-gaap_TreasuryLockMember_b8fbd540-a0eb-4ff5-a388-cb6e9a6f7be3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateContractMember_7b041db2-8827-417d-87ac-c9f585715d63" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestRateContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_654da66a-f7ce-49d3-8e3a-3f298dd1b08e" xlink:to="loc_us-gaap_InterestRateContractMember_7b041db2-8827-417d-87ac-c9f585715d63" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForwardContractsMember_c10029ef-5ebe-45cb-bd32-436a5bd50f5a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ForwardContractsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_654da66a-f7ce-49d3-8e3a-3f298dd1b08e" xlink:to="loc_us-gaap_ForwardContractsMember_c10029ef-5ebe-45cb-bd32-436a5bd50f5a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_DerivativeInstrumentByMethodForSettingNotionalAmountAxis_80df2501-7807-4b2b-a72f-b5130416365b" xlink:href="oke-20231231.xsd#oke_DerivativeInstrumentByMethodForSettingNotionalAmountAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable_3a1057f8-3f24-418c-b770-c5d6aa590ab7" xlink:to="loc_oke_DerivativeInstrumentByMethodForSettingNotionalAmountAxis_80df2501-7807-4b2b-a72f-b5130416365b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_DerivativeInstrumentByMethodForSettingNotionalAmountDomain_80df2501-7807-4b2b-a72f-b5130416365b_default" xlink:href="oke-20231231.xsd#oke_DerivativeInstrumentByMethodForSettingNotionalAmountDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_oke_DerivativeInstrumentByMethodForSettingNotionalAmountAxis_80df2501-7807-4b2b-a72f-b5130416365b" xlink:to="loc_oke_DerivativeInstrumentByMethodForSettingNotionalAmountDomain_80df2501-7807-4b2b-a72f-b5130416365b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_DerivativeInstrumentByMethodForSettingNotionalAmountDomain_55ab974a-5a83-42ba-9b28-f9395aea9b79" xlink:href="oke-20231231.xsd#oke_DerivativeInstrumentByMethodForSettingNotionalAmountDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_oke_DerivativeInstrumentByMethodForSettingNotionalAmountAxis_80df2501-7807-4b2b-a72f-b5130416365b" xlink:to="loc_oke_DerivativeInstrumentByMethodForSettingNotionalAmountDomain_55ab974a-5a83-42ba-9b28-f9395aea9b79" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateContractMember_ea686828-176a-477f-a4ea-0e9b0204b2fa" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestRateContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oke_DerivativeInstrumentByMethodForSettingNotionalAmountDomain_55ab974a-5a83-42ba-9b28-f9395aea9b79" xlink:to="loc_us-gaap_InterestRateContractMember_ea686828-176a-477f-a4ea-0e9b0204b2fa" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryLockMember_da1c7768-46ec-4768-9e1a-df388d365bf0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TreasuryLockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oke_DerivativeInstrumentByMethodForSettingNotionalAmountDomain_55ab974a-5a83-42ba-9b28-f9395aea9b79" xlink:to="loc_us-gaap_TreasuryLockMember_da1c7768-46ec-4768-9e1a-df388d365bf0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_95a8a14b-e7dc-40df-8ef4-cdaf3230d707" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable_3a1057f8-3f24-418c-b770-c5d6aa590ab7" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_95a8a14b-e7dc-40df-8ef4-cdaf3230d707" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_95a8a14b-e7dc-40df-8ef4-cdaf3230d707_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_95a8a14b-e7dc-40df-8ef4-cdaf3230d707" xlink:to="loc_us-gaap_HedgingRelationshipDomain_95a8a14b-e7dc-40df-8ef4-cdaf3230d707_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_a37938ff-ddcc-40f3-ac4e-b70f2a4e9110" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_95a8a14b-e7dc-40df-8ef4-cdaf3230d707" xlink:to="loc_us-gaap_HedgingRelationshipDomain_a37938ff-ddcc-40f3-ac4e-b70f2a4e9110" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashFlowHedgingMember_f09b0057-4dc3-4733-be00-98d4662ab5ba" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashFlowHedgingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_a37938ff-ddcc-40f3-ac4e-b70f2a4e9110" xlink:to="loc_us-gaap_CashFlowHedgingMember_f09b0057-4dc3-4733-be00-98d4662ab5ba" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_5cf772cd-830a-4245-a640-9d10e099e3d7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable_3a1057f8-3f24-418c-b770-c5d6aa590ab7" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_5cf772cd-830a-4245-a640-9d10e099e3d7" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_5cf772cd-830a-4245-a640-9d10e099e3d7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_5cf772cd-830a-4245-a640-9d10e099e3d7" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_5cf772cd-830a-4245-a640-9d10e099e3d7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_0fe2b985-e606-4941-a3dc-a80c6a98a7f5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_5cf772cd-830a-4245-a640-9d10e099e3d7" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_0fe2b985-e606-4941-a3dc-a80c6a98a7f5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotesMember_9e98a38a-66c3-4821-ba63-18827fe2de07" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_0fe2b985-e606-4941-a3dc-a80c6a98a7f5" xlink:to="loc_us-gaap_SeniorNotesMember_9e98a38a-66c3-4821-ba63-18827fe2de07" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_ForecastedDebtIssuancesMember_8d6a5677-37fa-4c3b-b072-6ee081af2365" xlink:href="oke-20231231.xsd#oke_ForecastedDebtIssuancesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_0fe2b985-e606-4941-a3dc-a80c6a98a7f5" xlink:to="loc_oke_ForecastedDebtIssuancesMember_8d6a5677-37fa-4c3b-b072-6ee081af2365" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_9569b0ef-3c7b-4987-acaa-f19826db5faa" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable_3a1057f8-3f24-418c-b770-c5d6aa590ab7" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_9569b0ef-3c7b-4987-acaa-f19826db5faa" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_9569b0ef-3c7b-4987-acaa-f19826db5faa_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_9569b0ef-3c7b-4987-acaa-f19826db5faa" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_9569b0ef-3c7b-4987-acaa-f19826db5faa_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_a35e79b8-6f8e-4725-a71d-cb83eefda1b7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_9569b0ef-3c7b-4987-acaa-f19826db5faa" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_a35e79b8-6f8e-4725-a71d-cb83eefda1b7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_MagellanAcquisitionMember_39d73f10-fb2c-46cb-b644-8004ec23bcdb" xlink:href="oke-20231231.xsd#oke_MagellanAcquisitionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_a35e79b8-6f8e-4725-a71d-cb83eefda1b7" xlink:to="loc_oke_MagellanAcquisitionMember_39d73f10-fb2c-46cb-b644-8004ec23bcdb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_DerivativeNotionalAmountNewContracts_1a6f1b9d-8766-440d-ba34-ca0d815fd399" xlink:href="oke-20231231.xsd#oke_DerivativeNotionalAmountNewContracts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems_b09c754d-460f-4510-a783-fc977bc0fe0b" xlink:to="loc_oke_DerivativeNotionalAmountNewContracts_1a6f1b9d-8766-440d-ba34-ca0d815fd399" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_DerivativeNotionalAmountSettled_cce57cd2-8127-46a7-b3ea-d069566a6627" xlink:href="oke-20231231.xsd#oke_DerivativeNotionalAmountSettled"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems_b09c754d-460f-4510-a783-fc977bc0fe0b" xlink:to="loc_oke_DerivativeNotionalAmountSettled_cce57cd2-8127-46a7-b3ea-d069566a6627" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_1871b03b-01a2-4d02-a6c3-1e6b818aef79" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems_b09c754d-460f-4510-a783-fc977bc0fe0b" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_1871b03b-01a2-4d02-a6c3-1e6b818aef79" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AociLossCashFlowHedgeCumulativeGainLossAfterTax_3f899f81-13ed-4d5b-96df-468548ea97c1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AociLossCashFlowHedgeCumulativeGainLossAfterTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems_b09c754d-460f-4510-a783-fc977bc0fe0b" xlink:to="loc_us-gaap_AociLossCashFlowHedgeCumulativeGainLossAfterTax_3f899f81-13ed-4d5b-96df-468548ea97c1" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_014e6df2-cfa3-4753-8882-0cb2d22086b0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems_b09c754d-460f-4510-a783-fc977bc0fe0b" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_014e6df2-cfa3-4753-8882-0cb2d22086b0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax_9a609f66-f1b0-46ab-894c-316822d4b83a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems_b09c754d-460f-4510-a783-fc977bc0fe0b" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax_9a609f66-f1b0-46ab-894c-316822d4b83a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeNetLiabilityPositionAggregateFairValue_2741f7a3-9fa2-4ec3-af29-9f4afc43b7d0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeNetLiabilityPositionAggregateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems_b09c754d-460f-4510-a783-fc977bc0fe0b" xlink:to="loc_us-gaap_DerivativeNetLiabilityPositionAggregateFairValue_2741f7a3-9fa2-4ec3-af29-9f4afc43b7d0" xlink:type="arc" order="6"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.oneok.com/role/RISKMANAGEMENTANDHEDGINGACTIVITIESUSINGDERIVATIVESFairValueofDerivativeInstrumentsDetails" xlink:type="simple" xlink:href="oke-20231231.xsd#RISKMANAGEMENTANDHEDGINGACTIVITIESUSINGDERIVATIVESFairValueofDerivativeInstrumentsDetails"/>
  <link:definitionLink xlink:role="http://www.oneok.com/role/RISKMANAGEMENTANDHEDGINGACTIVITIESUSINGDERIVATIVESFairValueofDerivativeInstrumentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativesFairValueLineItems_c6ff6b8d-f4a7-48f7-bab5-3e105576a054" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativesFairValueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_ca21bc5d-4f33-4b61-b2b7-64c4eb3e90ee" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_c6ff6b8d-f4a7-48f7-bab5-3e105576a054" xlink:to="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_ca21bc5d-4f33-4b61-b2b7-64c4eb3e90ee" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_3ad9e176-48fb-45f5-ad98-3ee88673030b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BalanceSheetLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_ca21bc5d-4f33-4b61-b2b7-64c4eb3e90ee" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_3ad9e176-48fb-45f5-ad98-3ee88673030b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_3ad9e176-48fb-45f5-ad98-3ee88673030b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_3ad9e176-48fb-45f5-ad98-3ee88673030b" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_3ad9e176-48fb-45f5-ad98-3ee88673030b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_0f77c0dd-140b-4184-a184-85a8f1c91cfe" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_3ad9e176-48fb-45f5-ad98-3ee88673030b" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_0f77c0dd-140b-4184-a184-85a8f1c91cfe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCurrentAssetsMember_22c45c60-e6a3-47d8-910d-b2d1d00d406a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherCurrentAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_0f77c0dd-140b-4184-a184-85a8f1c91cfe" xlink:to="loc_us-gaap_OtherCurrentAssetsMember_22c45c60-e6a3-47d8-910d-b2d1d00d406a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsMember_32962369-3c24-4c00-a422-5818392cdf1f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_0f77c0dd-140b-4184-a184-85a8f1c91cfe" xlink:to="loc_us-gaap_OtherAssetsMember_32962369-3c24-4c00-a422-5818392cdf1f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_d7df3e4b-719d-48f5-835e-64bbf652332a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_ca21bc5d-4f33-4b61-b2b7-64c4eb3e90ee" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_d7df3e4b-719d-48f5-835e-64bbf652332a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_d7df3e4b-719d-48f5-835e-64bbf652332a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_d7df3e4b-719d-48f5-835e-64bbf652332a" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_d7df3e4b-719d-48f5-835e-64bbf652332a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_b86a6c1a-4d45-435d-a05b-ff70160afe26" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_d7df3e4b-719d-48f5-835e-64bbf652332a" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_b86a6c1a-4d45-435d-a05b-ff70160afe26" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommodityContractMember_cb749735-ed7f-467d-b5eb-042dba9e0260" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommodityContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_b86a6c1a-4d45-435d-a05b-ff70160afe26" xlink:to="loc_us-gaap_CommodityContractMember_cb749735-ed7f-467d-b5eb-042dba9e0260" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateContractMember_e13098e4-ebbe-4ad9-91aa-ab0135398534" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestRateContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_b86a6c1a-4d45-435d-a05b-ff70160afe26" xlink:to="loc_us-gaap_InterestRateContractMember_e13098e4-ebbe-4ad9-91aa-ab0135398534" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationAxis_547a01f6-ab52-4ef7-82d4-90b375b2d7f7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HedgingDesignationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_ca21bc5d-4f33-4b61-b2b7-64c4eb3e90ee" xlink:to="loc_us-gaap_HedgingDesignationAxis_547a01f6-ab52-4ef7-82d4-90b375b2d7f7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_547a01f6-ab52-4ef7-82d4-90b375b2d7f7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_547a01f6-ab52-4ef7-82d4-90b375b2d7f7" xlink:to="loc_us-gaap_HedgingDesignationDomain_547a01f6-ab52-4ef7-82d4-90b375b2d7f7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_ed353977-fb27-41b4-9397-2bbd4c09f261" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_547a01f6-ab52-4ef7-82d4-90b375b2d7f7" xlink:to="loc_us-gaap_HedgingDesignationDomain_ed353977-fb27-41b4-9397-2bbd4c09f261" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_279528b0-c6f5-4f68-92d4-0c7ff9edf09d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DesignatedAsHedgingInstrumentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_ed353977-fb27-41b4-9397-2bbd4c09f261" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_279528b0-c6f5-4f68-92d4-0c7ff9edf09d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NondesignatedMember_37f6928e-18b8-4a52-be29-bf0b52887ad6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NondesignatedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_ed353977-fb27-41b4-9397-2bbd4c09f261" xlink:to="loc_us-gaap_NondesignatedMember_37f6928e-18b8-4a52-be29-bf0b52887ad6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_DerivativeInstrumentContractTypeBySubtypeAxis_02378ca8-14b5-4a78-809e-7ad18e5e1418" xlink:href="oke-20231231.xsd#oke_DerivativeInstrumentContractTypeBySubtypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_ca21bc5d-4f33-4b61-b2b7-64c4eb3e90ee" xlink:to="loc_oke_DerivativeInstrumentContractTypeBySubtypeAxis_02378ca8-14b5-4a78-809e-7ad18e5e1418" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_DerivativeInstrumentContractTypeBySubtypeDomain_02378ca8-14b5-4a78-809e-7ad18e5e1418_default" xlink:href="oke-20231231.xsd#oke_DerivativeInstrumentContractTypeBySubtypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_oke_DerivativeInstrumentContractTypeBySubtypeAxis_02378ca8-14b5-4a78-809e-7ad18e5e1418" xlink:to="loc_oke_DerivativeInstrumentContractTypeBySubtypeDomain_02378ca8-14b5-4a78-809e-7ad18e5e1418_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_DerivativeInstrumentContractTypeBySubtypeDomain_a501d978-bed1-4f9b-a576-05d8fb11f7ca" xlink:href="oke-20231231.xsd#oke_DerivativeInstrumentContractTypeBySubtypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_oke_DerivativeInstrumentContractTypeBySubtypeAxis_02378ca8-14b5-4a78-809e-7ad18e5e1418" xlink:to="loc_oke_DerivativeInstrumentContractTypeBySubtypeDomain_a501d978-bed1-4f9b-a576-05d8fb11f7ca" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_FinancialDerivativeInstrumentMember_cf3ad4a6-d1fb-4f71-9f39-7e66db92dc95" xlink:href="oke-20231231.xsd#oke_FinancialDerivativeInstrumentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oke_DerivativeInstrumentContractTypeBySubtypeDomain_a501d978-bed1-4f9b-a576-05d8fb11f7ca" xlink:to="loc_oke_FinancialDerivativeInstrumentMember_cf3ad4a6-d1fb-4f71-9f39-7e66db92dc95" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_8b698a14-8c6d-4fed-9ad8-01eb0cd7898a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_c6ff6b8d-f4a7-48f7-bab5-3e105576a054" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_8b698a14-8c6d-4fed-9ad8-01eb0cd7898a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_cbbd1462-06e8-4f97-9f9d-1210af5526b3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_c6ff6b8d-f4a7-48f7-bab5-3e105576a054" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_cbbd1462-06e8-4f97-9f9d-1210af5526b3" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.oneok.com/role/RISKMANAGEMENTANDHEDGINGACTIVITIESUSINGDERIVATIVESNotionalQuantitiesForDerivativeInstrumentsDetails" xlink:type="simple" xlink:href="oke-20231231.xsd#RISKMANAGEMENTANDHEDGINGACTIVITIESUSINGDERIVATIVESNotionalQuantitiesForDerivativeInstrumentsDetails"/>
  <link:definitionLink xlink:role="http://www.oneok.com/role/RISKMANAGEMENTANDHEDGINGACTIVITIESUSINGDERIVATIVESNotionalQuantitiesForDerivativeInstrumentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLineItems_b1c4452d-f5d0-4a18-9351-1cd9c96b85bb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable_9a9f89b3-5f45-4e41-82f7-e723f154a249" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_b1c4452d-f5d0-4a18-9351-1cd9c96b85bb" xlink:to="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable_9a9f89b3-5f45-4e41-82f7-e723f154a249" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationAxis_52b9cc03-af9f-42d1-874b-ce686afa50c5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HedgingDesignationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable_9a9f89b3-5f45-4e41-82f7-e723f154a249" xlink:to="loc_us-gaap_HedgingDesignationAxis_52b9cc03-af9f-42d1-874b-ce686afa50c5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_52b9cc03-af9f-42d1-874b-ce686afa50c5_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_52b9cc03-af9f-42d1-874b-ce686afa50c5" xlink:to="loc_us-gaap_HedgingDesignationDomain_52b9cc03-af9f-42d1-874b-ce686afa50c5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_8dca4a0e-5a18-4693-b24a-91b136777b29" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_52b9cc03-af9f-42d1-874b-ce686afa50c5" xlink:to="loc_us-gaap_HedgingDesignationDomain_8dca4a0e-5a18-4693-b24a-91b136777b29" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_0408cd7a-b2c2-4bc4-8bce-905d201f0379" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DesignatedAsHedgingInstrumentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_8dca4a0e-5a18-4693-b24a-91b136777b29" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_0408cd7a-b2c2-4bc4-8bce-905d201f0379" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NondesignatedMember_78d4ce5e-abf6-41a8-9ff9-0fb48a554d21" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NondesignatedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_8dca4a0e-5a18-4693-b24a-91b136777b29" xlink:to="loc_us-gaap_NondesignatedMember_78d4ce5e-abf6-41a8-9ff9-0fb48a554d21" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_65b2c30a-408e-4e5b-949f-9b5f3b9ccc5c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable_9a9f89b3-5f45-4e41-82f7-e723f154a249" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_65b2c30a-408e-4e5b-949f-9b5f3b9ccc5c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_65b2c30a-408e-4e5b-949f-9b5f3b9ccc5c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_65b2c30a-408e-4e5b-949f-9b5f3b9ccc5c" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_65b2c30a-408e-4e5b-949f-9b5f3b9ccc5c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_0e030cbb-b104-47e2-bf9c-c21ac375927e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_65b2c30a-408e-4e5b-949f-9b5f3b9ccc5c" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_0e030cbb-b104-47e2-bf9c-c21ac375927e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FutureMember_5b315c26-b434-4816-abaf-9f89d738a997" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FutureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_0e030cbb-b104-47e2-bf9c-c21ac375927e" xlink:to="loc_us-gaap_FutureMember_5b315c26-b434-4816-abaf-9f89d738a997" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_FuturesAndSwapsMember_5fff2e2c-e795-4f63-aff3-23a534e8c988" xlink:href="oke-20231231.xsd#oke_FuturesAndSwapsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_0e030cbb-b104-47e2-bf9c-c21ac375927e" xlink:to="loc_oke_FuturesAndSwapsMember_5fff2e2c-e795-4f63-aff3-23a534e8c988" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SwapMember_5e9223b7-ee8c-4b86-91e7-b37b67acbf7d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SwapMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_0e030cbb-b104-47e2-bf9c-c21ac375927e" xlink:to="loc_us-gaap_SwapMember_5e9223b7-ee8c-4b86-91e7-b37b67acbf7d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_DerivativesByCommodityAxis_e43f3e7f-af9b-4d04-a0b6-3ec8fb00b1bc" xlink:href="oke-20231231.xsd#oke_DerivativesByCommodityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable_9a9f89b3-5f45-4e41-82f7-e723f154a249" xlink:to="loc_oke_DerivativesByCommodityAxis_e43f3e7f-af9b-4d04-a0b6-3ec8fb00b1bc" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_DerivativesByCommodityDomain_e43f3e7f-af9b-4d04-a0b6-3ec8fb00b1bc_default" xlink:href="oke-20231231.xsd#oke_DerivativesByCommodityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_oke_DerivativesByCommodityAxis_e43f3e7f-af9b-4d04-a0b6-3ec8fb00b1bc" xlink:to="loc_oke_DerivativesByCommodityDomain_e43f3e7f-af9b-4d04-a0b6-3ec8fb00b1bc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_DerivativesByCommodityDomain_25e0406f-18a9-4ff3-b078-92fdb5e90866" xlink:href="oke-20231231.xsd#oke_DerivativesByCommodityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_oke_DerivativesByCommodityAxis_e43f3e7f-af9b-4d04-a0b6-3ec8fb00b1bc" xlink:to="loc_oke_DerivativesByCommodityDomain_25e0406f-18a9-4ff3-b078-92fdb5e90866" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_NaturalGasLiquidsRefinedProductsAndCrudeOilMember_fcbaaf02-1932-4f58-8241-65d56cb9017a" xlink:href="oke-20231231.xsd#oke_NaturalGasLiquidsRefinedProductsAndCrudeOilMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oke_DerivativesByCommodityDomain_25e0406f-18a9-4ff3-b078-92fdb5e90866" xlink:to="loc_oke_NaturalGasLiquidsRefinedProductsAndCrudeOilMember_fcbaaf02-1932-4f58-8241-65d56cb9017a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NaturalGasReservesMember_fb4cb49d-0552-411b-bcc6-287a275bc319" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_NaturalGasReservesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oke_DerivativesByCommodityDomain_25e0406f-18a9-4ff3-b078-92fdb5e90866" xlink:to="loc_srt_NaturalGasReservesMember_fb4cb49d-0552-411b-bcc6-287a275bc319" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_PowerGWsMember_b1d42b76-ef67-4c97-b4f4-c9bd30b048c3" xlink:href="oke-20231231.xsd#oke_PowerGWsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oke_DerivativesByCommodityDomain_25e0406f-18a9-4ff3-b078-92fdb5e90866" xlink:to="loc_oke_PowerGWsMember_b1d42b76-ef67-4c97-b4f4-c9bd30b048c3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_DerivativeInstrumentByMethodForSettingNotionalAmountAxis_1f941274-6456-448e-b68e-8d260f8a4468" xlink:href="oke-20231231.xsd#oke_DerivativeInstrumentByMethodForSettingNotionalAmountAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable_9a9f89b3-5f45-4e41-82f7-e723f154a249" xlink:to="loc_oke_DerivativeInstrumentByMethodForSettingNotionalAmountAxis_1f941274-6456-448e-b68e-8d260f8a4468" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_DerivativeInstrumentByMethodForSettingNotionalAmountDomain_1f941274-6456-448e-b68e-8d260f8a4468_default" xlink:href="oke-20231231.xsd#oke_DerivativeInstrumentByMethodForSettingNotionalAmountDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_oke_DerivativeInstrumentByMethodForSettingNotionalAmountAxis_1f941274-6456-448e-b68e-8d260f8a4468" xlink:to="loc_oke_DerivativeInstrumentByMethodForSettingNotionalAmountDomain_1f941274-6456-448e-b68e-8d260f8a4468_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_DerivativeInstrumentByMethodForSettingNotionalAmountDomain_9783fd63-ba36-4dd2-b5f1-69471aab96f6" xlink:href="oke-20231231.xsd#oke_DerivativeInstrumentByMethodForSettingNotionalAmountDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_oke_DerivativeInstrumentByMethodForSettingNotionalAmountAxis_1f941274-6456-448e-b68e-8d260f8a4468" xlink:to="loc_oke_DerivativeInstrumentByMethodForSettingNotionalAmountDomain_9783fd63-ba36-4dd2-b5f1-69471aab96f6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_FixedPriceMember_6c29c73d-0a4b-4bab-b607-0a038fabda9e" xlink:href="oke-20231231.xsd#oke_FixedPriceMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oke_DerivativeInstrumentByMethodForSettingNotionalAmountDomain_9783fd63-ba36-4dd2-b5f1-69471aab96f6" xlink:to="loc_oke_FixedPriceMember_6c29c73d-0a4b-4bab-b607-0a038fabda9e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_BasisMember_da168be1-119d-453a-897b-fb100290bc5a" xlink:href="oke-20231231.xsd#oke_BasisMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oke_DerivativeInstrumentByMethodForSettingNotionalAmountDomain_9783fd63-ba36-4dd2-b5f1-69471aab96f6" xlink:to="loc_oke_BasisMember_da168be1-119d-453a-897b-fb100290bc5a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_DerivativePositionByTransactionTypeAxis_5b509181-0f65-4b0b-84c9-5d5866c805e7" xlink:href="oke-20231231.xsd#oke_DerivativePositionByTransactionTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable_9a9f89b3-5f45-4e41-82f7-e723f154a249" xlink:to="loc_oke_DerivativePositionByTransactionTypeAxis_5b509181-0f65-4b0b-84c9-5d5866c805e7" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_DerivativePositionByTransactionTypeDomain_5b509181-0f65-4b0b-84c9-5d5866c805e7_default" xlink:href="oke-20231231.xsd#oke_DerivativePositionByTransactionTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_oke_DerivativePositionByTransactionTypeAxis_5b509181-0f65-4b0b-84c9-5d5866c805e7" xlink:to="loc_oke_DerivativePositionByTransactionTypeDomain_5b509181-0f65-4b0b-84c9-5d5866c805e7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_DerivativePositionByTransactionTypeDomain_6cac9377-43d6-4562-b3ea-e2f834f182bd" xlink:href="oke-20231231.xsd#oke_DerivativePositionByTransactionTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_oke_DerivativePositionByTransactionTypeAxis_5b509181-0f65-4b0b-84c9-5d5866c805e7" xlink:to="loc_oke_DerivativePositionByTransactionTypeDomain_6cac9377-43d6-4562-b3ea-e2f834f182bd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_PurchasorMember_79d8d1aa-827b-4ee0-8458-94f78d0d8921" xlink:href="oke-20231231.xsd#oke_PurchasorMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oke_DerivativePositionByTransactionTypeDomain_6cac9377-43d6-4562-b3ea-e2f834f182bd" xlink:to="loc_oke_PurchasorMember_79d8d1aa-827b-4ee0-8458-94f78d0d8921" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_SellorMember_99ab4892-0d6c-41b7-bba7-1d0ed3a2e193" xlink:href="oke-20231231.xsd#oke_SellorMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oke_DerivativePositionByTransactionTypeDomain_6cac9377-43d6-4562-b3ea-e2f834f182bd" xlink:to="loc_oke_SellorMember_99ab4892-0d6c-41b7-bba7-1d0ed3a2e193" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeNonmonetaryNotionalAmountEnergyMeasure_8c4e5e77-22ea-4fc0-a72e-47cb7a81ce15" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeNonmonetaryNotionalAmountEnergyMeasure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_b1c4452d-f5d0-4a18-9351-1cd9c96b85bb" xlink:to="loc_us-gaap_DerivativeNonmonetaryNotionalAmountEnergyMeasure_8c4e5e77-22ea-4fc0-a72e-47cb7a81ce15" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeNonmonetaryNotionalAmountVolume_3e36e297-e916-497a-b609-bc0ec83adb15" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeNonmonetaryNotionalAmountVolume"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_b1c4452d-f5d0-4a18-9351-1cd9c96b85bb" xlink:to="loc_us-gaap_DerivativeNonmonetaryNotionalAmountVolume_3e36e297-e916-497a-b609-bc0ec83adb15" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeNotionalAmount_8d987b73-7eb0-4ef8-8c0c-35ded3ff0f72" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeNotionalAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_b1c4452d-f5d0-4a18-9351-1cd9c96b85bb" xlink:to="loc_us-gaap_DerivativeNotionalAmount_8d987b73-7eb0-4ef8-8c0c-35ded3ff0f72" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.oneok.com/role/RISKMANAGEMENTANDHEDGINGACTIVITIESUSINGDERIVATIVESCashFlowHedgesDetails" xlink:type="simple" xlink:href="oke-20231231.xsd#RISKMANAGEMENTANDHEDGINGACTIVITIESUSINGDERIVATIVESCashFlowHedgesDetails"/>
  <link:definitionLink xlink:role="http://www.oneok.com/role/RISKMANAGEMENTANDHEDGINGACTIVITIESUSINGDERIVATIVESCashFlowHedgesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_be98a3c6-3511-4e4b-aeb9-6bedb51e78b7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeInstrumentsGainLossLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_949ebbb6-60b1-4405-acd2-b565fe402af9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_be98a3c6-3511-4e4b-aeb9-6bedb51e78b7" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_949ebbb6-60b1-4405-acd2-b565fe402af9" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_e0b34a26-bc7b-4421-8f62-30abd5bb368e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_949ebbb6-60b1-4405-acd2-b565fe402af9" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_e0b34a26-bc7b-4421-8f62-30abd5bb368e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_e0b34a26-bc7b-4421-8f62-30abd5bb368e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_e0b34a26-bc7b-4421-8f62-30abd5bb368e" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_e0b34a26-bc7b-4421-8f62-30abd5bb368e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_16a6dc8b-d802-4151-a942-e27d08b4dc15" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_e0b34a26-bc7b-4421-8f62-30abd5bb368e" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_16a6dc8b-d802-4151-a942-e27d08b4dc15" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommodityContractMember_65adffb7-0c58-425e-97e6-d5c12bb739a2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommodityContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_16a6dc8b-d802-4151-a942-e27d08b4dc15" xlink:to="loc_us-gaap_CommodityContractMember_65adffb7-0c58-425e-97e6-d5c12bb739a2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_InterestRateSwapsAndTreasuryLocksMember_c4f831b8-c3a2-4cca-a7ac-feb641ae0158" xlink:href="oke-20231231.xsd#oke_InterestRateSwapsAndTreasuryLocksMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_16a6dc8b-d802-4151-a942-e27d08b4dc15" xlink:to="loc_oke_InterestRateSwapsAndTreasuryLocksMember_c4f831b8-c3a2-4cca-a7ac-feb641ae0158" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateContractMember_4d32859e-79d1-4330-91ff-b0fe515d3f6d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestRateContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_16a6dc8b-d802-4151-a942-e27d08b4dc15" xlink:to="loc_us-gaap_InterestRateContractMember_4d32859e-79d1-4330-91ff-b0fe515d3f6d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FutureMember_404f6a69-2120-41c3-8b8f-4e162ac49db8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FutureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_16a6dc8b-d802-4151-a942-e27d08b4dc15" xlink:to="loc_us-gaap_FutureMember_404f6a69-2120-41c3-8b8f-4e162ac49db8" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_fcf0764f-777f-4581-a1e9-d622cd71cf10" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeStatementLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_949ebbb6-60b1-4405-acd2-b565fe402af9" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_fcf0764f-777f-4581-a1e9-d622cd71cf10" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_fcf0764f-777f-4581-a1e9-d622cd71cf10_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_fcf0764f-777f-4581-a1e9-d622cd71cf10" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_fcf0764f-777f-4581-a1e9-d622cd71cf10_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_5b9e8780-8207-49e8-bf6f-24e084b46f47" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_fcf0764f-777f-4581-a1e9-d622cd71cf10" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_5b9e8780-8207-49e8-bf6f-24e084b46f47" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SalesMember_7b7f5dbe-0148-4de4-b624-c7519e3896be" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SalesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_5b9e8780-8207-49e8-bf6f-24e084b46f47" xlink:to="loc_us-gaap_SalesMember_7b7f5dbe-0148-4de4-b624-c7519e3896be" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfSalesMember_e8452933-7290-486a-8714-f137a7cb6de4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CostOfSalesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_5b9e8780-8207-49e8-bf6f-24e084b46f47" xlink:to="loc_us-gaap_CostOfSalesMember_e8452933-7290-486a-8714-f137a7cb6de4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseMember_efd3c3e4-b41c-4e4e-85d3-45639080e656" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_5b9e8780-8207-49e8-bf6f-24e084b46f47" xlink:to="loc_us-gaap_InterestExpenseMember_efd3c3e4-b41c-4e4e-85d3-45639080e656" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_DerivativeInstrumentByMethodForSettingNotionalAmountAxis_2b3259be-ecbc-4918-a853-8b77ad9d5420" xlink:href="oke-20231231.xsd#oke_DerivativeInstrumentByMethodForSettingNotionalAmountAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_949ebbb6-60b1-4405-acd2-b565fe402af9" xlink:to="loc_oke_DerivativeInstrumentByMethodForSettingNotionalAmountAxis_2b3259be-ecbc-4918-a853-8b77ad9d5420" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_DerivativeInstrumentByMethodForSettingNotionalAmountDomain_2b3259be-ecbc-4918-a853-8b77ad9d5420_default" xlink:href="oke-20231231.xsd#oke_DerivativeInstrumentByMethodForSettingNotionalAmountDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_oke_DerivativeInstrumentByMethodForSettingNotionalAmountAxis_2b3259be-ecbc-4918-a853-8b77ad9d5420" xlink:to="loc_oke_DerivativeInstrumentByMethodForSettingNotionalAmountDomain_2b3259be-ecbc-4918-a853-8b77ad9d5420_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_DerivativeInstrumentByMethodForSettingNotionalAmountDomain_49ffe3ec-60ac-46d6-9e77-626ad8748505" xlink:href="oke-20231231.xsd#oke_DerivativeInstrumentByMethodForSettingNotionalAmountDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_oke_DerivativeInstrumentByMethodForSettingNotionalAmountAxis_2b3259be-ecbc-4918-a853-8b77ad9d5420" xlink:to="loc_oke_DerivativeInstrumentByMethodForSettingNotionalAmountDomain_49ffe3ec-60ac-46d6-9e77-626ad8748505" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_FixedPriceMember_906c57ec-f6f6-4ee7-86f7-b0107ea5ba2b" xlink:href="oke-20231231.xsd#oke_FixedPriceMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oke_DerivativeInstrumentByMethodForSettingNotionalAmountDomain_49ffe3ec-60ac-46d6-9e77-626ad8748505" xlink:to="loc_oke_FixedPriceMember_906c57ec-f6f6-4ee7-86f7-b0107ea5ba2b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_DerivativePositionByTransactionTypeAxis_962d3293-f658-49f5-ac90-b714347d5404" xlink:href="oke-20231231.xsd#oke_DerivativePositionByTransactionTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_949ebbb6-60b1-4405-acd2-b565fe402af9" xlink:to="loc_oke_DerivativePositionByTransactionTypeAxis_962d3293-f658-49f5-ac90-b714347d5404" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_DerivativePositionByTransactionTypeDomain_962d3293-f658-49f5-ac90-b714347d5404_default" xlink:href="oke-20231231.xsd#oke_DerivativePositionByTransactionTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_oke_DerivativePositionByTransactionTypeAxis_962d3293-f658-49f5-ac90-b714347d5404" xlink:to="loc_oke_DerivativePositionByTransactionTypeDomain_962d3293-f658-49f5-ac90-b714347d5404_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_DerivativePositionByTransactionTypeDomain_34c188a9-875f-4ac8-a130-9cb419218a79" xlink:href="oke-20231231.xsd#oke_DerivativePositionByTransactionTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_oke_DerivativePositionByTransactionTypeAxis_962d3293-f658-49f5-ac90-b714347d5404" xlink:to="loc_oke_DerivativePositionByTransactionTypeDomain_34c188a9-875f-4ac8-a130-9cb419218a79" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_SellorMember_4556622f-fcaf-443d-b0ce-5415cfd681e1" xlink:href="oke-20231231.xsd#oke_SellorMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oke_DerivativePositionByTransactionTypeDomain_34c188a9-875f-4ac8-a130-9cb419218a79" xlink:to="loc_oke_SellorMember_4556622f-fcaf-443d-b0ce-5415cfd681e1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationAxis_c579e666-ef24-4a43-9b1d-1bc01a1d9a8b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HedgingDesignationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_949ebbb6-60b1-4405-acd2-b565fe402af9" xlink:to="loc_us-gaap_HedgingDesignationAxis_c579e666-ef24-4a43-9b1d-1bc01a1d9a8b" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_c579e666-ef24-4a43-9b1d-1bc01a1d9a8b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_c579e666-ef24-4a43-9b1d-1bc01a1d9a8b" xlink:to="loc_us-gaap_HedgingDesignationDomain_c579e666-ef24-4a43-9b1d-1bc01a1d9a8b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_4ecdf6c7-0890-48be-b742-18d543d14b10" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_c579e666-ef24-4a43-9b1d-1bc01a1d9a8b" xlink:to="loc_us-gaap_HedgingDesignationDomain_4ecdf6c7-0890-48be-b742-18d543d14b10" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_5aa27d84-1290-488b-9a82-1ad9b1a9e958" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DesignatedAsHedgingInstrumentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_4ecdf6c7-0890-48be-b742-18d543d14b10" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_5aa27d84-1290-488b-9a82-1ad9b1a9e958" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NondesignatedMember_239e414f-acfb-4aff-8efe-0b31d660badb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NondesignatedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_4ecdf6c7-0890-48be-b742-18d543d14b10" xlink:to="loc_us-gaap_NondesignatedMember_239e414f-acfb-4aff-8efe-0b31d660badb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_37681192-209c-4c4e-a5eb-30ad14fc0abb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_949ebbb6-60b1-4405-acd2-b565fe402af9" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_37681192-209c-4c4e-a5eb-30ad14fc0abb" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_37681192-209c-4c4e-a5eb-30ad14fc0abb_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_37681192-209c-4c4e-a5eb-30ad14fc0abb" xlink:to="loc_us-gaap_HedgingRelationshipDomain_37681192-209c-4c4e-a5eb-30ad14fc0abb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_1ff9ed83-655a-4729-9136-37f88cb86d3a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_37681192-209c-4c4e-a5eb-30ad14fc0abb" xlink:to="loc_us-gaap_HedgingRelationshipDomain_1ff9ed83-655a-4729-9136-37f88cb86d3a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashFlowHedgingMember_4f37b2e5-9bb1-46a6-a14a-e413494aada6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashFlowHedgingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_1ff9ed83-655a-4729-9136-37f88cb86d3a" xlink:to="loc_us-gaap_CashFlowHedgingMember_4f37b2e5-9bb1-46a6-a14a-e413494aada6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AociLossCashFlowHedgeCumulativeGainLossAfterTax_dbedc6b3-1421-41be-a56a-b016bbb145b1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AociLossCashFlowHedgeCumulativeGainLossAfterTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_be98a3c6-3511-4e4b-aeb9-6bedb51e78b7" xlink:to="loc_us-gaap_AociLossCashFlowHedgeCumulativeGainLossAfterTax_dbedc6b3-1421-41be-a56a-b016bbb145b1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_DerivativeInstrumentsGainLossRecognizedinOtherComprehensiveLossNet_d508bbe5-5723-4cb7-be55-ec66dd1d959e" xlink:href="oke-20231231.xsd#oke_DerivativeInstrumentsGainLossRecognizedinOtherComprehensiveLossNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_be98a3c6-3511-4e4b-aeb9-6bedb51e78b7" xlink:to="loc_oke_DerivativeInstrumentsGainLossRecognizedinOtherComprehensiveLossNet_d508bbe5-5723-4cb7-be55-ec66dd1d959e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax_6c953841-64ed-436e-b01e-1c03b10c30c4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_be98a3c6-3511-4e4b-aeb9-6bedb51e78b7" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax_6c953841-64ed-436e-b01e-1c03b10c30c4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonths_65b4d193-cb74-4631-bb5d-afdde6adcbdf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonths"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_be98a3c6-3511-4e4b-aeb9-6bedb51e78b7" xlink:to="loc_us-gaap_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonths_65b4d193-cb74-4631-bb5d-afdde6adcbdf" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.oneok.com/role/PROPERTYPLANTANDEQUIPMENTDetails" xlink:type="simple" xlink:href="oke-20231231.xsd#PROPERTYPLANTANDEQUIPMENTDetails"/>
  <link:definitionLink xlink:role="http://www.oneok.com/role/PROPERTYPLANTANDEQUIPMENTDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_27df549e-8ea9-4fb5-a342-63283641d941" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_bf01b652-4856-4b9d-b02c-5ab604941eec" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_27df549e-8ea9-4fb5-a342-63283641d941" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_bf01b652-4856-4b9d-b02c-5ab604941eec" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_4c4410b8-6856-455b-a8d4-42cd6626625e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_bf01b652-4856-4b9d-b02c-5ab604941eec" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_4c4410b8-6856-455b-a8d4-42cd6626625e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_4c4410b8-6856-455b-a8d4-42cd6626625e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_4c4410b8-6856-455b-a8d4-42cd6626625e" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_4c4410b8-6856-455b-a8d4-42cd6626625e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_94f295ab-74d0-49ce-a9da-eca4ce4c1bca" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_4c4410b8-6856-455b-a8d4-42cd6626625e" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_94f295ab-74d0-49ce-a9da-eca4ce4c1bca" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PipelinesMember_bc228597-32bf-4035-8115-8beea9ddf3b1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PipelinesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_94f295ab-74d0-49ce-a9da-eca4ce4c1bca" xlink:to="loc_us-gaap_PipelinesMember_bc228597-32bf-4035-8115-8beea9ddf3b1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GasGatheringAndProcessingEquipmentMember_12311e8a-72a4-47b9-a4c4-d01c87dda47c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GasGatheringAndProcessingEquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_94f295ab-74d0-49ce-a9da-eca4ce4c1bca" xlink:to="loc_us-gaap_GasGatheringAndProcessingEquipmentMember_12311e8a-72a4-47b9-a4c4-d01c87dda47c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContainersMember_198ffb3d-60ea-46ce-8cc5-f038b06a5ed8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContainersMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_94f295ab-74d0-49ce-a9da-eca4ce4c1bca" xlink:to="loc_us-gaap_ContainersMember_198ffb3d-60ea-46ce-8cc5-f038b06a5ed8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherTransportationEquipmentMember_91ec98d1-6174-4054-8972-50668cb1f75c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherTransportationEquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_94f295ab-74d0-49ce-a9da-eca4ce4c1bca" xlink:to="loc_us-gaap_OtherTransportationEquipmentMember_91ec98d1-6174-4054-8972-50668cb1f75c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ManufacturingFacilityMember_c12725b6-550d-49df-8c30-dad181db4ea2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ManufacturingFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_94f295ab-74d0-49ce-a9da-eca4ce4c1bca" xlink:to="loc_us-gaap_ManufacturingFacilityMember_c12725b6-550d-49df-8c30-dad181db4ea2" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LandMember_dfb99dce-cf7d-4c34-8983-9d6ad023771d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LandMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_94f295ab-74d0-49ce-a9da-eca4ce4c1bca" xlink:to="loc_us-gaap_LandMember_dfb99dce-cf7d-4c34-8983-9d6ad023771d" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConstructionInProgressMember_6b31303f-e28c-4dfb-8b46-0492737cf0b3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConstructionInProgressMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_94f295ab-74d0-49ce-a9da-eca4ce4c1bca" xlink:to="loc_us-gaap_ConstructionInProgressMember_6b31303f-e28c-4dfb-8b46-0492737cf0b3" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_5c0fad10-0191-4c81-8c05-ebba416e1138" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_bf01b652-4856-4b9d-b02c-5ab604941eec" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_5c0fad10-0191-4c81-8c05-ebba416e1138" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_5c0fad10-0191-4c81-8c05-ebba416e1138_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_5c0fad10-0191-4c81-8c05-ebba416e1138" xlink:to="loc_us-gaap_SegmentDomain_5c0fad10-0191-4c81-8c05-ebba416e1138_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_e14bb9fd-bd6c-47f2-b1df-647ab91bf47d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_5c0fad10-0191-4c81-8c05-ebba416e1138" xlink:to="loc_us-gaap_SegmentDomain_e14bb9fd-bd6c-47f2-b1df-647ab91bf47d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_NaturalGasLiquidsMember_dc04ed76-cf21-46fc-94e6-823502397b24" xlink:href="oke-20231231.xsd#oke_NaturalGasLiquidsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_e14bb9fd-bd6c-47f2-b1df-647ab91bf47d" xlink:to="loc_oke_NaturalGasLiquidsMember_dc04ed76-cf21-46fc-94e6-823502397b24" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_bd49a24b-2451-44fc-aae9-b077788a3c06" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_bf01b652-4856-4b9d-b02c-5ab604941eec" xlink:to="loc_srt_RangeAxis_bd49a24b-2451-44fc-aae9-b077788a3c06" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_bd49a24b-2451-44fc-aae9-b077788a3c06_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_bd49a24b-2451-44fc-aae9-b077788a3c06" xlink:to="loc_srt_RangeMember_bd49a24b-2451-44fc-aae9-b077788a3c06_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_02cfcf4b-ef03-491a-befb-5aae57bd92fa" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_bd49a24b-2451-44fc-aae9-b077788a3c06" xlink:to="loc_srt_RangeMember_02cfcf4b-ef03-491a-befb-5aae57bd92fa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_ec0ef628-4a6d-4043-b2f2-a390e92e7e30" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_02cfcf4b-ef03-491a-befb-5aae57bd92fa" xlink:to="loc_srt_MinimumMember_ec0ef628-4a6d-4043-b2f2-a390e92e7e30" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_038c9027-e5b2-4c6e-b2be-014925d386ff" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_02cfcf4b-ef03-491a-befb-5aae57bd92fa" xlink:to="loc_srt_MaximumMember_038c9027-e5b2-4c6e-b2be-014925d386ff" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_MedfordIncidentAxis_db5d298f-9930-4dd5-a7b8-2a3b7b575018" xlink:href="oke-20231231.xsd#oke_MedfordIncidentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_bf01b652-4856-4b9d-b02c-5ab604941eec" xlink:to="loc_oke_MedfordIncidentAxis_db5d298f-9930-4dd5-a7b8-2a3b7b575018" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_MedfordIncidentDomain_db5d298f-9930-4dd5-a7b8-2a3b7b575018_default" xlink:href="oke-20231231.xsd#oke_MedfordIncidentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_oke_MedfordIncidentAxis_db5d298f-9930-4dd5-a7b8-2a3b7b575018" xlink:to="loc_oke_MedfordIncidentDomain_db5d298f-9930-4dd5-a7b8-2a3b7b575018_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_MedfordIncidentDomain_fdb2cbc5-9e49-4dfa-8a0f-7814947d5e65" xlink:href="oke-20231231.xsd#oke_MedfordIncidentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_oke_MedfordIncidentAxis_db5d298f-9930-4dd5-a7b8-2a3b7b575018" xlink:to="loc_oke_MedfordIncidentDomain_fdb2cbc5-9e49-4dfa-8a0f-7814947d5e65" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_PropertyDamageAndBusinessInterruptionTotalReceivableMember_f3d85148-e2f0-4792-915b-d72d7323e51e" xlink:href="oke-20231231.xsd#oke_PropertyDamageAndBusinessInterruptionTotalReceivableMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oke_MedfordIncidentDomain_fdb2cbc5-9e49-4dfa-8a0f-7814947d5e65" xlink:to="loc_oke_PropertyDamageAndBusinessInterruptionTotalReceivableMember_f3d85148-e2f0-4792-915b-d72d7323e51e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_a355103a-0f07-4997-9c38-f9b12c8c81f7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_bf01b652-4856-4b9d-b02c-5ab604941eec" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_a355103a-0f07-4997-9c38-f9b12c8c81f7" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_a355103a-0f07-4997-9c38-f9b12c8c81f7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_a355103a-0f07-4997-9c38-f9b12c8c81f7" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_a355103a-0f07-4997-9c38-f9b12c8c81f7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_db157c1f-3d6c-4d6a-aab8-3ebbcfcffd52" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_a355103a-0f07-4997-9c38-f9b12c8c81f7" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_db157c1f-3d6c-4d6a-aab8-3ebbcfcffd52" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_MagellanAcquisitionMember_72c11ac6-66a7-498e-a942-511fec8e3ada" xlink:href="oke-20231231.xsd#oke_MagellanAcquisitionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_db157c1f-3d6c-4d6a-aab8-3ebbcfcffd52" xlink:to="loc_oke_MagellanAcquisitionMember_72c11ac6-66a7-498e-a942-511fec8e3ada" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_297886c7-f376-40ba-8d24-8a7c3b15b4ba" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentUsefulLife"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_27df549e-8ea9-4fb5-a342-63283641d941" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_297886c7-f376-40ba-8d24-8a7c3b15b4ba" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_9940855a-22b6-4cb3-98a3-d8a8d46a6311" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_27df549e-8ea9-4fb5-a342-63283641d941" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_9940855a-22b6-4cb3-98a3-d8a8d46a6311" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_8abe67cd-163c-44f6-91a4-f0295f9a21cf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_27df549e-8ea9-4fb5-a342-63283641d941" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_8abe67cd-163c-44f6-91a4-f0295f9a21cf" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_5b67822e-fb37-4714-81dd-541f708cb568" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_27df549e-8ea9-4fb5-a342-63283641d941" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_5b67822e-fb37-4714-81dd-541f708cb568" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Depreciation_4259e7a9-0fe9-4da6-9882-f0d760b744b6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Depreciation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_27df549e-8ea9-4fb5-a342-63283641d941" xlink:to="loc_us-gaap_Depreciation_4259e7a9-0fe9-4da6-9882-f0d760b744b6" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConstructionInProgressExpendituresIncurredButNotYetPaid_3c4bac4f-9a34-472d-a54d-7054da3daedb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConstructionInProgressExpendituresIncurredButNotYetPaid"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_27df549e-8ea9-4fb5-a342-63283641d941" xlink:to="loc_us-gaap_ConstructionInProgressExpendituresIncurredButNotYetPaid_3c4bac4f-9a34-472d-a54d-7054da3daedb" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_1726f2d2-16e0-4fc0-a357-86a87a5df242" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_27df549e-8ea9-4fb5-a342-63283641d941" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_1726f2d2-16e0-4fc0-a357-86a87a5df242" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsDisposedOfByMethodOtherThanSaleInPeriodOfDispositionGainLossOnDisposition1_be09d146-54aa-4daa-9435-faa06d86399e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AssetsDisposedOfByMethodOtherThanSaleInPeriodOfDispositionGainLossOnDisposition1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_27df549e-8ea9-4fb5-a342-63283641d941" xlink:to="loc_us-gaap_AssetsDisposedOfByMethodOtherThanSaleInPeriodOfDispositionGainLossOnDisposition1_be09d146-54aa-4daa-9435-faa06d86399e" xlink:type="arc" order="7"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.oneok.com/role/GOODWILLANDINTANGIBLEASSETSGoodwillDetails" xlink:type="simple" xlink:href="oke-20231231.xsd#GOODWILLANDINTANGIBLEASSETSGoodwillDetails"/>
  <link:definitionLink xlink:role="http://www.oneok.com/role/GOODWILLANDINTANGIBLEASSETSGoodwillDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillLineItems_c52dbe5f-31a4-45f9-9cc5-ac1a1c263299" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GoodwillLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfGoodwillTable_1a2a2179-f364-4579-8af7-d3a27f5fe7af" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfGoodwillTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GoodwillLineItems_c52dbe5f-31a4-45f9-9cc5-ac1a1c263299" xlink:to="loc_us-gaap_ScheduleOfGoodwillTable_1a2a2179-f364-4579-8af7-d3a27f5fe7af" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_8d08c9e6-efa4-4825-8a0c-7ec68767303b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_1a2a2179-f364-4579-8af7-d3a27f5fe7af" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_8d08c9e6-efa4-4825-8a0c-7ec68767303b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_8d08c9e6-efa4-4825-8a0c-7ec68767303b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_8d08c9e6-efa4-4825-8a0c-7ec68767303b" xlink:to="loc_us-gaap_SegmentDomain_8d08c9e6-efa4-4825-8a0c-7ec68767303b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_53507b40-636a-4edf-b19a-46e0e9fcc3ae" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_8d08c9e6-efa4-4825-8a0c-7ec68767303b" xlink:to="loc_us-gaap_SegmentDomain_53507b40-636a-4edf-b19a-46e0e9fcc3ae" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_NaturalGasGatheringAndProcessingMember_604ee18b-6310-4c5a-9487-4b78b3712992" xlink:href="oke-20231231.xsd#oke_NaturalGasGatheringAndProcessingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_53507b40-636a-4edf-b19a-46e0e9fcc3ae" xlink:to="loc_oke_NaturalGasGatheringAndProcessingMember_604ee18b-6310-4c5a-9487-4b78b3712992" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_NaturalGasLiquidsMember_0d21d6cc-c0ce-4316-9584-6bbb725d19e1" xlink:href="oke-20231231.xsd#oke_NaturalGasLiquidsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_53507b40-636a-4edf-b19a-46e0e9fcc3ae" xlink:to="loc_oke_NaturalGasLiquidsMember_0d21d6cc-c0ce-4316-9584-6bbb725d19e1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_NaturalGasPipelinesMember_2b1799d5-c125-4b2d-992b-278a81a96a1c" xlink:href="oke-20231231.xsd#oke_NaturalGasPipelinesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_53507b40-636a-4edf-b19a-46e0e9fcc3ae" xlink:to="loc_oke_NaturalGasPipelinesMember_2b1799d5-c125-4b2d-992b-278a81a96a1c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_RefinedProductsAndCrudeOilMember_94e7ecae-686a-4101-9d11-dccbf25edb94" xlink:href="oke-20231231.xsd#oke_RefinedProductsAndCrudeOilMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_53507b40-636a-4edf-b19a-46e0e9fcc3ae" xlink:to="loc_oke_RefinedProductsAndCrudeOilMember_94e7ecae-686a-4101-9d11-dccbf25edb94" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillGross_bc39a7bf-7d02-4e4b-9b80-447a7abf4839" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GoodwillGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_c52dbe5f-31a4-45f9-9cc5-ac1a1c263299" xlink:to="loc_us-gaap_GoodwillGross_bc39a7bf-7d02-4e4b-9b80-447a7abf4839" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillImpairedAccumulatedImpairmentLoss_835e7d70-ab7b-48f8-95ed-3bd083167859" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GoodwillImpairedAccumulatedImpairmentLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_c52dbe5f-31a4-45f9-9cc5-ac1a1c263299" xlink:to="loc_us-gaap_GoodwillImpairedAccumulatedImpairmentLoss_835e7d70-ab7b-48f8-95ed-3bd083167859" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillRollForward_a5e80714-cfe9-45af-b454-11337147d26b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GoodwillRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_c52dbe5f-31a4-45f9-9cc5-ac1a1c263299" xlink:to="loc_us-gaap_GoodwillRollForward_a5e80714-cfe9-45af-b454-11337147d26b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_1fa307fc-3689-45ba-aff9-84cc9ee34a13" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Goodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_a5e80714-cfe9-45af-b454-11337147d26b" xlink:to="loc_us-gaap_Goodwill_1fa307fc-3689-45ba-aff9-84cc9ee34a13" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillAcquiredDuringPeriod_051d2f76-9bd0-49bc-bbaf-575eadbbe73b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GoodwillAcquiredDuringPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_a5e80714-cfe9-45af-b454-11337147d26b" xlink:to="loc_us-gaap_GoodwillAcquiredDuringPeriod_051d2f76-9bd0-49bc-bbaf-575eadbbe73b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_a689c2ca-3c76-478a-91ec-5eb31592d8c1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Goodwill"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.oneok.com/role/GOODWILLANDINTANGIBLEASSETSNarrativeDetails" xlink:type="simple" xlink:href="oke-20231231.xsd#GOODWILLANDINTANGIBLEASSETSNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.oneok.com/role/GOODWILLANDINTANGIBLEASSETSNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_7768ab64-9b17-4675-9a1d-28852d184faf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_bce5159b-0b9f-4925-a552-6d0207f9b703" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7768ab64-9b17-4675-9a1d-28852d184faf" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_bce5159b-0b9f-4925-a552-6d0207f9b703" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_0248bcf4-7177-47e3-a18d-7f0bb9e4ee68" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_bce5159b-0b9f-4925-a552-6d0207f9b703" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_0248bcf4-7177-47e3-a18d-7f0bb9e4ee68" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_0248bcf4-7177-47e3-a18d-7f0bb9e4ee68_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_0248bcf4-7177-47e3-a18d-7f0bb9e4ee68" xlink:to="loc_us-gaap_SegmentDomain_0248bcf4-7177-47e3-a18d-7f0bb9e4ee68_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_c8053e12-116d-4795-b121-6199537f4463" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_0248bcf4-7177-47e3-a18d-7f0bb9e4ee68" xlink:to="loc_us-gaap_SegmentDomain_c8053e12-116d-4795-b121-6199537f4463" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_RefinedProductsAndCrudeOilMember_14c8eed3-f4e3-424d-8ccd-5758559501d5" xlink:href="oke-20231231.xsd#oke_RefinedProductsAndCrudeOilMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_c8053e12-116d-4795-b121-6199537f4463" xlink:to="loc_oke_RefinedProductsAndCrudeOilMember_14c8eed3-f4e3-424d-8ccd-5758559501d5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife_820ae4ad-57dd-46d9-8209-35e6da041db3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7768ab64-9b17-4675-9a1d-28852d184faf" xlink:to="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife_820ae4ad-57dd-46d9-8209-35e6da041db3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_85c25f44-4039-4e4f-a14c-ab24d6e5d83c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AmortizationOfIntangibleAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7768ab64-9b17-4675-9a1d-28852d184faf" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_85c25f44-4039-4e4f-a14c-ab24d6e5d83c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_9e63a155-022d-4f71-b77a-62a308a2eacf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7768ab64-9b17-4675-9a1d-28852d184faf" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_9e63a155-022d-4f71-b77a-62a308a2eacf" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_e99e2bf1-b39b-48ab-8783-761a25c0f20b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_9e63a155-022d-4f71-b77a-62a308a2eacf" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_e99e2bf1-b39b-48ab-8783-761a25c0f20b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_12847269-d583-434f-9125-64ebd5184212" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_9e63a155-022d-4f71-b77a-62a308a2eacf" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_12847269-d583-434f-9125-64ebd5184212" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_cb764d06-296e-49d0-bf94-a81a3fd0170e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_9e63a155-022d-4f71-b77a-62a308a2eacf" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_cb764d06-296e-49d0-bf94-a81a3fd0170e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_314a792b-8df8-4373-b9b3-3d0ff292b37c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_9e63a155-022d-4f71-b77a-62a308a2eacf" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_314a792b-8df8-4373-b9b3-3d0ff292b37c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive_102543c3-f47c-4108-b566-03c935e53ad6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_9e63a155-022d-4f71-b77a-62a308a2eacf" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive_102543c3-f47c-4108-b566-03c935e53ad6" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNetAbstract_dd675194-d89f-4317-a8b2-1ce3efb55301" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsNetAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7768ab64-9b17-4675-9a1d-28852d184faf" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNetAbstract_dd675194-d89f-4317-a8b2-1ce3efb55301" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_dbe0a3ba-e0ca-4382-a745-1da84efb2a83" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IntangibleAssetsGrossExcludingGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNetAbstract_dd675194-d89f-4317-a8b2-1ce3efb55301" xlink:to="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_dbe0a3ba-e0ca-4382-a745-1da84efb2a83" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_db65cfb2-996d-439d-83f0-22b14649aba0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNetAbstract_dd675194-d89f-4317-a8b2-1ce3efb55301" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_db65cfb2-996d-439d-83f0-22b14649aba0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_4585e410-b630-4acd-a36a-1d33015fe740" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNetAbstract_dd675194-d89f-4317-a8b2-1ce3efb55301" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_4585e410-b630-4acd-a36a-1d33015fe740" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.oneok.com/role/DEBTScheduleofConsolidatedDebtDetails" xlink:type="simple" xlink:href="oke-20231231.xsd#DEBTScheduleofConsolidatedDebtDetails"/>
  <link:definitionLink xlink:role="http://www.oneok.com/role/DEBTScheduleofConsolidatedDebtDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_ba4534bc-b1eb-4bfd-9f1c-21c056ce5065" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_982d545f-8376-4aac-b83a-d2fb74922344" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_ba4534bc-b1eb-4bfd-9f1c-21c056ce5065" xlink:to="loc_us-gaap_DebtInstrumentTable_982d545f-8376-4aac-b83a-d2fb74922344" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_cc30c08f-00c6-4562-bf2d-ee7ec196152e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_982d545f-8376-4aac-b83a-d2fb74922344" xlink:to="loc_us-gaap_DebtInstrumentAxis_cc30c08f-00c6-4562-bf2d-ee7ec196152e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_cc30c08f-00c6-4562-bf2d-ee7ec196152e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_cc30c08f-00c6-4562-bf2d-ee7ec196152e" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_cc30c08f-00c6-4562-bf2d-ee7ec196152e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_cc30c08f-00c6-4562-bf2d-ee7ec196152e" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A5.0NotesPayabledue2023Member_c177b714-794f-422a-a380-700c98dd5745" xlink:href="oke-20231231.xsd#oke_A5.0NotesPayabledue2023Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A5.0NotesPayabledue2023Member_c177b714-794f-422a-a380-700c98dd5745" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A7.5NotesPayabledue2023Member_e5a5586f-65c6-46b1-abe4-c42431beb38c" xlink:href="oke-20231231.xsd#oke_A7.5NotesPayabledue2023Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A7.5NotesPayabledue2023Member_e5a5586f-65c6-46b1-abe4-c42431beb38c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A2.75NotesPayabledue2024Member_bfe01d02-afa9-4bd5-ac6d-61f504cc1fe1" xlink:href="oke-20231231.xsd#oke_A2.75NotesPayabledue2024Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A2.75NotesPayabledue2024Member_bfe01d02-afa9-4bd5-ac6d-61f504cc1fe1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A32NotesPayableDue2025Member_89092802-8c3e-4f72-8339-e1ee6120052d" xlink:href="oke-20231231.xsd#oke_A32NotesPayableDue2025Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A32NotesPayableDue2025Member_89092802-8c3e-4f72-8339-e1ee6120052d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A4.9NotesPayabledue2025Member_129fc068-7b11-45aa-ab96-32a4b9b6ea9e" xlink:href="oke-20231231.xsd#oke_A4.9NotesPayabledue2025Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A4.9NotesPayabledue2025Member_129fc068-7b11-45aa-ab96-32a4b9b6ea9e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A2.2NotesPayabledue2025Member_0f0c38e4-5ecc-4543-9456-ed618bd1a682" xlink:href="oke-20231231.xsd#oke_A2.2NotesPayabledue2025Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A2.2NotesPayabledue2025Member_0f0c38e4-5ecc-4543-9456-ed618bd1a682" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A5.85NotesPayabledue2026Member_94723efe-e01a-4a7e-ad53-b0af57c1a804" xlink:href="oke-20231231.xsd#oke_A5.85NotesPayabledue2026Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A5.85NotesPayabledue2026Member_94723efe-e01a-4a7e-ad53-b0af57c1a804" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A50NotesPayableDue2026Member_f206807c-dedb-4f14-bcf0-7e4f2e47c52b" xlink:href="oke-20231231.xsd#oke_A50NotesPayableDue2026Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A50NotesPayableDue2026Member_f206807c-dedb-4f14-bcf0-7e4f2e47c52b" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A555NotesPayableDue2026Member_494b1b59-0d6d-470c-bdf0-b619af812a86" xlink:href="oke-20231231.xsd#oke_A555NotesPayableDue2026Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A555NotesPayableDue2026Member_494b1b59-0d6d-470c-bdf0-b619af812a86" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A4.0NotesPayabledue2027Member_08f811e0-c6f6-4f66-8e36-dc5102163212" xlink:href="oke-20231231.xsd#oke_A4.0NotesPayabledue2027Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A4.0NotesPayabledue2027Member_08f811e0-c6f6-4f66-8e36-dc5102163212" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A4.55NotesPayabledue2028Member_7d8dc43b-67f7-42f7-bf64-632236f46bcc" xlink:href="oke-20231231.xsd#oke_A4.55NotesPayabledue2028Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A4.55NotesPayabledue2028Member_7d8dc43b-67f7-42f7-bf64-632236f46bcc" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A6.875NotesPayabledue2028Member_bffa8cf8-6c94-4355-b2da-92f170a0d323" xlink:href="oke-20231231.xsd#oke_A6.875NotesPayabledue2028Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A6.875NotesPayabledue2028Member_bffa8cf8-6c94-4355-b2da-92f170a0d323" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A565NotesPayableDue2028Member_a11b5d9c-e71d-4b71-a2ee-3cb5564bf868" xlink:href="oke-20231231.xsd#oke_A565NotesPayableDue2028Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A565NotesPayableDue2028Member_a11b5d9c-e71d-4b71-a2ee-3cb5564bf868" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A4.35NotesPayabledue2029Member_a0157be9-f5d8-432f-a562-bd4ac4271da5" xlink:href="oke-20231231.xsd#oke_A4.35NotesPayabledue2029Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A4.35NotesPayabledue2029Member_a0157be9-f5d8-432f-a562-bd4ac4271da5" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A3.4NotesPayabledue2029Member_5ac4ab1d-5eab-47cf-8956-d0afddc33f00" xlink:href="oke-20231231.xsd#oke_A3.4NotesPayabledue2029Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A3.4NotesPayabledue2029Member_5ac4ab1d-5eab-47cf-8956-d0afddc33f00" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A3.1NotesPayabledue2030Member_c3d8fa5a-7ece-4f39-a02d-f803612f85fd" xlink:href="oke-20231231.xsd#oke_A3.1NotesPayabledue2030Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A3.1NotesPayabledue2030Member_c3d8fa5a-7ece-4f39-a02d-f803612f85fd" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A3.25NotesPayableDueJune2030Member_00ad7373-49a7-446c-8b6a-6ffe87ce5b9c" xlink:href="oke-20231231.xsd#oke_A3.25NotesPayableDueJune2030Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A3.25NotesPayableDueJune2030Member_00ad7373-49a7-446c-8b6a-6ffe87ce5b9c" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A58NotesPayableDueNovember2030Member_a11f808b-9f6e-4d98-8c0e-2fad50b81b7f" xlink:href="oke-20231231.xsd#oke_A58NotesPayableDueNovember2030Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A58NotesPayableDueNovember2030Member_a11f808b-9f6e-4d98-8c0e-2fad50b81b7f" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A6.35NotesPayabledue2031Member_7b4e6699-ac3b-46d3-977e-be41e658d811" xlink:href="oke-20231231.xsd#oke_A6.35NotesPayabledue2031Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A6.35NotesPayabledue2031Member_7b4e6699-ac3b-46d3-977e-be41e658d811" xlink:type="arc" order="18"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A61NotesPayableDue2032Member_ac58a5b2-4b8c-40b8-8909-eb0fe54659c3" xlink:href="oke-20231231.xsd#oke_A61NotesPayableDue2032Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A61NotesPayableDue2032Member_ac58a5b2-4b8c-40b8-8909-eb0fe54659c3" xlink:type="arc" order="19"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A605NotesPayableDue2033Member_6a4b0f16-cb1a-443c-bea3-cdca6dac0898" xlink:href="oke-20231231.xsd#oke_A605NotesPayableDue2033Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A605NotesPayableDue2033Member_6a4b0f16-cb1a-443c-bea3-cdca6dac0898" xlink:type="arc" order="20"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A6.0NotesPayabledue2035Member_4ceb6e6f-8af5-42b7-9014-9a7f5fd99849" xlink:href="oke-20231231.xsd#oke_A6.0NotesPayabledue2035Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A6.0NotesPayabledue2035Member_4ceb6e6f-8af5-42b7-9014-9a7f5fd99849" xlink:type="arc" order="21"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A6.65NotesPayabledue2036Member_cce48cdb-d8e5-40a3-8e9e-e4f37f24aa45" xlink:href="oke-20231231.xsd#oke_A6.65NotesPayabledue2036Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A6.65NotesPayabledue2036Member_cce48cdb-d8e5-40a3-8e9e-e4f37f24aa45" xlink:type="arc" order="22"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A64NotesPayableDueMay2037Member_f26aeea3-261b-499d-8e97-9e297e712243" xlink:href="oke-20231231.xsd#oke_A64NotesPayableDueMay2037Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A64NotesPayableDueMay2037Member_f26aeea3-261b-499d-8e97-9e297e712243" xlink:type="arc" order="23"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A6.85NotesPayabledue2037Member_f349f1df-9333-4a91-8ab8-ed9ddd506c9e" xlink:href="oke-20231231.xsd#oke_A6.85NotesPayabledue2037Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A6.85NotesPayabledue2037Member_f349f1df-9333-4a91-8ab8-ed9ddd506c9e" xlink:type="arc" order="24"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A6.125NotesPayabledue2041Member_f40fd97c-9973-4e50-800b-4d4dcd9648ab" xlink:href="oke-20231231.xsd#oke_A6.125NotesPayabledue2041Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A6.125NotesPayabledue2041Member_f40fd97c-9973-4e50-800b-4d4dcd9648ab" xlink:type="arc" order="25"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A42NotesPayableDue2042Member_f6340ca5-9dc1-4dee-817e-9f34e1d437cf" xlink:href="oke-20231231.xsd#oke_A42NotesPayableDue2042Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A42NotesPayableDue2042Member_f6340ca5-9dc1-4dee-817e-9f34e1d437cf" xlink:type="arc" order="26"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A6.2NotesPayabledue2043Member_d40cda4b-7e60-43c8-93cf-ecd03d3b7567" xlink:href="oke-20231231.xsd#oke_A6.2NotesPayabledue2043Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A6.2NotesPayabledue2043Member_d40cda4b-7e60-43c8-93cf-ecd03d3b7567" xlink:type="arc" order="27"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A515NotesPayableDue2043Member_d208e752-9eaf-40b6-8ca7-4898e0bb6ae6" xlink:href="oke-20231231.xsd#oke_A515NotesPayableDue2043Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A515NotesPayableDue2043Member_d208e752-9eaf-40b6-8ca7-4898e0bb6ae6" xlink:type="arc" order="28"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A42NotesPayableDue2045Member_6d9d2e63-7f69-4e5a-b61b-3f892493bf8f" xlink:href="oke-20231231.xsd#oke_A42NotesPayableDue2045Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A42NotesPayableDue2045Member_6d9d2e63-7f69-4e5a-b61b-3f892493bf8f" xlink:type="arc" order="29"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A425NotesPayableDue2046Member_a1750524-307e-4e7b-bf12-49008364f51d" xlink:href="oke-20231231.xsd#oke_A425NotesPayableDue2046Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A425NotesPayableDue2046Member_a1750524-307e-4e7b-bf12-49008364f51d" xlink:type="arc" order="30"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A4.95NotesPayabledue2047Member_4f99b89c-849f-475c-a6af-f3b9da602f4c" xlink:href="oke-20231231.xsd#oke_A4.95NotesPayabledue2047Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A4.95NotesPayabledue2047Member_4f99b89c-849f-475c-a6af-f3b9da602f4c" xlink:type="arc" order="31"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A42NotesPayableDue2047Member_6284f090-7bd2-49c3-ab82-e0d285d51cc4" xlink:href="oke-20231231.xsd#oke_A42NotesPayableDue2047Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A42NotesPayableDue2047Member_6284f090-7bd2-49c3-ab82-e0d285d51cc4" xlink:type="arc" order="32"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A5.2NotesPayabledue2048Member_430dbb24-225e-4713-ad62-c6bec9e0e7fb" xlink:href="oke-20231231.xsd#oke_A5.2NotesPayabledue2048Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A5.2NotesPayabledue2048Member_430dbb24-225e-4713-ad62-c6bec9e0e7fb" xlink:type="arc" order="33"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A485NotesPayableDue2049Member_c52ef92c-b713-47da-8270-308b30e9ab57" xlink:href="oke-20231231.xsd#oke_A485NotesPayableDue2049Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A485NotesPayableDue2049Member_c52ef92c-b713-47da-8270-308b30e9ab57" xlink:type="arc" order="34"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A4.45NotesPayabledue2049Member_319f1f98-7a8c-43d7-a89f-391683d7e8ba" xlink:href="oke-20231231.xsd#oke_A4.45NotesPayabledue2049Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A4.45NotesPayabledue2049Member_319f1f98-7a8c-43d7-a89f-391683d7e8ba" xlink:type="arc" order="35"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A4.5NotesPayabledue2050Member_a1a7b13e-94cc-4724-9e48-82d52bec6d17" xlink:href="oke-20231231.xsd#oke_A4.5NotesPayabledue2050Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A4.5NotesPayabledue2050Member_a1a7b13e-94cc-4724-9e48-82d52bec6d17" xlink:type="arc" order="36"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A395NotesPayableDue2050Member_9de4d68b-9d1b-4370-b4ba-2ca4dc3e99c4" xlink:href="oke-20231231.xsd#oke_A395NotesPayableDue2050Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A395NotesPayableDue2050Member_9de4d68b-9d1b-4370-b4ba-2ca4dc3e99c4" xlink:type="arc" order="37"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A7.15NotesPayabledue2051Member_9551f59e-243e-4999-9d78-8d899298f4e6" xlink:href="oke-20231231.xsd#oke_A7.15NotesPayabledue2051Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A7.15NotesPayabledue2051Member_9551f59e-243e-4999-9d78-8d899298f4e6" xlink:type="arc" order="38"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A6625NotesPayableDueSeptember2053Member_dfe6f3c5-9aec-42ff-86d9-d85a4eaf2bb8" xlink:href="oke-20231231.xsd#oke_A6625NotesPayableDueSeptember2053Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_A6625NotesPayableDueSeptember2053Member_dfe6f3c5-9aec-42ff-86d9-d85a4eaf2bb8" xlink:type="arc" order="39"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_NotesPayableDue2025Member_a4b32fe5-06d5-4413-a898-31fb936b137f" xlink:href="oke-20231231.xsd#oke_NotesPayableDue2025Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_NotesPayableDue2025Member_a4b32fe5-06d5-4413-a898-31fb936b137f" xlink:type="arc" order="40"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_NotesPayableDue2026Member_d7417fc6-b66d-4787-835d-e2a9fab86592" xlink:href="oke-20231231.xsd#oke_NotesPayableDue2026Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c47abff7-eef5-4472-b2c7-f2c8b3cf3d5d" xlink:to="loc_oke_NotesPayableDue2026Member_d7417fc6-b66d-4787-835d-e2a9fab86592" xlink:type="arc" order="41"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateAxis_c32189e2-fcd8-4494-84c8-aae27f78e182" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_VariableRateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_982d545f-8376-4aac-b83a-d2fb74922344" xlink:to="loc_us-gaap_VariableRateAxis_c32189e2-fcd8-4494-84c8-aae27f78e182" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_c32189e2-fcd8-4494-84c8-aae27f78e182_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_c32189e2-fcd8-4494-84c8-aae27f78e182" xlink:to="loc_us-gaap_VariableRateDomain_c32189e2-fcd8-4494-84c8-aae27f78e182_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_b5bcada3-b3d7-4ccd-bcc7-81ed918bf83c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_c32189e2-fcd8-4494-84c8-aae27f78e182" xlink:to="loc_us-gaap_VariableRateDomain_b5bcada3-b3d7-4ccd-bcc7-81ed918bf83c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_VariableRateMember_7468b1b3-5254-4772-ac58-042e6561aa82" xlink:href="oke-20231231.xsd#oke_VariableRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_b5bcada3-b3d7-4ccd-bcc7-81ed918bf83c" xlink:to="loc_oke_VariableRateMember_7468b1b3-5254-4772-ac58-042e6561aa82" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_e8996a90-c05b-4715-8e4c-206be135b3df" xlink:href="https://xbrl.sec.gov/dei/2023/dei-2023.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_982d545f-8376-4aac-b83a-d2fb74922344" xlink:to="loc_dei_LegalEntityAxis_e8996a90-c05b-4715-8e4c-206be135b3df" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_e8996a90-c05b-4715-8e4c-206be135b3df_default" xlink:href="https://xbrl.sec.gov/dei/2023/dei-2023.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_e8996a90-c05b-4715-8e4c-206be135b3df" xlink:to="loc_dei_EntityDomain_e8996a90-c05b-4715-8e4c-206be135b3df_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_ded5cd98-7542-41b5-bb81-b3589e607c8a" xlink:href="https://xbrl.sec.gov/dei/2023/dei-2023.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_e8996a90-c05b-4715-8e4c-206be135b3df" xlink:to="loc_dei_EntityDomain_ded5cd98-7542-41b5-bb81-b3589e607c8a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_GuardianPipelineMember_404e5733-a4a6-44fa-8973-3dab5335ca88" xlink:href="oke-20231231.xsd#oke_GuardianPipelineMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_ded5cd98-7542-41b5-bb81-b3589e607c8a" xlink:to="loc_oke_GuardianPipelineMember_404e5733-a4a6-44fa-8973-3dab5335ca88" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_VikingPipelineMember_9e4f5e46-9deb-4f11-a950-a901ed53af86" xlink:href="oke-20231231.xsd#oke_VikingPipelineMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_ded5cd98-7542-41b5-bb81-b3589e607c8a" xlink:to="loc_oke_VikingPipelineMember_9e4f5e46-9deb-4f11-a950-a901ed53af86" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPaper_66922c43-7148-43ec-8fc6-01aac7e4d6b2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommercialPaper"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_ba4534bc-b1eb-4bfd-9f1c-21c056ce5065" xlink:to="loc_us-gaap_CommercialPaper_66922c43-7148-43ec-8fc6-01aac7e4d6b2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_f4cae70f-784c-4a0c-b17b-caff353fd707" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_ba4534bc-b1eb-4bfd-9f1c-21c056ce5065" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_f4cae70f-784c-4a0c-b17b-caff353fd707" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_32fa9a63-b884-4e3e-8f82-969343436d1f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_ba4534bc-b1eb-4bfd-9f1c-21c056ce5065" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_32fa9a63-b884-4e3e-8f82-969343436d1f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_d9709c68-63b2-4d9a-be69-987a7b10ed67" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_ba4534bc-b1eb-4bfd-9f1c-21c056ce5065" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_d9709c68-63b2-4d9a-be69-987a7b10ed67" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateDuringPeriod_b74dd4aa-0bce-4b8b-aa5f-b4a506e35faf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentInterestRateDuringPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_ba4534bc-b1eb-4bfd-9f1c-21c056ce5065" xlink:to="loc_us-gaap_DebtInstrumentInterestRateDuringPeriod_b74dd4aa-0bce-4b8b-aa5f-b4a506e35faf" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet_cb03d6f3-e35a-4615-98bb-3cd6c060716c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_ba4534bc-b1eb-4bfd-9f1c-21c056ce5065" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet_cb03d6f3-e35a-4615-98bb-3cd6c060716c" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_UnamortizedPortionOfDebtIssuanceCostsAndTerminatedSwaps_bb33a76f-3860-476f-8e8e-c9eb33dc5c1a" xlink:href="oke-20231231.xsd#oke_UnamortizedPortionOfDebtIssuanceCostsAndTerminatedSwaps"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_ba4534bc-b1eb-4bfd-9f1c-21c056ce5065" xlink:to="loc_oke_UnamortizedPortionOfDebtIssuanceCostsAndTerminatedSwaps_bb33a76f-3860-476f-8e8e-c9eb33dc5c1a" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_4fee5d5c-6d7e-49bc-9d4d-c0274b06cdd5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_ba4534bc-b1eb-4bfd-9f1c-21c056ce5065" xlink:to="loc_us-gaap_LongTermDebtCurrent_4fee5d5c-6d7e-49bc-9d4d-c0274b06cdd5" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_22784d0e-d81d-4731-a8b9-cc996d8e23ab" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_ba4534bc-b1eb-4bfd-9f1c-21c056ce5065" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_22784d0e-d81d-4731-a8b9-cc996d8e23ab" xlink:type="arc" order="8"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.oneok.com/role/DEBTNarrativeDetails" xlink:type="simple" xlink:href="oke-20231231.xsd#DEBTNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.oneok.com/role/DEBTNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_1fd47d7f-1d24-4109-950f-2cbb914016b1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_628e0ec2-a53e-40b2-b91c-e7a93ecf467e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1fd47d7f-1d24-4109-950f-2cbb914016b1" xlink:to="loc_us-gaap_DebtInstrumentTable_628e0ec2-a53e-40b2-b91c-e7a93ecf467e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_fa1a0306-d28e-40d0-b8b5-0086b67b1626" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_628e0ec2-a53e-40b2-b91c-e7a93ecf467e" xlink:to="loc_us-gaap_DebtInstrumentAxis_fa1a0306-d28e-40d0-b8b5-0086b67b1626" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_fa1a0306-d28e-40d0-b8b5-0086b67b1626_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_fa1a0306-d28e-40d0-b8b5-0086b67b1626" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_fa1a0306-d28e-40d0-b8b5-0086b67b1626_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_1b7f5a68-0208-4d33-a0ea-f48baf63c0c9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_fa1a0306-d28e-40d0-b8b5-0086b67b1626" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_1b7f5a68-0208-4d33-a0ea-f48baf63c0c9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A2.5BillionCreditAgreementMember_a9cc5ff6-8f65-4dba-bb46-c758cd0e508a" xlink:href="oke-20231231.xsd#oke_A2.5BillionCreditAgreementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_1b7f5a68-0208-4d33-a0ea-f48baf63c0c9" xlink:to="loc_oke_A2.5BillionCreditAgreementMember_a9cc5ff6-8f65-4dba-bb46-c758cd0e508a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_NotesPayableDue2026Member_896f7a0a-3b17-49f1-93db-d2e4d7e7a63e" xlink:href="oke-20231231.xsd#oke_NotesPayableDue2026Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_1b7f5a68-0208-4d33-a0ea-f48baf63c0c9" xlink:to="loc_oke_NotesPayableDue2026Member_896f7a0a-3b17-49f1-93db-d2e4d7e7a63e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_NotesPayableDue2025Member_7daebfdf-d7af-4806-8cdd-20b88cc2316d" xlink:href="oke-20231231.xsd#oke_NotesPayableDue2025Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_1b7f5a68-0208-4d33-a0ea-f48baf63c0c9" xlink:to="loc_oke_NotesPayableDue2025Member_7daebfdf-d7af-4806-8cdd-20b88cc2316d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A555NotesPayableDue2026Member_c307ccb7-07b5-4a96-beee-ce915b073071" xlink:href="oke-20231231.xsd#oke_A555NotesPayableDue2026Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_1b7f5a68-0208-4d33-a0ea-f48baf63c0c9" xlink:to="loc_oke_A555NotesPayableDue2026Member_c307ccb7-07b5-4a96-beee-ce915b073071" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A565NotesPayableDue2028Member_6ecedba5-e21e-4597-83db-d35ee5b19ec9" xlink:href="oke-20231231.xsd#oke_A565NotesPayableDue2028Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_1b7f5a68-0208-4d33-a0ea-f48baf63c0c9" xlink:to="loc_oke_A565NotesPayableDue2028Member_6ecedba5-e21e-4597-83db-d35ee5b19ec9" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A58NotesPayableDueNovember2030Member_b7bbfe59-2235-4719-96a7-8ad7550f1503" xlink:href="oke-20231231.xsd#oke_A58NotesPayableDueNovember2030Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_1b7f5a68-0208-4d33-a0ea-f48baf63c0c9" xlink:to="loc_oke_A58NotesPayableDueNovember2030Member_b7bbfe59-2235-4719-96a7-8ad7550f1503" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A605NotesPayableDue2033Member_95f3250a-7bb1-4834-95d1-851d669fe063" xlink:href="oke-20231231.xsd#oke_A605NotesPayableDue2033Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_1b7f5a68-0208-4d33-a0ea-f48baf63c0c9" xlink:to="loc_oke_A605NotesPayableDue2033Member_95f3250a-7bb1-4834-95d1-851d669fe063" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A6625NotesPayableDueSeptember2053Member_145c65ee-11df-4fb2-bd36-fbeaa017682c" xlink:href="oke-20231231.xsd#oke_A6625NotesPayableDueSeptember2053Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_1b7f5a68-0208-4d33-a0ea-f48baf63c0c9" xlink:to="loc_oke_A6625NotesPayableDueSeptember2053Member_145c65ee-11df-4fb2-bd36-fbeaa017682c" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A61NotesPayableDue2032Member_0b740de3-933f-4f39-afde-9647025a4f6d" xlink:href="oke-20231231.xsd#oke_A61NotesPayableDue2032Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_1b7f5a68-0208-4d33-a0ea-f48baf63c0c9" xlink:to="loc_oke_A61NotesPayableDue2032Member_0b740de3-933f-4f39-afde-9647025a4f6d" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A7.5NotesPayabledue2023Member_ee595005-f118-403d-bf5f-ce26215ed5ab" xlink:href="oke-20231231.xsd#oke_A7.5NotesPayabledue2023Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_1b7f5a68-0208-4d33-a0ea-f48baf63c0c9" xlink:to="loc_oke_A7.5NotesPayabledue2023Member_ee595005-f118-403d-bf5f-ce26215ed5ab" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A5.0NotesPayabledue2023Member_c5807a59-9205-4b67-8393-d8e7c7c7896b" xlink:href="oke-20231231.xsd#oke_A5.0NotesPayabledue2023Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_1b7f5a68-0208-4d33-a0ea-f48baf63c0c9" xlink:to="loc_oke_A5.0NotesPayabledue2023Member_c5807a59-9205-4b67-8393-d8e7c7c7896b" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A3.375NotesPayabledue2022Member_9e3d922f-dee6-4941-b3a5-7a0ee4d50235" xlink:href="oke-20231231.xsd#oke_A3.375NotesPayabledue2022Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_1b7f5a68-0208-4d33-a0ea-f48baf63c0c9" xlink:to="loc_oke_A3.375NotesPayabledue2022Member_9e3d922f-dee6-4941-b3a5-7a0ee4d50235" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A4.25NotesPayabledue2022Member_79d4886a-8333-47ef-b2ef-796705cb8b0f" xlink:href="oke-20231231.xsd#oke_A4.25NotesPayabledue2022Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_1b7f5a68-0208-4d33-a0ea-f48baf63c0c9" xlink:to="loc_oke_A4.25NotesPayabledue2022Member_79d4886a-8333-47ef-b2ef-796705cb8b0f" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_NotesPayables1Due2022Member_df377878-9d96-4404-ad15-cb550eafbfe4" xlink:href="oke-20231231.xsd#oke_NotesPayables1Due2022Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_1b7f5a68-0208-4d33-a0ea-f48baf63c0c9" xlink:to="loc_oke_NotesPayables1Due2022Member_df377878-9d96-4404-ad15-cb550eafbfe4" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_e3684110-ab7e-4349-a9a6-c66175e8bda4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_628e0ec2-a53e-40b2-b91c-e7a93ecf467e" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_e3684110-ab7e-4349-a9a6-c66175e8bda4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_e3684110-ab7e-4349-a9a6-c66175e8bda4_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_e3684110-ab7e-4349-a9a6-c66175e8bda4" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_e3684110-ab7e-4349-a9a6-c66175e8bda4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_616fa66a-fcf2-4f5c-8c40-29fc1e258126" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_e3684110-ab7e-4349-a9a6-c66175e8bda4" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_616fa66a-fcf2-4f5c-8c40-29fc1e258126" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_MagellanAcquisitionMember_9d8ff439-e193-4795-888e-0ba8bd3c6a4d" xlink:href="oke-20231231.xsd#oke_MagellanAcquisitionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_616fa66a-fcf2-4f5c-8c40-29fc1e258126" xlink:to="loc_oke_MagellanAcquisitionMember_9d8ff439-e193-4795-888e-0ba8bd3c6a4d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_9f071c45-3839-4816-9ae5-4b9ede33835a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_628e0ec2-a53e-40b2-b91c-e7a93ecf467e" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_9f071c45-3839-4816-9ae5-4b9ede33835a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_9f071c45-3839-4816-9ae5-4b9ede33835a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_9f071c45-3839-4816-9ae5-4b9ede33835a" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_9f071c45-3839-4816-9ae5-4b9ede33835a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_aa7d7ccf-a402-4e88-83df-e2f7d4fb81e9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_9f071c45-3839-4816-9ae5-4b9ede33835a" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_aa7d7ccf-a402-4e88-83df-e2f7d4fb81e9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnsecuredDebtMember_360eb373-1d6f-48a7-9d86-7800facf5c24" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_UnsecuredDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_aa7d7ccf-a402-4e88-83df-e2f7d4fb81e9" xlink:to="loc_us-gaap_UnsecuredDebtMember_360eb373-1d6f-48a7-9d86-7800facf5c24" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotesMember_ad9cc9af-4849-4c3b-9d24-7f738d56e9e5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_aa7d7ccf-a402-4e88-83df-e2f7d4fb81e9" xlink:to="loc_us-gaap_SeniorNotesMember_ad9cc9af-4849-4c3b-9d24-7f738d56e9e5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateAxis_c50eb802-3e07-45ce-a790-44e45b47c49d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_VariableRateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_628e0ec2-a53e-40b2-b91c-e7a93ecf467e" xlink:to="loc_us-gaap_VariableRateAxis_c50eb802-3e07-45ce-a790-44e45b47c49d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_c50eb802-3e07-45ce-a790-44e45b47c49d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_c50eb802-3e07-45ce-a790-44e45b47c49d" xlink:to="loc_us-gaap_VariableRateDomain_c50eb802-3e07-45ce-a790-44e45b47c49d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_f07b1b55-001e-4293-b894-8b9164784613" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_c50eb802-3e07-45ce-a790-44e45b47c49d" xlink:to="loc_us-gaap_VariableRateDomain_f07b1b55-001e-4293-b894-8b9164784613" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_VariableRateMember_6143dbdb-4622-41a7-ae31-d65d15d76b8a" xlink:href="oke-20231231.xsd#oke_VariableRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_f07b1b55-001e-4293-b894-8b9164784613" xlink:to="loc_oke_VariableRateMember_6143dbdb-4622-41a7-ae31-d65d15d76b8a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_SecuredOvernightFinancingRateMember_f423e48b-7bcb-4133-a135-3b5e59306823" xlink:href="oke-20231231.xsd#oke_SecuredOvernightFinancingRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_f07b1b55-001e-4293-b894-8b9164784613" xlink:to="loc_oke_SecuredOvernightFinancingRateMember_f423e48b-7bcb-4133-a135-3b5e59306823" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_bad09288-ebc5-4d2c-8d70-667ac2b12fc9" xlink:href="https://xbrl.sec.gov/dei/2023/dei-2023.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_628e0ec2-a53e-40b2-b91c-e7a93ecf467e" xlink:to="loc_dei_LegalEntityAxis_bad09288-ebc5-4d2c-8d70-667ac2b12fc9" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_bad09288-ebc5-4d2c-8d70-667ac2b12fc9_default" xlink:href="https://xbrl.sec.gov/dei/2023/dei-2023.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_bad09288-ebc5-4d2c-8d70-667ac2b12fc9" xlink:to="loc_dei_EntityDomain_bad09288-ebc5-4d2c-8d70-667ac2b12fc9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_a61e9627-003a-44e5-839d-259fae62d397" xlink:href="https://xbrl.sec.gov/dei/2023/dei-2023.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_bad09288-ebc5-4d2c-8d70-667ac2b12fc9" xlink:to="loc_dei_EntityDomain_a61e9627-003a-44e5-839d-259fae62d397" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_VikingPipelineMember_c8554cbb-35e8-4df4-b3fc-2a25f2489fdd" xlink:href="oke-20231231.xsd#oke_VikingPipelineMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_a61e9627-003a-44e5-839d-259fae62d397" xlink:to="loc_oke_VikingPipelineMember_c8554cbb-35e8-4df4-b3fc-2a25f2489fdd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_GuardianPipelineMember_7d36ae26-6eef-4192-ba8d-b75cae4cd8ea" xlink:href="oke-20231231.xsd#oke_GuardianPipelineMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_a61e9627-003a-44e5-839d-259fae62d397" xlink:to="loc_oke_GuardianPipelineMember_7d36ae26-6eef-4192-ba8d-b75cae4cd8ea" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_e83f8dd8-6ecf-4969-8924-14cbae05482c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1fd47d7f-1d24-4109-950f-2cbb914016b1" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_e83f8dd8-6ecf-4969-8924-14cbae05482c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_IndebtednessToAdjustedEBITDAMaximumFromAcquisitions_a77a1c4b-1b6c-435d-be7b-e2030d1b05c4" xlink:href="oke-20231231.xsd#oke_IndebtednessToAdjustedEBITDAMaximumFromAcquisitions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1fd47d7f-1d24-4109-950f-2cbb914016b1" xlink:to="loc_oke_IndebtednessToAdjustedEBITDAMaximumFromAcquisitions_a77a1c4b-1b6c-435d-be7b-e2030d1b05c4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_IndebtednesstoAdjustedEBITDAMaximum_1920cf6e-bfb3-4d07-a904-2449b0dd97d0" xlink:href="oke-20231231.xsd#oke_IndebtednesstoAdjustedEBITDAMaximum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1fd47d7f-1d24-4109-950f-2cbb914016b1" xlink:to="loc_oke_IndebtednesstoAdjustedEBITDAMaximum_1920cf6e-bfb3-4d07-a904-2449b0dd97d0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_LineOfCreditFacilitySublimit_a79f471b-25ba-4a3d-9f75-5d226d7bc4c3" xlink:href="oke-20231231.xsd#oke_LineOfCreditFacilitySublimit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1fd47d7f-1d24-4109-950f-2cbb914016b1" xlink:to="loc_oke_LineOfCreditFacilitySublimit_a79f471b-25ba-4a3d-9f75-5d226d7bc4c3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_LineofCreditFacilitySwinglineSubfacility_b22aca91-9148-4d96-8cc2-15315d171a02" xlink:href="oke-20231231.xsd#oke_LineofCreditFacilitySwinglineSubfacility"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1fd47d7f-1d24-4109-950f-2cbb914016b1" xlink:to="loc_oke_LineofCreditFacilitySwinglineSubfacility_b22aca91-9148-4d96-8cc2-15315d171a02" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_LineOfCreditFacilityOptionToIncreaseBorrowingCapacity_22587a57-e9a3-4601-8776-d070d52d7e2d" xlink:href="oke-20231231.xsd#oke_LineOfCreditFacilityOptionToIncreaseBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1fd47d7f-1d24-4109-950f-2cbb914016b1" xlink:to="loc_oke_LineOfCreditFacilityOptionToIncreaseBorrowingCapacity_22587a57-e9a3-4601-8776-d070d52d7e2d" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_DebtInstrumentVariableRateApplicableMargin_6d127e73-d11e-4cba-a6a1-532f50569e91" xlink:href="oke-20231231.xsd#oke_DebtInstrumentVariableRateApplicableMargin"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1fd47d7f-1d24-4109-950f-2cbb914016b1" xlink:to="loc_oke_DebtInstrumentVariableRateApplicableMargin_6d127e73-d11e-4cba-a6a1-532f50569e91" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_04bc5b0c-3f43-422d-ba6b-d182ef321290" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1fd47d7f-1d24-4109-950f-2cbb914016b1" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_04bc5b0c-3f43-422d-ba6b-d182ef321290" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityCommitmentFeePercentage_b86f7fad-eb2b-4af3-bb53-e6b943e0856b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LineOfCreditFacilityCommitmentFeePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1fd47d7f-1d24-4109-950f-2cbb914016b1" xlink:to="loc_us-gaap_LineOfCreditFacilityCommitmentFeePercentage_b86f7fad-eb2b-4af3-bb53-e6b943e0856b" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_DebtInstrumentNumberOfExtensions_871180d7-6926-4914-8d60-1242d99bc7e7" xlink:href="oke-20231231.xsd#oke_DebtInstrumentNumberOfExtensions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1fd47d7f-1d24-4109-950f-2cbb914016b1" xlink:to="loc_oke_DebtInstrumentNumberOfExtensions_871180d7-6926-4914-8d60-1242d99bc7e7" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_DebtInstrumentTermOfExtension_1f8376a2-b639-4fab-9f67-c57efd82cb63" xlink:href="oke-20231231.xsd#oke_DebtInstrumentTermOfExtension"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1fd47d7f-1d24-4109-950f-2cbb914016b1" xlink:to="loc_oke_DebtInstrumentTermOfExtension_1f8376a2-b639-4fab-9f67-c57efd82cb63" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_IndebtednessToAdjustedEbitdaCurrent_d295e601-a7f3-4856-bcef-4d59edd176b9" xlink:href="oke-20231231.xsd#oke_IndebtednessToAdjustedEbitdaCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1fd47d7f-1d24-4109-950f-2cbb914016b1" xlink:to="loc_oke_IndebtednessToAdjustedEbitdaCurrent_d295e601-a7f3-4856-bcef-4d59edd176b9" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_98e29d24-4778-407a-8100-37efb80e3b23" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1fd47d7f-1d24-4109-950f-2cbb914016b1" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_98e29d24-4778-407a-8100-37efb80e3b23" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_f37d2143-bd1a-4d4d-8798-d98ab1314fdc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1fd47d7f-1d24-4109-950f-2cbb914016b1" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_f37d2143-bd1a-4d4d-8798-d98ab1314fdc" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt_ada1bbae-647d-46e2-9289-c42192359624" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1fd47d7f-1d24-4109-950f-2cbb914016b1" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt_ada1bbae-647d-46e2-9289-c42192359624" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromDebtNetOfIssuanceCosts_40abed97-b1e1-48ad-be22-0af1f147698f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromDebtNetOfIssuanceCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1fd47d7f-1d24-4109-950f-2cbb914016b1" xlink:to="loc_us-gaap_ProceedsFromDebtNetOfIssuanceCosts_40abed97-b1e1-48ad-be22-0af1f147698f" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ExtinguishmentOfDebtAmount_015fd6cf-8874-4df9-a12e-c06b50c6ef02" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ExtinguishmentOfDebtAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1fd47d7f-1d24-4109-950f-2cbb914016b1" xlink:to="loc_us-gaap_ExtinguishmentOfDebtAmount_015fd6cf-8874-4df9-a12e-c06b50c6ef02" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebt_63f1ecb7-d811-4232-be07-ff7637a9c35f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RepaymentsOfLongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1fd47d7f-1d24-4109-950f-2cbb914016b1" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebt_63f1ecb7-d811-4232-be07-ff7637a9c35f" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_ff1027d0-6930-4b7d-a8d5-285f7bb8b14e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1fd47d7f-1d24-4109-950f-2cbb914016b1" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_ff1027d0-6930-4b7d-a8d5-285f7bb8b14e" xlink:type="arc" order="18"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfDebt_b7272bf5-9248-4ad5-8234-7847f6b51184" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RepaymentsOfDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1fd47d7f-1d24-4109-950f-2cbb914016b1" xlink:to="loc_us-gaap_RepaymentsOfDebt_b7272bf5-9248-4ad5-8234-7847f6b51184" xlink:type="arc" order="19"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPricePercentage_5c6fd092-8c17-4a99-8254-cd6fc30cd0d7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentRedemptionPricePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1fd47d7f-1d24-4109-950f-2cbb914016b1" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPricePercentage_5c6fd092-8c17-4a99-8254-cd6fc30cd0d7" xlink:type="arc" order="20"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_LongtermDebtRepurchasedFaceAmount_86b5b70a-b8b8-4d6f-81ba-2e8f083d1418" xlink:href="oke-20231231.xsd#oke_LongtermDebtRepurchasedFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1fd47d7f-1d24-4109-950f-2cbb914016b1" xlink:to="loc_oke_LongtermDebtRepurchasedFaceAmount_86b5b70a-b8b8-4d6f-81ba-2e8f083d1418" xlink:type="arc" order="21"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfSeniorDebt_866a3374-6660-4586-a3eb-562d4710c74b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RepaymentsOfSeniorDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1fd47d7f-1d24-4109-950f-2cbb914016b1" xlink:to="loc_us-gaap_RepaymentsOfSeniorDebt_866a3374-6660-4586-a3eb-562d4710c74b" xlink:type="arc" order="22"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.oneok.com/role/DEBTAggregateMaturitiesofLongTermDebtDetails" xlink:type="simple" xlink:href="oke-20231231.xsd#DEBTAggregateMaturitiesofLongTermDebtDetails"/>
  <link:definitionLink xlink:role="http://www.oneok.com/role/DEBTAggregateMaturitiesofLongTermDebtDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_672e64c2-079d-47a0-b5e8-f04500b39138" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_75bb2fe3-3a37-495f-91a1-1096dfa6b954" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_672e64c2-079d-47a0-b5e8-f04500b39138" xlink:to="loc_us-gaap_DebtInstrumentTable_75bb2fe3-3a37-495f-91a1-1096dfa6b954" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_57369abe-3952-4bc5-9164-fa61c887199e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_75bb2fe3-3a37-495f-91a1-1096dfa6b954" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_57369abe-3952-4bc5-9164-fa61c887199e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_57369abe-3952-4bc5-9164-fa61c887199e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_57369abe-3952-4bc5-9164-fa61c887199e" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_57369abe-3952-4bc5-9164-fa61c887199e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_411abafb-e714-424f-8460-6c9d173838ea" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_57369abe-3952-4bc5-9164-fa61c887199e" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_411abafb-e714-424f-8460-6c9d173838ea" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotesMember_08e74cd3-7f04-4e15-a71e-0dfa21ad30bc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_411abafb-e714-424f-8460-6c9d173838ea" xlink:to="loc_us-gaap_SeniorNotesMember_08e74cd3-7f04-4e15-a71e-0dfa21ad30bc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnsecuredDebtMember_ba7624d2-556a-47cd-9d15-7f22651c3a0f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_UnsecuredDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_411abafb-e714-424f-8460-6c9d173838ea" xlink:to="loc_us-gaap_UnsecuredDebtMember_ba7624d2-556a-47cd-9d15-7f22651c3a0f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_8cd81edb-5c1b-4ec5-ab86-54474ca94011" xlink:href="https://xbrl.sec.gov/dei/2023/dei-2023.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_75bb2fe3-3a37-495f-91a1-1096dfa6b954" xlink:to="loc_dei_LegalEntityAxis_8cd81edb-5c1b-4ec5-ab86-54474ca94011" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_8cd81edb-5c1b-4ec5-ab86-54474ca94011_default" xlink:href="https://xbrl.sec.gov/dei/2023/dei-2023.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_8cd81edb-5c1b-4ec5-ab86-54474ca94011" xlink:to="loc_dei_EntityDomain_8cd81edb-5c1b-4ec5-ab86-54474ca94011_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_e0720dc1-e56b-44df-b3d8-b0b6c4fbd50f" xlink:href="https://xbrl.sec.gov/dei/2023/dei-2023.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_8cd81edb-5c1b-4ec5-ab86-54474ca94011" xlink:to="loc_dei_EntityDomain_e0720dc1-e56b-44df-b3d8-b0b6c4fbd50f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_GuardianPipelineMember_4b63de50-fc13-47b3-9f65-50d7a2fb4912" xlink:href="oke-20231231.xsd#oke_GuardianPipelineMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_e0720dc1-e56b-44df-b3d8-b0b6c4fbd50f" xlink:to="loc_oke_GuardianPipelineMember_4b63de50-fc13-47b3-9f65-50d7a2fb4912" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_VikingPipelineMember_aff342ae-dede-413b-8176-7c11e0fb5d78" xlink:href="oke-20231231.xsd#oke_VikingPipelineMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_e0720dc1-e56b-44df-b3d8-b0b6c4fbd50f" xlink:to="loc_oke_VikingPipelineMember_aff342ae-dede-413b-8176-7c11e0fb5d78" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentsAxis_782e6e55-f81c-4a7a-837a-83b05be6ecc3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherCommitmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_75bb2fe3-3a37-495f-91a1-1096dfa6b954" xlink:to="loc_us-gaap_OtherCommitmentsAxis_782e6e55-f81c-4a7a-837a-83b05be6ecc3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentsDomain_782e6e55-f81c-4a7a-837a-83b05be6ecc3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherCommitmentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_OtherCommitmentsAxis_782e6e55-f81c-4a7a-837a-83b05be6ecc3" xlink:to="loc_us-gaap_OtherCommitmentsDomain_782e6e55-f81c-4a7a-837a-83b05be6ecc3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentsDomain_50df90a8-a53a-4557-be6e-dc3fa0ca3785" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherCommitmentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_OtherCommitmentsAxis_782e6e55-f81c-4a7a-837a-83b05be6ecc3" xlink:to="loc_us-gaap_OtherCommitmentsDomain_50df90a8-a53a-4557-be6e-dc3fa0ca3785" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_InterestObligationsOnDebtMember_a37fc905-4e07-483c-9c93-f19e0058434e" xlink:href="oke-20231231.xsd#oke_InterestObligationsOnDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsDomain_50df90a8-a53a-4557-be6e-dc3fa0ca3785" xlink:to="loc_oke_InterestObligationsOnDebtMember_a37fc905-4e07-483c-9c93-f19e0058434e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_16853d3c-2349-4e45-a0a8-32eb1c0de37c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_672e64c2-079d-47a0-b5e8-f04500b39138" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_16853d3c-2349-4e45-a0a8-32eb1c0de37c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_72ee18aa-12a6-46ac-93ad-8b75cf21bc9c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_672e64c2-079d-47a0-b5e8-f04500b39138" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_72ee18aa-12a6-46ac-93ad-8b75cf21bc9c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_3111220d-bf5f-48e4-8518-2de3b64ccad7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_672e64c2-079d-47a0-b5e8-f04500b39138" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_3111220d-bf5f-48e4-8518-2de3b64ccad7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_4a248efc-cd9f-479b-9792-163c20072e99" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_672e64c2-079d-47a0-b5e8-f04500b39138" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_4a248efc-cd9f-479b-9792-163c20072e99" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_a73cfa9c-4c6b-43dd-9f04-29ccdf1447ae" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_672e64c2-079d-47a0-b5e8-f04500b39138" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_a73cfa9c-4c6b-43dd-9f04-29ccdf1447ae" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentDueInNextTwelveMonths_6503e8c9-185a-43c6-a32c-c25c454738aa" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherCommitmentDueInNextTwelveMonths"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_672e64c2-079d-47a0-b5e8-f04500b39138" xlink:to="loc_us-gaap_OtherCommitmentDueInNextTwelveMonths_6503e8c9-185a-43c6-a32c-c25c454738aa" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentDueInSecondYear_a8725c22-293d-4dab-841a-c965c5b80907" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherCommitmentDueInSecondYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_672e64c2-079d-47a0-b5e8-f04500b39138" xlink:to="loc_us-gaap_OtherCommitmentDueInSecondYear_a8725c22-293d-4dab-841a-c965c5b80907" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentDueInThirdYear_e05811db-4b92-40fe-b58d-9ff528b9adfd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherCommitmentDueInThirdYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_672e64c2-079d-47a0-b5e8-f04500b39138" xlink:to="loc_us-gaap_OtherCommitmentDueInThirdYear_e05811db-4b92-40fe-b58d-9ff528b9adfd" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentDueInFourthYear_749b39c6-ee2c-4390-ae89-88fae9ff2797" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherCommitmentDueInFourthYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_672e64c2-079d-47a0-b5e8-f04500b39138" xlink:to="loc_us-gaap_OtherCommitmentDueInFourthYear_749b39c6-ee2c-4390-ae89-88fae9ff2797" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentDueInFifthYear_86bad0f2-698b-4033-9da2-ce4ac2ef5b47" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherCommitmentDueInFifthYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_672e64c2-079d-47a0-b5e8-f04500b39138" xlink:to="loc_us-gaap_OtherCommitmentDueInFifthYear_86bad0f2-698b-4033-9da2-ce4ac2ef5b47" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_TotalAggregateMaturitiesOfLongTermDebtOutstandingAndInterestObligationsOnDebtYearOne_611555ae-f2d4-4235-a548-62e991f5143c" xlink:href="oke-20231231.xsd#oke_TotalAggregateMaturitiesOfLongTermDebtOutstandingAndInterestObligationsOnDebtYearOne"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_672e64c2-079d-47a0-b5e8-f04500b39138" xlink:to="loc_oke_TotalAggregateMaturitiesOfLongTermDebtOutstandingAndInterestObligationsOnDebtYearOne_611555ae-f2d4-4235-a548-62e991f5143c" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_TotalAggregateMaturitiesOfLongTermDebtOutstandingAndInterestObligationsOnDebtYearTwo_012083a1-97e8-49a5-8d3f-c8d3e2d17483" xlink:href="oke-20231231.xsd#oke_TotalAggregateMaturitiesOfLongTermDebtOutstandingAndInterestObligationsOnDebtYearTwo"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_672e64c2-079d-47a0-b5e8-f04500b39138" xlink:to="loc_oke_TotalAggregateMaturitiesOfLongTermDebtOutstandingAndInterestObligationsOnDebtYearTwo_012083a1-97e8-49a5-8d3f-c8d3e2d17483" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_TotalAggregateMaturitiesOfLongTermDebtOutstandingAndInterestObligationsOnDebtYearThree_a2e7fe5d-68b0-42e4-8839-18becceb1101" xlink:href="oke-20231231.xsd#oke_TotalAggregateMaturitiesOfLongTermDebtOutstandingAndInterestObligationsOnDebtYearThree"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_672e64c2-079d-47a0-b5e8-f04500b39138" xlink:to="loc_oke_TotalAggregateMaturitiesOfLongTermDebtOutstandingAndInterestObligationsOnDebtYearThree_a2e7fe5d-68b0-42e4-8839-18becceb1101" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_TotalAggregateMaturitiesOfLongTermDebtOutstandingAndInterestObligationsOnDebtYearFour_731fd73e-e91e-4ca0-96db-5e18383b31be" xlink:href="oke-20231231.xsd#oke_TotalAggregateMaturitiesOfLongTermDebtOutstandingAndInterestObligationsOnDebtYearFour"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_672e64c2-079d-47a0-b5e8-f04500b39138" xlink:to="loc_oke_TotalAggregateMaturitiesOfLongTermDebtOutstandingAndInterestObligationsOnDebtYearFour_731fd73e-e91e-4ca0-96db-5e18383b31be" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_TotalAggregateMaturitiesOfLongTermDebtOutstandingAndInterestObligationsOnDebtYearFive_3f36e8a7-820c-4705-9587-925bdc4de7c4" xlink:href="oke-20231231.xsd#oke_TotalAggregateMaturitiesOfLongTermDebtOutstandingAndInterestObligationsOnDebtYearFive"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_672e64c2-079d-47a0-b5e8-f04500b39138" xlink:to="loc_oke_TotalAggregateMaturitiesOfLongTermDebtOutstandingAndInterestObligationsOnDebtYearFive_3f36e8a7-820c-4705-9587-925bdc4de7c4" xlink:type="arc" order="14"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.oneok.com/role/EQUITYDetails" xlink:type="simple" xlink:href="oke-20231231.xsd#EQUITYDetails"/>
  <link:definitionLink xlink:role="http://www.oneok.com/role/EQUITYDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_15ba2eea-7eb3-43ed-855d-5e8c38692d10" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_39d1a973-859e-41a3-a265-573f69f04915" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_15ba2eea-7eb3-43ed-855d-5e8c38692d10" xlink:to="loc_us-gaap_StatementTable_39d1a973-859e-41a3-a265-573f69f04915" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_b3419ba4-2275-4b57-af29-366bdfe3b851" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_39d1a973-859e-41a3-a265-573f69f04915" xlink:to="loc_us-gaap_StatementClassOfStockAxis_b3419ba4-2275-4b57-af29-366bdfe3b851" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_b3419ba4-2275-4b57-af29-366bdfe3b851_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_b3419ba4-2275-4b57-af29-366bdfe3b851" xlink:to="loc_us-gaap_ClassOfStockDomain_b3419ba4-2275-4b57-af29-366bdfe3b851_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_5848e128-2c7f-42e1-b2f9-0e97a151e1ca" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_b3419ba4-2275-4b57-af29-366bdfe3b851" xlink:to="loc_us-gaap_ClassOfStockDomain_5848e128-2c7f-42e1-b2f9-0e97a151e1ca" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeriesAPreferredStockMember_693a9738-32c0-4f67-ac9e-42bf4ae77651" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SeriesAPreferredStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_5848e128-2c7f-42e1-b2f9-0e97a151e1ca" xlink:to="loc_us-gaap_SeriesAPreferredStockMember_693a9738-32c0-4f67-ac9e-42bf4ae77651" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeriesBPreferredStockMember_2ea2f0f9-869c-40cc-b818-644da52da132" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SeriesBPreferredStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_5848e128-2c7f-42e1-b2f9-0e97a151e1ca" xlink:to="loc_us-gaap_SeriesBPreferredStockMember_2ea2f0f9-869c-40cc-b818-644da52da132" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeriesEPreferredStockMember_40a46a20-4ed2-49a1-9d5f-2b4687a74db9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SeriesEPreferredStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_5848e128-2c7f-42e1-b2f9-0e97a151e1ca" xlink:to="loc_us-gaap_SeriesEPreferredStockMember_40a46a20-4ed2-49a1-9d5f-2b4687a74db9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_8d5c4ba5-5963-47d1-9324-35b87bb49b7c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SubsequentEventTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_39d1a973-859e-41a3-a265-573f69f04915" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_8d5c4ba5-5963-47d1-9324-35b87bb49b7c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_8d5c4ba5-5963-47d1-9324-35b87bb49b7c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_8d5c4ba5-5963-47d1-9324-35b87bb49b7c" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_8d5c4ba5-5963-47d1-9324-35b87bb49b7c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_6dcdac8c-13be-47e4-a9cf-08b357f0509d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_8d5c4ba5-5963-47d1-9324-35b87bb49b7c" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_6dcdac8c-13be-47e4-a9cf-08b357f0509d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventMember_aea5e3b3-432f-4cb7-88ab-ef485544cb7e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SubsequentEventMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_6dcdac8c-13be-47e4-a9cf-08b357f0509d" xlink:to="loc_us-gaap_SubsequentEventMember_aea5e3b3-432f-4cb7-88ab-ef485544cb7e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_1398e0f3-b769-4a9f-bffc-bb45150d7b39" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_39d1a973-859e-41a3-a265-573f69f04915" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_1398e0f3-b769-4a9f-bffc-bb45150d7b39" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1398e0f3-b769-4a9f-bffc-bb45150d7b39_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_1398e0f3-b769-4a9f-bffc-bb45150d7b39" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1398e0f3-b769-4a9f-bffc-bb45150d7b39_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1beb6a17-e1a6-4d49-a8ef-a06291d12410" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_1398e0f3-b769-4a9f-bffc-bb45150d7b39" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1beb6a17-e1a6-4d49-a8ef-a06291d12410" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_MagellanAcquisitionMember_b8ace13d-a951-4fb5-bc5d-54f08562f6a6" xlink:href="oke-20231231.xsd#oke_MagellanAcquisitionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1beb6a17-e1a6-4d49-a8ef-a06291d12410" xlink:to="loc_oke_MagellanAcquisitionMember_b8ace13d-a951-4fb5-bc5d-54f08562f6a6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityInterestIssuedOrIssuableByTypeAxis_73113b3f-10f9-43ff-8b7c-b9e71858cfb3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityInterestIssuedOrIssuableByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_39d1a973-859e-41a3-a265-573f69f04915" xlink:to="loc_us-gaap_EquityInterestIssuedOrIssuableByTypeAxis_73113b3f-10f9-43ff-8b7c-b9e71858cfb3" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityInterestIssuedOrIssuableTypeDomain_73113b3f-10f9-43ff-8b7c-b9e71858cfb3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityInterestIssuedOrIssuableTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_EquityInterestIssuedOrIssuableByTypeAxis_73113b3f-10f9-43ff-8b7c-b9e71858cfb3" xlink:to="loc_us-gaap_EquityInterestIssuedOrIssuableTypeDomain_73113b3f-10f9-43ff-8b7c-b9e71858cfb3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityInterestIssuedOrIssuableTypeDomain_be50f3f7-5ce6-4b50-8ab9-2aa0ef6f9c94" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityInterestIssuedOrIssuableTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_EquityInterestIssuedOrIssuableByTypeAxis_73113b3f-10f9-43ff-8b7c-b9e71858cfb3" xlink:to="loc_us-gaap_EquityInterestIssuedOrIssuableTypeDomain_be50f3f7-5ce6-4b50-8ab9-2aa0ef6f9c94" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_7cb9be19-d34f-4f0d-b899-3f54252d5b86" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityInterestIssuedOrIssuableTypeDomain_be50f3f7-5ce6-4b50-8ab9-2aa0ef6f9c94" xlink:to="loc_us-gaap_CommonStockMember_7cb9be19-d34f-4f0d-b899-3f54252d5b86" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_0a582a39-159d-4348-ae8d-3d0eaafb08d3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_39d1a973-859e-41a3-a265-573f69f04915" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_0a582a39-159d-4348-ae8d-3d0eaafb08d3" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_0a582a39-159d-4348-ae8d-3d0eaafb08d3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_0a582a39-159d-4348-ae8d-3d0eaafb08d3" xlink:to="loc_us-gaap_EquityComponentDomain_0a582a39-159d-4348-ae8d-3d0eaafb08d3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_534909fb-8640-49e0-9809-f8b01319159f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_0a582a39-159d-4348-ae8d-3d0eaafb08d3" xlink:to="loc_us-gaap_EquityComponentDomain_534909fb-8640-49e0-9809-f8b01319159f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_IssuedUnderEquityAgreementMember_0d4fc458-9e26-45e6-9ce2-3d9d51e17d59" xlink:href="oke-20231231.xsd#oke_IssuedUnderEquityAgreementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_534909fb-8640-49e0-9809-f8b01319159f" xlink:to="loc_oke_IssuedUnderEquityAgreementMember_0d4fc458-9e26-45e6-9ce2-3d9d51e17d59" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockSharesOutstanding_ef7ef1da-d0d3-43cc-9f69-4a5156b295bb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PreferredStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_15ba2eea-7eb3-43ed-855d-5e8c38692d10" xlink:to="loc_us-gaap_PreferredStockSharesOutstanding_ef7ef1da-d0d3-43cc-9f69-4a5156b295bb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuableEntitySharesIssuedPerAcquireeShare_f9cb3ff4-af00-4acd-8fa5-9dc44d02a4bc" xlink:href="oke-20231231.xsd#oke_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuableEntitySharesIssuedPerAcquireeShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_15ba2eea-7eb3-43ed-855d-5e8c38692d10" xlink:to="loc_oke_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuableEntitySharesIssuedPerAcquireeShare_f9cb3ff4-af00-4acd-8fa5-9dc44d02a4bc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionSharePrice_1d4c75f9-00ea-4fd7-801a-ba59430b32ef" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionSharePrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_15ba2eea-7eb3-43ed-855d-5e8c38692d10" xlink:to="loc_us-gaap_BusinessAcquisitionSharePrice_1d4c75f9-00ea-4fd7-801a-ba59430b32ef" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued_ec0d7a96-4ac0-41f2-9653-5e45c7e3d549" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_15ba2eea-7eb3-43ed-855d-5e8c38692d10" xlink:to="loc_us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued_ec0d7a96-4ac0-41f2-9653-5e45c7e3d549" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable_daec0d42-cd03-4f59-86d5-8ebcac5b5c83" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_15ba2eea-7eb3-43ed-855d-5e8c38692d10" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable_daec0d42-cd03-4f59-86d5-8ebcac5b5c83" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_AggregateAmountOfCommonSharesAvailableForIssuanceAndSaleUnderEquityDistributionAgreement_db29e46e-e810-4119-b448-e1df2b4dcce2" xlink:href="oke-20231231.xsd#oke_AggregateAmountOfCommonSharesAvailableForIssuanceAndSaleUnderEquityDistributionAgreement"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_15ba2eea-7eb3-43ed-855d-5e8c38692d10" xlink:to="loc_oke_AggregateAmountOfCommonSharesAvailableForIssuanceAndSaleUnderEquityDistributionAgreement_db29e46e-e810-4119-b448-e1df2b4dcce2" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_CommonStockSoldUnderEquityDistributionAgreement_06da49ca-6346-44c2-8f92-45432723ee1e" xlink:href="oke-20231231.xsd#oke_CommonStockSoldUnderEquityDistributionAgreement"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_15ba2eea-7eb3-43ed-855d-5e8c38692d10" xlink:to="loc_oke_CommonStockSoldUnderEquityDistributionAgreement_06da49ca-6346-44c2-8f92-45432723ee1e" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_6abb8bc7-0b6e-40ac-8243-3ae21e59d80a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockRepurchaseProgramAuthorizedAmount1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_15ba2eea-7eb3-43ed-855d-5e8c38692d10" xlink:to="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_6abb8bc7-0b6e-40ac-8243-3ae21e59d80a" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchaseProgramPeriodInForce1_29a08155-1307-4de8-a169-dfae5c6a4707" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockRepurchaseProgramPeriodInForce1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_15ba2eea-7eb3-43ed-855d-5e8c38692d10" xlink:to="loc_us-gaap_StockRepurchaseProgramPeriodInForce1_29a08155-1307-4de8-a169-dfae5c6a4707" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsCash_a9af14cc-d49c-4e88-a917-450c676942dc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DividendsCash"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_15ba2eea-7eb3-43ed-855d-5e8c38692d10" xlink:to="loc_us-gaap_DividendsCash_a9af14cc-d49c-4e88-a917-450c676942dc" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockDividendsPerShareDeclared_0e0c357d-b65f-4b06-a915-dc47bfdd2de3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommonStockDividendsPerShareDeclared"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_15ba2eea-7eb3-43ed-855d-5e8c38692d10" xlink:to="loc_us-gaap_CommonStockDividendsPerShareDeclared_0e0c357d-b65f-4b06-a915-dc47bfdd2de3" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_CommonStockDividendsPerShareDeclaredAnnualized_62f9e712-8c1a-4a42-806e-a8dc09631ecb" xlink:href="oke-20231231.xsd#oke_CommonStockDividendsPerShareDeclaredAnnualized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_15ba2eea-7eb3-43ed-855d-5e8c38692d10" xlink:to="loc_oke_CommonStockDividendsPerShareDeclaredAnnualized_62f9e712-8c1a-4a42-806e-a8dc09631ecb" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockDividendRatePercentage_c59e9765-f87d-4e13-b300-1a021c473abc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PreferredStockDividendRatePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_15ba2eea-7eb3-43ed-855d-5e8c38692d10" xlink:to="loc_us-gaap_PreferredStockDividendRatePercentage_c59e9765-f87d-4e13-b300-1a021c473abc" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsPreferredStockCash_ed447e07-457f-416d-aaf0-0b39c795651a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DividendsPreferredStockCash"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_15ba2eea-7eb3-43ed-855d-5e8c38692d10" xlink:to="loc_us-gaap_DividendsPreferredStockCash_ed447e07-457f-416d-aaf0-0b39c795651a" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsPreferredStock_5fe995e1-2ffa-4f21-9741-bd55762ad465" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DividendsPreferredStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_15ba2eea-7eb3-43ed-855d-5e8c38692d10" xlink:to="loc_us-gaap_DividendsPreferredStock_5fe995e1-2ffa-4f21-9741-bd55762ad465" xlink:type="arc" order="14"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.oneok.com/role/SHAREBASEDPAYMENTSNarrativeDetails" xlink:type="simple" xlink:href="oke-20231231.xsd#SHAREBASEDPAYMENTSNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.oneok.com/role/SHAREBASEDPAYMENTSNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_e0adf408-6f5f-488a-b28c-e1131be612ee" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_5cc30fab-a725-461a-be7e-51df73a682c4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_e0adf408-6f5f-488a-b28c-e1131be612ee" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_5cc30fab-a725-461a-be7e-51df73a682c4" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_4a5ed5eb-2917-46de-b9ca-3bdaf273284e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_5cc30fab-a725-461a-be7e-51df73a682c4" xlink:to="loc_us-gaap_AwardTypeAxis_4a5ed5eb-2917-46de-b9ca-3bdaf273284e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_4a5ed5eb-2917-46de-b9ca-3bdaf273284e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_4a5ed5eb-2917-46de-b9ca-3bdaf273284e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_4a5ed5eb-2917-46de-b9ca-3bdaf273284e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_e134d380-cb79-490c-b9c9-c5d0d90b2b6d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_4a5ed5eb-2917-46de-b9ca-3bdaf273284e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_e134d380-cb79-490c-b9c9-c5d0d90b2b6d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_d0799f3c-7c02-4d4a-8d8b-f12db8924049" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_e134d380-cb79-490c-b9c9-c5d0d90b2b6d" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_d0799f3c-7c02-4d4a-8d8b-f12db8924049" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PerformanceSharesMember_12dfeca8-a5bc-42b6-866f-874c4b08b209" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PerformanceSharesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_e134d380-cb79-490c-b9c9-c5d0d90b2b6d" xlink:to="loc_us-gaap_PerformanceSharesMember_12dfeca8-a5bc-42b6-866f-874c4b08b209" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_EmployeeStockPurchasePlanMember_6cfa18bf-3a2c-4d67-a5dc-f197d8a92e88" xlink:href="oke-20231231.xsd#oke_EmployeeStockPurchasePlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_e134d380-cb79-490c-b9c9-c5d0d90b2b6d" xlink:to="loc_oke_EmployeeStockPurchasePlanMember_6cfa18bf-3a2c-4d67-a5dc-f197d8a92e88" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_EmployeeStockAwardProgramMember_35fc5ca8-2f20-4f73-9bfc-78bddb6c4969" xlink:href="oke-20231231.xsd#oke_EmployeeStockAwardProgramMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_e134d380-cb79-490c-b9c9-c5d0d90b2b6d" xlink:to="loc_oke_EmployeeStockAwardProgramMember_35fc5ca8-2f20-4f73-9bfc-78bddb6c4969" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameAxis_da64d757-d84c-4ae6-80ad-8fdcb72f7f35" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PlanNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_5cc30fab-a725-461a-be7e-51df73a682c4" xlink:to="loc_us-gaap_PlanNameAxis_da64d757-d84c-4ae6-80ad-8fdcb72f7f35" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_da64d757-d84c-4ae6-80ad-8fdcb72f7f35_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_da64d757-d84c-4ae6-80ad-8fdcb72f7f35" xlink:to="loc_us-gaap_PlanNameDomain_da64d757-d84c-4ae6-80ad-8fdcb72f7f35_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_75d99c06-8631-4919-8612-225b3dd122a0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_da64d757-d84c-4ae6-80ad-8fdcb72f7f35" xlink:to="loc_us-gaap_PlanNameDomain_75d99c06-8631-4919-8612-225b3dd122a0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_MMPLTIPMember_a5c45040-d690-4e3f-9ef1-59306e210980" xlink:href="oke-20231231.xsd#oke_MMPLTIPMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_75d99c06-8631-4919-8612-225b3dd122a0" xlink:to="loc_oke_MMPLTIPMember_a5c45040-d690-4e3f-9ef1-59306e210980" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_EquityIncentivePlanMember_0d6042e3-457f-4587-9ecf-2e9ec1107b3d" xlink:href="oke-20231231.xsd#oke_EquityIncentivePlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_75d99c06-8631-4919-8612-225b3dd122a0" xlink:to="loc_oke_EquityIncentivePlanMember_0d6042e3-457f-4587-9ecf-2e9ec1107b3d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_NonEmployeesAndDirectorsMember_24019b7e-83b8-4858-b9c2-c3992a8b02c3" xlink:href="oke-20231231.xsd#oke_NonEmployeesAndDirectorsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_75d99c06-8631-4919-8612-225b3dd122a0" xlink:to="loc_oke_NonEmployeesAndDirectorsMember_24019b7e-83b8-4858-b9c2-c3992a8b02c3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_593e1ca2-d290-435b-9e75-059ea8e57dc4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_5cc30fab-a725-461a-be7e-51df73a682c4" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_593e1ca2-d290-435b-9e75-059ea8e57dc4" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_593e1ca2-d290-435b-9e75-059ea8e57dc4_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_593e1ca2-d290-435b-9e75-059ea8e57dc4" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_593e1ca2-d290-435b-9e75-059ea8e57dc4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_86e4ea13-d080-49e5-8e08-14eeae1825ce" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_593e1ca2-d290-435b-9e75-059ea8e57dc4" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_86e4ea13-d080-49e5-8e08-14eeae1825ce" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_MagellanAcquisitionMember_97dc981c-ab6b-45d8-8f4f-ef1cb1e0fd58" xlink:href="oke-20231231.xsd#oke_MagellanAcquisitionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_86e4ea13-d080-49e5-8e08-14eeae1825ce" xlink:to="loc_oke_MagellanAcquisitionMember_97dc981c-ab6b-45d8-8f4f-ef1cb1e0fd58" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_91d5eea2-9e84-4ea5-abc9-97de10408c5d" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_5cc30fab-a725-461a-be7e-51df73a682c4" xlink:to="loc_srt_RangeAxis_91d5eea2-9e84-4ea5-abc9-97de10408c5d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_91d5eea2-9e84-4ea5-abc9-97de10408c5d_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_91d5eea2-9e84-4ea5-abc9-97de10408c5d" xlink:to="loc_srt_RangeMember_91d5eea2-9e84-4ea5-abc9-97de10408c5d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_27bf9efc-18cc-4322-8f1f-8791999cb46b" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_91d5eea2-9e84-4ea5-abc9-97de10408c5d" xlink:to="loc_srt_RangeMember_27bf9efc-18cc-4322-8f1f-8791999cb46b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_5805ff9c-c0fb-4054-9990-1861928dcb15" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_27bf9efc-18cc-4322-8f1f-8791999cb46b" xlink:to="loc_srt_MinimumMember_5805ff9c-c0fb-4054-9990-1861928dcb15" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_d21cae30-4069-47a6-ad82-c556ac6f885d" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_27bf9efc-18cc-4322-8f1f-8791999cb46b" xlink:to="loc_srt_MaximumMember_d21cae30-4069-47a6-ad82-c556ac6f885d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_584d6a0b-1f25-46c7-9ec8-b006aaf2f901" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommonStockCapitalSharesReservedForFutureIssuance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_e0adf408-6f5f-488a-b28c-e1131be612ee" xlink:to="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_584d6a0b-1f25-46c7-9ec8-b006aaf2f901" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_c8047ef1-e21b-4ac7-8949-fcb333840cd2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_e0adf408-6f5f-488a-b28c-e1131be612ee" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_c8047ef1-e21b-4ac7-8949-fcb333840cd2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_ebd78fa4-5b11-44e0-925d-8e0c2e3de4c0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_e0adf408-6f5f-488a-b28c-e1131be612ee" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_ebd78fa4-5b11-44e0-925d-8e0c2e3de4c0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_StockIssuedInAcquisitionValueConversionOfAwards_303f6d7a-b139-4849-9685-cb5d5334ebb7" xlink:href="oke-20231231.xsd#oke_StockIssuedInAcquisitionValueConversionOfAwards"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_e0adf408-6f5f-488a-b28c-e1131be612ee" xlink:to="loc_oke_StockIssuedInAcquisitionValueConversionOfAwards_303f6d7a-b139-4849-9685-cb5d5334ebb7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_ShareBasedCompensationArrangementByShareBasedPaymentAwardCommonStockAsAPercentageOfPerformanceUnitsGranted_582982f7-d602-480e-97c1-10d856638d91" xlink:href="oke-20231231.xsd#oke_ShareBasedCompensationArrangementByShareBasedPaymentAwardCommonStockAsAPercentageOfPerformanceUnitsGranted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_e0adf408-6f5f-488a-b28c-e1131be612ee" xlink:to="loc_oke_ShareBasedCompensationArrangementByShareBasedPaymentAwardCommonStockAsAPercentageOfPerformanceUnitsGranted_582982f7-d602-480e-97c1-10d856638d91" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_MaximumValueofSharesForWhichAwardsMayBeIssuedToAParticipantDuringAnyYear_e903b9ba-8bd9-4d3c-8fb8-71747244a204" xlink:href="oke-20231231.xsd#oke_MaximumValueofSharesForWhichAwardsMayBeIssuedToAParticipantDuringAnyYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_e0adf408-6f5f-488a-b28c-e1131be612ee" xlink:to="loc_oke_MaximumValueofSharesForWhichAwardsMayBeIssuedToAParticipantDuringAnyYear_e903b9ba-8bd9-4d3c-8fb8-71747244a204" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_5d8957ae-6a63-4270-9339-c77308eb7906" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_e0adf408-6f5f-488a-b28c-e1131be612ee" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_5d8957ae-6a63-4270-9339-c77308eb7906" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_6dec4cf9-1b9c-4f7f-ab6f-cbb6e421bac1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_e0adf408-6f5f-488a-b28c-e1131be612ee" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_6dec4cf9-1b9c-4f7f-ab6f-cbb6e421bac1" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_ForfeitureRateMaximumInHundredths_e2c8150b-8926-40e3-a641-ee8b47bcd9f4" xlink:href="oke-20231231.xsd#oke_ForfeitureRateMaximumInHundredths"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_e0adf408-6f5f-488a-b28c-e1131be612ee" xlink:to="loc_oke_ForfeitureRateMaximumInHundredths_e2c8150b-8926-40e3-a641-ee8b47bcd9f4" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_b6c519c5-12d3-41e3-802d-54cac784f0ad" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_e0adf408-6f5f-488a-b28c-e1131be612ee" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_b6c519c5-12d3-41e3-802d-54cac784f0ad" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_d2c12e2c-1f4b-438c-8679-c0ee9ab88c13" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_e0adf408-6f5f-488a-b28c-e1131be612ee" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_d2c12e2c-1f4b-438c-8679-c0ee9ab88c13" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_6c68e15d-2ec2-4f73-936e-24c25b66bd0f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_e0adf408-6f5f-488a-b28c-e1131be612ee" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_6c68e15d-2ec2-4f73-936e-24c25b66bd0f" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_696857f1-3510-4f80-b79d-1122ff8c0396" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_e0adf408-6f5f-488a-b28c-e1131be612ee" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_696857f1-3510-4f80-b79d-1122ff8c0396" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_MaximumAllowablePercentageOfAnnualBasePayWithheldToPurchaseOurCommonStock_6436790d-720d-4a79-8035-e8772b1ea4ef" xlink:href="oke-20231231.xsd#oke_MaximumAllowablePercentageOfAnnualBasePayWithheldToPurchaseOurCommonStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_e0adf408-6f5f-488a-b28c-e1131be612ee" xlink:to="loc_oke_MaximumAllowablePercentageOfAnnualBasePayWithheldToPurchaseOurCommonStock_6436790d-720d-4a79-8035-e8772b1ea4ef" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_PurchasePricePercentageOfLowerOfItsGrantDateOrExerciseDateMarketPriceInHundredths_690194ed-21cf-4a4c-8985-7c499c410deb" xlink:href="oke-20231231.xsd#oke_PurchasePricePercentageOfLowerOfItsGrantDateOrExerciseDateMarketPriceInHundredths"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_e0adf408-6f5f-488a-b28c-e1131be612ee" xlink:to="loc_oke_PurchasePricePercentageOfLowerOfItsGrantDateOrExerciseDateMarketPriceInHundredths_690194ed-21cf-4a4c-8985-7c499c410deb" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_EmployeeParticipationInPlanInHundredths_46121d88-fe62-4e51-a385-5e9c9afcc6e1" xlink:href="oke-20231231.xsd#oke_EmployeeParticipationInPlanInHundredths"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_e0adf408-6f5f-488a-b28c-e1131be612ee" xlink:to="loc_oke_EmployeeParticipationInPlanInHundredths_46121d88-fe62-4e51-a385-5e9c9afcc6e1" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_SharesSoldUnderEmployeeStockPurchasePlan_2893e431-00e6-4e11-be3a-7a0b61f11177" xlink:href="oke-20231231.xsd#oke_SharesSoldUnderEmployeeStockPurchasePlan"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_e0adf408-6f5f-488a-b28c-e1131be612ee" xlink:to="loc_oke_SharesSoldUnderEmployeeStockPurchasePlan_2893e431-00e6-4e11-be3a-7a0b61f11177" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_SharePriceofSharesSoldUndertheEmployeeStockPurchasePlanInDollarsperShare_0ba04819-7f97-410e-8f47-799de3b3bb49" xlink:href="oke-20231231.xsd#oke_SharePriceofSharesSoldUndertheEmployeeStockPurchasePlanInDollarsperShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_e0adf408-6f5f-488a-b28c-e1131be612ee" xlink:to="loc_oke_SharePriceofSharesSoldUndertheEmployeeStockPurchasePlanInDollarsperShare_0ba04819-7f97-410e-8f47-799de3b3bb49" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_SharesAwardedUnderEmployeeStockAwardProgram_6f2952aa-4e20-45ea-9926-4af96b3ed769" xlink:href="oke-20231231.xsd#oke_SharesAwardedUnderEmployeeStockAwardProgram"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_e0adf408-6f5f-488a-b28c-e1131be612ee" xlink:to="loc_oke_SharesAwardedUnderEmployeeStockAwardProgram_6f2952aa-4e20-45ea-9926-4af96b3ed769" xlink:type="arc" order="18"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_ShareBasedPaymentArrangementShareIssueStockPriceTrigger_35f40a75-0a0b-4ae0-8377-162e2bee693c" xlink:href="oke-20231231.xsd#oke_ShareBasedPaymentArrangementShareIssueStockPriceTrigger"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_e0adf408-6f5f-488a-b28c-e1131be612ee" xlink:to="loc_oke_ShareBasedPaymentArrangementShareIssueStockPriceTrigger_35f40a75-0a0b-4ae0-8377-162e2bee693c" xlink:type="arc" order="19"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.oneok.com/role/SHAREBASEDPAYMENTSStockActivityDetails" xlink:type="simple" xlink:href="oke-20231231.xsd#SHAREBASEDPAYMENTSStockActivityDetails"/>
  <link:definitionLink xlink:role="http://www.oneok.com/role/SHAREBASEDPAYMENTSStockActivityDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823ddb73-2f9d-43bb-b30b-9dc49f3a8e8a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_51f62fee-d43e-47ac-925b-febbcc078a69" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823ddb73-2f9d-43bb-b30b-9dc49f3a8e8a" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_51f62fee-d43e-47ac-925b-febbcc078a69" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_8d5adafd-5f54-4aef-a1bb-5373b35244a6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_51f62fee-d43e-47ac-925b-febbcc078a69" xlink:to="loc_us-gaap_AwardTypeAxis_8d5adafd-5f54-4aef-a1bb-5373b35244a6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_8d5adafd-5f54-4aef-a1bb-5373b35244a6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_8d5adafd-5f54-4aef-a1bb-5373b35244a6" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_8d5adafd-5f54-4aef-a1bb-5373b35244a6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_58498f68-e1ac-45d5-bba3-fa106bdaca05" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_8d5adafd-5f54-4aef-a1bb-5373b35244a6" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_58498f68-e1ac-45d5-bba3-fa106bdaca05" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_f87e9754-0995-4178-abb4-85458d35c09a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_58498f68-e1ac-45d5-bba3-fa106bdaca05" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_f87e9754-0995-4178-abb4-85458d35c09a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PerformanceSharesMember_d126b4c2-d527-4110-a918-399956e9ae50" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PerformanceSharesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_58498f68-e1ac-45d5-bba3-fa106bdaca05" xlink:to="loc_us-gaap_PerformanceSharesMember_d126b4c2-d527-4110-a918-399956e9ae50" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_b8292354-f270-4da3-b24b-6c3937a1d165" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_51f62fee-d43e-47ac-925b-febbcc078a69" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_b8292354-f270-4da3-b24b-6c3937a1d165" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_b8292354-f270-4da3-b24b-6c3937a1d165_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_b8292354-f270-4da3-b24b-6c3937a1d165" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_b8292354-f270-4da3-b24b-6c3937a1d165_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_f2396af2-966f-4836-941d-9706cb14974b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_b8292354-f270-4da3-b24b-6c3937a1d165" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_f2396af2-966f-4836-941d-9706cb14974b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_MagellanAcquisitionMember_6b66e9a4-f366-4600-ac39-5275cbd40d77" xlink:href="oke-20231231.xsd#oke_MagellanAcquisitionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_f2396af2-966f-4836-941d-9706cb14974b" xlink:to="loc_oke_MagellanAcquisitionMember_6b66e9a4-f366-4600-ac39-5275cbd40d77" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfSharesRollForward_1b1ea8a4-29f0-4097-b32a-f1b1ac1cb1ed" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfSharesRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823ddb73-2f9d-43bb-b30b-9dc49f3a8e8a" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfSharesRollForward_1b1ea8a4-29f0-4097-b32a-f1b1ac1cb1ed" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_1b7e37f1-48ae-46b4-a123-91fb4d8951ca" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfSharesRollForward_1b1ea8a4-29f0-4097-b32a-f1b1ac1cb1ed" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_1b7e37f1-48ae-46b4-a123-91fb4d8951ca" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_8f1b1078-ba97-4308-8a86-424e08cf06fc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfSharesRollForward_1b1ea8a4-29f0-4097-b32a-f1b1ac1cb1ed" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_8f1b1078-ba97-4308-8a86-424e08cf06fc" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_e015f6df-e206-40a5-b632-71d29ef37d04" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfSharesRollForward_1b1ea8a4-29f0-4097-b32a-f1b1ac1cb1ed" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_e015f6df-e206-40a5-b632-71d29ef37d04" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_04849e69-d710-46f5-ba47-e75e823ffac5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfSharesRollForward_1b1ea8a4-29f0-4097-b32a-f1b1ac1cb1ed" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_04849e69-d710-46f5-ba47-e75e823ffac5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_35bd39d4-4764-4c08-8c64-b90a7c9e8772" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_847dc8eb-d98c-41ac-ae66-439e2d90dc45" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823ddb73-2f9d-43bb-b30b-9dc49f3a8e8a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_847dc8eb-d98c-41ac-ae66-439e2d90dc45" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_f7f4e653-9374-48fc-800b-6b2cdee01020" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_847dc8eb-d98c-41ac-ae66-439e2d90dc45" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_f7f4e653-9374-48fc-800b-6b2cdee01020" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_96251720-e3a3-4ef0-a710-e78be3735920" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_847dc8eb-d98c-41ac-ae66-439e2d90dc45" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_96251720-e3a3-4ef0-a710-e78be3735920" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_2221e99c-ea7a-41bd-9c60-95d5c04db3ed" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_847dc8eb-d98c-41ac-ae66-439e2d90dc45" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_2221e99c-ea7a-41bd-9c60-95d5c04db3ed" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_f863730b-c3ec-48a8-8f76-89f25291f334" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_847dc8eb-d98c-41ac-ae66-439e2d90dc45" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_f863730b-c3ec-48a8-8f76-89f25291f334" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_2e532f2c-bee7-494a-a163-d128c6387dfd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue_3a065863-8a15-43ca-aa95-23e045d6e13c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823ddb73-2f9d-43bb-b30b-9dc49f3a8e8a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue_3a065863-8a15-43ca-aa95-23e045d6e13c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantedinPeriodFairValue_a1467074-504b-42ac-991b-24d219b72fb3" xlink:href="oke-20231231.xsd#oke_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantedinPeriodFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823ddb73-2f9d-43bb-b30b-9dc49f3a8e8a" xlink:to="loc_oke_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantedinPeriodFairValue_a1467074-504b-42ac-991b-24d219b72fb3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_1c4aaf15-439c-4c5f-92a5-590eb291eafd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823ddb73-2f9d-43bb-b30b-9dc49f3a8e8a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_1c4aaf15-439c-4c5f-92a5-590eb291eafd" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_7aeb9450-0205-4ff4-a075-c3d4aafd0c30" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823ddb73-2f9d-43bb-b30b-9dc49f3a8e8a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_7aeb9450-0205-4ff4-a075-c3d4aafd0c30" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate_b4fe0045-01db-4774-8b77-35628c417caa" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823ddb73-2f9d-43bb-b30b-9dc49f3a8e8a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate_b4fe0045-01db-4774-8b77-35628c417caa" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_DurationOfHistoricalVolatility_1b8cc4a1-423d-47a1-9edf-45aa23a516c0" xlink:href="oke-20231231.xsd#oke_DurationOfHistoricalVolatility"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823ddb73-2f9d-43bb-b30b-9dc49f3a8e8a" xlink:to="loc_oke_DurationOfHistoricalVolatility_1b8cc4a1-423d-47a1-9edf-45aa23a516c0" xlink:type="arc" order="7"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.oneok.com/role/EMPLOYEEBENEFITPLANSNarrativeDetails" xlink:type="simple" xlink:href="oke-20231231.xsd#EMPLOYEEBENEFITPLANSNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.oneok.com/role/EMPLOYEEBENEFITPLANSNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedContributionPlanDisclosureLineItems_39fec3f9-c665-4fb9-a1a6-3b551e813d1e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedContributionPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedContributionPlanTable_4fadcba3-7e64-4155-a6e7-282ab48da973" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedContributionPlanTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedContributionPlanDisclosureLineItems_39fec3f9-c665-4fb9-a1a6-3b551e813d1e" xlink:to="loc_us-gaap_DefinedContributionPlanTable_4fadcba3-7e64-4155-a6e7-282ab48da973" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_f9e66b1f-a459-49fe-8532-a3880508a15f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DefinedContributionPlanTable_4fadcba3-7e64-4155-a6e7-282ab48da973" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_f9e66b1f-a459-49fe-8532-a3880508a15f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_f9e66b1f-a459-49fe-8532-a3880508a15f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_f9e66b1f-a459-49fe-8532-a3880508a15f" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_f9e66b1f-a459-49fe-8532-a3880508a15f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_2a8c092f-07bc-4d26-82e0-ad961917a1a1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_f9e66b1f-a459-49fe-8532-a3880508a15f" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_2a8c092f-07bc-4d26-82e0-ad961917a1a1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_7eb6d5af-34c8-47f6-aad5-222c41264259" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_2a8c092f-07bc-4d26-82e0-ad961917a1a1" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_7eb6d5af-34c8-47f6-aad5-222c41264259" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionPlansDefinedBenefitMember_e01a874b-42a4-46e3-9639-8005074e71ba" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PensionPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_2a8c092f-07bc-4d26-82e0-ad961917a1a1" xlink:to="loc_us-gaap_PensionPlansDefinedBenefitMember_e01a874b-42a4-46e3-9639-8005074e71ba" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameAxis_7763b9b2-32fb-47a0-838d-ab28e7eec770" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PlanNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DefinedContributionPlanTable_4fadcba3-7e64-4155-a6e7-282ab48da973" xlink:to="loc_us-gaap_PlanNameAxis_7763b9b2-32fb-47a0-838d-ab28e7eec770" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_7763b9b2-32fb-47a0-838d-ab28e7eec770_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_7763b9b2-32fb-47a0-838d-ab28e7eec770" xlink:to="loc_us-gaap_PlanNameDomain_7763b9b2-32fb-47a0-838d-ab28e7eec770_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_480fb1fc-430a-4c8c-8086-bdaa50fe3613" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_7763b9b2-32fb-47a0-838d-ab28e7eec770" xlink:to="loc_us-gaap_PlanNameDomain_480fb1fc-430a-4c8c-8086-bdaa50fe3613" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_A401kPlanMember_512fb23c-5e50-4698-b0a6-30654648322e" xlink:href="oke-20231231.xsd#oke_A401kPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_480fb1fc-430a-4c8c-8086-bdaa50fe3613" xlink:to="loc_oke_A401kPlanMember_512fb23c-5e50-4698-b0a6-30654648322e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_ProfitSharingPlanMember_ac1c4529-1488-45fb-8898-cfa2aeb5ed59" xlink:href="oke-20231231.xsd#oke_ProfitSharingPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_480fb1fc-430a-4c8c-8086-bdaa50fe3613" xlink:to="loc_oke_ProfitSharingPlanMember_ac1c4529-1488-45fb-8898-cfa2aeb5ed59" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_453d7654-0477-44f3-97ab-b24989e5848c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SubsequentEventTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DefinedContributionPlanTable_4fadcba3-7e64-4155-a6e7-282ab48da973" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_453d7654-0477-44f3-97ab-b24989e5848c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_453d7654-0477-44f3-97ab-b24989e5848c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_453d7654-0477-44f3-97ab-b24989e5848c" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_453d7654-0477-44f3-97ab-b24989e5848c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_2021d9a3-3600-4012-acaf-aee03c9a44ac" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_453d7654-0477-44f3-97ab-b24989e5848c" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_2021d9a3-3600-4012-acaf-aee03c9a44ac" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventMember_4314b197-75e8-4358-8ed7-488c7c34b6ad" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SubsequentEventMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_2021d9a3-3600-4012-acaf-aee03c9a44ac" xlink:to="loc_us-gaap_SubsequentEventMember_4314b197-75e8-4358-8ed7-488c7c34b6ad" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_b84078e6-7bcc-4e5d-a380-1dd8c67adc37" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DefinedContributionPlanTable_4fadcba3-7e64-4155-a6e7-282ab48da973" xlink:to="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_b84078e6-7bcc-4e5d-a380-1dd8c67adc37" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanAssetCategoriesDomain_b84078e6-7bcc-4e5d-a380-1dd8c67adc37_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PlanAssetCategoriesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_b84078e6-7bcc-4e5d-a380-1dd8c67adc37" xlink:to="loc_us-gaap_PlanAssetCategoriesDomain_b84078e6-7bcc-4e5d-a380-1dd8c67adc37_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanAssetCategoriesDomain_371b772a-667e-4fd0-afd4-ff8130dba432" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PlanAssetCategoriesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_b84078e6-7bcc-4e5d-a380-1dd8c67adc37" xlink:to="loc_us-gaap_PlanAssetCategoriesDomain_371b772a-667e-4fd0-afd4-ff8130dba432" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanEquitySecuritiesMember_cba8cef8-eb4a-41f0-9349-54df68e8fb98" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanEquitySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_371b772a-667e-4fd0-afd4-ff8130dba432" xlink:to="loc_us-gaap_DefinedBenefitPlanEquitySecuritiesMember_cba8cef8-eb4a-41f0-9349-54df68e8fb98" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_MinimumNumberOfYearsOfServiceForCertainEmployeesToBeEligibleToParticipateInWelfarePlansThatProvidePostretirementMedicalAndLifeInsuranceBenefits_c63c18df-4f23-421f-bee0-bfe109e06dc5" xlink:href="oke-20231231.xsd#oke_MinimumNumberOfYearsOfServiceForCertainEmployeesToBeEligibleToParticipateInWelfarePlansThatProvidePostretirementMedicalAndLifeInsuranceBenefits"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedContributionPlanDisclosureLineItems_39fec3f9-c665-4fb9-a1a6-3b551e813d1e" xlink:to="loc_oke_MinimumNumberOfYearsOfServiceForCertainEmployeesToBeEligibleToParticipateInWelfarePlansThatProvidePostretirementMedicalAndLifeInsuranceBenefits_c63c18df-4f23-421f-bee0-bfe109e06dc5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_NumberOfDefinedBenefitPensionPlans_354706e1-d3b0-462f-86dc-662d65bef9f0" xlink:href="oke-20231231.xsd#oke_NumberOfDefinedBenefitPensionPlans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedContributionPlanDisclosureLineItems_39fec3f9-c665-4fb9-a1a6-3b551e813d1e" xlink:to="loc_oke_NumberOfDefinedBenefitPensionPlans_354706e1-d3b0-462f-86dc-662d65bef9f0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAccumulatedBenefitObligation_a6248abc-a003-4eb7-b400-bed1e21a79ff" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanAccumulatedBenefitObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedContributionPlanDisclosureLineItems_39fec3f9-c665-4fb9-a1a6-3b551e813d1e" xlink:to="loc_us-gaap_DefinedBenefitPlanAccumulatedBenefitObligation_a6248abc-a003-4eb7-b400-bed1e21a79ff" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_4fa95dc4-2d3b-4c88-9656-aaacde3268eb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedContributionPlanDisclosureLineItems_39fec3f9-c665-4fb9-a1a6-3b551e813d1e" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_4fa95dc4-2d3b-4c88-9656-aaacde3268eb" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanContributionsByEmployer_193fa9d8-c928-4bb2-8faa-267099aca32d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanContributionsByEmployer"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedContributionPlanDisclosureLineItems_39fec3f9-c665-4fb9-a1a6-3b551e813d1e" xlink:to="loc_us-gaap_DefinedBenefitPlanContributionsByEmployer_193fa9d8-c928-4bb2-8faa-267099aca32d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitObligationBenefitsPaid_fcbbad27-6bde-4668-9eb9-bafc35699bbf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanBenefitObligationBenefitsPaid"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedContributionPlanDisclosureLineItems_39fec3f9-c665-4fb9-a1a6-3b551e813d1e" xlink:to="loc_us-gaap_DefinedBenefitPlanBenefitObligationBenefitsPaid_fcbbad27-6bde-4668-9eb9-bafc35699bbf" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedContributionPlanEmployerMatchingContributionPercentOfMatch_c2e30c46-3d33-4e1c-b5cc-b2d02ce75eb6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedContributionPlanEmployerMatchingContributionPercentOfMatch"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedContributionPlanDisclosureLineItems_39fec3f9-c665-4fb9-a1a6-3b551e813d1e" xlink:to="loc_us-gaap_DefinedContributionPlanEmployerMatchingContributionPercentOfMatch_c2e30c46-3d33-4e1c-b5cc-b2d02ce75eb6" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedContributionPlanEmployerMatchingContributionPercent_b7b3a9b5-132e-43d8-8add-29677811be3e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedContributionPlanEmployerMatchingContributionPercent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedContributionPlanDisclosureLineItems_39fec3f9-c665-4fb9-a1a6-3b551e813d1e" xlink:to="loc_us-gaap_DefinedContributionPlanEmployerMatchingContributionPercent_b7b3a9b5-132e-43d8-8add-29677811be3e" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedContributionPlanCostRecognized_e206c32a-4c6a-4049-b693-031af215b41a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedContributionPlanCostRecognized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedContributionPlanDisclosureLineItems_39fec3f9-c665-4fb9-a1a6-3b551e813d1e" xlink:to="loc_us-gaap_DefinedContributionPlanCostRecognized_e206c32a-4c6a-4049-b693-031af215b41a" xlink:type="arc" order="8"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.oneok.com/role/EMPLOYEEBENEFITPLANSObligationsandFairValueofPlanAssetsDetails" xlink:type="simple" xlink:href="oke-20231231.xsd#EMPLOYEEBENEFITPLANSObligationsandFairValueofPlanAssetsDetails"/>
  <link:definitionLink xlink:role="http://www.oneok.com/role/EMPLOYEEBENEFITPLANSObligationsandFairValueofPlanAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedContributionPlanDisclosureLineItems_23f69483-2de7-44b5-871c-05d88b58b0a3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedContributionPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedContributionPlanTable_102e7622-6cd1-47f6-9f6f-61ca0c158116" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedContributionPlanTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedContributionPlanDisclosureLineItems_23f69483-2de7-44b5-871c-05d88b58b0a3" xlink:to="loc_us-gaap_DefinedContributionPlanTable_102e7622-6cd1-47f6-9f6f-61ca0c158116" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_78dad983-a61e-4416-840a-0ad5705600a0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DefinedContributionPlanTable_102e7622-6cd1-47f6-9f6f-61ca0c158116" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_78dad983-a61e-4416-840a-0ad5705600a0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_78dad983-a61e-4416-840a-0ad5705600a0_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_78dad983-a61e-4416-840a-0ad5705600a0" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_78dad983-a61e-4416-840a-0ad5705600a0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_117707c3-aced-4b45-a518-0a4efcec8697" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_78dad983-a61e-4416-840a-0ad5705600a0" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_117707c3-aced-4b45-a518-0a4efcec8697" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionPlansDefinedBenefitMember_9d09940f-2a52-418b-9ba2-2cfec3b640bf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PensionPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_117707c3-aced-4b45-a518-0a4efcec8697" xlink:to="loc_us-gaap_PensionPlansDefinedBenefitMember_9d09940f-2a52-418b-9ba2-2cfec3b640bf" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_0f87a7e7-098e-42d4-b608-53e3dfbe640b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_117707c3-aced-4b45-a518-0a4efcec8697" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_0f87a7e7-098e-42d4-b608-53e3dfbe640b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SupplementalEmployeeRetirementPlanDefinedBenefitMember_c1dfc3dd-fe9d-45fa-9d87-79869b3e902e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SupplementalEmployeeRetirementPlanDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_117707c3-aced-4b45-a518-0a4efcec8697" xlink:to="loc_us-gaap_SupplementalEmployeeRetirementPlanDefinedBenefitMember_c1dfc3dd-fe9d-45fa-9d87-79869b3e902e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_b65b7ff2-8fe2-4001-88b0-0a2687363cf3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedContributionPlanDisclosureLineItems_23f69483-2de7-44b5-871c-05d88b58b0a3" xlink:to="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_b65b7ff2-8fe2-4001-88b0-0a2687363cf3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitObligation_d8629266-87ab-4664-a95c-8e35bae23ee2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanBenefitObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_b65b7ff2-8fe2-4001-88b0-0a2687363cf3" xlink:to="loc_us-gaap_DefinedBenefitPlanBenefitObligation_d8629266-87ab-4664-a95c-8e35bae23ee2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanServiceCost_848ce57f-765f-44fa-8d20-b07f6d5e21c4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanServiceCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_b65b7ff2-8fe2-4001-88b0-0a2687363cf3" xlink:to="loc_us-gaap_DefinedBenefitPlanServiceCost_848ce57f-765f-44fa-8d20-b07f6d5e21c4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_8ba31b2e-d84a-411a-a26d-4e2c8aee8523" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanInterestCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_b65b7ff2-8fe2-4001-88b0-0a2687363cf3" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_8ba31b2e-d84a-411a-a26d-4e2c8aee8523" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitObligationContributionsByPlanParticipant_9567f994-d944-4ab4-a17a-417dcffc7927" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanBenefitObligationContributionsByPlanParticipant"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_b65b7ff2-8fe2-4001-88b0-0a2687363cf3" xlink:to="loc_us-gaap_DefinedBenefitPlanBenefitObligationContributionsByPlanParticipant_9567f994-d944-4ab4-a17a-417dcffc7927" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanActuarialGainLoss_50e2b2da-767a-43d8-a321-04d4969abe13" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanActuarialGainLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_b65b7ff2-8fe2-4001-88b0-0a2687363cf3" xlink:to="loc_us-gaap_DefinedBenefitPlanActuarialGainLoss_50e2b2da-767a-43d8-a321-04d4969abe13" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitObligationBenefitsPaid_05d38dc8-faba-4617-9e98-9435d2b3a8b7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanBenefitObligationBenefitsPaid"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_b65b7ff2-8fe2-4001-88b0-0a2687363cf3" xlink:to="loc_us-gaap_DefinedBenefitPlanBenefitObligationBenefitsPaid_05d38dc8-faba-4617-9e98-9435d2b3a8b7" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanBusinessCombinationsAndAcquisitionsBenefitObligation_7f118369-8ce2-4e0f-8c82-5a87c02125ef" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanBusinessCombinationsAndAcquisitionsBenefitObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_b65b7ff2-8fe2-4001-88b0-0a2687363cf3" xlink:to="loc_us-gaap_DefinedBenefitPlanBusinessCombinationsAndAcquisitionsBenefitObligation_7f118369-8ce2-4e0f-8c82-5a87c02125ef" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitObligation_6a0a3c22-03e3-4bb1-8d56-98368c30b7a1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanBenefitObligation"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_b8dfdb55-666f-42f6-955b-d365c33f70a4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedContributionPlanDisclosureLineItems_23f69483-2de7-44b5-871c-05d88b58b0a3" xlink:to="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_b8dfdb55-666f-42f6-955b-d365c33f70a4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_93351f94-59b8-4217-8d57-1f3407083066" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanFairValueOfPlanAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_b8dfdb55-666f-42f6-955b-d365c33f70a4" xlink:to="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_93351f94-59b8-4217-8d57-1f3407083066" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanActualReturnOnPlanAssets_e17d9905-d98d-4b4f-b582-1e6d2f9c1e92" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanActualReturnOnPlanAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_b8dfdb55-666f-42f6-955b-d365c33f70a4" xlink:to="loc_us-gaap_DefinedBenefitPlanActualReturnOnPlanAssets_e17d9905-d98d-4b4f-b582-1e6d2f9c1e92" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanPlanAssetsContributionsByPlanParticipant_25bd676a-2f2c-4f01-b5f2-a1d6740265fd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanPlanAssetsContributionsByPlanParticipant"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_b8dfdb55-666f-42f6-955b-d365c33f70a4" xlink:to="loc_us-gaap_DefinedBenefitPlanPlanAssetsContributionsByPlanParticipant_25bd676a-2f2c-4f01-b5f2-a1d6740265fd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanPlanAssetsBenefitsPaid_e5311b95-4656-4a42-b41f-1073ce8cde9c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanPlanAssetsBenefitsPaid"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_b8dfdb55-666f-42f6-955b-d365c33f70a4" xlink:to="loc_us-gaap_DefinedBenefitPlanPlanAssetsBenefitsPaid_e5311b95-4656-4a42-b41f-1073ce8cde9c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanBusinessCombinationsAndAcquisitionsPlanAssets_bd88c863-580a-42d3-bd85-60ca501ac875" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanBusinessCombinationsAndAcquisitionsPlanAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_b8dfdb55-666f-42f6-955b-d365c33f70a4" xlink:to="loc_us-gaap_DefinedBenefitPlanBusinessCombinationsAndAcquisitionsPlanAssets_bd88c863-580a-42d3-bd85-60ca501ac875" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_186f7734-45e4-49b1-ba6a-d5cbeb3b2c37" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanFairValueOfPlanAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_3ecd4ce8-ca62-4092-ae2b-062623efa974" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanFundedStatusOfPlan"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_b8dfdb55-666f-42f6-955b-d365c33f70a4" xlink:to="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_3ecd4ce8-ca62-4092-ae2b-062623efa974" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities_d01ad49d-b71d-4df2-af7f-6ab7b1b94b84" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedContributionPlanDisclosureLineItems_23f69483-2de7-44b5-871c-05d88b58b0a3" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities_d01ad49d-b71d-4df2-af7f-6ab7b1b94b84" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_4e4d5cb5-c1de-4660-bcb0-813b6ae7632e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedContributionPlanDisclosureLineItems_23f69483-2de7-44b5-871c-05d88b58b0a3" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_4e4d5cb5-c1de-4660-bcb0-813b6ae7632e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInBalanceSheet_b0c3a20d-887c-43fb-8e6e-6475bbba11bd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanAmountsRecognizedInBalanceSheet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedContributionPlanDisclosureLineItems_23f69483-2de7-44b5-871c-05d88b58b0a3" xlink:to="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInBalanceSheet_b0c3a20d-887c-43fb-8e6e-6475bbba11bd" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.oneok.com/role/EMPLOYEEBENEFITPLANSActuarialAssumptionsWeightedAverageAssumptionsDetails" xlink:type="simple" xlink:href="oke-20231231.xsd#EMPLOYEEBENEFITPLANSActuarialAssumptionsWeightedAverageAssumptionsDetails"/>
  <link:definitionLink xlink:role="http://www.oneok.com/role/EMPLOYEEBENEFITPLANSActuarialAssumptionsWeightedAverageAssumptionsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedContributionPlanDisclosureLineItems_83b06884-b133-47c8-a25a-1d23045446c3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedContributionPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedContributionPlanTable_654d1f04-3faa-4ca2-a2e3-5a0ccb670201" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedContributionPlanTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedContributionPlanDisclosureLineItems_83b06884-b133-47c8-a25a-1d23045446c3" xlink:to="loc_us-gaap_DefinedContributionPlanTable_654d1f04-3faa-4ca2-a2e3-5a0ccb670201" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_326ccf47-d02a-4799-bd60-2ea597784d85" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DefinedContributionPlanTable_654d1f04-3faa-4ca2-a2e3-5a0ccb670201" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_326ccf47-d02a-4799-bd60-2ea597784d85" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_326ccf47-d02a-4799-bd60-2ea597784d85_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_326ccf47-d02a-4799-bd60-2ea597784d85" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_326ccf47-d02a-4799-bd60-2ea597784d85_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_e3fa7cef-a29e-438e-accf-3a0577d42171" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_326ccf47-d02a-4799-bd60-2ea597784d85" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_e3fa7cef-a29e-438e-accf-3a0577d42171" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionPlansDefinedBenefitMember_e2b020c7-c311-434c-a108-22866738b6e0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PensionPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_e3fa7cef-a29e-438e-accf-3a0577d42171" xlink:to="loc_us-gaap_PensionPlansDefinedBenefitMember_e2b020c7-c311-434c-a108-22866738b6e0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_7952bde1-8dfd-4067-88f7-fffbbe50f354" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_e3fa7cef-a29e-438e-accf-3a0577d42171" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_7952bde1-8dfd-4067-88f7-fffbbe50f354" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate_be06e42c-a6c5-4422-879c-45f33c32dcc6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedContributionPlanDisclosureLineItems_83b06884-b133-47c8-a25a-1d23045446c3" xlink:to="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate_be06e42c-a6c5-4422-879c-45f33c32dcc6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationRateOfCompensationIncrease_fb2d095a-8456-4e2f-b92f-879e6507094c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationRateOfCompensationIncrease"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedContributionPlanDisclosureLineItems_83b06884-b133-47c8-a25a-1d23045446c3" xlink:to="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationRateOfCompensationIncrease_fb2d095a-8456-4e2f-b92f-879e6507094c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationWeightedAverageInterestCreditingRate_23c27f1c-befa-4c59-8c9b-d0a940eaf016" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationWeightedAverageInterestCreditingRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedContributionPlanDisclosureLineItems_83b06884-b133-47c8-a25a-1d23045446c3" xlink:to="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationWeightedAverageInterestCreditingRate_23c27f1c-befa-4c59-8c9b-d0a940eaf016" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.oneok.com/role/EMPLOYEEBENEFITPLANSPlanAssetsDetails" xlink:type="simple" xlink:href="oke-20231231.xsd#EMPLOYEEBENEFITPLANSPlanAssetsDetails"/>
  <link:definitionLink xlink:role="http://www.oneok.com/role/EMPLOYEEBENEFITPLANSPlanAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedContributionPlanDisclosureLineItems_008d84e1-b88f-47bd-869c-dfe8c6afa12f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedContributionPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedContributionPlanTable_47483a86-0228-4f42-a221-06b2494bb710" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedContributionPlanTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedContributionPlanDisclosureLineItems_008d84e1-b88f-47bd-869c-dfe8c6afa12f" xlink:to="loc_us-gaap_DefinedContributionPlanTable_47483a86-0228-4f42-a221-06b2494bb710" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_c7f773ea-0097-49ea-8288-a589981691f9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DefinedContributionPlanTable_47483a86-0228-4f42-a221-06b2494bb710" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_c7f773ea-0097-49ea-8288-a589981691f9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_c7f773ea-0097-49ea-8288-a589981691f9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_c7f773ea-0097-49ea-8288-a589981691f9" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_c7f773ea-0097-49ea-8288-a589981691f9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_ed07f189-6730-43d0-bb7c-7ce012d40088" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_c7f773ea-0097-49ea-8288-a589981691f9" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_ed07f189-6730-43d0-bb7c-7ce012d40088" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionPlansDefinedBenefitMember_fda4cd79-6025-4d8b-97a7-8432c236cf0f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PensionPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_ed07f189-6730-43d0-bb7c-7ce012d40088" xlink:to="loc_us-gaap_PensionPlansDefinedBenefitMember_fda4cd79-6025-4d8b-97a7-8432c236cf0f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_DefinedBenefitPlanTargetAllocationPercentageofAssetsDomesticandInternationalEquities_e60ddf26-6442-48bf-a916-7f7779f479ba" xlink:href="oke-20231231.xsd#oke_DefinedBenefitPlanTargetAllocationPercentageofAssetsDomesticandInternationalEquities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedContributionPlanDisclosureLineItems_008d84e1-b88f-47bd-869c-dfe8c6afa12f" xlink:to="loc_oke_DefinedBenefitPlanTargetAllocationPercentageofAssetsDomesticandInternationalEquities_e60ddf26-6442-48bf-a916-7f7779f479ba" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_DefinedBenefitPlanTargetAllocationPercentageOfAssetsLongDurationFixedIncome_c31cddc4-b026-468b-818f-a0c8eaf238e8" xlink:href="oke-20231231.xsd#oke_DefinedBenefitPlanTargetAllocationPercentageOfAssetsLongDurationFixedIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedContributionPlanDisclosureLineItems_008d84e1-b88f-47bd-869c-dfe8c6afa12f" xlink:to="loc_oke_DefinedBenefitPlanTargetAllocationPercentageOfAssetsLongDurationFixedIncome_c31cddc4-b026-468b-818f-a0c8eaf238e8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_DefinedBenefitPlanTargetAllocationPercentageOfAssetsReturnSeekingCredit_dda86e2c-5121-46d0-a81b-dce943dbd74e" xlink:href="oke-20231231.xsd#oke_DefinedBenefitPlanTargetAllocationPercentageOfAssetsReturnSeekingCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedContributionPlanDisclosureLineItems_008d84e1-b88f-47bd-869c-dfe8c6afa12f" xlink:to="loc_oke_DefinedBenefitPlanTargetAllocationPercentageOfAssetsReturnSeekingCredit_dda86e2c-5121-46d0-a81b-dce943dbd74e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_DefinedBenefitPlanTargetAllocationPercentageOfAssetsHedgeFunds_6acf5939-c453-4325-9b4a-112bfac5df77" xlink:href="oke-20231231.xsd#oke_DefinedBenefitPlanTargetAllocationPercentageOfAssetsHedgeFunds"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedContributionPlanDisclosureLineItems_008d84e1-b88f-47bd-869c-dfe8c6afa12f" xlink:to="loc_oke_DefinedBenefitPlanTargetAllocationPercentageOfAssetsHedgeFunds_6acf5939-c453-4325-9b4a-112bfac5df77" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_DefinedBenefitPlanTargetAllocationPercentageOfAssetsRealEstate_d9193568-5297-485a-a0e1-7edc604291f8" xlink:href="oke-20231231.xsd#oke_DefinedBenefitPlanTargetAllocationPercentageOfAssetsRealEstate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedContributionPlanDisclosureLineItems_008d84e1-b88f-47bd-869c-dfe8c6afa12f" xlink:to="loc_oke_DefinedBenefitPlanTargetAllocationPercentageOfAssetsRealEstate_d9193568-5297-485a-a0e1-7edc604291f8" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_DefinedBenefitPlanTargetAllocationPercentageOfAssetsTotal_fc1f5a4e-8e28-4d47-b7e8-34253834a10b" xlink:href="oke-20231231.xsd#oke_DefinedBenefitPlanTargetAllocationPercentageOfAssetsTotal"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedContributionPlanDisclosureLineItems_008d84e1-b88f-47bd-869c-dfe8c6afa12f" xlink:to="loc_oke_DefinedBenefitPlanTargetAllocationPercentageOfAssetsTotal_fc1f5a4e-8e28-4d47-b7e8-34253834a10b" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.oneok.com/role/EMPLOYEEBENEFITPLANSFairValueCategoryasofMeasurementDateforDefinedBenefitPlanDetails" xlink:type="simple" xlink:href="oke-20231231.xsd#EMPLOYEEBENEFITPLANSFairValueCategoryasofMeasurementDateforDefinedBenefitPlanDetails"/>
  <link:definitionLink xlink:role="http://www.oneok.com/role/EMPLOYEEBENEFITPLANSFairValueCategoryasofMeasurementDateforDefinedBenefitPlanDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_58762898-4095-4480-9d8e-94546341100d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_5573102a-8c96-490c-8baa-521f30e2172e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_58762898-4095-4480-9d8e-94546341100d" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_5573102a-8c96-490c-8baa-521f30e2172e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_f7f9aa46-12ef-41a2-9a1d-05f7b5a6efbf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_5573102a-8c96-490c-8baa-521f30e2172e" xlink:to="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_f7f9aa46-12ef-41a2-9a1d-05f7b5a6efbf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanAssetCategoriesDomain_f7f9aa46-12ef-41a2-9a1d-05f7b5a6efbf_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PlanAssetCategoriesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_f7f9aa46-12ef-41a2-9a1d-05f7b5a6efbf" xlink:to="loc_us-gaap_PlanAssetCategoriesDomain_f7f9aa46-12ef-41a2-9a1d-05f7b5a6efbf_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanAssetCategoriesDomain_c74083e5-ab6f-4280-ae64-8a549506aae4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PlanAssetCategoriesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_f7f9aa46-12ef-41a2-9a1d-05f7b5a6efbf" xlink:to="loc_us-gaap_PlanAssetCategoriesDomain_c74083e5-ab6f-4280-ae64-8a549506aae4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanEquitySecuritiesMember_ac0dbf35-ebb3-47c1-bed0-a9ba46b640e3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanEquitySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_c74083e5-ab6f-4280-ae64-8a549506aae4" xlink:to="loc_us-gaap_DefinedBenefitPlanEquitySecuritiesMember_ac0dbf35-ebb3-47c1-bed0-a9ba46b640e3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanCashAndCashEquivalentsMember_806d0bc0-3c3c-488d-93ad-f25c75b2b506" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanCashAndCashEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_c74083e5-ab6f-4280-ae64-8a549506aae4" xlink:to="loc_us-gaap_DefinedBenefitPlanCashAndCashEquivalentsMember_806d0bc0-3c3c-488d-93ad-f25c75b2b506" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealEstateFundsMember_7c704d32-cf83-4d67-8962-21e11c94222d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RealEstateFundsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_c74083e5-ab6f-4280-ae64-8a549506aae4" xlink:to="loc_us-gaap_RealEstateFundsMember_7c704d32-cf83-4d67-8962-21e11c94222d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USTreasuryAndGovernmentMember_c0c6c136-98ae-40ab-b490-20c26861cd4a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_USTreasuryAndGovernmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_c74083e5-ab6f-4280-ae64-8a549506aae4" xlink:to="loc_us-gaap_USTreasuryAndGovernmentMember_c0c6c136-98ae-40ab-b490-20c26861cd4a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_3b6356fd-0f55-428a-a04e-488b6e36495d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CorporateDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_c74083e5-ab6f-4280-ae64-8a549506aae4" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_3b6356fd-0f55-428a-a04e-488b6e36495d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermInvestmentsMember_3d43bc47-da3e-409f-9e65-299f4696631a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShortTermInvestmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_c74083e5-ab6f-4280-ae64-8a549506aae4" xlink:to="loc_us-gaap_ShortTermInvestmentsMember_3d43bc47-da3e-409f-9e65-299f4696631a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherInvestmentsMember_0590e0f7-e002-435a-bd1f-d0b18c519478" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherInvestmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_c74083e5-ab6f-4280-ae64-8a549506aae4" xlink:to="loc_us-gaap_OtherInvestmentsMember_0590e0f7-e002-435a-bd1f-d0b18c519478" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_d4e7673f-9354-4f2e-8ca5-6e550f4ed900" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_5573102a-8c96-490c-8baa-521f30e2172e" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_d4e7673f-9354-4f2e-8ca5-6e550f4ed900" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_d4e7673f-9354-4f2e-8ca5-6e550f4ed900_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_d4e7673f-9354-4f2e-8ca5-6e550f4ed900" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_d4e7673f-9354-4f2e-8ca5-6e550f4ed900_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_b09bc2a8-915e-440d-902d-258a16c55004" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_d4e7673f-9354-4f2e-8ca5-6e550f4ed900" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_b09bc2a8-915e-440d-902d-258a16c55004" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_75669aa6-3e28-40dc-b43c-c686382f5d82" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_b09bc2a8-915e-440d-902d-258a16c55004" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_75669aa6-3e28-40dc-b43c-c686382f5d82" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_d1a42592-4709-464c-8839-3896f82c2e56" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_b09bc2a8-915e-440d-902d-258a16c55004" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_d1a42592-4709-464c-8839-3896f82c2e56" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_5f752979-8526-4d44-9ccb-5e9c5fb5e1ca" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_b09bc2a8-915e-440d-902d-258a16c55004" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_5f752979-8526-4d44-9ccb-5e9c5fb5e1ca" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel12And3Member_8eeb8584-612f-4e59-96f9-04ef1e9dbb61" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueInputsLevel12And3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_b09bc2a8-915e-440d-902d-258a16c55004" xlink:to="loc_us-gaap_FairValueInputsLevel12And3Member_8eeb8584-612f-4e59-96f9-04ef1e9dbb61" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasuredAtNetAssetValuePerShareMember_6e1dc905-7778-4503-a59e-8a49d74146a5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasuredAtNetAssetValuePerShareMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_b09bc2a8-915e-440d-902d-258a16c55004" xlink:to="loc_us-gaap_FairValueMeasuredAtNetAssetValuePerShareMember_6e1dc905-7778-4503-a59e-8a49d74146a5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_17880b03-649e-4ffe-ab24-b55f39e762cd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_5573102a-8c96-490c-8baa-521f30e2172e" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_17880b03-649e-4ffe-ab24-b55f39e762cd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_17880b03-649e-4ffe-ab24-b55f39e762cd_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_17880b03-649e-4ffe-ab24-b55f39e762cd" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_17880b03-649e-4ffe-ab24-b55f39e762cd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_70dd7307-15d8-41af-a217-82cd6b982ab0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_17880b03-649e-4ffe-ab24-b55f39e762cd" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_70dd7307-15d8-41af-a217-82cd6b982ab0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionPlansDefinedBenefitMember_99c5adeb-a724-4efc-bce0-a7fafa6b2d18" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PensionPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_70dd7307-15d8-41af-a217-82cd6b982ab0" xlink:to="loc_us-gaap_PensionPlansDefinedBenefitMember_99c5adeb-a724-4efc-bce0-a7fafa6b2d18" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_1c65f44d-e412-4b8f-9ffd-c64bcc66b1c6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_70dd7307-15d8-41af-a217-82cd6b982ab0" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_1c65f44d-e412-4b8f-9ffd-c64bcc66b1c6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_ea00355e-a68b-4bc1-bb49-979a24615ce3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanFairValueOfPlanAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_58762898-4095-4480-9d8e-94546341100d" xlink:to="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_ea00355e-a68b-4bc1-bb49-979a24615ce3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInvestmentsEntitiesThatCalculateNetAssetValuePerShareUnfundedCommittments_319ba6b8-0a1e-4831-bf77-9aed60a4123c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueInvestmentsEntitiesThatCalculateNetAssetValuePerShareUnfundedCommittments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_58762898-4095-4480-9d8e-94546341100d" xlink:to="loc_us-gaap_FairValueInvestmentsEntitiesThatCalculateNetAssetValuePerShareUnfundedCommittments_319ba6b8-0a1e-4831-bf77-9aed60a4123c" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.oneok.com/role/EMPLOYEEBENEFITPLANSPensionandOtherPostretirementBenefitPaymentsDetails" xlink:type="simple" xlink:href="oke-20231231.xsd#EMPLOYEEBENEFITPLANSPensionandOtherPostretirementBenefitPaymentsDetails"/>
  <link:definitionLink xlink:role="http://www.oneok.com/role/EMPLOYEEBENEFITPLANSPensionandOtherPostretirementBenefitPaymentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_04a2c8e1-b13d-474b-9455-744989810adc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_7fe80e0f-dd77-4faf-bf43-e45ad10b0f76" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_04a2c8e1-b13d-474b-9455-744989810adc" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_7fe80e0f-dd77-4faf-bf43-e45ad10b0f76" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_ae6f4f13-573a-4239-ba29-36b0a6930b58" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_7fe80e0f-dd77-4faf-bf43-e45ad10b0f76" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_ae6f4f13-573a-4239-ba29-36b0a6930b58" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_ae6f4f13-573a-4239-ba29-36b0a6930b58_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_ae6f4f13-573a-4239-ba29-36b0a6930b58" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_ae6f4f13-573a-4239-ba29-36b0a6930b58_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_dbd8d3e6-d1e6-43aa-b871-d716eddd8ad9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_ae6f4f13-573a-4239-ba29-36b0a6930b58" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_dbd8d3e6-d1e6-43aa-b871-d716eddd8ad9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionPlansDefinedBenefitMember_d9f6f071-a87d-4a70-8ddd-559060bac1e7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PensionPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_dbd8d3e6-d1e6-43aa-b871-d716eddd8ad9" xlink:to="loc_us-gaap_PensionPlansDefinedBenefitMember_d9f6f071-a87d-4a70-8ddd-559060bac1e7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_6fc86929-7ae9-48d0-974a-21731bb06507" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_dbd8d3e6-d1e6-43aa-b871-d716eddd8ad9" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_6fc86929-7ae9-48d0-974a-21731bb06507" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths_58c1cc31-8f01-4336-91a8-1e502ea1045d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_04a2c8e1-b13d-474b-9455-744989810adc" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths_58c1cc31-8f01-4336-91a8-1e502ea1045d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo_e9d02914-50b5-42a0-957c-fe52e26a10b6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_04a2c8e1-b13d-474b-9455-744989810adc" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo_e9d02914-50b5-42a0-957c-fe52e26a10b6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree_1449a894-fc4e-427f-8f2c-c82bafd681d1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_04a2c8e1-b13d-474b-9455-744989810adc" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree_1449a894-fc4e-427f-8f2c-c82bafd681d1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour_9dc00d9b-22d9-487a-aeb5-1bd86eb4e8ee" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_04a2c8e1-b13d-474b-9455-744989810adc" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour_9dc00d9b-22d9-487a-aeb5-1bd86eb4e8ee" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive_e4dbfa25-9a50-4f87-9471-5b8592e1362d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_04a2c8e1-b13d-474b-9455-744989810adc" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive_e4dbfa25-9a50-4f87-9471-5b8592e1362d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter_382e7c3e-64a0-41ca-b71b-657f137f9bb6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_04a2c8e1-b13d-474b-9455-744989810adc" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter_382e7c3e-64a0-41ca-b71b-657f137f9bb6" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.oneok.com/role/INCOMETAXESNarrativeDetails" xlink:type="simple" xlink:href="oke-20231231.xsd#INCOMETAXESNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.oneok.com/role/INCOMETAXESNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxContingencyLineItems_1430b8e0-c88a-4cec-a1d7-21778f839c10" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxContingencyLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxContingencyTable_6c7766bd-8f18-4447-acd0-01286ece3af9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxContingencyTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_1430b8e0-c88a-4cec-a1d7-21778f839c10" xlink:to="loc_us-gaap_IncomeTaxContingencyTable_6c7766bd-8f18-4447-acd0-01286ece3af9" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityAxis_ef9cb92a-48cf-4453-a70b-7a89ebae049a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxAuthorityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeTaxContingencyTable_6c7766bd-8f18-4447-acd0-01286ece3af9" xlink:to="loc_us-gaap_IncomeTaxAuthorityAxis_ef9cb92a-48cf-4453-a70b-7a89ebae049a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_ef9cb92a-48cf-4453-a70b-7a89ebae049a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxAuthorityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_ef9cb92a-48cf-4453-a70b-7a89ebae049a" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_ef9cb92a-48cf-4453-a70b-7a89ebae049a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_d4633dd2-ae1e-4f53-8230-c3eebb68a57f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxAuthorityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_ef9cb92a-48cf-4453-a70b-7a89ebae049a" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_d4633dd2-ae1e-4f53-8230-c3eebb68a57f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DomesticCountryMember_4fb02a36-bf37-41bc-82af-6a6cf4f6d612" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DomesticCountryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_d4633dd2-ae1e-4f53-8230-c3eebb68a57f" xlink:to="loc_us-gaap_DomesticCountryMember_4fb02a36-bf37-41bc-82af-6a6cf4f6d612" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StateAndLocalJurisdictionMember_83ebf4e7-8b28-43f1-826f-4a5419047b73" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StateAndLocalJurisdictionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_d4633dd2-ae1e-4f53-8230-c3eebb68a57f" xlink:to="loc_us-gaap_StateAndLocalJurisdictionMember_83ebf4e7-8b28-43f1-826f-4a5419047b73" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_FederalAndStateMember_986310f6-e289-4a33-8ec8-313923e9472e" xlink:href="oke-20231231.xsd#oke_FederalAndStateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_d4633dd2-ae1e-4f53-8230-c3eebb68a57f" xlink:to="loc_oke_FederalAndStateMember_986310f6-e289-4a33-8ec8-313923e9472e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_OperatingLossCarryforwardsTypeAxis_db3268cf-7522-45bc-b3f9-5d05e558ac19" xlink:href="oke-20231231.xsd#oke_OperatingLossCarryforwardsTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeTaxContingencyTable_6c7766bd-8f18-4447-acd0-01286ece3af9" xlink:to="loc_oke_OperatingLossCarryforwardsTypeAxis_db3268cf-7522-45bc-b3f9-5d05e558ac19" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_OperatingLossCarryforwardsTypeDomain_db3268cf-7522-45bc-b3f9-5d05e558ac19_default" xlink:href="oke-20231231.xsd#oke_OperatingLossCarryforwardsTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_oke_OperatingLossCarryforwardsTypeAxis_db3268cf-7522-45bc-b3f9-5d05e558ac19" xlink:to="loc_oke_OperatingLossCarryforwardsTypeDomain_db3268cf-7522-45bc-b3f9-5d05e558ac19_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_OperatingLossCarryforwardsTypeDomain_8812ef36-b549-49fe-8d59-cb62e4267c37" xlink:href="oke-20231231.xsd#oke_OperatingLossCarryforwardsTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_oke_OperatingLossCarryforwardsTypeAxis_db3268cf-7522-45bc-b3f9-5d05e558ac19" xlink:to="loc_oke_OperatingLossCarryforwardsTypeDomain_8812ef36-b549-49fe-8d59-cb62e4267c37" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_OperatingLossCarryforwardsIndefiniteCarryforwardPeriodMember_b39bb0fe-5f85-42cf-a007-4e88dd52495c" xlink:href="oke-20231231.xsd#oke_OperatingLossCarryforwardsIndefiniteCarryforwardPeriodMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oke_OperatingLossCarryforwardsTypeDomain_8812ef36-b549-49fe-8d59-cb62e4267c37" xlink:to="loc_oke_OperatingLossCarryforwardsIndefiniteCarryforwardPeriodMember_b39bb0fe-5f85-42cf-a007-4e88dd52495c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_OperatingLossCarryforwardsSubjectToExpirationMember_f7306552-326d-4d88-8a1d-85470e1dd9c4" xlink:href="oke-20231231.xsd#oke_OperatingLossCarryforwardsSubjectToExpirationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oke_OperatingLossCarryforwardsTypeDomain_8812ef36-b549-49fe-8d59-cb62e4267c37" xlink:to="loc_oke_OperatingLossCarryforwardsSubjectToExpirationMember_f7306552-326d-4d88-8a1d-85470e1dd9c4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLossCarryforwards_de46e600-a9e4-4212-98a9-86b5f3921cb2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLossCarryforwards"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_1430b8e0-c88a-4cec-a1d7-21778f839c10" xlink:to="loc_us-gaap_OperatingLossCarryforwards_de46e600-a9e4-4212-98a9-86b5f3921cb2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_d10e59f8-b78e-4f90-9f48-e62fd750a4f1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwards"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_1430b8e0-c88a-4cec-a1d7-21778f839c10" xlink:to="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_d10e59f8-b78e-4f90-9f48-e62fd750a4f1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ValuationAllowanceDeferredTaxAssetChangeInAmount_282edf16-3016-48ca-9879-ec224e3349b3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ValuationAllowanceDeferredTaxAssetChangeInAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_1430b8e0-c88a-4cec-a1d7-21778f839c10" xlink:to="loc_us-gaap_ValuationAllowanceDeferredTaxAssetChangeInAmount_282edf16-3016-48ca-9879-ec224e3349b3" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.oneok.com/role/UNCONSOLIDATEDAFFILIATESDetails" xlink:type="simple" xlink:href="oke-20231231.xsd#UNCONSOLIDATEDAFFILIATESDetails"/>
  <link:definitionLink xlink:role="http://www.oneok.com/role/UNCONSOLIDATEDAFFILIATESDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_d8932156-a293-4472-a7ca-ad7095006794" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfEquityMethodInvestmentsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEquityMethodInvestmentsTable_779279dc-f7d5-478d-9c8d-f3f13fbfee64" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfEquityMethodInvestmentsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_d8932156-a293-4472-a7ca-ad7095006794" xlink:to="loc_us-gaap_ScheduleOfEquityMethodInvestmentsTable_779279dc-f7d5-478d-9c8d-f3f13fbfee64" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_fad64b1c-b2a8-4f01-936e-1c06525a18aa" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsTable_779279dc-f7d5-478d-9c8d-f3f13fbfee64" xlink:to="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_fad64b1c-b2a8-4f01-936e-1c06525a18aa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_fad64b1c-b2a8-4f01-936e-1c06525a18aa_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_fad64b1c-b2a8-4f01-936e-1c06525a18aa" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_fad64b1c-b2a8-4f01-936e-1c06525a18aa_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_1a94c94f-29a0-459c-bba2-b2fde6b368e4" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_fad64b1c-b2a8-4f01-936e-1c06525a18aa" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_1a94c94f-29a0-459c-bba2-b2fde6b368e4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_OverlandPassPipelineCompanyMember_8f5abccf-35b4-4f66-9ab5-26cd6c4ddb34" xlink:href="oke-20231231.xsd#oke_OverlandPassPipelineCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_1a94c94f-29a0-459c-bba2-b2fde6b368e4" xlink:to="loc_oke_OverlandPassPipelineCompanyMember_8f5abccf-35b4-4f66-9ab5-26cd6c4ddb34" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_NorthernBorderPipelineMember_248b3859-77e6-4f63-9019-d2c77c141d77" xlink:href="oke-20231231.xsd#oke_NorthernBorderPipelineMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_1a94c94f-29a0-459c-bba2-b2fde6b368e4" xlink:to="loc_oke_NorthernBorderPipelineMember_248b3859-77e6-4f63-9019-d2c77c141d77" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_SaddlehornMember_dfadf160-9c77-480e-875b-f25359da2bb7" xlink:href="oke-20231231.xsd#oke_SaddlehornMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_1a94c94f-29a0-459c-bba2-b2fde6b368e4" xlink:to="loc_oke_SaddlehornMember_dfadf160-9c77-480e-875b-f25359da2bb7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_MVPMember_69284004-1e26-4847-93c2-e485b1b353de" xlink:href="oke-20231231.xsd#oke_MVPMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_1a94c94f-29a0-459c-bba2-b2fde6b368e4" xlink:to="loc_oke_MVPMember_69284004-1e26-4847-93c2-e485b1b353de" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_RoadrunnerGasTransmissionMember_ea057d26-f00e-4635-a127-f0993694d2b7" xlink:href="oke-20231231.xsd#oke_RoadrunnerGasTransmissionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_1a94c94f-29a0-459c-bba2-b2fde6b368e4" xlink:to="loc_oke_RoadrunnerGasTransmissionMember_ea057d26-f00e-4635-a127-f0993694d2b7" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_BridgeTexMember_64b1d276-05b8-479c-b306-2d87b37f047c" xlink:href="oke-20231231.xsd#oke_BridgeTexMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_1a94c94f-29a0-459c-bba2-b2fde6b368e4" xlink:to="loc_oke_BridgeTexMember_64b1d276-05b8-479c-b306-2d87b37f047c" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_OtherUnconsolidatedAffiliateMember_44de8976-3f42-457c-a169-180fcd2fb304" xlink:href="oke-20231231.xsd#oke_OtherUnconsolidatedAffiliateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_1a94c94f-29a0-459c-bba2-b2fde6b368e4" xlink:to="loc_oke_OtherUnconsolidatedAffiliateMember_44de8976-3f42-457c-a169-180fcd2fb304" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_NumberOfUnconsolidatedAffiliates_99756225-5666-4506-ac5e-de159c237ef5" xlink:href="oke-20231231.xsd#oke_NumberOfUnconsolidatedAffiliates"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_d8932156-a293-4472-a7ca-ad7095006794" xlink:to="loc_oke_NumberOfUnconsolidatedAffiliates_99756225-5666-4506-ac5e-de159c237ef5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestmentOwnershipPercentage_c2452673-2192-4a49-a92c-59545e904ea9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityMethodInvestmentOwnershipPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_d8932156-a293-4472-a7ca-ad7095006794" xlink:to="loc_us-gaap_EquityMethodInvestmentOwnershipPercentage_c2452673-2192-4a49-a92c-59545e904ea9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestments_b841f4bd-5121-4d1d-9465-491e00252435" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityMethodInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_d8932156-a293-4472-a7ca-ad7095006794" xlink:to="loc_us-gaap_EquityMethodInvestments_b841f4bd-5121-4d1d-9465-491e00252435" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestmentDifferenceBetweenCarryingAmountAndUnderlyingEquity_f37b6d3a-a8f6-475c-a41c-8196c2e36a88" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityMethodInvestmentDifferenceBetweenCarryingAmountAndUnderlyingEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_d8932156-a293-4472-a7ca-ad7095006794" xlink:to="loc_us-gaap_EquityMethodInvestmentDifferenceBetweenCarryingAmountAndUnderlyingEquity_f37b6d3a-a8f6-475c-a41c-8196c2e36a88" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromEquityMethodInvestments_e09d9eea-0df2-439f-b71f-d0e2c7a5742d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromEquityMethodInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_d8932156-a293-4472-a7ca-ad7095006794" xlink:to="loc_us-gaap_IncomeLossFromEquityMethodInvestments_e09d9eea-0df2-439f-b71f-d0e2c7a5742d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionAmountsOfTransaction_61a1542a-dbb3-4c6a-8701-a398ad7ab832" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RelatedPartyTransactionAmountsOfTransaction"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_d8932156-a293-4472-a7ca-ad7095006794" xlink:to="loc_us-gaap_RelatedPartyTransactionAmountsOfTransaction_61a1542a-dbb3-4c6a-8701-a398ad7ab832" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireInterestInSubsidiariesAndAffiliates_c852b062-9597-4708-b695-d61adeae01d9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquireInterestInSubsidiariesAndAffiliates"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_d8932156-a293-4472-a7ca-ad7095006794" xlink:to="loc_us-gaap_PaymentsToAcquireInterestInSubsidiariesAndAffiliates_c852b062-9597-4708-b695-d61adeae01d9" xlink:type="arc" order="6"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.oneok.com/role/REVENUESExpectedPeriodofRecognitionDetails" xlink:type="simple" xlink:href="oke-20231231.xsd#REVENUESExpectedPeriodofRecognitionDetails"/>
  <link:definitionLink xlink:role="http://www.oneok.com/role/REVENUESExpectedPeriodofRecognitionDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_d8ef8f86-74c4-4f06-979f-aa90334b6e0f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_066cfb3e-bd5f-4164-aa58-38f9be82a6b3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_d8ef8f86-74c4-4f06-979f-aa90334b6e0f" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_066cfb3e-bd5f-4164-aa58-38f9be82a6b3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_9653f654-ef15-4394-9f01-7e02dcc17f3f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_066cfb3e-bd5f-4164-aa58-38f9be82a6b3" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_9653f654-ef15-4394-9f01-7e02dcc17f3f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_e5143772-bff9-4766-83f1-573ae9c7130f" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_066cfb3e-bd5f-4164-aa58-38f9be82a6b3" xlink:to="loc_srt_RangeAxis_e5143772-bff9-4766-83f1-573ae9c7130f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_e5143772-bff9-4766-83f1-573ae9c7130f_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_e5143772-bff9-4766-83f1-573ae9c7130f" xlink:to="loc_srt_RangeMember_e5143772-bff9-4766-83f1-573ae9c7130f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_74afa802-f4a7-4a56-a165-72938d338f4e" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_e5143772-bff9-4766-83f1-573ae9c7130f" xlink:to="loc_srt_RangeMember_74afa802-f4a7-4a56-a165-72938d338f4e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_bbd096b2-6a0a-4491-84da-d7644d5a73c6" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_74afa802-f4a7-4a56-a165-72938d338f4e" xlink:to="loc_srt_MinimumMember_bbd096b2-6a0a-4491-84da-d7644d5a73c6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_3d95fe93-cf9c-4d25-8ee3-1541c8681923" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_74afa802-f4a7-4a56-a165-72938d338f4e" xlink:to="loc_srt_MaximumMember_3d95fe93-cf9c-4d25-8ee3-1541c8681923" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_RevenuePerformanceObligationRemainingContractTerm_b16c8d63-3223-42b0-aef5-38ffc14e3e45" xlink:href="oke-20231231.xsd#oke_RevenuePerformanceObligationRemainingContractTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_d8ef8f86-74c4-4f06-979f-aa90334b6e0f" xlink:to="loc_oke_RevenuePerformanceObligationRemainingContractTerm_b16c8d63-3223-42b0-aef5-38ffc14e3e45" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_59625b11-f792-4466-8790-23d0090a87d2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueRemainingPerformanceObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_d8ef8f86-74c4-4f06-979f-aa90334b6e0f" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_59625b11-f792-4466-8790-23d0090a87d2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_b546248f-9b52-43f7-831c-470d0b4f48c8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_d8ef8f86-74c4-4f06-979f-aa90334b6e0f" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_b546248f-9b52-43f7-831c-470d0b4f48c8" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.oneok.com/role/REVENUESExpectedPeriodofRecognitionDetails_1" xlink:type="simple" xlink:href="oke-20231231.xsd#REVENUESExpectedPeriodofRecognitionDetails_1"/>
  <link:definitionLink xlink:role="http://www.oneok.com/role/REVENUESExpectedPeriodofRecognitionDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_d8ef8f86-74c4-4f06-979f-aa90334b6e0f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_066cfb3e-bd5f-4164-aa58-38f9be82a6b3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_d8ef8f86-74c4-4f06-979f-aa90334b6e0f" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_066cfb3e-bd5f-4164-aa58-38f9be82a6b3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_e5143772-bff9-4766-83f1-573ae9c7130f" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_066cfb3e-bd5f-4164-aa58-38f9be82a6b3" xlink:to="loc_srt_RangeAxis_e5143772-bff9-4766-83f1-573ae9c7130f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_e5143772-bff9-4766-83f1-573ae9c7130f_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_e5143772-bff9-4766-83f1-573ae9c7130f" xlink:to="loc_srt_RangeMember_e5143772-bff9-4766-83f1-573ae9c7130f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_74afa802-f4a7-4a56-a165-72938d338f4e" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_e5143772-bff9-4766-83f1-573ae9c7130f" xlink:to="loc_srt_RangeMember_74afa802-f4a7-4a56-a165-72938d338f4e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_bbd096b2-6a0a-4491-84da-d7644d5a73c6" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_74afa802-f4a7-4a56-a165-72938d338f4e" xlink:to="loc_srt_MinimumMember_bbd096b2-6a0a-4491-84da-d7644d5a73c6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_3d95fe93-cf9c-4d25-8ee3-1541c8681923" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_74afa802-f4a7-4a56-a165-72938d338f4e" xlink:to="loc_srt_MaximumMember_3d95fe93-cf9c-4d25-8ee3-1541c8681923" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_RevenuePerformanceObligationRemainingContractTerm_b16c8d63-3223-42b0-aef5-38ffc14e3e45" xlink:href="oke-20231231.xsd#oke_RevenuePerformanceObligationRemainingContractTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_d8ef8f86-74c4-4f06-979f-aa90334b6e0f" xlink:to="loc_oke_RevenuePerformanceObligationRemainingContractTerm_b16c8d63-3223-42b0-aef5-38ffc14e3e45" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_59625b11-f792-4466-8790-23d0090a87d2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueRemainingPerformanceObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_d8ef8f86-74c4-4f06-979f-aa90334b6e0f" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_59625b11-f792-4466-8790-23d0090a87d2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_b546248f-9b52-43f7-831c-470d0b4f48c8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_d8ef8f86-74c4-4f06-979f-aa90334b6e0f" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_b546248f-9b52-43f7-831c-470d0b4f48c8" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.oneok.com/role/SEGMENTSNarrativeDetails" xlink:type="simple" xlink:href="oke-20231231.xsd#SEGMENTSNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.oneok.com/role/SEGMENTSNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_38ff0eb0-1c52-4a7e-bc54-82ef813b3bbb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_a29c7b48-9f14-45f5-a02b-199c7042c537" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_38ff0eb0-1c52-4a7e-bc54-82ef813b3bbb" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_a29c7b48-9f14-45f5-a02b-199c7042c537" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MajorCustomersAxis_c32604ca-18fc-465e-a56d-d72d7ef48def" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MajorCustomersAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_a29c7b48-9f14-45f5-a02b-199c7042c537" xlink:to="loc_srt_MajorCustomersAxis_c32604ca-18fc-465e-a56d-d72d7ef48def" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_c32604ca-18fc-465e-a56d-d72d7ef48def_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MajorCustomersAxis_c32604ca-18fc-465e-a56d-d72d7ef48def" xlink:to="loc_srt_NameOfMajorCustomerDomain_c32604ca-18fc-465e-a56d-d72d7ef48def_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_79c8e565-1b69-42f9-b22c-d680c3921a2f" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MajorCustomersAxis_c32604ca-18fc-465e-a56d-d72d7ef48def" xlink:to="loc_srt_NameOfMajorCustomerDomain_79c8e565-1b69-42f9-b22c-d680c3921a2f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_OneCustomerMember_c5e0d192-339e-48d1-8796-2716b6e3360e" xlink:href="oke-20231231.xsd#oke_OneCustomerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_79c8e565-1b69-42f9-b22c-d680c3921a2f" xlink:to="loc_oke_OneCustomerMember_c5e0d192-339e-48d1-8796-2716b6e3360e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_0c31eef4-ad0e-4eac-860c-332ad8a53e51" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_a29c7b48-9f14-45f5-a02b-199c7042c537" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_0c31eef4-ad0e-4eac-860c-332ad8a53e51" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_0c31eef4-ad0e-4eac-860c-332ad8a53e51_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_0c31eef4-ad0e-4eac-860c-332ad8a53e51" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_0c31eef4-ad0e-4eac-860c-332ad8a53e51_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_ef108c31-639e-4824-9471-afc4c51d0e38" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_0c31eef4-ad0e-4eac-860c-332ad8a53e51" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_ef108c31-639e-4824-9471-afc4c51d0e38" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SalesRevenueNetMember_f6fb9f29-9e1f-47ce-beb3-629da6a510ca" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SalesRevenueNetMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_ef108c31-639e-4824-9471-afc4c51d0e38" xlink:to="loc_us-gaap_SalesRevenueNetMember_f6fb9f29-9e1f-47ce-beb3-629da6a510ca" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_bbab7c3e-313d-4d62-9f51-44f7e2c9d134" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_a29c7b48-9f14-45f5-a02b-199c7042c537" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_bbab7c3e-313d-4d62-9f51-44f7e2c9d134" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_bbab7c3e-313d-4d62-9f51-44f7e2c9d134_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_bbab7c3e-313d-4d62-9f51-44f7e2c9d134" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_bbab7c3e-313d-4d62-9f51-44f7e2c9d134_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_b84526f6-cb16-40be-ad1a-59c5a859477b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_bbab7c3e-313d-4d62-9f51-44f7e2c9d134" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_b84526f6-cb16-40be-ad1a-59c5a859477b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerConcentrationRiskMember_8097fcd0-e1bd-4fc1-beff-10db4702796d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CustomerConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_b84526f6-cb16-40be-ad1a-59c5a859477b" xlink:to="loc_us-gaap_CustomerConcentrationRiskMember_8097fcd0-e1bd-4fc1-beff-10db4702796d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NumberOfReportableSegments_d2fc0426-b6d3-4af2-bde4-34c5377739fd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NumberOfReportableSegments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_38ff0eb0-1c52-4a7e-bc54-82ef813b3bbb" xlink:to="loc_us-gaap_NumberOfReportableSegments_d2fc0426-b6d3-4af2-bde4-34c5377739fd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_e60414d6-d69b-4133-96ea-a16c626e1151" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskPercentage1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_38ff0eb0-1c52-4a7e-bc54-82ef813b3bbb" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_e60414d6-d69b-4133-96ea-a16c626e1151" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.oneok.com/role/SEGMENTSOperatingInformationDetails" xlink:type="simple" xlink:href="oke-20231231.xsd#SEGMENTSOperatingInformationDetails"/>
  <link:definitionLink xlink:role="http://www.oneok.com/role/SEGMENTSOperatingInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_44c85bff-e5cf-4270-85d4-77f8b1fe397c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_9cf23c1e-625f-4138-acda-6561ba99e1e1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_44c85bff-e5cf-4270-85d4-77f8b1fe397c" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_9cf23c1e-625f-4138-acda-6561ba99e1e1" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_d578752d-2bd3-4352-99d0-da161730c635" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_9cf23c1e-625f-4138-acda-6561ba99e1e1" xlink:to="loc_srt_ConsolidationItemsAxis_d578752d-2bd3-4352-99d0-da161730c635" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_d578752d-2bd3-4352-99d0-da161730c635_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_d578752d-2bd3-4352-99d0-da161730c635" xlink:to="loc_srt_ConsolidationItemsDomain_d578752d-2bd3-4352-99d0-da161730c635_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_21571fef-5599-49b2-be2b-e98f8b27a57d" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_d578752d-2bd3-4352-99d0-da161730c635" xlink:to="loc_srt_ConsolidationItemsDomain_21571fef-5599-49b2-be2b-e98f8b27a57d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_dd56f5f0-1622-49b1-afb9-abf8c7d5feb7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_21571fef-5599-49b2-be2b-e98f8b27a57d" xlink:to="loc_us-gaap_OperatingSegmentsMember_dd56f5f0-1622-49b1-afb9-abf8c7d5feb7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_EliminationsAndReconcilingItemsMember_93af60ea-b28a-4957-94f7-660e0fe5a494" xlink:href="oke-20231231.xsd#oke_EliminationsAndReconcilingItemsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_21571fef-5599-49b2-be2b-e98f8b27a57d" xlink:to="loc_oke_EliminationsAndReconcilingItemsMember_93af60ea-b28a-4957-94f7-660e0fe5a494" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_216cf61b-883b-4542-86b4-8988584a67ad" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_9cf23c1e-625f-4138-acda-6561ba99e1e1" xlink:to="loc_srt_ProductOrServiceAxis_216cf61b-883b-4542-86b4-8988584a67ad" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_216cf61b-883b-4542-86b4-8988584a67ad_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_216cf61b-883b-4542-86b4-8988584a67ad" xlink:to="loc_srt_ProductsAndServicesDomain_216cf61b-883b-4542-86b4-8988584a67ad_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_4e671411-b520-4a6b-af97-fe9a39422a29" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_216cf61b-883b-4542-86b4-8988584a67ad" xlink:to="loc_srt_ProductsAndServicesDomain_4e671411-b520-4a6b-af97-fe9a39422a29" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_LiquidsCommodityMember_4fa9cb87-cf6d-4784-bc4d-4bf04a749a77" xlink:href="oke-20231231.xsd#oke_LiquidsCommodityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_4e671411-b520-4a6b-af97-fe9a39422a29" xlink:to="loc_oke_LiquidsCommodityMember_4fa9cb87-cf6d-4784-bc4d-4bf04a749a77" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_NGLandCondensateSalesMember_30f91287-79f1-4d42-b35d-d20cbbcdd0ed" xlink:href="oke-20231231.xsd#oke_NGLandCondensateSalesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_4e671411-b520-4a6b-af97-fe9a39422a29" xlink:to="loc_oke_NGLandCondensateSalesMember_30f91287-79f1-4d42-b35d-d20cbbcdd0ed" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_ResidueNaturalGasSalesMember_70dbafd5-c43b-424d-8fa2-7f2cf8f6b9c2" xlink:href="oke-20231231.xsd#oke_ResidueNaturalGasSalesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_4e671411-b520-4a6b-af97-fe9a39422a29" xlink:to="loc_oke_ResidueNaturalGasSalesMember_70dbafd5-c43b-424d-8fa2-7f2cf8f6b9c2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_GatheringandExchangeServicesRevenueMember_0909ecf6-8ef6-496a-aa3e-10f7401e7b72" xlink:href="oke-20231231.xsd#oke_GatheringandExchangeServicesRevenueMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_4e671411-b520-4a6b-af97-fe9a39422a29" xlink:to="loc_oke_GatheringandExchangeServicesRevenueMember_0909ecf6-8ef6-496a-aa3e-10f7401e7b72" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_TransportationandStorageRevenueMember_c48a53c9-74e5-4691-92ee-27373fd02697" xlink:href="oke-20231231.xsd#oke_TransportationandStorageRevenueMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_4e671411-b520-4a6b-af97-fe9a39422a29" xlink:to="loc_oke_TransportationandStorageRevenueMember_c48a53c9-74e5-4691-92ee-27373fd02697" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_OtherMember_a48a494f-b6f6-4770-9949-2a1219592d69" xlink:href="oke-20231231.xsd#oke_OtherMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_4e671411-b520-4a6b-af97-fe9a39422a29" xlink:to="loc_oke_OtherMember_a48a494f-b6f6-4770-9949-2a1219592d69" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_f193080c-8ff3-406a-9853-b946bf5d7c6b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_9cf23c1e-625f-4138-acda-6561ba99e1e1" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_f193080c-8ff3-406a-9853-b946bf5d7c6b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_f193080c-8ff3-406a-9853-b946bf5d7c6b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_f193080c-8ff3-406a-9853-b946bf5d7c6b" xlink:to="loc_us-gaap_SegmentDomain_f193080c-8ff3-406a-9853-b946bf5d7c6b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_142cec5b-b976-480e-b26b-06fc68f990fc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_f193080c-8ff3-406a-9853-b946bf5d7c6b" xlink:to="loc_us-gaap_SegmentDomain_142cec5b-b976-480e-b26b-06fc68f990fc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_NaturalGasGatheringAndProcessingMember_a1fec46a-351d-4089-b716-66d1439ddde4" xlink:href="oke-20231231.xsd#oke_NaturalGasGatheringAndProcessingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_142cec5b-b976-480e-b26b-06fc68f990fc" xlink:to="loc_oke_NaturalGasGatheringAndProcessingMember_a1fec46a-351d-4089-b716-66d1439ddde4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_NaturalGasLiquidsMember_b0ca20e1-1eb0-4cf3-8f67-e9f1a207890a" xlink:href="oke-20231231.xsd#oke_NaturalGasLiquidsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_142cec5b-b976-480e-b26b-06fc68f990fc" xlink:to="loc_oke_NaturalGasLiquidsMember_b0ca20e1-1eb0-4cf3-8f67-e9f1a207890a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_NaturalGasPipelinesMember_b0ec9892-0bf5-4b91-a266-2c9d534ee995" xlink:href="oke-20231231.xsd#oke_NaturalGasPipelinesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_142cec5b-b976-480e-b26b-06fc68f990fc" xlink:to="loc_oke_NaturalGasPipelinesMember_b0ec9892-0bf5-4b91-a266-2c9d534ee995" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_RefinedProductsAndCrudeOilMember_9427658d-4165-49b5-b68e-27092e0d335f" xlink:href="oke-20231231.xsd#oke_RefinedProductsAndCrudeOilMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_142cec5b-b976-480e-b26b-06fc68f990fc" xlink:to="loc_oke_RefinedProductsAndCrudeOilMember_9427658d-4165-49b5-b68e-27092e0d335f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_IntersegmentRevenuesbyNameAxis_2bd209b4-a4e5-4032-a045-1527f21a236b" xlink:href="oke-20231231.xsd#oke_IntersegmentRevenuesbyNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_9cf23c1e-625f-4138-acda-6561ba99e1e1" xlink:to="loc_oke_IntersegmentRevenuesbyNameAxis_2bd209b4-a4e5-4032-a045-1527f21a236b" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_IntersegmentRevenuesByNameDomain_2bd209b4-a4e5-4032-a045-1527f21a236b_default" xlink:href="oke-20231231.xsd#oke_IntersegmentRevenuesByNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_oke_IntersegmentRevenuesbyNameAxis_2bd209b4-a4e5-4032-a045-1527f21a236b" xlink:to="loc_oke_IntersegmentRevenuesByNameDomain_2bd209b4-a4e5-4032-a045-1527f21a236b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_IntersegmentRevenuesByNameDomain_382d88c3-b9ce-42d6-a8dc-59fde0461663" xlink:href="oke-20231231.xsd#oke_IntersegmentRevenuesByNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_oke_IntersegmentRevenuesbyNameAxis_2bd209b4-a4e5-4032-a045-1527f21a236b" xlink:to="loc_oke_IntersegmentRevenuesByNameDomain_382d88c3-b9ce-42d6-a8dc-59fde0461663" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_NaturalGasGatheringandProcessingIntersegmentMember_1a2a9f19-9598-4b57-b312-f99bc0174cef" xlink:href="oke-20231231.xsd#oke_NaturalGasGatheringandProcessingIntersegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oke_IntersegmentRevenuesByNameDomain_382d88c3-b9ce-42d6-a8dc-59fde0461663" xlink:to="loc_oke_NaturalGasGatheringandProcessingIntersegmentMember_1a2a9f19-9598-4b57-b312-f99bc0174cef" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MajorCustomersAxis_5c186a69-0605-4a7a-ab26-1a2508701911" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MajorCustomersAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_9cf23c1e-625f-4138-acda-6561ba99e1e1" xlink:to="loc_srt_MajorCustomersAxis_5c186a69-0605-4a7a-ab26-1a2508701911" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_5c186a69-0605-4a7a-ab26-1a2508701911_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MajorCustomersAxis_5c186a69-0605-4a7a-ab26-1a2508701911" xlink:to="loc_srt_NameOfMajorCustomerDomain_5c186a69-0605-4a7a-ab26-1a2508701911_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_7c685c47-3bac-41b1-85a5-577775610e32" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MajorCustomersAxis_5c186a69-0605-4a7a-ab26-1a2508701911" xlink:to="loc_srt_NameOfMajorCustomerDomain_7c685c47-3bac-41b1-85a5-577775610e32" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_NoncustomerMember_573c7d1c-eda0-45a2-8994-a22bd315133c" xlink:href="oke-20231231.xsd#oke_NoncustomerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_7c685c47-3bac-41b1-85a5-577775610e32" xlink:to="loc_oke_NoncustomerMember_573c7d1c-eda0-45a2-8994-a22bd315133c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_2e031162-c6c1-4c29-b55f-df11c2601e4e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_44c85bff-e5cf-4270-85d4-77f8b1fe397c" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_2e031162-c6c1-4c29-b55f-df11c2601e4e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfRevenue_0e65f0d1-0969-4fa1-9af1-0fe129b2fa11" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CostOfRevenue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_44c85bff-e5cf-4270-85d4-77f8b1fe397c" xlink:to="loc_us-gaap_CostOfRevenue_0e65f0d1-0969-4fa1-9af1-0fe129b2fa11" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DirectOperatingCosts_dd49c418-fc84-4af8-98ce-4325bba68e77" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DirectOperatingCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_44c85bff-e5cf-4270-85d4-77f8b1fe397c" xlink:to="loc_us-gaap_DirectOperatingCosts_dd49c418-fc84-4af8-98ce-4325bba68e77" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_AdjustedEBITDAUnconsolidatedAffiliates_c6139668-d719-4c9f-87cb-cd01dafe8259" xlink:href="oke-20231231.xsd#oke_AdjustedEBITDAUnconsolidatedAffiliates"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_44c85bff-e5cf-4270-85d4-77f8b1fe397c" xlink:to="loc_oke_AdjustedEBITDAUnconsolidatedAffiliates_c6139668-d719-4c9f-87cb-cd01dafe8259" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeBenefitsAndShareBasedCompensationNoncash_c5a2edc0-585d-4736-8cb4-1b82180b46b8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EmployeeBenefitsAndShareBasedCompensationNoncash"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_44c85bff-e5cf-4270-85d4-77f8b1fe397c" xlink:to="loc_us-gaap_EmployeeBenefitsAndShareBasedCompensationNoncash_c5a2edc0-585d-4736-8cb4-1b82180b46b8" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingIncomeExpenseNet_736ad536-e219-43a8-a63b-760696b51052" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherOperatingIncomeExpenseNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_44c85bff-e5cf-4270-85d4-77f8b1fe397c" xlink:to="loc_us-gaap_OtherOperatingIncomeExpenseNet_736ad536-e219-43a8-a63b-760696b51052" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_AdjustedEBITDA_ec699229-8879-497b-875f-c28165d619d7" xlink:href="oke-20231231.xsd#oke_AdjustedEBITDA"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_44c85bff-e5cf-4270-85d4-77f8b1fe397c" xlink:to="loc_oke_AdjustedEBITDA_ec699229-8879-497b-875f-c28165d619d7" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_4bdb4184-71ee-4a8f-b057-18ff0c45cfee" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_44c85bff-e5cf-4270-85d4-77f8b1fe397c" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_4bdb4184-71ee-4a8f-b057-18ff0c45cfee" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromEquityMethodInvestments_3884e8a9-8f3c-49fa-a17f-db74d98adc89" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromEquityMethodInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_44c85bff-e5cf-4270-85d4-77f8b1fe397c" xlink:to="loc_us-gaap_IncomeLossFromEquityMethodInvestments_3884e8a9-8f3c-49fa-a17f-db74d98adc89" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestments_7a2e083c-ee90-4a90-ae9c-d9d3b25342e0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityMethodInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_44c85bff-e5cf-4270-85d4-77f8b1fe397c" xlink:to="loc_us-gaap_EquityMethodInvestments_7a2e083c-ee90-4a90-ae9c-d9d3b25342e0" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_25da6fa5-2709-494a-af32-c7f4422f6885" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Assets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_44c85bff-e5cf-4270-85d4-77f8b1fe397c" xlink:to="loc_us-gaap_Assets_25da6fa5-2709-494a-af32-c7f4422f6885" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentExpenditureAdditionToLongLivedAssets_6794d7a6-c87c-4993-a6a8-a1f4360657ce" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentExpenditureAdditionToLongLivedAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_44c85bff-e5cf-4270-85d4-77f8b1fe397c" xlink:to="loc_us-gaap_SegmentExpenditureAdditionToLongLivedAssets_6794d7a6-c87c-4993-a6a8-a1f4360657ce" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_NoncashCompensationExpenseAndOther_e00d9c8e-176b-426a-9a6a-f396c4538d85" xlink:href="oke-20231231.xsd#oke_NoncashCompensationExpenseAndOther"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_44c85bff-e5cf-4270-85d4-77f8b1fe397c" xlink:to="loc_oke_NoncashCompensationExpenseAndOther_e00d9c8e-176b-426a-9a6a-f396c4538d85" xlink:type="arc" order="12"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.oneok.com/role/SEGMENTSReconciliationofNetIncometoTotalSegmentAdjustedEBITDADetails" xlink:type="simple" xlink:href="oke-20231231.xsd#SEGMENTSReconciliationofNetIncometoTotalSegmentAdjustedEBITDADetails"/>
  <link:definitionLink xlink:role="http://www.oneok.com/role/SEGMENTSReconciliationofNetIncometoTotalSegmentAdjustedEBITDADetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_7204eb5e-d042-4d26-94cb-67c573ab6e5e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_2b0f7798-65f9-4562-9b44-2d07b2a272ec" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7204eb5e-d042-4d26-94cb-67c573ab6e5e" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_2b0f7798-65f9-4562-9b44-2d07b2a272ec" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_MedfordIncidentAxis_da02816d-dd1e-453c-a491-4d24ec948bf7" xlink:href="oke-20231231.xsd#oke_MedfordIncidentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_2b0f7798-65f9-4562-9b44-2d07b2a272ec" xlink:to="loc_oke_MedfordIncidentAxis_da02816d-dd1e-453c-a491-4d24ec948bf7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_MedfordIncidentDomain_da02816d-dd1e-453c-a491-4d24ec948bf7_default" xlink:href="oke-20231231.xsd#oke_MedfordIncidentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_oke_MedfordIncidentAxis_da02816d-dd1e-453c-a491-4d24ec948bf7" xlink:to="loc_oke_MedfordIncidentDomain_da02816d-dd1e-453c-a491-4d24ec948bf7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_MedfordIncidentDomain_a1125e22-5bfc-4e2b-b1de-6174949c4b93" xlink:href="oke-20231231.xsd#oke_MedfordIncidentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_oke_MedfordIncidentAxis_da02816d-dd1e-453c-a491-4d24ec948bf7" xlink:to="loc_oke_MedfordIncidentDomain_a1125e22-5bfc-4e2b-b1de-6174949c4b93" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_BusinessInterruptionSettlementProceedsMember_8f0afc3d-224c-496d-85c9-6d44cadedfd9" xlink:href="oke-20231231.xsd#oke_BusinessInterruptionSettlementProceedsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oke_MedfordIncidentDomain_a1125e22-5bfc-4e2b-b1de-6174949c4b93" xlink:to="loc_oke_BusinessInterruptionSettlementProceedsMember_8f0afc3d-224c-496d-85c9-6d44cadedfd9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_BusinessInterruptionSettlementProceedsLessThirdPartyFracCostsMember_1a2790c7-1146-473e-81e8-2a23bdc498f8" xlink:href="oke-20231231.xsd#oke_BusinessInterruptionSettlementProceedsLessThirdPartyFracCostsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oke_MedfordIncidentDomain_a1125e22-5bfc-4e2b-b1de-6174949c4b93" xlink:to="loc_oke_BusinessInterruptionSettlementProceedsLessThirdPartyFracCostsMember_1a2790c7-1146-473e-81e8-2a23bdc498f8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_NaturalGasLiquidsAxis_850ac37d-f898-4f1a-b7bb-8f7136e8020e" xlink:href="oke-20231231.xsd#oke_NaturalGasLiquidsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_2b0f7798-65f9-4562-9b44-2d07b2a272ec" xlink:to="loc_oke_NaturalGasLiquidsAxis_850ac37d-f898-4f1a-b7bb-8f7136e8020e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_NaturalGasLiquidsDomain_850ac37d-f898-4f1a-b7bb-8f7136e8020e_default" xlink:href="oke-20231231.xsd#oke_NaturalGasLiquidsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_oke_NaturalGasLiquidsAxis_850ac37d-f898-4f1a-b7bb-8f7136e8020e" xlink:to="loc_oke_NaturalGasLiquidsDomain_850ac37d-f898-4f1a-b7bb-8f7136e8020e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_NaturalGasLiquidsDomain_7a8ecefa-5c89-40d1-ad4d-c2dba1f7a818" xlink:href="oke-20231231.xsd#oke_NaturalGasLiquidsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_oke_NaturalGasLiquidsAxis_850ac37d-f898-4f1a-b7bb-8f7136e8020e" xlink:to="loc_oke_NaturalGasLiquidsDomain_7a8ecefa-5c89-40d1-ad4d-c2dba1f7a818" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_MedfordIncidentMember_8c924aa5-3103-4f36-a783-98924744570e" xlink:href="oke-20231231.xsd#oke_MedfordIncidentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_oke_NaturalGasLiquidsDomain_7a8ecefa-5c89-40d1-ad4d-c2dba1f7a818" xlink:to="loc_oke_MedfordIncidentMember_8c924aa5-3103-4f36-a783-98924744570e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_bb9df4f6-50fd-4202-8a1f-ab241e0b3207" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_2b0f7798-65f9-4562-9b44-2d07b2a272ec" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_bb9df4f6-50fd-4202-8a1f-ab241e0b3207" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_bb9df4f6-50fd-4202-8a1f-ab241e0b3207_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_bb9df4f6-50fd-4202-8a1f-ab241e0b3207" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_bb9df4f6-50fd-4202-8a1f-ab241e0b3207_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_edad7c87-42ec-4fcd-badc-974ced41f900" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_bb9df4f6-50fd-4202-8a1f-ab241e0b3207" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_edad7c87-42ec-4fcd-badc-974ced41f900" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_MagellanAcquisitionMember_135cceeb-41fa-42f6-a491-1c1e19219f1b" xlink:href="oke-20231231.xsd#oke_MagellanAcquisitionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_edad7c87-42ec-4fcd-badc-974ced41f900" xlink:to="loc_oke_MagellanAcquisitionMember_135cceeb-41fa-42f6-a491-1c1e19219f1b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_fbddcff7-088c-4a7b-b2f5-da461a61e55b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProfitLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7204eb5e-d042-4d26-94cb-67c573ab6e5e" xlink:to="loc_us-gaap_ProfitLoss_fbddcff7-088c-4a7b-b2f5-da461a61e55b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_1e667813-5a82-4504-bcd5-c4333a87834c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7204eb5e-d042-4d26-94cb-67c573ab6e5e" xlink:to="loc_us-gaap_InterestExpense_1e667813-5a82-4504-bcd5-c4333a87834c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_3badb3dd-043c-4b16-9eea-7048da99a3c7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7204eb5e-d042-4d26-94cb-67c573ab6e5e" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_3badb3dd-043c-4b16-9eea-7048da99a3c7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_abe4deb0-5f00-45e0-b88a-a7bcccf6b32f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7204eb5e-d042-4d26-94cb-67c573ab6e5e" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_abe4deb0-5f00-45e0-b88a-a7bcccf6b32f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_AdjustedEBITDAUnconsolidatedAffiliates_186da6d4-3d50-46a1-895f-5829029743c9" xlink:href="oke-20231231.xsd#oke_AdjustedEBITDAUnconsolidatedAffiliates"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7204eb5e-d042-4d26-94cb-67c573ab6e5e" xlink:to="loc_oke_AdjustedEBITDAUnconsolidatedAffiliates_186da6d4-3d50-46a1-895f-5829029743c9" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromEquityMethodInvestments_72470916-bc09-495f-928b-8f7787681d68" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromEquityMethodInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7204eb5e-d042-4d26-94cb-67c573ab6e5e" xlink:to="loc_us-gaap_IncomeLossFromEquityMethodInvestments_72470916-bc09-495f-928b-8f7787681d68" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeBenefitsAndShareBasedCompensationNoncash_db9a5586-71c4-4b8d-a5d8-c97e1e8864bd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EmployeeBenefitsAndShareBasedCompensationNoncash"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7204eb5e-d042-4d26-94cb-67c573ab6e5e" xlink:to="loc_us-gaap_EmployeeBenefitsAndShareBasedCompensationNoncash_db9a5586-71c4-4b8d-a5d8-c97e1e8864bd" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_OtherCorporateCostsandNoncashItems_d27ef1dd-3102-4f2c-8a5b-311d302f176d" xlink:href="oke-20231231.xsd#oke_OtherCorporateCostsandNoncashItems"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7204eb5e-d042-4d26-94cb-67c573ab6e5e" xlink:to="loc_oke_OtherCorporateCostsandNoncashItems_d27ef1dd-3102-4f2c-8a5b-311d302f176d" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_AdjustedEBITDA_6dda382c-02c9-4e75-930f-ffec887ee295" xlink:href="oke-20231231.xsd#oke_AdjustedEBITDA"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7204eb5e-d042-4d26-94cb-67c573ab6e5e" xlink:to="loc_oke_AdjustedEBITDA_6dda382c-02c9-4e75-930f-ffec887ee295" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainOnBusinessInterruptionInsuranceRecovery_562e0f80-5545-4ade-b9b9-08047ee10d5e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GainOnBusinessInterruptionInsuranceRecovery"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7204eb5e-d042-4d26-94cb-67c573ab6e5e" xlink:to="loc_us-gaap_GainOnBusinessInterruptionInsuranceRecovery_562e0f80-5545-4ade-b9b9-08047ee10d5e" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_ThirdPartyFractionationCosts_d0f26705-f346-4bbe-a680-67a7aba5b72b" xlink:href="oke-20231231.xsd#oke_ThirdPartyFractionationCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7204eb5e-d042-4d26-94cb-67c573ab6e5e" xlink:to="loc_oke_ThirdPartyFractionationCosts_d0f26705-f346-4bbe-a680-67a7aba5b72b" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_0056714b-5732-4270-90ec-023d877088dd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationAcquisitionRelatedCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7204eb5e-d042-4d26-94cb-67c573ab6e5e" xlink:to="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_0056714b-5732-4270-90ec-023d877088dd" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeOther_1d18e888-7987-400e-9b54-45fd7a314353" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestIncomeOther"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7204eb5e-d042-4d26-94cb-67c573ab6e5e" xlink:to="loc_us-gaap_InterestIncomeOther_1d18e888-7987-400e-9b54-45fd7a314353" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_6e9671ad-f69c-4336-afcb-091d437e3a44" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7204eb5e-d042-4d26-94cb-67c573ab6e5e" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_6e9671ad-f69c-4336-afcb-091d437e3a44" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_oke_AdditionalAdjustedEBITDA_90426942-0530-46a0-bbd7-138b4ae4ea49" xlink:href="oke-20231231.xsd#oke_AdditionalAdjustedEBITDA"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7204eb5e-d042-4d26-94cb-67c573ab6e5e" xlink:to="loc_oke_AdditionalAdjustedEBITDA_90426942-0530-46a0-bbd7-138b4ae4ea49" xlink:type="arc" order="14"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fasb.org/us-gaap/role/eedm/ExtensibleEnumerationLists" xlink:type="simple" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-roles-2023.xsd#eedm"/>
  <link:definitionLink xlink:role="http://fasb.org/us-gaap/role/eedm/ExtensibleEnumerationLists" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsAbstract" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AssetsAbstract"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsCurrent" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherAssetsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract" xlink:to="loc_us-gaap_OtherAssetsCurrent" xlink:type="arc" order="1"/>
  </link:definitionLink>
</link:linkbase>
