A Maltese community has existed in Gibraltar since shortly after its capture by an Anglo-Dutch fleet in 1704. The majority of the Spanish inhabitants were then expelled, leaving behind a garrison to be serviced by immigrants, mostly from Malta and Genoa. Immigration from neighboring Spanish towns soon followed, giving Gibraltar a very cosmopolitan population.