Ukraine's parliament has accepted the resignation of the prosecutor general who has been accused of failing to deal with the country's endemic corruption.

The parliament on Tuesday dismissed Viktor Shokin who tended his resignation a month ago. An hour earlier, Shokin had fired his deputy — a reformist prosecutor and member of the team of former Georgian President Mikhail Saakashvili, who serves as governor of the Odessa region. The deputy had accused Shokin of maintaining ties with corrupt officials and lawmakers.

Several hundred people rallied outside the Ukrainian parliament on Monday, calling for Shokin's resignation.

Ukraine's prime minister is also under pressure, and the parliament is expected to debate a motion to fire him later on Tuesday.