The slave patrols' function was to police slaves, especially runaways and defiant slaves. They also formed river patrols to prevent escape by boat. Slave patrols were first established in South Carolina in 1704, and the idea spread throughout the colonies.