U.S. President Barack Obama thanked the Canadian government Wednesday for hosting the high-level talks that will soon lead to the resumption of diplomatic relations between his country and Cuba.

In a surprise announcement Wednesday, the Obama administration said that the two countries have agreed to engage in high-level talks aimed at re-establishing diplomatic ties and eventually lifting a travel and trade embargo that has been in place for more than 50 years.

In an address to his nation at noon Wednesday, Obama thanked two partners in the United States鈥 efforts to normalize relations with its long-time foe: Pope Francis, and the Canadian government.

Canada was the 鈥減rincipal venue鈥 for secret meetings between U.S. and Cuba between June 2013 and November 2014, CTV鈥檚 Washington Bureau Chief Paul Workman reported Wednesday.

Canada hosted six meetings in Ottawa and one in Toronto, but did not participate in the discussions. A final agreement came together at a meeting hosted by the Vatican in October.

U.S. officials confirmed that Pope Francis was personally involved in the process and sent letters to Obama and Cuban President Raul Castro urging them to resume diplomatic ties.

In his address, Obama thanked Pope Francis, 鈥渨hose moral example shows us the importance of pursuing the world as it should be rather than simply settling for the world as it is.鈥

He also thanked the government of Canada, 鈥渨hich hosted our discussions with the Cuban government.鈥

In a statement released Wednesday afternoon, Prime Minister Stephen Harper congratulated the U.S. and Cuba on their "successful dialogue and negotiations."

Harper added that 鈥淐anada supports a future for Cuba that fully embraces the fundamental values of freedom, democracy, human rights and the rule of law.

鈥淐anada was pleased to host the senior officials from the United States and Cuba, which permitted them the discretion required to carry out these important talks.鈥

Despite close ties between Canada and Cuba, Harper has been a harsh critic of the communist country, objecting to its entry into the Summit of the Americas.

鈥淢r. Harper has continued to be the person who has had severe reservations, more than the Americans, about Cuba,鈥 said John Kirk, an expert on Cuba from Dalhousie University.

Former Canadian ambassador to Cuba, Mark Entwhistle, said U.S. and Cuban officials needed a 鈥渟afe and neutral鈥 place to hold their talks, and they could not do that either in Havana or in Washington.

Canada provided a 鈥渟afe and trusted place to have those conversations,鈥 which Entwhistle called, 鈥渁 fitting role for Canadian diplomacy.鈥

NDP foreign affairs critic Paul Dewar hailed Canadian diplomats for their work.

"This is an example of constructive diplomacy, something that Canada is very good at," Dewar said in a statement.

鈥淭oday is a great day for those who believe in engagement as the most effective tool of diplomacy. We should see more of this constructive approach in Canadian foreign policy."

Liberal Leader Justin Trudeau, whose father had a close relationship with former Cuban leader Fidel Castro during his time as prime minister in the 1970s, said he is glad to see 鈥渢he welcome steps鈥 of the two countries rebuilding their relationship.

鈥淚 look forward to Canada playing a positive role in bringing the two countries closer together,鈥 Trudeau said.

With a report from CTV鈥檚 Ottawa Bureau Chief Robert Fife