Shooting suspect Dylann Storm Roof is escorted from the police station. Photo / AP
The suspect, Dylann Storm Roof, 21, was captured 14 hours after the massacre of nine people in a Bible study group, the United States' bloodiest hate crime in decades.
A white supremacist gunman told his black victims "you rape our women and you're taking over our country" as he massacred nine people inside a historic African-American church in the southern city of Charleston.
The suspect Dylann Storm Roof, 21, was captured 14 hours after the shooting but the killing spree left the United States agonising over how to face up to the bloodiest hate crime in decades.
"This is not the first time that black churches have been attacked," said President Barack Obama. "We know that hatred across races and faiths pose a particular threat to our democracy and our ideals."
The young suspect seems to have been steeped in white supremacist culture and the FBI said the killings were being treated as a hate crime. He posed in a jacket with the insignia of Apartheid South Africa and had the flag of the Confederacy on his car's registration plate.
Roof allegedly arrived at the Emanuel African Methodist Episcopal Church at around 8pm on Wednesday night and sat in a Bible study group with his victims for more than an hour before opening fire.
Among the dead was Reverend Clementa Pinckney, the church pastor and a local politician, and his sister. Six women and three men were killed in total.
The other victims were named on Thursday as Cynthia Hurd, 54; Tywanza Sanders, 26; Sharonda Singleton; Myra Thompson, 59; Ethel Lance, 70; Susie Jackson, 87; the Rev. Daniel Simmons Sr.; and DePayne Doctor.
Sylvia Johnson, a cousin of Reverend Pinckney, told NBC she had spoken to one of the survivors who claimed that the gunman tried to justify his killings as he slaughtered his victims.
"I have to do it," he reportedly said as he reloaded his gun five different times. "You rape our women and you're taking over our country and you have to go."
As his victims lay dying in the church, the gunman fled into the night and sparked a vast manhunt throughout the southern United States.
Roof's car was pulled over by police on Thursday afternoon in Shelby, North Carolina, around 200 miles from the scene of the crime. Police said a local resident had raised the alarm after seeing his car and Roof offered no resistance as he was arrested.
The Emanuel Church, sometimes referred to as "Mother Emanuel", is one of America's most historic black places of worship and Mr Obama called it "more than a church".
One of its founder was executed for leading a slave uprising and it was burnt to the ground in retaliation by white slaveowners only to be built again. Martin Luther King spoke there in 1962 during the civil rights struggle.
"Mother Emanuel church and its congregation have risen before - from flames, from an earthquake, from other dark times - to give hope to generations of Charlestonians," Mr Obama said.
"With our prayers and our love, and the buoyancy of hope, it will rise again now as a place of peace."
The president also renewed his calls for new gun control laws, saying the US was the only advanced economy to suffer "this type of mass violence".
The massacre comes as America continues an often painful national debate about race and policing. Three months earlier, a white police officer killed an unarmed black man, Walter Scott, when he shot him in the back in North Charleston, just a few miles from Mother Emanuel.
Barely twelve hours after the shooting, mourners of all races began to gather at the nearby Morris Brown African Methodist Episcopal church to hold a vigil for the dead.
Among them was Vanessa Halyard, a local children's advocate, who knew Reverend Pinckney and described him as "a man doing God's work".
Mrs Halyard, 59, said when she heard the news of the shooting she immediately "flashed back" to the bombing of a black church in Alabama in 1963. The explosion, caused by a bomb planted by the Ku Klux Klan, killed four young black girls.
"They don't wear white hoods anymore but there's still so much hate and anger out there," she said. "We're in a different place as a country now but we're also in the same place."
Others said the police response seemed to lack urgency. "If a black man shot up a white church, the police would tear this city apart to find who did," said Michelle Felder, an African-American woman who also knew Reverend Pinckney.
Roof was arrested on suspicion of trespassing in April but does not appear to have been charged. He was also jailed briefly in March on a drugs charge.
Carson Cowles, the suspect's uncle, told Reuters his nephew was a "quiet, soft spoken" person.
A photograph on Facebook showed him posing with a car that had a novelty "Confederate States of America" registration plate. He allegedly used the same car to make his getaway from the church.
A former classmate at the White Knoll High School said that Roof "used drugs heavily a lot" and was interested in history of the Southern Confederacy.
"He made a lot of racist jokes, but you don't really take them seriously like that," John Mullins told the Daily Beast.
Police have not said if they recovered a gun during the arrest but Roof's uncle said his father had given him a .45 pistol for his 21st birthday in April.
Roof is due to appear in court in North Carolina before being extradited back to South Carolina to face charges.