Tell me again, what are we doing in Libya?

Thousands of Libyans are out in the streets showing strong support for Gaddafi. Gaddafi claims that most of the rebels fighting against the government are al-Qaeda operatives. So, I guess this means Barack Obama wants to stay in this illegal war to support al-Qaeda?