sentences:  Thus, after the defeat and death of Ali Pasha in 1822, he was at hand to campaign against the Greek rebels.Having been appointed commander-in-chief of the Ottoman forces in Epirus, he marched south, to meet the Greek forces under Alexandros Mavrokordatos, which were campaigning towards Arta.He inflicted a crushing defeat upon them in the Battle of Peta, on 4 July 1822, and proceeded southwards, to the strategically important town of Missolonghi.