Answer
Ibrahim Pasha of Egypt recovered Pylos for the Ottomans in 1825 during the Greek War of Independence. However, the defeat of the Turco-Egyptian fleet in the 1827 Battle of Navarino and the French military intervention of the 1828 Morea expedition eventually led to Greek independence.