Spain's anti-corruption prosecutor, who was in charge of graft investigations involving members of the ruling People's Party (PP), stepped down today after coming under fire for holding a stake in an offshore company in Panama.

Manuel Moix's appointment in February had already led to a row between the minority PP government, which approved his nomination, and opposition parties which criticised the way he handled some cases involving the governing party.

Moix confirmed that he had a 25 percent stake in an offshore company which he shared with his siblings and had inherited from his father. He denied any wrongdoing and said in a Spanish radio interview that the arrangement was legal.

He stepped down today, though Spain's public prosecutor Jose Manuel Maza, who announced the anti-corruption chief's resignation, defended Moix's track record.

"I'm satisfied that there is absolutely nothing in the way he behaved that has been irregular or illegal," Maza told a news conference.

Several Spanish newspapers reported in April that Moix had tried to hinder a probe, still at the pre-trial stage, which involved the PP's Madrid branch.

Moix denied any wrongdoing, but opposition parties called for his resignation.

Moix's appointment had become increasingly embarrassing for Spanish Prime Minister Mariano Rajoy, whose party is embroiled in a series of corruption scandals, as opposition parties questioned his credentials.

Rajoy, who is not himself accused of any wrongdoing, has been trying to distance himself from corruption scandals that have come at a cost in the ballot box.

The conservative prime minister managed to stay on for a second term in office after the PP won the most votes in two inconclusive elections at the end of 2015 and in mid-2016.

But the PP lost its absolute majority meaning it has to negotiate policies on a case-by-case basis with the opposition to get laws through parliament, like a

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.