During the 15th century, Rabat served as a shelter from pirate attacks, which were a frequent occurrence. During this time, several religious ordered arrived and when the Order of St John arrived, Rabat was held in high esteem for its close proximity to Mdina, St Paul’s Grotto, the covent schools and the arable farmland. For many centuries, the religious orders established themselves within the precincts of the town and in fact, Franciscans, Dominicans and Augustinians still flourish here in their convents and monasteries, catering for the religious needs of parishioners in their churches.
During the late 19th century, when Malta was under British rule, Rabat saw the introduction of several new social services, such as the building of the first primary school, the initiation of medical and postal services, street lighting and the start of a train service, between Rabat and Valletta.