Was the Safavid conversion of Iran to Twelver Shia Islam an early example of a nationalistic move by a government? After all, as far as I know, the goal of this mass conversion was to help create an even more unique Persian/Iranian identity which would help Iran (then known as Persia) preserve its independence in the face of threats from the Ottoman Empire. Plus, this move made Iran an "island" of Shiism surrounded by a sea of Sunnism.
Frankly, to me, if one replaces the religious aspect with the ethnic aspect, this Safavid policy appears to be very similar to some of the policies of European nationalists in the 19th century and beyond; after all, as far as I know, some/many European nationalists in the 19th century and beyond (such as those in France) pursued policies such as teaching everyone the same dialect of their official national language in order to create and foster a greater sense of national unity and cohesiveness in their countries.
Any thoughts on this?
Also, for reference:
https://en.wikipedia.org/wiki/Safavi..._to_Shia_Islam