The state adopted its first slave code in 1715. This document defined the social, economic, and physical places of enslaved people. Most of the slaves purchased in the colony came from Virginia and South Carolina, and most lived on large plantations in the eastern section. The largest plantation was Stagville, established in 1787, and located in parts of what is now Orange and three other counties. More than 900 slaves worked on the 30,000-acre plantation.