The purpose of this study is to investigate and identify the periods of formation and bursting of speculative bubbles in Iran's capital market by creating a state space model and two-mode switching regime (mode 1 is bubble growth and burst stage and mode 2 is the time of bubble loss) during the period from April 2011 to March 2018. The Oxmetrics 7 software is used to investigate the existence of multiple bubbles and research objective. The results of the study of the state space switches confirm the bubble of the capital market in Iran during four periods in the research domain. The life span of the first speculative bubble is 2 months from October to November 2011, the second is 8 months from March to October 2013, the third is 3 months from December 2015 to February 2016, and the fourth period of bubble is 5 months from August to December 2017. Therefore, the result of the research stipulates that the stock index of the Iranian capital market in the realm of research time period has had 18 months of bubbles and has spent 66 months in balance.