unopposed as president and the economic stability of Senegal began to fade. Senegal relied heavily on peanut-farming and this source of economic stability was in decline. Single-party rule prevented an overwhelming economic crisis and ensured social stability in Senegal, which was appealing to people in the country. However, in the 1990s, Senegal's status as a democracy was called into question because it seemed impossible to remove the Socialist Party of Senegal from office. There was no legal political opposition to the Socialist Party of Senegal until 1974, which is when Abdoulaye Wade obtained legal permission from Senghor to create a new party. He created the Senegalese Democratic Party. Starting in 1978, Wade's party began to start winning seats in the National Assembly. This was the beginning of Senegal moving from an essentially single-party system into a more competitive system. Leopold Sedar Senghor voluntarily resigned from position of president in 1980 and Abdou Diouf came into power as Senghor's hand-picked successor. Senghor became the first African head of state to voluntarily retire. In the 2000 presidential election, the Socialist Party of Senegal was defeated and was no longer the ruling party for the first time in 40 years. Abdou Diouf, the 19-year incumbent of the Socialist Party, was defeated by Abdoulaye Wade. The removal of Diouf from office by an election broke the political monopoly the Socialist Party had on Senegal and helped establish Senegal as one of the African countries with the most advanced democracies. Senegal became one of the first African countries to remove the head of government by voting instead of a coup or violent measures. Wade was the candidate from the Senegalese Democratic Party and had been the leader of the political opposition against the Socialist Party for about 25 years. In the 2007 and 2012 presidential elections, Ousmane Tanor Dieng unsuccessfully ran. In 2007, the Socialist Party participated in a boycott of the June 2007 parliamentary elections and has not held seats in the National Assembly since.Since 2012 the party has run in the parliamentary elections as part of the United in Hope coalition, the coalition of the presidential majority in support of Macky Sall. Electoral history Presidential elections Senegal is a republic with a presidency. The president is elected every 7 years (previously every 5 years until 2001 and between 2007 and 2012) by the adult Senegalese population. The March 2000 presidential election ended 40