When the country was again a Spanish colony, San Pedro de Macorís was made a "Comandancia de Armas" (an Spanish military category). When the country was free again, in 1865, every town with the category of "Comandancia de Armas" became a municipality. But San Pedro de Macorís was still a very small town of the El Seibo Province.