New dynasties, such as the Ottoman of Turkey, the Safavid of Persia, and the Moghul of India, sometimes called Gunpowder Empires, relied primarily on the vast innovations in Mongol weaponry, a military organization based on both a cavalry and an armed infantry, and the use of firearms, to fight foreign enemies and, perhaps more important, to maintain domestic power over their ethnically varied subjects.