A white supremacist has been convicted of killing nine black worshippers in a church in South Carolina in a racially motivated attack.

It took the 12 jurors just over two hours to convict 22-year-old Dylann Roof on all 33 counts he faced, including federal hate crimes.

He will find out next month if he will receive the death penalty.

The attack in 2015 during Bible study at the Emanuel African Methodist Episcopal Church shocked the nation.

It also reignited a debate about race relations and the flying of the Confederate flag.

Roof told police he wanted to start a race war and he was photographed holding the Civil War battle flag, which to many is a symbol of hate.

The tragedy led to the flag being removed from the South Carolina statehouse, where it had flown for 50 years.

At a memorial service for the victims at the church in Charleston, President Barack Obama sang Amazing Grace and gave one of his most significant speeches on race.