All the soldiers that Demetrius had dismissed then came to the support of the young king. They defeated Demetrius and he fled.