Spanish Prime Minister Mariano Rajoy speaks at the Spanish Parliament following the Catalonian independence vote on October 11, 2017 in Madrid, Spain. Mr Rajoy has asked Catalan leader Carles Puigdemont to confirm whether or not he has declared independence.

Spanish Prime Minister Mariano Rajoy will face a vote of confidence in his leadership on Friday as corruption convictions handed down to dozens of people linked to his center-right People's Party (PP) threatened his six-year rule.

Spain's parliament agreed on Monday that the debate and vote would take place on Thursday and Friday, although the opposition Socialists who proposed the vote may struggle to garner enough support in the fragmented legislature to unseat Rajoy.

Opposition parties are taking advantage of Rajoy's weakness after 29 people linked to the PP were convicted last Thursday of crimes including influence-peddling and falsifying accounts, in the culmination of a long-running corruption trial.

The PP has closed ranks behind Rajoy, who said on Friday he intended to serve out his four-year term and that the corruption convictions did not affect a single member of his government. The 63-year-old survived a no-confidence vote last June.