Palmares developed into a confederation of 11 towns, spanning rugged mountainous terrain in frontier zones across the present day states of Alagoas and Pernambuco.[3] Palmares was an autonomous state based on African political and religious customs that supported itself though means of agriculture, fishing, hunting, gathering, trading, and raiding nearby Brazilian plantations and settlements.[3]