French authorities have charged a self-described far-right nationalist with plotting to assassinate French President Emmanuel Macron during President Trump's visit to France.

A 23-year-old suspect was arrested and charged with planning to shoot Macron during a parade on the Champs-Élysées in Paris to celebrate Bastille Day on July 14, according to CNN.

Trump last week accepted Macron's invitation to visit France for the nation's holiday, which commemorates the storming of the Bastille during the French Revolution. He is set to be the guest of honor at the parade.

The suspect called himself a far-right nationalist and said his plot was intended to be a political statement, CNN reported. He also reportedly wanted to attack "blacks, Arabs, Jews and homosexuals."

Authorities said they discovered the plot after finding the suspect's posts on a video games message board about trying to buy a Kalashnikov-type weapon.

A Bastille Day attack in Nice last year left 84 dead after an attacker drove a large truck into crowds of celebrants.

Macron and Trump last met in June during the Group of Seven summit in Italy. The French leader praised Trump for his "capacity to listen."

However, the two men have a number of policy differences, most notably on climate change. Macron has championed the Paris climate deal, which Trump pulled the U.S. out of last month.

Macron has trolled Trump online, with a climate website called "Make Our Planet Great Again" - a take on Trump's "Make America Great Again" campaign slogan - and a short video alongside Arnold Schwarzenegger, whom Trump has feuded with.