The federal and Ontario governments have sold a block of 30 million shares in General Motors which they received in 2009 in return for bailing out the automaker. The stake, valued at $1.1 billion, was sold Tuesday to Merrill Lynch and RBC Dominion Securities Inc.

Finance Minister Jim Flaherty said in an email that the shares were sold at Tuesday's closing price of $37 US on the New York Stock Exchange, minus a small discount.

With completion of the sale, the governments will continue to hold more than 119 million GM common shares and 16.1 million GM series A preferred stock through a federal agency.

Both Ottawa and the Ontario government acquired GM shares in 2009 after providing the ailing automaker with some $10.6 billion in aid during the Great Recession.

The investment is held on behalf of the two governments by Canada GEN Investment Corp., a subsidiary of the Canada Development Investment Corp.

The Ontario government divested its interest in 10 million GM shares, while Ottawa sold 20 million shares through the transaction announced Tuesday.

"In the worst of the global recession, we took the necessary action to protect Canadian jobs and communities with a co-ordinated investment in GM and Chrysler, along with the Ontario and U.S. governments," the statement issued by Flaherty's office said.

"The financial support was crucial in protecting jobs and positioning Canada's auto industry for future success."

General Motors shut down part of its production in Oshawa, Ont. and laid off thousands of workers as part of its restructuring in the wake of the bailout.

Flaherty plans to sell more GM shares

"As we said from the start, our investment in GM was always meant to be temporary as we worked to maximize the return to Canadian taxpayers," Flaherty said.

The finance minister added that Ottawa was committed to selling its remaining ownership of GM "as quickly as feasible."

Ontario Finance Minister Charles Sousa also said the province was "committed to exiting from its remaining interest in the GM shares, while maximizing the value of the government's interest for the people of Ontario."

Sousa said Ontario still holds almost 36.7 million GM common shares and 5.4 million series A preferred stock.

About $9.8-billion of the Canadian governments’ bailout package was converted into 58 million common shares, and before it sold the stake Tuesday, government held 11.7 per cent in GM.

The U.S. government is also getting closer to selling all of its General Motors stock.

The Treasury Department said in its August report to the U.S. Congress that it sold $811 million worth of GM common stock last month.

The report dated Tuesday said the U.S. government has recovered about $35.4 billion of the $49.5 billion bailout it gave the Detroit automaker. That means American taxpayers are still $14.1 billion in the hole.