Gadaffi had his wings clipped by our invasion of Iraq. He was cooperating with us. Also, Egypt’s Mubarak was an ALLY of the United States.
Obama deposed both of them.
Mubarak and Ghadaffi were both very much needed in that region and were both, for the most part, playing along with our objectives. Ghadffi even warned that we needed him - he said without him, the extremists would begin surging. Needless to say, he was very right and Obama and Hillary destabilized an entire region in less than a year - endangering us all.