While Henry campaigned there, the German aristocracy replaced their king Rudolf with the belated election of king
Hermann of Salm ( 1035 – 28 September 1088), also known as Herman of Luxembourg, as their new anti-king in August 1081, but he was fought successfully to a stalemate by
Frederick I, Duke of Swabia (Frederick of Swabia)—Rudolf's Henry-appointed successor in Swabia who had married Henry's daughter
Agnes. In 1084, Henry was crowned
Holy Roman emperor by
Antipope Clement III while Pope Gregory was in exile. This left the anti-king Hermann of Salm in an awkward position as partisans of Henry supported the deposition of Gregory and the elevation of Clement III. Hermann's plan to gather an army on the banks of the
Danube and march into Italy in support of the pope was dashed by the death of his main retainer,
Otto of Nordheim. When Henry, now the crowned Holy Roman emperor, returned north and came into Saxony with an army in 1085, Hermann fled to
Denmark. He returned, however, in alliance with
Welf I, Duke of Bavaria, and defeated the emperor at the Battle of Pleichfeld in 1086 on the
River Main, taking
Würzburg. ==End of the revolt==