How does economic collapse affect the social and political stability of a country like Iran?

The news mentions that every Iranian has been affected by economic collapse. I want to understand how such economic crises can influence the overall stability and functioning of a nation.