(CNN) The University of Virginia has issued "trespass warnings" that ban white nationalist Richard Spencer and nine other people from the campus for four years because of their involvement in the violent "Unite the Right" demonstrations in August 2017, the school said Friday.

Spencer, a graduate of the university, organized the August 11, 2017, torchlight march across the campus and gave a speech in front of the Thomas Jefferson statue in which he took credit for "defeating" counterprotesters, the university said. He also issued written and video statements in which he said his group surrounded anti-racist protesters and "wouldn't let them out," the school added.

JUST WATCHED Spencer: 'Make white privilege great again' Replay More Videos ... MUST WATCH Spencer: 'Make white privilege great again' 01:08

The next day, riots broke out during protests, which led to dozens of injuries and the death of counterprotester Heather Heyer, who was struck by a vehicle.

CNN reached out to Spencer for comment, but he did not immediately reply.

Campus police conducted a year-long investigation before issuing the warnings, the university said.

Read More