Both were islamic countries, Safavids were Shia islam and Mughals were sunni islam. Both empires were in a group called the “gunpowder empires” (Ottoman empire was also a gunpowder empire). Both had great trade, Safavids were of the Persian culture, Mughals had a mix of many. There is so much more, but thats all I can think of