FILE - This undated file photo provided by the Albemarle-Charlottesville Regional Jail shows James Alex Fields Jr. A man in custody at a Virginia jail assaulted fellow inmate Fields, the man accused of driving a car into counterprotesters at a white nationalist rally, the facility's superintendent said Friday, Oct. 26, 2018. (Albemarle-Charlottesville Regional Jail via AP, File)

A Department of Justice official has condemned the violence committed by a white supremacist who was sentenced to life in prison for a deadly car attack at a white nationalist rally in Charlottesville two years ago.

Eric Dreiband is the assistant attorney general for the DOJ’s Civil Rights Division. He made his remarks after James Alex Fields Jr. was sentenced to life in prison for deliberately driving his car into a crowd of anti-racism protesters at the 2017 rally.

Fields pleaded guilty in March to 29 federal hate crime charges in the car attack. One woman was killed and more than two dozen others were hurt.

Dreiband said violence based on racism and white supremacy is “anathema to our country and our society.” He said the “bigotry and ideology” of neo-Nazism, Nazism, white supremacy and the Ku Klux Klan “are a disgrace to this country.”

President Donald Trump stirred controversy after the attack when he said “both sides” were to blame for the violence. Some critics saw the remark as a refusal to condemn racism.