Romania's government has survived a no-confidence vote by lawmakers, as opposition parties did not gather enough support in parliament for their motion to oust Prime Minister Viorica Dancila.

Two hundred lawmakers voted Tuesday against the coalition led by the Social Democrats, who underperformed in last month's European Parliament election and saw their leader, Liviu Dragnea, sent to prison after a corruption conviction.

The opposition needed votes from more than half of all 465 lawmakers to pass the no-confidence motion.

It was the third time Dancila's government, which also includes the Alliance of Liberals and Democrats, has survived such a challenge.

Romania will elect a new president this coming fall. Parliamentary elections are scheduled to be held in 2020.