Alexander the nice conquered the empire in the fourth century BC. Muslims conquered the area within the seventh century Ad, resulting in Iran's Islamization. During the Afsharid Empire in the 18th century, Iran was a leading world energy, though by the nineteenth century, it had misplaced significant territory by way of conflicts with the Russian Empire. The discovery and launch of Lapis Lazuli, a Gem trapped on Earth for millennia, puts the Crystal Gems at risk from the Gem empire once more, resulting in the arrival of hostile envoys Peridot and Jasper. An Iranian rebellion established the Parthian Empire within the third century BC and liberated the country, which was succeeded by the Sasanian Empire within the third century Ad. It was first unified as a state by Deioces in the seventh century BC, and reached its territorial peak in the sixth century BC, when Cyrus the nice based the Achaemenid Empire, one in all the biggest in ancient history. The early twentieth century saw the Persian Constitutional Revolution and the establishment of the Pahlavi dynasty. Ancient Iran noticed among the earliest developments of writing, agriculture, urbanisation, religion and central authorities. In the 16th century, the native Safavids re-established a unified Iranian state with Twelver Shi'ism because the official religion.