Niels was born around 1063, married in 1105, and died in 1134. His parents were King Sweyn II Estridson and an unknown concubine. Four of Niels' brothers ascended the throne before him. He is first mentioned in history in 1086 when he was sent to Flanders to take the place of his exiled brother, King Olaf I. When his brother Eric Evergood died in July 1103 during a pilgrimage, Niels, who was the last surviving brother, was elected king the following year ahead of Evergood's chosen deputy Harald Kesja. He married Margaret Fredkulla, the daughter of Inge I of Sweden. She was believed to have wielded considerable influence during his reign.
Policies and patronage
During the majority of Niels' reign, the country had internal peace. The contemporary Chronicon Roskildense describes him as mild and forthcoming, though not a competent ruler. He carried through reforms of his personal hird retinue, separating it into a military and an administrative branch responsible for tax collection. He placed family members as his jarls, including his son-in-law Jarl Ubbe and his nephews Eric and Canute Lavard, who were the sons of Eric Evergood. Niels supported the canonization of his brother Canute IV the Holy by bestowing gifts on the clergy of Odense as he sought to enlarge the power and influence of the monarchy through the aid of the church. However, it is likely he did not win the full support of the magnates on Zealand. He also campaigned against the Wends in alliance with Poland. In 1125, Niels' son Magnus was named King of Sweden as Magnus I.
Civil war
His wife, Margaret, died in 1128 or 1129, and his son, Magnus, was forced from the Swedish throne in 1130. After 26 years of internal peace, conflict erupted between Magnus and his cousin Canute Lavard. Canute was popular in the Duchy of Schleswig where he was jarl and was seen as a potential successor to Niels. On 7 January 1131, Magnus slew Canute near Haraldsted just north of Ringsted. Niels initially condemned Magnus but eventually supported him, and a civil war ensued between Niels and the supporters of Canute's half-brother, Eric. Niels had his strongest base of support in Jutland, and the church also supported him. He secured support from the Holy Roman Empire by agreeing to subordinate the Danish Archdiocese of Lund in Scania to the German Archdiocese of Hamburg-Bremen, which prompted Archbishop Asser of Lund to support Eric. Eric made little progress in Denmark and moved on to the battle for Scania in 1134. Niels and Magnus landed at Fotevik Bay in Scania in June 1134 seeking to deal Eric a decisive defeat. At the Battle of Fotevik on 4 June 1134, Niels and Magnus were taken by surprise by a contingent of German soldiers on horses. Niels escaped, while Magnus was slain. Niels sought refuge with Holy Roman EmperorLothar III of Germany, but did not make it past the city of Schleswig. Niels ventured into the former city of Canute Lavard on 25 June 1134, despite warnings. "Should I fear tanners and shoemakers?," he supposedly remarked. He was greeted by the clergy, but he and his vanguard were slain before they could reach the royal palace as the townspeople turned against him. The sixty-year reign of Sweyn II Estridson's sons ended when Niels fell and Eric II Emune became king.