until 1704 Kingdom of Spain
1704 - 1830 English occupation
1830 - 1969 British Crown Colony
since 1969 Dependent Territory Gibraltar