Zoroastrianism was the state religion of the Sassanid dynasty which lasted from ( 226 - 651 ) . Zoroastrianism was the state religion of the Sassanid dynasty which lasted until 651 , when Persia was conquered by the forces of Islam .