By 1510 the Uzbeks had completed their conquest of Central Asia, including the territory of the present-day Uzbekistan. Of the states they established, the most powerful, the Khanate of Bukhara, centered on the city of Bukhara. The khanate controlled Mawarannahr, especially the region of Tashkent, the Fergana Valley in the east, and northern Afghanistan. A second Uzbek state, the Khanate of Khiva was established in the oasis of Khorazm at the mouth of the Amu Darya. The Khanate of Bukhara was initially led by the energetic Shaybanid Dynasty, the successors of Muhammad Shaybani. The Shaybanids initially competed against Iran for a few years, which was led by the Safavid Dynasty, for the rich far-eastern territory of present-day Iran. The struggle with the Safavids also had a religious aspect because the Uzbeks were Sunni Muslims, and Iran was Shia.