 Hearing of the election of Abraham Lincoln, he immediately resigned and left for Charleston, South Carolina.In March 1861, Ferguson was commissioned a captain in the South Carolina militia, afterwards being appointed Lieutenant and aide-de-camp to C.S.Army Brigadier-General P. G. T. Beauregard.