Under what dynasty did Iran start to become Shi'a?

Under the Safavid dynasty, Iran started to become a Twelver Shi'a nation, beginning with the first Shah, Ismail I. The official name of the dynasty is the Safavid Royal Dynasty of Iran (Persian: سلسلۀ صفویۀ ایران).