On 21 August 2011, amid the Battle of Tripoli, Mahmudi reportedly fled to Djerba, a resort island in Tunisia.
On 1 September 2011, Mahmudi told an Arabic news channel that he supports those fighting against the former Libyan leader.