The man accused of driving his car through a crowd of activists in Virginia — killing one and injuring 19 more — idolised Hitler and white supremacy, a former teacher of his says.

A former history teacher of James Alex Fields Jr’s says that, in high school, his former pupil accused of second degree murder sympathised with Nazi views and espoused extremist ideals as a student. Mr Fields is 20-years-old.

“It was obvious that he had this fascination with Nazism and a big idolatry of Adolf Hitler,” Derek Weimer, the teacher, told the Washington Post.

Videos of the attack in Charlottesville show a grey car plowing through a crowd of demonstrators participating in a counter-protest to a gathering of white supremacists there. The car then reverses, quickly, as hit protesters looked on, stunned, while others attempted to hit the vehicle as it fled the scene.

Mr Fields had apparently driven to Charlottesville from his home in Ohio to attend the so-called “Unite the Right” rally, which brought together the self-described alt-right movement that has been recognised as a white nationalist group. The rally had been organised to protest planned removal of a statue of Confederate General Robert E Lee.

The rally quickly saw clashes between counter-protesters and the alt-right demonstrators, and police quickly had to disperse the demonstrations minutes after the scheduled start time at noon Saturday. Just the night before, a torch-lit pre-rally march had descended into violence.

In his first court appearance, via video conference, Mr Fields did not enter a plea in connexion to the crime he has been accused of. He told the court that he could not afford a lawyer. He was also denied bail, and given a return date.

Violence on the streets of Charlottesville Show all 9 1 /9 Violence on the streets of Charlottesville Violence on the streets of Charlottesville Protesters clash and several are injured White nationalist demonstrators clash with counter demonstrators at the entrance to Lee Park in Charlottesville, Virginia. A state of emergency is declared, August 12 2017 Violence on the streets of Charlottesville Trump supporters at the protest A white nationalist demonstrator walks into Lee Park in Charlottesville, Va., Saturday, Aug. 12, 2017. Hundreds of people chanted, threw punches, hurled water bottles and unleashed chemical sprays on each other Saturday after violence erupted at a white nationalist rally in Virginia. AP Photo Violence on the streets of Charlottesville State police stand ready in riot gear Virginia State Police cordon off an area around the site where a car ran into a group of protesters after a white nationalist rally in Charlottesville, Virginia AP Photo Violence on the streets of Charlottesville Militia armed with assault rifles White nationalists, neo-Nazis and members of the 'alt-right' with body armor and combat weapons evacuate comrades who were pepper sprayed after the 'Unite the Right' rally was declared a unlawful gathering by Virginia State Police. Militia members marched through the city earlier in the day, armed with assault rifles. Getty Images Violence on the streets of Charlottesville Statue of Confederate General Robert E Lee The statue of Confederate General Robert E. Lee stands behind a crowd of hundreds of white nationalists, neo-Nazis and members of the 'alt-right' during the 'Unite the Right' rally 12 August 2017 in Charlottesville, Virginia. They are protesting the removal of the statue from Emancipation Park in the city. Getty Images Violence on the streets of Charlottesville Racial tensions sparked the violence White nationalists, neo-Nazis and members of the 'alt-right' exchange insults with counter-protesters as they attempt to guard the entrance to Lee Park during the 'Unite the Right' rally Getty Violence on the streets of Charlottesville A car plows through protesters A vehicle drives into a group of protesters demonstrating against a white nationalist rally in Charlottesville, Virginia. The incident resulted in multiple injuries, some life-threatening, and one death. AP Photo Violence on the streets of Charlottesville Rescue personnel help injured people after a car ran into a large group of protesters after an white nationalist rally in Charlottesville, Virginia AP Photo Violence on the streets of Charlottesville President Donald Trump speaks about the ongoing situation in Charlottesville, Virginia from his golf club in Bedminster, New Jersey. He spoke about "loyalty" and "healing wounds" left by decades of racism.

The alt-right movement has gained some national exposure after the unexpected victory of Donald Trump, who many see as sympathetic to the cause. The group is seen as part of a larger backlash against diversity and “identity politics” in the United States that was seen as a larger cultural backlash that propped up Mr Trump’s campaign.

Other hate groups were also represented at the rally, including the more traditional white nationalist groups like the neo-Nazis and the Ku Klux Klan.

Efforts to remove the state of Lee resulted in city council members pointing out that Lee had no tangible connexion to the city, and therefore the existence of the statue on public grounds was just an indirect way to celebrate the Confederacy — the secessionist government that started the Civil War over disagreements with the northern states about whether slavery should exist in the US.

The issue of Confederate monuments in the US — they are predominantly located in the US South, but can be found all over the country — has been a point of contentious debate since at least 2015, when 21-year-old white supremacist Dylann Roof killed nine black people at a historically black church in South Carolina. Pictures of Roof, who wrote in journals that he wanted to spark a race war, holding the Confederate flag later surfaced, leading to the removal of the flag form the state capitol grounds.