As the town was progressing, it also became a cosmopolitan town that attracted the different religious orders to set up churches, convents and hospitals within the limited confines of the fortified town. The Franciscan "Hospital de San Jose" (Saint Joseph Hospital) was built for sailors and soldiers in 1591, the San Diego de Alcala convent in 1608, the Porta Vaga (La Ermita), Our Lady of Loreto (Jesuit), San Juan de Dios (St. John of God), Santo Domingo (Dominicans), Santa Monica (Recollects), and San Pedro, the port's parish church. At the most, the fortified town enclosed eight churches, the Jesuit college of San Ildefonso, public buildings and residences, which served the needs of its population of natives, soldiers and workers at the port, transients and passengers on board the galleons.