They were instructed to keep close relations with all the Muslims...
They were instructed to keep close relations with all the Muslims, on the basis of coexistence with the authorities while abstaining from entering their organization or participating in its establishment so far as it did not harm the general order of the society or go against the basic vital interests of the community following the path of the (A).
They were also protected from deviation by being constantly prohibited to take sides with this or that rival party from among the oppressors who struggled for power. They, as individuals or groups, were protected from being persecuted in their districts or from being exiled or executed by the prescription of taqiyyah.
We basically understand taqiyyah as being an ordinance aimed at the protection of the lives of individuals and their personal interests, so long as that does not violate the basic principles and political commitment to society.
However, when taqiyyah leads to the abandonment of the principles or deviation from them in a political issue, or when it goes against political commitment to society, then it is not lawful, because it was introduced to protect the individuals upholding and defending the principles. Thus it should be noted that taqiyyah was prescribed to safeguard the principles and to insure their success in the future.
It is not reasonable, therefore, that it should become a cause of the weakening or even the destruction of those very principles for the sake of protecting the interests of the individuals.
This objective manifested itself on the plane of practice and reality, after the martyrdom of al-Husayn (A), in the form of a balance between three elements: (1) taqiyyah on the individual level, (2) preservation of the general order of the Islamic society and the Muslim community in respect of administration and public services, (3) refusal to grant political legitimacy to the oppressive regime. The Imams of the (A) dealt with the existing regimes within these limits.
This balance resulted in the Imams of the (A) working with the existing system on an administrative level, in so far as that would preserve the general order of society and provide an atmosphere conducive to safety and freedom of movement for them and their followers. Thus the goal of safeguarding the ultimate prophecy from corruption would be achieved while preserving the political stand opposing the oppressive regimes, which characterized the path of the (A), in a live and active state.