While Philip was plundering Pergamese territory and attacking cities in Caria, Attalus I of Pergamum went to Athens to try to create a diversion. He succeeded in securing an alliance with the Athenians, who immediately declared war on the Macedonians. The King of Macedon could not remain inactive; he assailed Athens with his navy and with some infantry.