In mid-2018, the National Court found that the conservative People's Party profited from the illegal kickbacks-for-contracts scheme of the Gürtel case, confirming the existence of an illegal accounting and financing structure that ran in parallel with the party's official one since 1989 and that sentenced that the PP helped to establish "a genuine and effective system of institutional corruption through the manipulation of central, autonomous and local public procurement". The PSOE Parliamentary Group in the Congress of Deputies filed a motion of no confidence against the government of Prime Minister Mariano Rajoy, presenting Sánchez as alternative candidate. The PSOE's motion passed with the support of Unidos Podemos (UP), Republican Left of Catalonia (ERC), Catalan European Democratic Party (PDeCAT), Basque Nationalist Party (PNV), Coalició Compromís, EH Bildu and New Canaries (NCa), bringing down the Rajoy government. The PP voted against the proposal, joined by Citizens (C's), the Navarrese People's Union (UPN) and the Asturias Forum (FAC). The Canarian Coalition (CC) abstained. Following the successful motion of no confidence, Sánchez became Prime Minister on 2 June 2018 in a minority government. In December 2018, the PSOE's branch in Andalusia was defeated in the 2018 Andalusian regional election for the first time since the restoration of democracy, with a centre-right coalition of PP, C's and the resurgent right-wing nationalists Vox taking power in the region.