Affected by the Second World War, which divided her relatives into two fractions, Margarita spent time in Langenburg during the conflict. The defeat of Germany and its occupation by the Allies brought new upheavals in the life of Margarita and Gottfried. Though preserved from Soviets, who caused the death of several of their cousins, the couple was ostracized by the British royal family at the time of the marriage of Prince Philip, Margarita's only brother, to Princess Elizabeth of the United Kingdom in 1947. Over the years, the couple was nevertheless reintegrated into the life of the European elite, as illustrated by their invitation and presence at the coronation of Elizabeth II in 1953 and at the wedding of Juan Carlos, Prince of Asturias, and Princess Sophia of Greece and Denmark in 1962.