|Name||Flag of Gibraltar|
|Use||Civil and state flag|
|Adopted||8 November 1982|
|Design||White with a red stripe at the bottom with a three-towered, two-tiered red castle in the white section. Each tower has a door and a window and from the door of the middle tower hangs a gold key which mainly overlaps the red stripe.|
|Design||Flag of the United Kingdom|
|Name||State ensign of Gibraltar|
|Design||Blue Ensign with the Union Flag in the canton and the badge of Gibraltar in the fly.|
|Name||Civil ensign of Gibraltar|
|Design||Red Ensign with the Union Flag in the canton and the badge of Gibraltar in the fly.|
|Name||Flag of the Governor of Gibraltar|
|Design||A Union Flag defaced with the coat of arms.|
The flag of Gibraltar is an elongated banner of arms based on the coat of arms of Gibraltar, granted by Royal Warrant from Queen Isabella I of Castile on 10 July 1502. The flag of Gibraltar is unique as it is the only British Overseas Territory which does not feature the Union Jack in any form, although the latter is widely flown as a standalone flag within the territory.
"An escutcheon on which the upper two thirds shall be a white field and on the said field set a red castle, and below the said castle, on the other third of the escutcheon, which must be a red field in which there must be a white line between the castle and the said red field, there shall be a golden key which hangs by a chain from the said castle, as are here figured".
The flag was regularised in 1982 and is formed by two horizontal bands of white (top, double width) and red with a three-towered red castle in the centre of the white band; hanging from the castle gate is a gold key centred in the red band. The flag differs from that of other British overseas territories, in that it is not a British ensign nor does it feature the Union Jack in any form. The castle does not resemble any in Gibraltar but is supposed to represent the fortress of Gibraltar. The key is said to symbolise the fortress' significance as Gibraltar was seen to be the key to Spain by the Moors and Spanish and later as the key to the Mediterranean by the British.
The flag is flown throughout Gibraltar, sometimes officially alongside the Union Flag and the Commonwealth Flag. Prominent places which fly the flag include the frontier with Spain, at the top of The Rock and on the Parliament Building.
The flag is a symbol of Gibraltarian nationalism and is very popular among Gibraltarians. For the Gibraltar National Day (10 September), many Gibraltar homes and offices hang the flag from their windows and balconies, and some individuals even wear and dress their vehicles with the flag for national day celebrations. This was also seen during the 2004 celebrations of the tercentenary of British Gibraltar.
Gibraltarian students attending university abroad have been known to take Gibraltarian flags with them, putting them up in university accommodation rooms and hanging them from windows.
A Lego flag of Gibraltar 4 metres (10') high and 8 metres (30') long can be seen at the John Mackintosh Hall, which is a cultural centre housing the public library as well as exhibition rooms and a theatre. At the time of its construction, the Lego flag of Gibraltar was the largest flag ever to be made from Lego bricks with a total of 393,857 bricks being used.[verification needed]