Bahá'í history is often traced through a sequence of leaders, beginning with the
Báb's declaration in
Shiraz on the evening of May 22, 1844, and ultimately resting on an administrative order established by the central figures of the religion. The religion had its background in two earlier movements in the nineteenth century,
Shaykhism and
Bábism. Shaykhism centred on theosophical doctrines and many Shaykhis expected the return of the hidden
Twelfth Imam. Many Shaykhis joined the messianic Babi movement in the 1840s where the
Báb proclaimed himself to be the return of the hidden Imam. As the Babi movement spread in
Iran, violence broke out between the ruling
Shi'a Muslim government and the Babis, and ended when government troops massacred the Babis, and executed the Bab in 1850.