In 1848, he married Julia Dent, and together they had four children. Grant abruptly resigned his army commission in 1854 and returned to his family, but lived in poverty for seven years. During the Civil War, he joined the Union Army in 1861, and led the Vicksburg campaign, which gained control of the Mississippi River in 1863.