Levin Ter-Petrosian was the president of Armenia from 1991 to 1998. His country defeated Azerbaijan in a costly war over Nagorno-Karabakh, a predominately ethnically Armenian territory that had been given to Azerbaijan by the Soviet Union. However, because of many economic and political problems, he resigned on February 3, 1998 and was succeeded by Robert Kocharyan.