win the following year's election and become the first democratically elected leader of the new regime. Further legitimacy was restored to Juan Carlos's position on 14 May 1977, when his father (whom many monarchists had recognized as the legitimate, exiled King of Spain during the Franco era) formally renounced his claim to the throne and recognized his son as the sole head of the Spanish Royal House, transferring to him the historical heritage of the Spanish monarchy, thus making Juan Carlos both de facto and de jure king in the eyes of the traditional monarchists. On 20 May 1977, the leader of the only recently legalized Spanish Socialist Workers' Party (PSOE), Felipe González, accompanied by Javier Solana, visited Juan Carlos in the Zarzuela Palace. The event represented a key endorsement of the monarchy from Spain's political left, who had been historically republican. Left-wing support for the monarchy grew when the Communist Party of Spain was legalized shortly thereafter, a move Juan Carlos had pressed for, despite enormous right-wing military opposition at that time, during the Cold War. On 15 June 1977, Spain held its first post-Franco democratic elections. Juan Carlos had played a role as middleman in order to channel $10 million from the Shah of Iran to Adolfo Suárez's election campaign, reportedly asking the Shah for the money to "save Spain from Marxism". In 1978, the government promulgated a new constitution that acknowledged Juan Carlos as rightful heir of the Spanish dynasty and king; specifically, Title II, Section 57 asserted Juan Carlos's right to the throne of Spain by dynastic succession in the Bourbon tradition, as "the legitimate heir of the historic dynasty" rather than as the designated successor of Franco. The Constitution was passed by the democratically elected Constituent Cortes, ratified by the people in a referendum (6 December) and then signed into law by the King before a solemn meeting of the Cortes. 1981 coup d'état attempt There was an attempted military coup, known as 23-F, on 23 February 1981, when the Cortes were seized by members of the Guardia Civil in the parliamentary chamber. During the coup, the King, wearing his uniform as Captain-General of the Armed Forces, gave a public television broadcast calling for unambiguous support for the legitimate democratic government. The broadcast is believed to have been a major factor in foiling the coup. The coup leaders had promised many of their potential supporters