In 2012, Aliyev convinced the government of Hungary to transfer convicted murderer Ramil Safarov to Azerbaijan to complete the rest of his prison term. While attending a NATO-sponsored English-language course in Hungary, Safarov had murdered an Armenian lieutenant who was also taking the course, Gurgen Margaryan, while Margaryan was asleep. Safarov admitted that he committed the crime and surrendered himself to the police. Safarov has justified the act based over the Naghorno Karabakh conflict between the two countries from 1988 to 1994. Safarov had been tried and sentenced to life imprisonment in Hungary. However, after being extradited to Azerbaijan, Safarov received a hero's welcome, promoted to the rank of major, and given an apartment and over eight years of back pay, covering the time he had spent in jail.
