In the early 1800s, Egypt under Muhammad Ali Pasha developed a modern European-style army and navy. After intervening in the Greek War of Independence at Ottoman Turkey's request, the Egyptian navy was destroyed in 1827 at the Battle of Navarino by the fleets of Great Britain, France and Russia. With the Egyptian army in Greece then isolated, Muhammad Ali made terms with the British and withdrew a year later.