 However, since the Tatar assaults on Russian borders continued, the Muscovite army started a campaign against Kazan.Daniel was the commander of the avantgarde troops and defeated khan Ibrahim, forcing him to sign a peace treaty with Ivan III.The treaty obliged the khanate to return all the Russian captives and to establish a friendly relationship with Moscow.