In 1027, Manuchehr succeeded his father Yazid II as the Shah of Shirvan. Two years later, he declared war against the Hashimids of Derbent. He was, however, defeated by an Hashimid army which ravaged his land. The following year, his kingdom was invaded by a Rus' army under Ingvar the Far-Travelled. Manuchehr tried to repel them from Caucasus, but was soundly defeated at Baku; many prominent men of Shirvan were killed, such as certain Ahmad ibn Khasskin. Manuchehr then had the Araxes river closed in order to stop the Rus'. However, this resulted in the death of a number of Muslims.