Outgoing Spanish Prime Minister Pedro Sánchez has been named for the first time in a Guardia Civil investigation into his Socialist Party, PSOE, according to documents seen by French news agency AFP.

The report says Sánchez appears to have played a relevant role and bears responsibility because of his direct link to the alleged criminal organisation at the centre of the inquiry.

It was published just three days after his defeat in the general election, ending eight years in power.

Until now, the investigation had focused mainly on close aides and even members of Sánchez’s family. This is the first time the outgoing prime minister himself has been explicitly identified in the case.

Investigators suspect Sánchez may have been at least one of the recipients and ultimate beneficiaries of the group’s activities. They also believe he may have known about them and taken part in decision-making related to those activities, according to the report.

The Guardia Civil, the elite police force leading the investigation, is now proposing a direct inquiry into Sánchez himself. The aim is to establish what links he may have had with the alleged criminal organisation and how he relates to the facts under investigation.

The so-called Leire Díez case has already caused a political storm in Spain. Díez, a former socialist activist, is accused of trying to obtain compromising information on detectives and magistrates investigating figures linked to the Socialists.

The wider investigation links several senior figures in the left-wing party to alleged abuses of power, fraud and corruption, including Sánchez’s brother and his wife. In May, police searched the headquarters of the PSOE.

Sánchez had led the PSOE since 2017. On Monday, however, he announced he was stepping down as its leader. He has consistently denied there was any “widespread corruption” in his government.