As a young army officer, Haftar took part in the coup that brought Muammar Gaddafi to power in 1969, assisting Gaddafi in the overthrow of Libya's King Idris. Shortly thereafter, Haftar became a top military officer for Gaddafi. He commanded Libyan troops supporting Egyptian troops entering Israeli-occupied Sinai in 1973.