Iran and Azerbaijan were predominantly Sunni until the 16th century. Changes in the religious make-up of nowadays both nations changed drastically from that time and on. In 1500 the Safavid Shah Ismail I undertook the conquering of Iran and Azerbaijan and commenced a policy of forced conversion of Sunni Muslims to Shia Islam.