Shia Islam became the official religion of Iran during the Safavid dynasty in the early 16th century. The Safavids promoted Twelver Shia Islam as the state religion and played a significant role in the conversion of the majority of the population to Shia Islam.