Ramesses II ("the Great") of the 19th Dynasty tried to get back territories in the Levant that had been held by the 18th Dynasty. In the Battle of Kadesh he led Egyptian armies against those of the Hittite king Muwatalli II. He was caught in the first recorded military ambush, but won the battle.