 Some aspects of sharia law were also unofficially retained in criminal law, for example compensation was still unofficially given in a similar manner to blood money, in exchange for pardoning a murder death sentence in some cases.In 1979 the secular, westernizing Pahlavi Dynasty was overthrown and replaced by an Islamic Republic under the rule of Ayatollah Khomeini.While the revolution did not dismantle the Pahlavi judiciary in its entirety, it replaced secular-trained jurists "with seminary-educated ones, and codified more features of the sharia into state laws—especially the Law of Retribution."