He did manage to fight off the sea people invasion, but a lot of people in Egypt were starving so when he got home, his wife and others tried to kill him for ignoring his own people's problems.
I clipped out that part due to length. The harem plot wasn't about ignoring problems, it was a straight-up power-play political assassination, for which they were caught and punished.
Et tu, Anubis?