Former President Barack Obama endorsed Canadian Prime Minister Justin Trudeau and encouraged Canadians to reelect him.

"I was proud to work with Justin Trudeau as President. He's a hard-working, effective leader who takes on big issues like climate change. The world needs his progressive leadership now, and I hope our neighbors to the north support him for another term," the former president tweeted.

Trudeau, 47, was elected to serve as the country's prime minister in 2015 and has been the leader of the Liberal Party since 2013. He and Obama worked together during the final years of Obama's time in office.

The election is scheduled to take place on Oct. 21.

Story continues below

Trudeau has faced a turbulent couple weeks after old photos emerged of him wearing blackface. The original picture that surfaced was taken during a gala in 2001 that had an Arabian Nights theme. He has since apologized.

Obama has not yet endorsed any 2020 presidential candidate.