In 1741 - 1745 CE, there was a rebellion against the Mughal governor Inayat Ullah. Following Nadir Shah's invasion of Delhi, the deputy Abu Barkat Khan rebelled against his master and declared himself independent king, murdering Inayat Ullah in 1741. Mughal Emperor appointed Asad Yar Khan as governor of Kashmir.