The slave trade in the District of Columbia was legal from its creation until 1850, when the trade in enslaved people in the District was outlawed as part of the Compromise of 1850. That restrictions on slavery in the District were probably coming was a major factor in the retrocession of the Virginia part of the District back to Virginia in 1847. Thus the large slave-trading businesses in Alexandria, such as Franklin & Armfield, could continue their operations in Virginia, where slavery was more secure.