In 1861, South Carolina had seceded from the Union, and had demanded that all federal property in the state be surrendered to state authorities. Major Robert Anderson concentrated his units at Fort Sumter, and, when Lincoln took office, Sumter was one of only two forts in the South still under Union control. Learning that Lincoln planned to send supplies to reinforce the fort, Confederate General Beauregard demanded Anderson's surrender, which was refused. The Confederate Army began bombarding the fort, which surrendered. Congress declared war on the Confederacy the next day.