The crowning achievement of Britain's Queen Elizabeth, who died on Thursday after 70 years on the throne, was to maintain the popularity of the monarchy across decades of political, social and cultural change.
A dignified, dependable figure who reigned longer than any other British monarch, she helped steer the institution into the modern world, all in the glare of an increasingly intrusive and often hostile media.
While the nation she reigned over sometimes struggled to find its place in a new world order and her own family often fell foul of public expectations, the queen herself remained a symbol of stability.
"I think she's brought life, energy and passion to the job, she's managed to modernise and evolve the monarchy like no other," her grandson Prince William, who is now the heir to the throne, said in a television documentary in 2012.
THE YOUNG QUEEN
Elizabeth Alexandra Mary was born on April 21, 1926 at 17 Bruton Street in central London.
The young princess never expected to ascend to the throne: it was only after her uncle King Edward VIII abdicated in 1936 that the crown passed to her father, George VI, when she was 10.
She was just 25 when her father died and she became Queen Elizabeth II on February 6, 1952, while on tour in Kenya with her husband Prince Philip.
Winston Churchill was the first of 15 prime ministers who served during her reign.
"In a way I didn't have an apprenticeship, my father died much too young and so it was all a very sudden kind of taking on, and making the best job you can," she said in a 1992 documentary.
"It's a question of maturing into something that one's got used to doing and accepting the fact that here you are and it's your fate. It is a job for life."
During her 70 years on the throne Britain underwent dramatic change.
The austere postwar 1950s gave way to the swinging 60s, the divisive leadership of Margaret Thatcher in the 80s, Tony Blair's three-term New Labour era, a return to economic austerity and then the COVID-19 pandemic.
Labour and Conservative governments came and went, feminism changed attitudes to women, and Britain became a much more cosmopolitan, multi-ethnic society.
Elizabeth was on the throne for most of the Cold War from the death of Soviet leader Josef Stalin. During her reign there were 14 US presidents, from Harry S. Truman to Joe Biden, and she met all bar Lyndon Johnson.
Britain's vote to leave the European Union in 2016 exposed deep divisions in British society, while nationalists continued their push for a new referendum on Scottish independence that had the potential to rip apart the United Kingdom.
"As we look for new answers in the modern age, I for one prefer the tried and tested recipes, like speaking well of each other and respecting different points of view; coming together to seek out the common ground; and never losing sight of the bigger picture," the queen said ahead of a 2014 referendum on Scottish secession, in what appeared to be a message to politicians. Scots voted to remain in the United Kingdom.
Millions turned out for celebrations to mark her 50th, 60th and 70th years on the throne, while her starring role in a spoof James Bond film became the highlight of the opening ceremony of the 2012 London Olympic Games.
In the short sequence she greeted Bond actor Daniel Craig at Buckingham Palace, uttering just four words before visual effects showed her apparently joining him on a helicopter and parachuting into the stadium.
A decade later at the start of a Platinum Jubilee pop concert, she again won huge plaudits for a pre-recorded comic sketch with Paddington Bear, in which she told the famous fictional character that she always kept his favourite snack - a marmalade sandwich - in her ever-present handbag.
The queen was said to crack jokes with world leaders, enjoy an easy familiarity with long-serving Commonwealth heads of government, and relish a wager on race horses. Racing was an enduring passion.
She was also accompanied for most of her reign by her corgi dogs, which earned a reputation for snapping at the heels of royal retainers and were descended from the dog called Susan she received as an 18th birthday gift from her parents.
"What we actually know about the queen is remarkably little," said Matthew Dennison, a biographer of Elizabeth.
"We know that she enjoys racing. We know that she likes corgis. We know that she prefers blankets and sheets to duvets. But beyond that, we know almost nothing about her."
During World War Two she learned to be a driver and a mechanic while serving in the women's Auxiliary Territorial Service.
Her love of the outdoors and of animals was well documented and commentators said she came across as more at home in tweeds than tiaras.
Prince William's wife Kate said that behind closed doors, the queen eschewed royal pomp.
"You would expect a lot of grandeur and a lot of fuss... but actually what really resonates with me is her love for simple things, the lack of fuss and I think that's a special quality to have," Kate told a TV documentary to mark Elizabeth's 90th birthday.
CORONATION
Elizabeth became queen in 1952 and was crowned on June 2, 1953 in a televised ceremony in Westminster Abbey, becoming the first queen in her own right since Queen Victoria and the 40th monarch in a royal line that traces its origin back to William the Conqueror in 1066.
In September 2015, she overtook Victoria to become the country's longest ever reigning monarch, an achievement to which she said she had never aspired, and the following year there were more celebrations for her 90th birthday.
She ascended the throne at the same age as Elizabeth I, but while the first Elizabeth saw her country attain the status of an important trading nation in the 16th century, her namesake presided over a Britain slipping from its position as a world leader in industry and technology.
As Britain's place shifted, so the queen came to stand for unity, and the pomp around her family - with gilded carriages and spectacular royal weddings - a source of national pride for many.
Prince William's marriage in 2011 to commoner Kate Middleton, which saw more than a million people throng London's streets and drew an estimated two billion global viewers, was testament to that.
FAMILY LIFE AND PUBLIC DUTY
At her side for nearly all her reign was her husband, who she credited with being her "strength and stay".
Her marriage to Philip, a Greek prince she wed aged 21, stayed solid for 73 years until his death in April 2021.
"I was blessed that in Prince Philip I had a partner willing to carry out the role of consort and unselfishly make the sacrifices that go with it," she said in February 2022 when she marked 70 years on the throne.
The couple had four children: Charles born in 1948, Anne in 1950, Andrew in 1960 and Edward in 1964.
She had eight grandchildren and 12 great-grandchildren.
During much of her reign she was often upstaged for attention by three flamboyant women - her popular mother, Elizabeth the Queen Mother, her younger sister Margaret and later Princess Diana.
But the personal sorrow of losing her mother and sister - who died within weeks of each other in her Golden Jubilee year of 2002 - helped the queen establish her own position, leaving her the undisputed matriarchal figure of the nation.
Her working life included thousands of official engagements, varying from trips to schools and hospitals, to the grand ceremonies of state visits and national occasions.
She was famous for wearing brightly coloured outfits with a matching hat on royal engagements, to ensure she stood out from the crowds on her many "walkabouts".
"I have to be seen to be believed," she is said to have quipped.
She also took her religious duties as Supreme Governor of the Church of England very seriously, saying in 2012 the established Church was "commonly under-appreciated".
She travelled further than any previous monarch, undertaking more than 250 overseas visits to well over 100 countries. She was renowned for her stamina and began cutting back on a once hectic timetable of foreign tours only as she moved into her 80s.
Even in her 90s she regularly carried out engagements. On one such event at the age of 93, she told officials she was still capable of planting a tree before shovelling the soil into the hole, and it was another two years after that before she needed to use a walking stick in public.
When she was hospitalised in March 2013 with symptoms of gastroenteritis, it was the first time she had needed hospital treatment in a decade.
It was not until October 2021 that she next spent a night in hospital, and she doggedly carried on with light duties even after testing positive for COVID in February the following year.
Her enduring importance was demonstrated at the start of the pandemic in 2020. With an anxious nation under a rigorous lockdown, the government turned to the queen to provide reassurance in a televised broadcast. Usually she gave such addresses only in her annual Christmas broadcast.
The queen had a few notable security scares. In 1981, a British youth fired blank shots near her during the military Trooping the Colour ceremony. Her horse shied but she was unhurt.
The same year, a "severely disturbed" teenager tried to assassinate the monarch while she was on a visit to New Zealand but he missed with his rifle shot.
In July 1982, an unemployed labourer called Michael Fagan made his way into her Buckingham Palace bedroom. He spoke briefly to Elizabeth, who was in her nightclothes, before being hauled off by security guards.
THE FUTURE
"It has been said that 'the art of progress is to preserve order amid change and change amid order', and in this the queen is unparalleled," then-Prime Minister David Cameron said in a speech to parliament in 2012.
"She has never shut the door on the future; instead, she has led the way through it."
The queen's family and Britain's political elite spoke in admiration of her ability to adapt without losing any of the dignity of her role.
"Monarchy is only as good as the people doing the job," said royal biographer Robert Lacey, who was historical consultant to the Netflix drama "The Crown".
Elizabeth herself set out her life's goal at an early age.
"I declare before you all," she said in a 21st birthday broadcast, "that my whole life, whether it be long or short, shall be devoted to your service and the service of our great imperial family."