Herb Gray was the Liberal MP for Windsor for 34 years. ((Carleton University))

Herb Gray, former Liberal MP and deputy prime minister, has been named chancellor of Ottawa's Carleton University.

Gray was appointed to the position Friday, replacing Marc Garneau, a former astronaut who won the Montreal riding of Westmount-Ville Marie for the Liberals in last month's federal election.

Gray was the MP for Windsor for 34 years, serving as a cabinet minister under prime ministers Pierre Trudeau, John Turner and Jean Chrétien. Under Chrétien, he was deputy prime minister for five years before retiring to serve as the Canadian chair of the International Joint Commission, a body that deals with water and air issues between Canada and the United States.

Jacques Shore, chair of Carleton University's board of governors, said the university will greatly benefit from Gray's "insights and outstanding experience."

University president Roseann O'Reilly Runte said she believes Gray will "inspire us all by his wisdom and example."