The nationalist PiS lost power after eight years in October 2023 to a coalition of pro-Europe parties headed by Donald Tusk's Civic Platform.

The new government says those accused of breaking the law during PiS rule will be held to account by prosecutors who it says are now free of political influence.

On Tuesday, special services forced their way into the home of former justice minister Zbigniew Ziobro and the prosecution said four people - three former justice ministry officials and one beneficiary of the fund - had been detained.

On Wednesday, officers searched the room of former Deputy Justice Minister Michal Wos in a hotel belonging to the parliament and another house belonging to Ziobro's family, a prosecution spokesperson said. Wos said his home outside Warsaw was also searched.

The investigation regards alleged misuse of money from the Justice Fund, set up to help victims of crime.

"I have nothing to reproach myself for, everything was legal when I supervised the Justice Fund...I will file a complaint against the prosecution," Wos told reporters.

A former Supreme Audit Office president said in front of a parliamentary commission on Wednesday that he had proof that 25 million zlotys ($6.3 million) from the fund were spent on Pegasus spyware which the new government says was used under PiS against some of its politicians.

Local media reported the funds were also used to curry favour among rural PiS voters, such as by buying fire engines or equipment for country housewives' associations.

Ziobro, who said he was undergoing chemotherapy after surgery for esophageal cancer, called the search of his house a "spectacle of banditry and lawlessness".

"I have currently interrupted my post-surgery therapy to come here today from afar," Ziobro told reporters late on Tuesday in front of his house, which was still being searched.

"All these actions are illegal, it's an implementation of political orders of (Prime Minister) Donald Tusk and (Justice Minister Adam) Bodnar."

Ziobro was the architect of judicial reforms that critics said undermined the independence of the courts. He has previously denied any wrongdoing.

($1 = 3.9822 zlotys)

(Reporting by Anna Wlodarczak-Semczuk and Pawel Florkiewicz, Editing by Angus MacSwan)