Warren Buffett, through his Berkshire Hathaway Inc. (NYSE:BRK) investment vehicle, will become a major shareholder of Goldman Sachs Inc. (NYSE:GS), the New York-based investment bank disclosed Tuesday.

Berkshire Hathaway will swap warrants issued to it by Goldman Sachs in October 2008, at the worst of the financial crisis, for a 9 percent stake in Goldman Sachs, according to an SEC filing by the bank.

Buffett rescued Goldman, in exchange for the warrants, when it was reeling from the collapse of the U.S. housing market and the ensuing recession. Warrants are rights to purchase securities at a specific date and specific price.

Under the original terms, Berkshire had until Oct. 1, 2012, to make the warrants-for-shares swap.

"We are pleased that Berkshire Hathaway intends to remain a long-term investor in Goldman Sachs," Goldman Sachs CEO Lloyd Blankfein said.