In 1988, as the burdens of instability and the Iran-Iraq War weighed heavily on the regime, Khomeini ordered the execution of thousands of political prisoners (which he accused of collaborating with Iraq) and appointed Raisi to a committee tasked with determining whether prisoners were disloyal to the government.