content: <?xml version="1.0" encoding="UTF-8"?><edgarSubmission xmlns="http://www.sec.gov/edgar/ownership" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <headerData>
  <submissionType>144</submissionType>
  <filerInfo>
  <filer>
  <filerCredentials>
  <cik>0001618921</cik>
  <ccc>XXXXXXXX</ccc>
  </filerCredentials>
  </filer>
  <liveTestFlag>LIVE</liveTestFlag>
  </filerInfo>
  </headerData>
  <formData>
  <issuerInfo>
  <issuerCik>0001140859</issuerCik>
  <issuerName>AMERISOURCEBERGEN CORP</issuerName>
  <secFileNumber>001-16671</secFileNumber>
  <issuerAddress>
  <street1 xmlns="http://www.sec.gov/edgar/common">1 West First Avenue </street1>
  <city xmlns="http://www.sec.gov/edgar/common">Conshohocken</city>
  <stateOrCountry xmlns="http://www.sec.gov/edgar/common">PA</stateOrCountry>
  <zipCode xmlns="http://www.sec.gov/edgar/common">19428-1800</zipCode>
  </issuerAddress>
  <issuerContactPhone>610-727-7000</issuerContactPhone>
  <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>Walgreens Boots Alliance Holdings LLC</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
  <relationshipsToIssuer>
  <relationshipToIssuer>Affiliate</relationshipToIssuer>
  </relationshipsToIssuer>
  </issuerInfo>
  <securitiesInformation>
  <securitiesClassTitle>Common Stock</securitiesClassTitle>
  <brokerOrMarketmakerDetails>
  <name>BofA Securities, Inc.</name>
  <address>
  <street1 xmlns="http://www.sec.gov/edgar/common">One Bryant Park</street1>
  <street2 xmlns="http://www.sec.gov/edgar/common">8th Floor</street2>
  <city xmlns="http://www.sec.gov/edgar/common">New York</city>
  <stateOrCountry xmlns="http://www.sec.gov/edgar/common">NY</stateOrCountry>
  <zipCode xmlns="http://www.sec.gov/edgar/common">10036</zipCode>
  </address>
  </brokerOrMarketmakerDetails>
  <noOfUnitsSold>2190000</noOfUnitsSold>
  <aggregateMarketValue>398339100</aggregateMarketValue>
  <noOfUnitsOutstanding>202466004</noOfUnitsOutstanding>
  <approxSaleDate>06/15/2023</approxSaleDate>
  <securitiesExchangeName>NYSE</securitiesExchangeName>
  </securitiesInformation>
  <securitiesToBeSold>
  <securitiesClassTitle>Common Stock</securitiesClassTitle>
  <acquiredDate>08/25/2016</acquiredDate>
  <natureOfAcquisitionTransaction>Shares acquired upon exercise of warrant</natureOfAcquisitionTransaction>
  <nameOfPersonfromWhomAcquired>The Issuer</nameOfPersonfromWhomAcquired>
  <isGiftTransaction>N</isGiftTransaction>
  <amountOfSecuritiesAcquired>22696912</amountOfSecuritiesAcquired>
  <paymentDate>08/25/2016</paymentDate>
  <natureOfPayment>Cash</natureOfPayment>
  </securitiesToBeSold>
  <nothingToReportFlagOnSecuritiesSoldInPast3Months>N</nothingToReportFlagOnSecuritiesSoldInPast3Months>
  <securitiesSoldInPast3Months>
  <sellerDetails>
  <name>Walgreens Boots Alliance Holdings LLC</name>
  <address>
  <street1 xmlns="http://www.sec.gov/edgar/common">108 Wilmot Road</street1>
  <city xmlns="http://www.sec.gov/edgar/common">Deerfield</city>
  <stateOrCountry xmlns="http://www.sec.gov/edgar/common">IL</stateOrCountry>
  <zipCode xmlns="http://www.sec.gov/edgar/common">60014</zipCode>
  </address>
  </sellerDetails>
  <securitiesClassTitle>Common Stock</securitiesClassTitle>
  <saleDate>05/11/2023</saleDate>
  <amountOfSecuritiesSold>4590000</amountOfSecuritiesSold>
  <grossProceeds>644300000</grossProceeds>
  </securitiesSoldInPast3Months>
  <remarks>In accordance with the procedures described in the interpretive letters from the staff of the Securities and Exchange Commission to Goldman, Sachs &amp; Co., dated December 20, 1999, and to Bank of America, N.A., Merrill Lynch, Pierce, Fenner &amp; Smith Incorporated, dated December 1, 2011, the Shares being sold are subject to variable pre-paid forward sale contracts (the "Contracts") each between Walgreens Boots Alliance Holdings LLC ("Counterparty") and a financial institution.  The Contracts will provide for up-front cash payment to Counterparty. At maturity of the Contracts, Counterparty will be obligated to deliver to the relevant financial institution a number of shares as determined by a formula specified in the relevant Contract (or the cash equivalent thereof) and may, under certain circumstances, receive an additional cash payment. Any initial hedging activity in connection with the Contracts will be conducted by or through the broker named in Section 3(b).</remarks>
  <noticeSignature>
  <noticeDate>06/15/2023</noticeDate>
  <signature>/s/ Joseph B. Amsbary, Jr.</signature>
  </noticeSignature>
  </formData>
  </edgarSubmission>
metadata_documents: [{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 4419}]
text: 144
  0001618921
  XXXXXXXX
  LIVE
  0001140859
  AMERISOURCEBERGEN CORP
  001-16671
  1 West First Avenue
  Conshohocken
  PA
  19428-1800
  610-727-7000
  Walgreens Boots Alliance Holdings LLC
  Affiliate
  Common Stock
  BofA Securities, Inc.
  One Bryant Park
  8th Floor
  New York
  NY
  10036
  2190000
  398339100
  202466004
  06/15/2023
  NYSE
  Common Stock
  08/25/2016
  Shares acquired upon exercise of warrant
  The Issuer
  N
  22696912
  08/25/2016
  Cash
  N
  Walgreens Boots Alliance Holdings LLC
  108 Wilmot Road
  Deerfield
  IL
  60014
  Common Stock
  05/11/2023
  4590000
  644300000
  In accordance with the procedures described in the interpretive letters from the staff of the Securities and Exchange Commission to Goldman, Sachs & Co., dated December 20, 1999, and to Bank of America, N.A., Merrill Lynch, Pierce, Fenner & Smith Incorporated, dated December 1, 2011, the Shares being sold are subject to variable pre-paid forward sale contracts (the "Contracts") each between Walgreens Boots Alliance Holdings LLC ("Counterparty") and a financial institution.  The Contracts will provide for up-front cash payment to Counterparty. At maturity of the Contracts, Counterparty will be obligated to deliver to the relevant financial institution a number of shares as determined by a formula specified in the relevant Contract (or the cash equivalent thereof) and may, under certain circumstances, receive an additional cash payment. Any initial hedging activity in connection with the Contracts will be conducted by or through the broker named in Section 3(b).
  06/15/2023
  /s/ Joseph B. Amsbary, Jr.