Norway's King Harald V has died at the age of 89, after he was taken to hospital last week for treatment for a rare blood condition. The palace in Oslo said he passed away peacefully at 06:35 local time (04:35GMT) on Friday at the national hospital in Oslo.

The royal flag on the roof of the palace has been lowered to half-mast. In the 24 hours leading up to his death, members of the royal family had visited the king, and crowds had laid flowers at the palace.

Harald was Norway's first king born in Norway since the 14th Century. He has been succeeded by his son Haakon.

After 35 years on the throne, he will be remembered as a popular and reforming figure who modernised the monarchy, broke with tradition by marrying a commoner and served as a unifying figure at Norway's most difficult moments. More recently, Harald and his family have faced health challenges and scandal, especially over his daughter-in-law Mette-Marit's association with the late sex offender Jeffrey Epstein, and her son Marius Borg Høiby's conviction for rape.

When Norway's national football team returned from the US after making it to the World Cup quarter-finals for the first time, Harald welcomed them home at the palace. He is survived by his wife of almost 58 years, Queen Sonja, their daughter Princess Märtha Louise, their son, the new King Haakon, and six grandchildren.

Harald was born on 21 February 1937 on the Skaugum estate near Oslo. He was three when dictator Adolf Hitler ordered Norway's invasion by Nazi Germany early in World War Two.

Harald's mother fled with her children across the border to Sweden, and they travelled to the US on the invitation of President Franklin D Roosevelt. Prince Harald returned with his family to Norway at the end of the war and completed his school and compulsory military service.

He became crown prince in 1957, and studied social science, history and economics at Balliol College in Oxford from 1960 to 1962. He met Sonja Haraldsen, the daughter of a businessman, at a party, but the crown prince had to wait nine years before he was allowed to marry her.

His father, King Olav, had always hoped he would marry a European princess. Eventually he told his father that if he could not marry Sonja, he would stay single, King Harald told Norway's public broadcaster, external.

His father finally gave his consent, and the couple wed in Oslo Cathedral on 29 August 1968. When his father became ill in 1990, the crown prince became regent.