with arms. Israel began assisting the Kurdish rebels in the early 1960s. From 1961 to 1970, the Kurds fought the Iraqi government in the First Iraqi–Kurdish War, which resulted in the Iraqi–Kurdish Autonomy Agreement. But simultaneously with its promise of Kurdish autonomy, the Iraqi government began ethnic cleansing Kurdish-populated areas, to reduce the size of the autonomous entity which a census would determine. This mistrust provoked the Second Iraqi–Kurdish War between 1974 and 1975, which resulted in a serious defeat for the Iraqi Kurds (see Algiers Accord) and forced all of the rebels to flee once more to Iran. Insurgency and first elections (1975–1992) The more left-leaning Patriotic Union of Kurdistan (PUK) was founded in 1975 by Jalal Talabani and regenerated the Kurdish insurgency with guerrilla warfare tactics as the Kurdistan Democratic Party (KDP) was slowly recovering from their defeat. However, the Kurdish insurgency became entangled in the Iran–Iraq War from 1980 onwards. During the first years of the war in the early 1980s, the Iraqi government tried to accommodate the Kurds in order to focus on the war against Iran. In 1983, the Patriotic Union of Kurdistan agreed to cooperate with Baghdad, but the Kurdistan Democratic Party remained opposed. In 1983, Saddam Hussein signed an autonomy agreement with Jalal Talabani of the PUK, though Saddam later reneged on the agreement. By 1985, the PUK and KDP had joined forces, and Iraqi Kurdistan saw widespread guerrilla warfare up to the end of the war. On 15 March 1988, PUK forces captured the town of Halabja near the Iranian border and inflicted heavy losses among Iraqi soldiers. The Iraqis retaliated the following day by chemically bombing the town, killing about 5,000 civilians. This led the Americans and the Europeans to implement the Iraqi no-fly zones in March 1991 to protect the Kurds, thereby facilitating Kurdish autonomy amid the vacuum and the first Kurdish elections were consequently held in May 1992, wherein the Kurdistan Democratic Party secured 45.3% of the vote and a majority of seats. Nascent autonomy, war and political turmoil (1992–2009) The two parties agreed to form the first Kurdish cabinet led by PUK politician Fuad Masum as Prime Minister in July 1992 and the main focus of the new cabinet was to mitigate the effect of the American-led sanctions on Iraq and to prevent internal Kurdish skirmishes. Nonetheless, the cabinet broke down due to plagues of embattlement and technocracy