In reaction to Nat Turner's slave rebellion of 1831, in 1834 the white-run city of Charleston outlawed all-black churches. The AME congregation met in secret until the end of the Civil War in 1865.