In August 1825 Cochrane was hired by Greece to support its fight for independence from the Ottoman Empire, which had deployed an army raised in Egypt to suppress the Greek rebellion. He took an active role in the campaign between March 1827 and December 1828, but met with limited success. His subordinate Captain Hastings attacked Ottoman forces at the Gulf of Lepanto, which indirectly led to intervention by Great Britain, France, and Russia. They succeeded in destroying the Turko–Egyptian fleet at the Battle of Navarino, and the war was ended under mediation of the Great Powers. He resigned his commission toward the end of the war and returned to Britain.