The Ohio man accused of killing one person and injuring multiple others after ramming his car into a crowd of counterprotesters during a white nationalist rally last year pleaded not guilty on Thursday to multiple federal hate crime charges.

The man, James Alex Fields Jr., entered his plea to all 30 charges brought against him last month by federal officials for his actions during the “Unite the Right” rally in Charlottesville, Va., on Aug. 12.

During a hearing at United States District Court in Charlottesville, Judge Joel Hoppe asked Mr. Fields if he had ever been treated or if he was currently being treated for a mental illness, Brian McGinn, a spokesman for the United States attorney for the Western District of Virginia, said Thursday.

Mr. Fields responded affirmatively and listed bipolar disorder, depression, anxiety and A.D.H.D., and added that he was taking medication, Mr. McGinn said.