From 1874 to 1876, the Empire, under Yohannes IV, won the Ethiopian-Egyptian War, decisively beating the invading forces at the Battle of Gundet, in Hamasien province (in modern day Eritrea). In 1887 Menelik king of Shewa invaded the Emirate of Harar after his victory at the Battle of Chelenqo.