"The Simpsons" has built a reputation for predicting the future.

A 2017 episode of the cartoon also seemed to preempt Daenerys Targaryen's big plot twist on the penultimate episode of "Game of Thrones."

"The Simpsons" also predicted the election of Donald Trump, the discovery of the Higgs boson equation, and a Lady Gaga performance.

Visit Business Insider's homepage for more stories.

19 years ago, an episode of "The Simpsons" predicted that Donald Trump would one day become US president.

And this wasn't the only time the writers have managed to predict the future.

"The Simpsons" has been running for almost 30 years, so it's inevitable that some themes that crop up in the show might occur in real life. But some of the plotlines are eerily close to events that have happened throughout the world.

We've listed some of the strangest predictions the cartoon's writers have made since the show's launch in 1989, from Homer discovering the Higgs boson to animators drawing The Shard in London almost 20 years before it was built.

Edith Hancock, Amanda Luz Henning Santiago, and Carrie Wittmer contributed to previous versions of this post.

Here are 18 times "The Simpsons" predicted the future, in order of their appearance on the show: