Ritual memorializing the martyrdom of Husain

What is the religious and political significance of the passion play known as Haniyeh, a mourning ritual memorializing the martyrdom of Husain (the fourth Caliph, Ali’s, son) in Shii Iran? When did this ritual change from a predominantly spiritual practice to one encompassing a political meaning?