In Harry Potter and the Order of the Phoenix, Voldemort is not defeated. The final battle occurs in Harry Potter and the Deathly Hallows.