The Attalids, the third of the great Hellenistic dynasties, ruled from Pergamum in Asia Minor. The city had begun as a simple garrison, but at the Attalid kings' peak, its library and cultural influence rivaled Alexandria's.