The conquest of Shirvan was the first campaign of Ismail, the leader of the Safavid order. In late 1500, Ismail marched into Shirvan, and, despite heavily outnumbered, decisively defeated the then incumbent Shirvanshah Farrukh Yassar in a pitched battle, in which the latter and his entire army were killed. The conquest resulted in the toppling of the Shirvanshahs as autonomous rulers, who had ruled large parts of the Caucasus for centuries, and the incorporation of their domain.