The British Overseas Territories (BOTs) or United Kingdom Overseas Territories (UKOTs) are fourteen territories under the jurisdiction and sovereignty of the United Kingdom. They are remnants of the British Empire that have not been granted independence or have voted to remain British territories. These territories do not form part of the United Kingdom and, with the exception of Gibraltar, are not part of the European Union. Most of the permanently inhabited territories are internally self-governing, with the UK retaining responsibility for defence and foreign relations. Three are inhabited only by a transitory population of military or scientific personnel. They all share the British monarch (Elizabeth II) as head of state.