The president of El Salvador, officially titled President of the Republic of El Salvador, is the head of state and head of government of El Salvador. He is also, by constitutional law, the commander-in-chief of the Armed Forces of El Salvador. The office was created in the Constitution of 1841. From 1821 until 1841, the head of state of El Salvador was styled simply as Head of State. From Wikipedia