 This required an influx of troops, military suppliers and building contractors, which would set up a new demand for accommodation, including military hospitals.The abolition of slavery in D.C. in 1862 also attracted many freedmen to the city.Except for one attempted invasion by Confederate cavalry leader Jubal Early in 1864, the capital remained impregnable.