 In 1386 King Oluf II of Denmark and his mother-regent, Queen Margaret I, enfeoffed in Nyborg Gerhard VI, Count of Holstein-Rendsborg and his cognatic successors with the Duchy of Schleswig, which had been in the royal family's hands until 1375.He was as Gerhard II duke of Schleswig.Until 1390 the Rendsborg branch united by inheritance all branches except of that of Holstein-Pinneberg.