Nelson Piquet, a three-time Formula One champion, was ordered to pay $950,000 in "moral damages" for racist and homophobic comments he made regarding Lewis Hamilton in 2021.

Piquet, who is from Brazil, referred to Hamilton as "neguinho" – a racially offensive term which means "little Black guy," according to the Associated Press. He was also seen in a video published in Grande Premio last year using homophobic language to say Hamilton was not focused to challenge Mercedes teammate Nico Rosberg for the 2016 title.

CLICK HERE FOR MORE SPORTS COVERAGE ON FOXNEWS.COM

Lewis Hamilton in Saudi Arabia

Lewis Hamilton, of Great Britain driving the #44 Mercedes AMG Petronas F1 Team W14, on track during the F1 Grand Prix of Saudi Arabia at Jeddah Corniche Circuit on March 19, 2023 in Jeddah, Saudi Arabia. (Lars Baron/Getty Images)

Piquet was ordered by Brasilia court on Friday to pay 5 million Brazilian reals "in collective moral damages to be allocated for the promotion of racial equality and against discrimination of the LGBTQIA+ community." The judge said Piquet’s remarks corresponded to the definition of racial discrimination outlined in Brazil’s 2010 Statute of Racial Equality.

Several human rights groups filed charges in Brazil against Piquet for his comments. 

The 70-year-old was discussing a crash between Hamilton and Red Bull driver Max Verstappen that took place in the British Grand Prix in 2021. His daughter Kelly Piquet is Verstappen’s girlfriend. 

Nelson Piquet in 2015

Three-time world champion Formula One racer Nelson Piquet of Brazil attends the shooting of the Hungarian Television's Formula One magazine in Budapest, Hungary, on July 23, 2015. (Janos Marjai/MTI via AP, File)

CORINNA'S FIGHT TO KEEP HUSBAND MICHAEL SCHUMACHER’S HEALTH PRIVATE MADE HER FEEL 'LIKE A PRISONER': REPORT

Piquet later apologized for the "ill thought out" racial term but said it "is one that has widely and historically been used colloquially in Brazilian Portuguese as a synonym for ‘guy’ or ‘person’ and was never intended to offend."

A Brazilian judge said Piquet’s comments implied if Hamilton hadn’t been gay "he would have won the championship. ... Therefore, being gay would be a negative characteristic."

Piquet could appeal the ruling.

Lewis Hamilton prepares

Lewis Hamilton, of Great Britain and Mercedes, looks on prior to the F1 Grand Prix of Saudi Arabia at Jeddah Corniche Circuit on March 19, 2023 in Jeddah, Saudi Arabia. (Dan Istitene - Formula 1/Formula 1 via Getty Images)

CLICK HERE TO GET THE FOX NEWS APP

Hamilton is a seven-time F1 champion. He has not won a race since the 2021 season.

The Associated Press contributed to this report.