In 1524 Tahmasp I replaced the moon with an emblem of a sheep and sun; this flag was used until 1576. It was then that Ismail II adopted the first Lion and Sun device, embroidered in gold, which was to remain in use until the end of the Safavid era. During this period the Lion and Sun stood for two pillars of the society: the state and Islam.