Madrid (CNN) Spanish Prime Minister Mariano Rajoy's leadership looks set to crumble Friday as a majority of opposition members of parliament have declared they will reject him in a vote of confidence.

Rajoy did not attend a parliamentary debate on his future Thursday when several opposition parties openly said their lawmakers would vote against him. That means 180 of parliament's 350 members, a clear majority, will voice their lack of confidence in the leader.

Rajoy's Popular Party has been plagued with corruption allegations for years. Rajoy has faced the humiliation of testifying in cases against members of his party, though he has not been among the accused.

The confidence motion was filed by Pedro Sanchez, the leader of the main opposition Spanish Socialist Workers' Party, after a court convicted Rajoy's former aides of running slush funds to help finance Popular Party election campaigns. The court also questioned the credibility of Rajoy's testimony during the proceedings.

Members of parliament can also approve Sanchez to take over as prime minister in Friday's vote. Sanchez has said that he would call for snap elections should he be elected.

Read More