 During the Mexican–American War, Granger was promoted to captain on September 8, 1847.When the war ended, he was assigned to a series of posts on the Texas frontier.With the outbreak of the Civil War and the secession of Texas in early 1861, he was captured with Major Sibley's command on April 27.