Both Rameses II and Rameses III were great leaders who successfully led Egypt through a series of military campaigns and invasions which helped assure the continuation of the kingdom, although they reigned during different dynasties.
Rameses II, also known as "Rameses the Great," was the third Pharaoh of the Nineteenth Dynasty. His reign lasted from 1279 B.C.E. t0 1213 B.C.E. He is reputed to have lived to be over ninety years of age. His mummy is preserved in the Egyptian antiquities museum. During his reign, he gained back for Egypt some territory that had previously been lost to the Hittites and Nubians, and defeated the Sherdon sea pirates who frequently attacked Egypt from the Mediterranean. He is also considered responsible for returning Egypt to its traditional religious practice and away from the reforms instituted by Akhenaten.
Rameses II was the second Pharaoh of the Twentieth dynasty and ruled from 1186 B.C.E. until 1155 B.C.E., a much shorter time than his famous predecessor. As was Rameses II, he was a great military leader who was responsible for fending off invasion by a group known as the "Sea People." Unfortunately, the cost of the war was considerable, and this together with a crumbling Egyptian economy led to the demise of the twentieth dynasty.