The Confederate Flag, the pro-slavery banner of the US Civil War, was to be removed Friday from South Carolina's state house, where it has flown for a half-century as a powerful and polarizing symbol of America's racial divide.
The decision to take down the flag follows historic votes this week by state lawmakers endorsing the move, after the church murders of nine African Americans last month by a racist gunman who drew inspiration for his white supremacist views from the red, white and blue "Stars and Bars."
At precisely 10:00 am (1400 GMT) Friday, the flag was to be lowered by a South Carolina state police honor guard.
It is later to be put on display about a mile away at the Confederate Relic Room and Military Museum.
The prominence of the flag, as well as other Civil War iconography across the South, has been debated for years.
The flag remains controversial not only because of its association with slavery, but because it was embraced as a defiant symbol of civil rights opponents during the 1950s and 1960s, and racist apologists thereafter.
But the shock and outrage following the church murders led to a re-examination of the flag, and all that it stands for, and prompted local and state governments, as well as prominent businesses across the United States, to distance themselves from it.
The flag has been flying alongside a Confederate war memorial outside the state house since 2000, after years atop the domed roof of the legislature in the southern state where the Civil War erupted in 1861.
But it became a lightning rod for outrage after the June 17 killings of nine black worshippers by a young white gunman during a Bible study class at Emanuel African Methodist Episcopal Church.
Dylann Roof, the 21-year-old charged in the killings, had been photographed before the attack with the Confederate flag, which for many is seen as a symbol of hate and racism rather than Southern heritage.
Governor Nikki Haley on Thursday signed the bill finalizing the law to remove the flag.
"We will bring it down with dignity and make that it is put in its rightful place," she said at the signing ceremony in the state capital Columbia, flanked by relatives of the Emanuel church massacre.
The dead included Emanuel's chief pastor Clementa Pinckney, who was also a state senator.
By law, the Confederate flag could only be lowered -- and relegated to a museum -- with the consent of South Carolina's Republican-dominated legislature.
That finally came before dawn Thursday when the state's House of Representatives agreed overwhelmingly to remove the flag -- as their Senate colleagues had done at the start of the week.
"There is a place for that flag, and that flag needs to be in a museum where we will continue to make sure people can honor it appropriately," Haley told NBC's Today show on Friday.
"The state house is an area that belongs to everyone, and no one should ever drive by the state house and feel pain."
Thursday's vote in the South Carolina House came after more than 13 hours of heated debate, with opponents of the flag defeating a raft of amendments intended to slow down passage of the measure.
"I cannot believe that we do not have the heart in this body to do something meaningful, such as take a symbol of hate off these grounds on Friday," said Republican Representative Jenny Horne, at times fighting back tears.
Meanwhile, as South Carolina prepared to lower the flag, debate reached fever pitch in Washington, where Republicans had introduced a controversial amendment, due for a vote Thursday, to preserve the right to place the flag on graves on federal property.
Democrats reacted with outrage, with one African-American congressman, Hakeem Jeffries, bringing a Confederate flag to the House floor and insisting it represented not Southern heritage but "racial hatred and oppression."
"Let's choose racial progress over racial poison," he said. "Let's choose togetherness over treason."
Amid the backlash, House Speaker John Boehner scrapped the vote, saying the issue should not become a "political football" and that lawmakers should hold "responsible" discussions about the path forward regarding the flag.
Following last month's shooting, the Confederate flag has already come down outside the Alabama state legislature, and several major retailers across the United States have said they will no longer sell flag-related merchandise.
Members of the white supremacist Ku Klux Klan are planning a pro-flag rally in Columbia on July 18.