Iran’s Supreme Leader Ayatollah Ali Khamenei has publicly criticised the US government over its handling of violence following a recent white nationalist rally in Charlottesville, Virginia.

“If US has any power, they better manage their country, tackle #WhiteSupremacy rather than meddle in nations' affairs. #Charlottesville,” a post on the religious figure’s official Twitter account said late on Wednesday.

The comment comes in the wake of the biggest white supremacist gathering on US soil in decades in the town of Charlottesville over the weekend, which quickly turned violent, pointing towards widening divides in US society.

Jeremy Corbyn slams Donald Trump over Charlottesville response

Neo-Nazi and Ku Klux Klan sympathisers were met with left wing counter-protesters. Fighting broke out, and a car ramming carried out by one right-wing protester left anti-fascist protester 32-year-old Heather Heyer dead and 19 more people injured.

US President Donald Trump initially said the casualties had been caused by “violence on both sides”.

Two days later, he bowed to pressure from both Democrats and Republicans to specifically condemn the white supremacist movements present, but one day later backtracked, blaming the counter-protesters for “very very violent” behaviour too.

Iran's 'Trumpism' contest Show all 10 1 /10 Iran's 'Trumpism' contest Iran's 'Trumpism' contest A picture taken on July 3, 2017 shows a cartoon of US President Donald J. Trump and First Lady Melania Trump on display at an exhibition of the Islamic Republic's 2017 International Trumpism cartoon and caricature contest, in the capital Tehran. / AFP PHOTO / ATTA KENARE (Photo credit should read ATTA KENARE/AFP/Getty Images) AFP/Getty Images Iran's 'Trumpism' contest An Iranian woman looks at cartoons of US President Donald J. Trump at an exhibition of the Islamic Republic's 2017 International Trumpism cartoon and caricature contest, in the capital Tehran on July 3, 2017. / AFP PHOTO / ATTA KENARE (Photo credit should read ATTA KENARE/AFP/Getty Images) AFP/Getty Images Iran's 'Trumpism' contest An Iranian woman looks at cartoons of US President Donald J. Trump at an exhibition of the Islamic Republic's 2017 International Trumpism cartoon and caricature contest, in the capital Tehran on July 3, 2017. / AFP PHOTO / ATTA KENARE (Photo credit should read ATTA KENARE/AFP/Getty Images) AFP/Getty Images Iran's 'Trumpism' contest Iranian cartoonist Hadi Asadi poses for a picture with a trophy and an award next to cartoons of US President Donald J. Trump, at an exhibition of the Islamic Republic's 2017 International Trumpism cartoon and caricature contest, in the capital Tehran on July 3, 2017. / AFP PHOTO / ATTA KENARE (Photo credit should read ATTA KENARE/AFP/Getty Images) AFP/Getty Images Iran's 'Trumpism' contest Iranians look at cartoons of US President Donald J. Trump at an exhibition of the Islamic Republic's 2017 International Trumpism cartoon and caricature contest, in the capital Tehran on July 3, 2017. / AFP PHOTO / ATTA KENARE (Photo credit should read ATTA KENARE/AFP/Getty Images) AFP/Getty Images Iran's 'Trumpism' contest An Iranian woman looks at cartoons of US President Donald J. Trump at an exhibition of the Islamic Republic's 2017 International Trumpism cartoon and caricature contest, in the capital Tehran on July 3, 2017. / AFP PHOTO / ATTA KENARE (Photo credit should read ATTA KENARE/AFP/Getty Images) AFP/Getty Images Iran's 'Trumpism' contest Iranian reformist cleric Mahmoud Doaei looks at cartoons of US President Donald J. Trump at an exhibition of the Islamic Republic's 2017 International Trumpism cartoon and caricature contest, in the capital Tehran on July 3, 2017. / AFP PHOTO / ATTA KENARE (Photo credit should read ATTA KENARE/AFP/Getty Images) AFP/Getty Images Iran's 'Trumpism' contest An Iranian man looks at cartoons of US President Donald J. Trump at an exhibition of the Islamic Republic's 2017 International Trumpism cartoon and caricature contest, in the capital Tehran on July 3, 2017. / AFP PHOTO / ATTA KENARE (Photo credit should read ATTA KENARE/AFP/Getty Images) AFP/Getty Images Iran's 'Trumpism' contest An Iranian woman looks at cartoons of US President Donald J. Trump at an exhibition of the Islamic Republic's 2017 International Trumpism cartoon and caricature contest, in the capital Tehran on July 3, 2017. / AFP PHOTO / ATTA KENARE (Photo credit should read ATTA KENARE/AFP/Getty Images) AFP/Getty Images Iran's 'Trumpism' contest Iranian reformist cleric Mahmoud Doaei looks at cartoons of US President Donald J. Trump at an exhibition of the Islamic Republic's 2017 International Trumpism cartoon and caricature contest, in the capital Tehran on July 3, 2017. / AFP PHOTO / ATTA KENARE (Photo credit should read ATTA KENARE/AFP/Getty Images) AFP/Getty Images

Mr Trump’s repeated refusal to disavow the so-called ‘alt-right’ has given rise to a flurry of criticism both domestically and internationally.

For Iran, the widening divide over who was responsible for the violence has provided ample ammunition for Tehran to criticise its traditional enemy of the US and deflect from its own human rights record.

Also on Wednesday, the foreign ministry accused Washington of hypocrisy over its annual report on religious freedom, which was particularly critical of Iran.

“It is clear that religious and racial discrimination, Islamophobia, and xenophobia are a widespread and frequent phenomenon among American politicians,” spokesperson Bahram Ghasemi said in a statement.