 His daughter, Agnes, was engaged to Friedrich, who in 1079 obtained the Duchy of Swabia.The emperor also sought to secure his royal succession.Henry IV chose his eldest son, Conrad, to be his heir and arranged to have Conrad crowned king in Aachen in 1087.