During Arab Spring, the West was (naively) hoping that Libyans would rise against Gaddafi and create a democraty. When he saw what was happening, he threatened to a) flood Europe with migrants and b) expose Sarkozy’s illegal campaign funds.
a) made him a political adversary, b) made them launch a military campaign to topple him