The US owner of high street chemist Boots says it will be taken private in a $10bn (£7.8bn) deal.
The move brings to an end nearly a century of trading on public markets for the Walgreens Boots Alliance.
It has seen its debt grow as cost-conscious customers chose to shop online and opted for cheaper products.
Around 300 stores of the pharmacy chain were recently closed across the UK as it shakes up the business.
There are now 1,900 Boots stores left in the UK.
The total value of the transaction could be worth up to $23.7bn, including debt and possible payouts down the line.
Under the deal, US private equity firm Sycamore Partners will pay $11.45 per share for Walgreens Boots Alliance. That is more than its shares are currently worth on the US stock market.
The shares rose by nearly 6% in extended trading in New York.
The deal is expected to be completed by the end of this year.
Tim Wentworth, chief executive of Walgreens, said the firm was navigating the “challenges of a rapidly evolving pharmacy industry and an increasingly complex and competitive retail landscape”.
“While we are making progress against our ambitious turnaround strategy, meaningful value creation will take time, focus and change that is better managed as a private company,” he added.
It is unclear what the deal would mean for Boots and its UK operations.
The Illinois-based Walgreens took a 45% stake in Boots in 2012.
It bought the remainder of the firm two years later in a deal that valued Boots at around £9bn.
Walgreens is also made up of its namesake US retail business, specialty pharmacy group Shields Health Solutions and healthcare provider VillageMD.
In recent years, the company has faced mounting challenges as customers turned to cheaper rivals.
In 2022, Walgreens put Boots up for sale but later dropped these plans, saying potential buyers had been unable to raise enough funds.
In October, it announced plans to shut 1,200 Walgreens stores in the US over the next three years under a cost-cutting programme.
Get Nadine White's Race Report newsletter for a fresh perspective on the week's newsGet our free newsletter from The Independent's Race CorrespondentGet our fre
In a determined effort to retain Nissan’s manufacturing presence in Britain, Business Secretary Jonathan Reynolds has vowed to implement “substantial c
Business and Trade Secretary Jonathan Reynolds today (Friday 7 March) met chiefs for Fujitsu in Tokyo to begin talks over the cost of redress for victims of th
UK foreign secretary David Lammy has said that a new multilateral fund will be needed to secure Europe’s defence as he confirmed that Britain is “open to”