linguistic:paraphrasing
20th century

In 1898, General Tomas Regalado gained power by force, deposing Rafael Antonio Gutiérrez and ruling as president until 1903. Once in office he revived the practice of presidents designating their successors. After serving his term, he remained active in the Army of El Salvador and was killed on 11 July 1906, at El Jicaro, during a war against Guatemala. Until 1913 El Salvador was politically stable, with undercurrents of popular discontent. When President Manuel Enrique Araujo was killed in 1913, many hypotheses were advanced for the political motive of his murder.

Araujo's administration was followed by the Melendez-Quinonez dynasty that lasted from 1913 to 1927. Pio Romero Bosque, ex-minister of the government and a trusted collaborator of the dynasty, succeeded President Jorge Meléndez, and in 1930 announced free elections, in which Arturo Araujo came to power on 1 March 1931, in what was considered the country's first freely contested election. His government lasted only nine months before it was overthrown by junior military officers who accused his Labor Party of lacking political and governmental experience and of using its government offices inefficiently. President Araujo faced general popular discontent, as the people had expected economic reforms and the redistribution of land. There were demonstrations in front of the National Palace from the first week of his administration. His vice president and minister of war was General Maximiliano Hernández Martínez.

In December 1931, a coup d'état was organized by junior officers and led by Martínez. Only the First Regiment of Cavalry and the National Police defended the presidency (the National Police had been on its payroll), but later that night, after hours of fighting, the badly outnumbered defenders surrendered to rebel forces. The Directorate, composed of officers, hid behind a shadowy figure, a rich anti-communist banker called Rodolfo Duke, and later installed the vice-president Martínez as president. The revolt was probably caused by the army's discontent at not having been paid by President Araujo for some months. Araujo left the National Palace and unsuccessfully tried to organize forces to defeat the revolt.

The U.S. Minister in El Salvador met with the Directorate and later recognized the government of Martínez, which agreed to hold presidential elections. He resigned six months prior to running for re-election, winning back the presidency as the only candidate on the ballot. He ruled from 1935 to 1939, then from 1939 to 1943. He began a fourth term in 1944 but resigned in May after a general strike. Martínez had said he was going to respect the constitution, which stipulated he could not be re-elected, but he refused to keep his promise.