Lewis Hamilton spoke out on Thursday against the controversial anti-gay law in Hungary.

A Formula 1 Grand Prix will be held in Budapest next weekend.

"To everyone in beautiful Hungary: In the run-up to next weekend's grand prix, I want to express my support for those affected by the government's anti-LGBTI law," Hamilton wrote in a statement on Instagram.

In June, the Hungarian government led by Viktor Orbán passed the anti-gay law.

As a result, 'promoting' homosexuality and changing gender are prohibited in education and media, among other things.

"It is unacceptable, cowardly and misleading for those in power to propose such a law," said Hamilton.

"Everyone deserves the freedom to be themselves, no matter how they identify themselves."

European leaders vehemently against law

Hungary's anti-gay law has been causing a stir for some time.

Numerous European leaders, including Mark Rutte, spoke out strongly against the law.

Calls have already been made to protest against Orbán's government around the European Football Championship, of which some matches were played in Budapest.

Seven-time Formula 1 champion Hamilton regularly speaks out on social issues.

For example, the Briton was a figurehead in the Black Lives Matter movement last year.

"I call on the people of Hungary to vote in the upcoming referendum and protect the rights of the LGBTI community. They need your support more than ever," said Hamilton.

The Hungarian Grand Prix starts on Sunday at 3 p.m.