In the UK a lot of people are required by law to swear a personal oath of allegiance to the Queen and her 'heirs and successors' if they wish to pursue a particular career or become a British citizen.
Here you can find out who takes the oath (and who doesn't), what the oaths say and about the history and legal issues surrounding the oaths of allegiance in the UK and the Commonwealth.
