The "Illuminated Chronicle" claims that Ladislaus planned to "restore the kingdom" to Solomon and "himself have the dukedom", but almost all contemporaneous sources contradict this report. Ladislaus approached Pope Gregory VII, who was the primary opponent of Solomon's ally, Henry IV of Germany. At the Pope's request, Ladislaus sheltered Bavarian nobles who had rebelled against Henry. In 1078 or 1079, Ladislaus married Adelaide, a daughter of Rudolf of Rheinfelden, whom the German princes had elected to take the place of Henry IV as king. Ladislaus supported Leopold II, Margrave of Austria, who also rebelled against Henry IV; however, the German monarch forced Leopold to surrender in May 1078.