AmerisourceBergen will repurchase about $50 million of its common stock from Walgreens in this transaction, the U.S. drugstore chain said, adding that its ownership of AmerisourceBergen's common stock would remain at 17%.

The Deerfield, Illinois-based company sold AmerisourceBergen shares for $1 billion last December, cutting its ownership from 20%.

The share sale has no impact on the long-term partnership between the two companies, Walgreens said.

(Reporting by Rishabh Jaiswal in Bengaluru; Editing by Sherry Jacob-Phillips)