Prior to the Austro-Hungarian Compromise of 1867, the Navy was referred to as the Imperial Austrian Navy or simply the Austrian Navy. It saw action in the French Revolutionary Wars, the Napoleonic Wars, the Second Egyptian–Ottoman War, the First and Second Wars of Italian Independence, the Second Schleswig War, and the Seven Weeks War as well as the simultaneous Third War of Italian Independence. Following Austria's defeat by Prussia and Italy during the Seven Weeks War, the Empire reformed itself into a dual monarchy with the Habsburg monarch ruling as Emperor of Austria over the western and northern half of the country that was the Austrian Empire, and as King of Hungary over the Kingdom of Hungary. The Austro-Hungarian Compromise of 1867 also transformed the Austrian Navy into the Austro-Hungarian Navy. Largely neglected by the Empire in its early years, the k.u.k. Kriegsmarine grew throughout the late 19th and early 20th centuries to become one of the largest navies in the Adriatic and Mediterranean Seas. By 1914 the k.u.k. Kriegsmarine had a peacetime strength of 20,000 personnel, seeing action in the Boxer Rebellion and further conflicts prior to World War I.