Prior to direct imperial rule, Cappadocia was one of the successor kingdoms of Alexander the Great's empire. The Kingdom of Cappadocia was ruled by the Ariarathid dynasty from 331 BC until 95 BC. Under Ariarathes IV, Cappadocia first came into contact with the Roman Republic as a foe allied to the Selecuid King Antiochus the Great during the Roman–Seleucid War from 192 to 188 BC.