Japan’s Toshiba (6502.T) has signed an agreement to sell its chip-making division, Toshiba Memory Corporation, to a consortium led by Bain Capital in a transaction worth 2 trillion Japanese yen ($17.73 billion), after a drawn-out bidding process.

The transaction value includes a 350 billion yen reinvestment in the company from Toshiba, 212 billion yen from Bain Capital as well as loans totaling 600 billion yen, the company said on Thursday.

Japan’s Hoya, a medical technology and chip-parts making firm, and SK Hynix, a South Korean chip maker are also part of the buying consortium. US investors participating and putting down a combined 415.5 billion yen are Apple (AAPL), Dell Technologies Capital, Seagate Technology and Kingston Technology.

Even so, with Toshiba and Hoya, Japanese investors will own a more than 50% stake in the company and Japan-based investors will continue to hold a majority in the future. The Innovation Network Corporation of Japan and the Development Bank of Japan also expressed interest in investing in the company at a later stage.

In addition, SK Hynix would be banned from accessing proprietary information that belonged to the chip unit and it won’t be allowed to own more than 15% of voting rights for 10 years.

“The sale of Toshiba Memory Corporation must promote further growth of Toshiba Memory Corporation’s memory business, and return Toshiba group to positive equity,” Yasuo Naruke, senior executive vice president of Toshiba, said earlier in September when it began a final stage of talks with the Bain-led group.

Receive News & Ratings Via Email - Enter your email address below to receive a concise daily summary of the latest news and analysts' ratings with MarketBeat.com's FREE daily email newsletter.