In 279 BC, they were victorious in battle against the Gauls, who had invaded Greece and were threatening the sanctuary of Delphi. After their victory they earned the appreciation of the rest of the Greeks and they were admitted as a new member into the Amphictyonic League. In the Social War (220-217 BC), the Aetolian League fought against the Kingdom of Macedonia. Philip V of Macedon invaded Aetolia and sacked the city of Thermos as a response to the Aetolians' invasion at the city of Dodona in Epirus.