which allowed slaves to buy their freedom, and that of others. Although some did not have the money to buy their freedom, government measures on slavery allowed many free Blacks. That brought problems to the Spaniards with the French Creoles who also populated Spanish Louisiana, French creoles cited that measure as one of the system's worst elements. First established in South Carolina in 1704, groups of armed White men—slave patrols—were formed to monitor enslaved Black people. Their function was to police slaves, especially fugitives. Slave owners feared that slaves might organize revolts or slave rebellions, so state militias were formed in order to provide a military command structure and discipline within the slave patrols so they could be used to detect, encounter, and crush any organized slave meetings which might lead to revolts or rebellions. The earliest African American congregations and churches were organized before 1800 in both northern and southern cities following the Great Awakening. By 1775, Africans made up 20% of the population in the American colonies, which made them the second largest ethnic group after English Americans. From the American Revolution to the Civil War During the 1770s, Africans, both enslaved and free, helped rebellious American colonists secure their independence by defeating the British in the American Revolutionary War. Blacks played a role in both sides in the American Revolution. Activists in the Patriot cause included James Armistead, Prince Whipple, and Oliver Cromwell. Around 15,000 Black Loyalists left with the British after the war, most of them ending up as free Black people in England or its colonies, such as the Black Nova Scotians and the Sierra Leone Creole people. In the Spanish Louisiana, Governor Bernardo de Gálvez organized Spanish free Black men into two militia companies to defend New Orleans during the American Revolution. They fought in the 1779 battle in which Spain captured Baton Rouge from the British. Gálvez also commanded them in campaigns against the British outposts in Mobile, Alabama, and Pensacola, Florida. He recruited slaves for the militia by pledging to free anyone who was seriously wounded and promised to secure a low price for coartación (buy their freedom and that of others) for those who received lesser wounds. During the 1790s, Governor Francisco Luis Héctor, baron of Carondelet reinforced local fortifications and recruit even more free Black men for the militia. Carondelet doubled the number of free Black men who served, creating