Ankhmakis forces nearly drove the Ptolomys out of the country. The revolutionary dynasty was finally defeated in 185.