Former President Barack Obama warned against the appeal of populism and authoritarianism during a speech in Canada on Tuesday.

Speaking at the Montreal Chamber of Commerce, Obama addressed major issues of the day such as climate change, fake news and maintaining trust in global institutions at a moment of great uncertainty, CNN reports. Obama warned that other such moments in history have allowed for a rise in populist and sometimes authoritarian leadership.

“In periods like this, people looking for control and certainty, it’s inevitable,” Obama said of the rise of populist leaders. “But it is important to remember that the world has gone through similar moments … Our history also shows there is a better way.”

“The call for isolation or nationalism” and the “rolling back the rights of others” should be avoided, he said, calling on people to “replace fear with hope.”

The 44th President also addressed climate change and the Paris climate agreement that President Donald Trump pulled the U.S. out of last week, calling it “the most ambitious agreement in history to fight climate change.” Obama called the accord “an agreement that even with the temporary absence of American leadership will still give our children a fighting chance.”

After his speech, Obama sat down to dinner with Canadian Prime Minister Justin Trudeau.

[CNN]

Get The Brief. Sign up to receive the top stories you need to know right now. Please enter a valid email address. Sign Up Now Check the box if you do not wish to receive promotional offers via email from TIME. You can unsubscribe at any time. By signing up you are agreeing to our Terms of Use and Privacy Policy . This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply. Thank you! For your security, we've sent a confirmation email to the address you entered. Click the link to confirm your subscription and begin receiving our newsletters. If you don't get the confirmation within 10 minutes, please check your spam folder.

Contact us at letters@time.com.