Confederate troops evacuated Jackson on June 7, 1862, after defeats at Fort Donelson and Shiloh, and that afternoon the 78th Ohio and 30th Illinois Infantry under Union Gen. John McClernand occupied the town. The 700 Federals seized both railroad depots, the telegraph office, and Confederate commissary and quartermaster stores, and Lt. Cyrus M. Roberts of the 78th Ohio raised the Stars and Stripes atop the courthouse cupola. The following afternoon Union Gen. John A. Logan marched into Jackson with four infantry regiments and three brass bands, ending any lingering thoughts of resistance. Logan, commanding the garrison, established his headquarters in the P.J. Murray house on North Royal Street, while Gen. Richard J. Oglesby occupied the Peguese house on Main Street. Union soldiers camped all around Jackson, soon outnumbering local residents two to one, and Jackson remained under Union control for another year. The Federals built a cotton-bale fort in the center of town with three companies camped around it. Gen. Ulysses S. Grant stayed in Jackson from September 23 to November 23 in the McCree house. The Federal occupation ended in early June 1863, when Grant needed the troops for his advance on Vicksburg.