[3][4] In 1768, It became part of the Gorkha Kingdom―present day Kingdom of Nepal―after an aggressive unification campaign launched by Prithvi Narayan Shah.
The lineage of Aridev ended with Jayadeva Malla in 1258, thereafter Patan was ruled alternately from Bhadgaon, and Banepa by the Tripuras, and the Bhontas.
After Jayasthiti Malla imprisoned and killed fifty-three prominent leaders of Patan, the local lords surrendered their complete authority to the monarchy in 1372.
[9] The Tirhuts invaded the valley in 1311 and destroyed several temples in Patan, inflicted fines, and burnt houses.
[10] In 1334, Punya Malla, another King from the Khasa Kingdom, entered Patan killing forty men on their way and imposing fines upon the citizens.
[14][15] The division led the successors of Yakshya Malla in a weak position and they gradually lost control of Patan.
[22] Around 1600, Shivasimha Malla of Kantipur brought Patan under his control and installed his son Harihara Simha as the governor.
Harihara Simha died shortly after that, and his first son Siddhi Narasimha Malla acted as the governor.
A prominent minister named Lakshminarayan who had risen as the supreme authority in the valley was assassinated in 1690, and the disputes subsided for a while.
[37] Yoga Narendra died without any male heirs and was succeeded by his infant grandson Loka Prakash Malla, through his daughter Yogamati, in 1705.
[40] However, Vira Narasimha held insignificant authority and a young Mahindra Malla succeeded him in the same year.
[41] The volatile government of Patan, that saw three kings within four years, experienced a brief period of stability when Mahindra ascended the throne.
Even though the two kingdoms were ruled by the same king, Kantipur and Patan existed as two separate political entities.
Rajya Prakash succeeded Vishnu Malla in 1745 but the Kajis (ministers) of Patan held more authority than the king.
Worse than that, Prithvi Narayan Shah had started his unification campaign, and with Tanahu and Gorkha acting as catalysts, Patan went through a series of clashes against its own neighboring kingdoms.