His campaigns of reconquest culminated in the Battle of Kadesh , where he led Egyptian armies against those of the Hittite king Muwatalli II and was caught in history 's first recorded military ambush but Ramesses was able to rally his troops and turn the tide of battle against the Hittites thanks to the arrival of the Ne'arin .
In the Battle of Kadesh , where he led Egyptian armies against those of the Hittite king Muwatalli II .