The Attalids ruled Pergamon until Attalus III bequeathed the kingdom to the Roman Republic in 133 BC to avoid a likely succession crisis