In 200 BC, Attalus became involved in the
Second Macedonian War. Acarnanians with Macedonian support invaded
Attica, causing
Athens, which had previously maintained its neutrality, to seek help from the enemies of Philip. Attalus, with his fleet at Aegina, received an embassy from Athens, to come to the city for consultations. Informed that Roman ambassadors were also at Athens, Attalus went there in haste. His reception at Athens was extraordinary. Polybius writes:
… in company with the Romans and the Athenian magistrates, he began his progress to the city in great state. For he was met, not only by all the magistrates and the knights, but by all the citizens with their children and wives. And when the two processions met, the warmth of the welcome given by the populace to the Romans, and still more to Attalus, could not have been exceeded. At his entrance into the city by the gate Dipylum the priests and priestesses lined the street on both sides: all the temples were then thrown open; victims were placed ready at all the altars; and the king was requested to offer sacrifice. Finally they voted him such high honors as they had never without great hesitation voted to any of their former benefactors: for, in addition to other compliments, they named a tribe after Attalus, and classed him among their eponymous heroes.<ref>Polybius,
Sulpicius Galba, now [[consul], convinced Rome to declare war on Philip and asked Attalus to meet up with the Roman fleet and again conduct a naval campaign, harassing Macedonian possessions in the Aegean. In the spring of 199 BC, the combined Pergamon and Roman fleets took
Andros in the
Cyclades, the spoils going to the Romans and the island to Attalus. From Andros they sailed south, made a fruitless attack on another Cycladic island,
Kithnos, turned back north, scavenged the fields of
Skiathos off the coast of
Magnesia, for food, and continued north to
Mende, where the fleets were wracked by storm. On land they were repulsed at
Cassandrea, suffering heavy loss. They continued northeast along the Macedonian coast to
Acanthus, which they sacked, after which they returned to Euboea, their vessels laden with spoils.
On their return, Attalus and the Roman commander went to Heraclea to meet with the Aetolians, who under the terms of their treaty asked Attalus for a thousand soldiers. Attalus refused, citing the Aetolians' own refusal to honor Attalus' request to attack Macedonia during Philip's attack on Pergamon two years earlier. Resuming operations, Attalus and the Romans attacked but failed to take Oreus and, deciding to leave a small force to invest it, attacked across the straight in
Thessaly. When they returned to Oreus, they again attacked, this time successfully, the Romans taking the captives, Attalus the city. The campaigning season over, Attalus, after attending the
Eleusinian Mysteries, returned to Pergamon after an absence of more than two years.
In the spring of 198 BC, Attalus returned to Greece with twenty-three
quinqueremes and joined a fleet of twenty decked Rhodian warships at Andros, to complete the conquest of Euboea begun the previous year. Soon joined by the Romans, the combined fleets took
Eretria and later
Carystus. Thus, the allies controlled all of Euboea except for
Chalcis. After a failed attempt to take Corinth, the Romans left for
Corcyra, while Attalus sailed for
Piraeus.
Early in 197 BC,
Titus Quinctius Flamininus, the Roman consul, summoned Attalus to a
Boeotian council in
Thebes to discuss which side Boeotia would take in the war. Attalus was the first to speak in the council, but during his address he stopped talking and collapsed, with one side of his body paralyzed. Attalus was taken back to Pergamon, where he died the following fall, perhaps having heard of the news of the decisive Roman victory at the
Battle of Cynoscephalae, bringing about the end of the Second Macedonian War.