Grant trained Union military recruits and was promoted to Colonel in June 1861. Maj. Gen. John C. Frémont, who viewed in Grant an "iron will" to win, appointed Grant to commander of the District of Cairo. Grant became famous around the nation after capturing Fort Donelson in February 1862 and was promoted to Major General by President Abraham Lincoln. After a series of decisive yet costly battles and victories at Shiloh, Vicksburg, and Chattanooga, Grant was promoted to Lieutenant General by President Lincoln in 1864 and given charge of all the Union Armies. Grant went on to defeat Robert E. Lee after another series of costly battles in the Overland Campaign, Petersburg, and Appomattox. After the Civil War, Grant was given his final promotion of General of the Armed Forces in 1866 and served until 1869. Grant's popularity as a Union war general enabled him to be elected two terms as the 18th President of the United States.