 About 2000 of these refugees, originally from the town of Hornachos near Badajoz, Spain, settled around Salé and occupied the kasbah, attracting between 5000 and 14,000 other Moriscos to join them.They established their own autonomous republic, referred as the Republic of Salé (or Republic of Bou Regreg), which served as a base for corsairs