Imperial and Royal Majesty (His/Her Imperial and Royal Majesty, abbreviated as HI&RM) was the style used by King-Emperors and their consorts as heads of imperial dynasties that were simultaneously royal. The style was used by the Emperor of Austria, who was also the King of Hungary and Bohemia and also by the German Emperor, Italian Empire who was also the King of Prussia. The Austrian and Bohemian monarchies were abolished in 1918 while the vacant throne of Hungary continued to exist until the 1940s.