In February 2011, a civil war broke out in Libya when rebels fought against Colonel Muammar al-Gaddafi and his government. NATO intervened in the war in favor of the rebels. However, some rebels had links with al-Qaeda. NATO ended its mission in October after Colonel al-Gaddafi was reported to have been killed. In the aftermath of the civil war, a low-level rebellion by al-Gaddafi loyalists continued. Armed militias filled the gap left by the revolution. Two different national governments were organized in Tripoli and Tobruk and many fighters did not follow either of them.