Many veterans have been paying their respects to Queen Elizabeth II at her lying in state. As sovereign she was head of the armed forces, but her association with the military began much earlier, in wartime.
Princess Elizabeth was 13 when World War Two broke out. Those six years of conflict would see her begin in earnest her public role as the heir to the throne.
It would be a defining period in the life of the future Queen, and at her death she was the last surviving head of state to have served in the war.
At the outbreak of war against Germany in 1939, the Royal Family – parents King George VI and Queen Elizabeth, and sister Princess Margaret – was seen as a potent symbol of the values for which Britain and its allies were fighting. In October 1940, as Britain was suffering the worst of the Blitz, Elizabeth made her first broadcast. It was billed as a message to children who had been sent to North America to escape the bombing of British cities.
"We children at home are full of cheerfulness and courage," she said. "We are trying to do all we can to help our gallant sailors, soldiers and airmen. And we are trying too, to bear our own share of the danger and sadness of war."
The princess and her sister were some of the strongest propaganda weapons the government of the day had, says Prof Kate Williams, author of the biography Young Elizabeth. "It really was the Queen's first bombshell broadcast," she says.
The very fact that Elizabeth and Margaret, who died in 2002, remained in the country was a significant morale-booster.
There were suggestions the Royal Family itself should seek safety abroad, specifically in Canada, but the King and Queen would have none of it.
"The children will not leave unless I do," declared Queen Elizabeth, later the Queen Mother. "I shall not leave unless their father does, and the King will not leave the country in any circumstances whatever."
The furthest the children were ever moved was to Windsor Castle, about 30 miles from London. "We went for a weekend and stayed five years," they said.
They were near enough, though, to see the fire-lit skies over London during the heavy bombing. On one occasion, a bomb landed close to the castle as they sat in the air-raid shelter. "We all went pink when we heard it," Princess Margaret later recalled.
The sisters were joined on most evenings and at weekends by their parents, and lessons continued with their private tutors.
At Christmas, in order to cheer up their father – who became depressed at the losses being inflicted on his countrymen and women – the girls performed pantomimes. It was Cinderella one year, Aladdin the next, with the princesses always in the starring roles.
In 1944, with the King particularly upset at the setback of the Battle of Arnhem, the 18-year-old Elizabeth and 14-year-old Margaret wrote their own pantomime – Little Red Riding Boots – with the help of their mother. Three Guardsmen on duty at the castle were drafted in as extras. One of them, Bill Davies, later remembered being measured up and kitted out with scarlet tunics and bearskins.
"The performance went off splendidly and the family were in stitches," he recalled. "It was a fairy tale moment. We forgot the war for an hour or two."
The overriding sense of duty that marked her reign was forged in the drama of these years.
In 1942, Princess Elizabeth carried out her first public engagement, inspecting a parade of the Grenadier Guards, to whom she had become honorary colonel. In the final year of the war, she donned a uniform herself, joining the Auxiliary Territorial Service – the ATS.
She was registered as number 230873, Second Subaltern Elizabeth Windsor, and she spent three weeks with a carefully chosen group of other recruits, learning about basic motor mechanics and how to drive a lorry. It was said to have been the first time a female member of the Royal Family had ever attended a course with "other people".
Now in her late 90s, Gwen Evans trained alongside the future Queen in the ATS, and remembers Princess Elizabeth receiving much the same treatment as everyone else.
"The only difference was when we finished work at five o'clock we went back to our barracks, whereas Elizabeth was picked up and taken to Windsor Castle," she says.
In May 1945, tens of thousands gathered outside Buckingham Palace to celebrate Victory in Europe Day.
Winston Churchill joined the Royal Family on the balcony, and later, the two princesses slipped out to join the crowds.
"I remember lines of unknown people linking arms and walking down Whitehall. All of us just swept along in a tide of happiness and relief," the Queen recalled 40 years later. "After crossing Green Park, we stood outside and shouted, 'We want the King.' I think it was one of the most memorable nights of my life."
©All photographs are copyright
What next? A day-by-day guide from now to the funeral
Watch: Queen Elizabeth II's lying-in-state
What we know about the Queen's funeral plans
Who's invited to the Queen's funeral – and who's not?
© 2022 BBC. The BBC is not responsible for the content of external sites. Read about our approach to external linking.