Original: Ramesses II ("the Great") sought to recover territories in the Levant that had been held by the 18th Dynasty.
Simplified: Ramses II ("the Great") of the 19th Dynasty tried to get back territories in the Levant that had been held by the 18th Dynasty.