In 145 BC, however, Aristarchus became caught up in a dynastic struggle in which he supported Ptolemy VII Neos Philopator as the ruler of Egypt.