On February 15, with the fort surrounded, the Confederates, commanded by Brig. Gen. John B. Floyd, launched a surprise attack, led by his second-in-command, Brig. Gen. Gideon Johnson Pillow, against the right flank of Grant's army. The intention was to open an escape route for retreat to Nashville, Tennessee. Grant was away from the battlefield at the start of the attack, but arrived to rally his men and counterattack. Pillow's attack succeeded in opening the route, but Floyd lost his nerve and ordered his men back to the fort. The following morning, Floyd and Pillow escaped with a small detachment of troops, relinquishing command to Brig. Gen. Simon Bolivar Buckner, who accepted Grant's demand of unconditional surrender later that day. The battle resulted in virtually all of Kentucky as well as much of Tennessee, including Nashville, falling under Union control.