OTTAWA (Reuters) - Canadian Prime Minister Justin Trudeau on Tuesday sought to quell a crisis that threatens his chances of re-election, expelling from party ranks two former Cabinet members he said had undermined the ruling Liberals.

Trudeau said former Justice Minister Jody Wilson-Raybould and former Treasury Board chief Jane Philpott would no longer be allowed to sit as Liberal legislators. They were also barred from running for the party in the federal election this October.

The Liberals have been in turmoil since Wilson-Raybould said in February that officials had inappropriately pressured her last year while she was justice minister to ensure that construction company SNC-Lavalin Group Inc escape a corruption trial.

“The trust that previously existed between these two individuals and our team has been broken,” Trudeau told an emergency meeting of caucus.

“Civil wars within parties are incredibly damaging because they signal to Canadians that we care more about ourselves than we do about them,” said Trudeau, 47, who took office in November 2015 and faces a tough re-election battle this autumn.

Wilson-Raybould, who tweeted news of her ouster before Trudeau’s announcement, was demoted in January and resigned the next month. Philpott quit shortly afterward, saying she had lost confidence in how Trudeau was handling the matter.

“If people can’t express trust in the party and the prime minister, then they need to find another political vehicle in order to advance their ideas. It’s as simple as that,” Justice Minister David Lametti told reporters.

Slideshow ( 5 images )

The expulsion represented a change of course for Trudeau, who said as recently as last week that the Liberals needed strong legislators with differing points of view.

But increasingly angry parliamentarians had demanded both women be removed from caucus on the grounds they were undermining party unity.

Opinion polls show the crisis has cut public support for the Liberals to such an extent that they could lose in October to the official opposition Conservatives.

Trudeau, who came to power promising “sunny ways” and a greater role for women in politics, admitted it “has been a difficult few weeks.”

The scandal also cost him the services of his closest aide, Gerald Butts, and Michael Wernick, the head of the federal bureaucracy.

Wilson-Raybould said on Twitter: “I have no regrets. I spoke the truth as I will continue to do.”

Slideshow ( 5 images )

Last Friday, to back her case, she released the audio of a confidential conversation with Wernick, who did not know she was recording him. Trudeau said that was “unconscionable.”

Philpott said on Facebook that she “did not initiate the crisis now facing the party or the prime minister ... it appears that the caucus is intent on staying the current course, regardless of its short-term and long-term consequences.”

Trudeau has denied any wrongdoing. The scandal is starting to hit his fortunes in the populous province of Quebec, where the Liberals say they need to pick up seats in October to remain in power.

Conservative leader Andrew Scheer said Trudeau’s decision sent a message that “if you tell the truth, there is no room for you in the Liberal Party.”