After the fall of the dictator and a brief proclamation of the Catalan Republic during the events which led to the proclamation of the Second Spanish Republic (1931-1939), it received its first Statute of Autonomy from the Spanish Republic's Parliament, establishing an autonomous body, the Generalitat of Catalonia, which included a parliament, a government and a court of appeal, and the left-wing independentist leader Francesc Macià was elected its first president. The governments of the Republican Generalitat, led by the Republican Left of Catalonia (ERC) members Francesc Macià (1931-1933) and Lluís Companys (1933-1940) made efforts to implement an advanced and progressive social agenda, despite the internal difficulties. This period was marked by political unrest, the effects of the economic crisis and their social repercussions. The Statute of Autonomy was suspended in 1934, due to the Events of 6 October in Barcelona, as a response to the accession of right-wing Spanish nationalist party CEDA to the government of the Republic, considered close to fascism.