(Reuters) - Warren Buffett on Monday donated roughly $3.17 billion of Berkshire Hathaway Inc stock to the Bill & Melinda Gates Foundation and four family charities, his largest contribution in a more than decade-long plan to give away his fortune.

Berkshire Hathaway CEO Warren Buffett (R) talks to Microsoft founder Bill Gates as they play Bridge during the Berkshire Hathaway annual meeting weekend in Omaha, Nebraska, U.S. May 7, 2017. REUTERS/Rick Wilking

The billionaire investor’s 12th annual donation to the five charities comprised 18.63 million Class “B” shares of Berkshire, valued at $170.25 each as of Monday’s market close.

Berkshire said Buffett, 86, has made $27.54 billion in donations since 2006 to the five charities, including roughly $21.9 billion to the Gates Foundation.

Buffett still owns about 17 percent of Berkshire, the Omaha, Nebraska-based conglomerate he has run since 1965, despite having donated more than 40 percent of his holdings.

The Gates Foundation, which focuses on improving health, reducing poverty and aiding education, is receiving about $2.42 billion of Monday’s donations.

Buffett also donated to the Susan Thompson Buffett Foundation, named for his late first wife, and the Howard G. Buffett, Sherwood and NoVo Foundations, respectively overseen by his children, Howard, Susan and Peter.

Following Monday’s donation, Buffet remained the world’s fourth-richest person, according to Forbes magazine.

Before the donations were announced, Forbes estimated Buffett’s net worth at $76.3 billion, trailing Microsoft Corp co-founder Bill Gates’ $89.4 billion, Amazon.com Inc founder Jeff Bezos’ $84.8 billion, and Spanish retailing magnate Amancio Ortega’s $81.8 billion.

Gates is a close friend of Buffett and a Berkshire director.

Buffett typically reduces the number of shares he donates by 5 percent from the prior year.

The charities usually sell the Berkshire shares to finance their activities, reflecting Buffett’s desire that his money be spent. Buffett also makes smaller donations to other charities.