US President Barack Obama on Friday ordered Col. Muammar el-Gaddafi to carry out an immediate cease-fire, withdraw his forces from rebel-held cities and stop all attacks on Libyan civilians or face military action from the United States and its allies in Europe and the Arab world.