Gibraltar is actually attached to Spain, but is a territory of the UK, although it has it's own flag, governor and some autonomy.