 Shirvan fell before the end of the summer of 1578, by which fact the Ottomans had now control of almost all territories west of the Caspian Sea coast, and it also opened the way for an attack on what is nowadays the core of Armenia and Azerbaijan, which were subsequently attacked in 1579 by a large contingent of Crimean Tatars, led by Adil Giray Khan, but he was captured in a remarkable counterattack led by Mirza Salman Jabiri and Hamza Mirza, and later executed in Qazvin, the Safavid capital at that time.Another Ottoman army under the leadership of Osman Pasha and Ferhat Pasha crossed into Iran and captured Tabriz in 1585.Sultan Mohammad sent Hamza Mirza to fight the Ottomans but the young prince was murdered during this campaign and the city remained in Ottoman hands for 20 years.