Those spirits were demons who were able to perform miracles. They went out to the rulers of the whole world, in order to gather their armies [SYN] together to the battle that they will fight on the wonderful day when Almighty God punishes his enemies [MTY].