Many battles were fought in the state – most of them Union victories. Ulysses S. Grant and the United States Navy captured control of the Cumberland and Tennessee Rivers in February 1862 and held off the Confederate counterattack at Shiloh in April of the same year. Capture of Memphis and Nashville gave the Union control of the Western and Middle sections. Control was confirmed at the Battle of Stones River at Murfreesboro in early January 1863.