Before the end of the war in 401 b.c. , many islands had already transferred their allegiance to the victors , who were led by Philip II of Macedon .
After the war ended , many islands remained opposed to Philip II of Macedon .