In 1972, Libyan leader Muammar Gaddafi felt that Jaafar Nimeiry of Sudan had betrayed the Arab cause by signing the 1972 Addis Ababa Agreement ending the first Sudanese civil war. He established a base at Ma'tan as-Sarra to stockpile weapons and as a staging area for Sudanese insurgents, who were trained at the bases in Joudaim and Ma'sar Ra's near Tripoli. In July 1976, one thousand followers of Sudanese opposition leader Sadiq al-Mahdi left the oasis and stormed Khartoum after crossing northern Darfur and Kordofan. Al-Mahdi's force was defeated only after a tank battalion struck into the city after three days of heavy fighting.