By building undercover military factories , and having his troops trained in russia
<span>The Ottoman empire was run by Sunni muslims and the Safavids controled by Shi'i muslims. Religious difference was one of the main sources of conflict between the empires. The Ottomans and Safavids also fought over control of Islamic territories and interpretation of Islamic doctrines.</span>