Anti-Gaddafi forces surrounded the city during September 2011 and began a long, difficult battle there, hoping to bring the war to an end. On 20 October, after suffering massive casualties during a siege that lasted over a month, NTC fighters mounted a major offensive and took control of the last remaining district of Sirte, "Number Two", that was in the hands of regime loyalists. Muammar Gaddafi attempted to flee the city, but he was injured and captured by fighters. He was killed in custody less than an hour later.