The controversial Confederate flag will soon be gone from the grounds of South Carolina’s state house after lawmakers voted early Thursday to remove it in a stunning reversal prompted by a mass shooting in a black church. In a pre-dawn vote capping hours of tense legislative debate, the state’s House of Representatives agreed overwhelmingly to remove the Civil War-era battle flag. The measure was passed by a vote of 94-20- well beyond the two-thirds majority needed for final approval. The same bill had already cleared the Senate, sending the legislation to Governor Nikki Haley for her signature. The Republican governor has called for the flag to come down after the June 17 killings of nine black worshippers during an evening Bible study class at the Emmanuel African Methodist Episcopal Church in Charleston. Dylann Roof, the 21-year-old man 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 regional heritage. “It is a new dawn in South Carolina, a day we can all be proud of, a day that truly brings us all together as we continue to heal, as one people and one state,” Haley wrote after the vote. She was expected to sign the bill into law at 4:00 pm (20:00GMT). She then has 24 hours to take down the flag, which will be moved to a nearby museum.