Vratislaus II (or Wratislaus II) () (c. 1032 – 14 January 1092), the son of Bretislaus I and Judith of Schweinfurt, was the first King of Bohemia as of 15 June 1085, his royal title granted as a lifetime honorific from Holy Roman Emperor Henry IV that did not establish a hereditary monarchy. Before his elevation to the royal dignity, Vratislaus had ruled Bohemia as duke since 1061. On his father's death in 1055, Vratislaus became duke of Olomouc, whereas his older brother became Duke of Bohemia as Spytihněv II. He fell out with his brother and was exiled to Hungary. Vratislaus regained the ducal throne of Olomouc with Hungarian assistance and eventually reconciled with his brother, then succeeded him as duke of Bohemia when he died in 1061. Campaigns of Henry IV Both Pope Alexander II and Pope Gregory VII confirmed Vratislaus in the privilege of wearing the mitre and tunic which his predecessors had. Despite this, Vratislaus supported Henry in both the Investiture Controversy against the Popes and the rebellions in Saxony that dominated his long reign. These actions would negate the significance of the mitre. Vratislaus was often at odds with his brother Jaromír, Bishop of Prague. Jaromír, for his part, ignored the creation of a new Moravian diocese in Olomouc by Vratislaus in 1063. Jaromir even went so far as to retake, by arms, the relics removed from Prague and taken to Moravia. Despite the pope's support for Vratislaus' new see, the Bohemian duke was unswayed in his loyalty to the emperor. The Saxons revolted under Duke Magnus of Saxony and Otto of Nordheim, Duke of Bavaria, in 1070 and Boleslaus of Poland attacked Bohemia in 1071. In August 1073, Henry responded with an invasion of Poland, but a new Saxon revolt drew him back in 1075. Vratislaus joined him, and they defeated the rebels on 9 June at the First Battle of Langensalza. The Bohemian troops showed conspicuous bravery. Henry then took Jaromír to Germany to be his chancellor under the name of Gebhard and Vratislaus was greatly relieved. Vratislaus also took part in the wars against the anti-kings who opposed Henry's rule and were elected by a faction of the nobility to replace him. At the Battle of Flarchheim, only through the aid of Vratislaus' contingent was the imperial army capable of overcoming the rebels of the papally-approved claimant Rudolf of Rheinfelden, Duke of