Before Prithvi Narayan Shah's unification movement, there were a total of 54 states in Nepal. The 54 states were named as
Baisi Rajya and
Chaubise Rajya. In the South-Eastern
Terai, there were three
Sen states:
Makawanpur, Bijayapur, and
Chaudandi. In the West, from Gorkha (includes parts west of Trishuli from present day Dhading) to
Gandaki Province, there were 24 states. In the province of
Karnali, there were 22 states with Kalyan, Samaal, Shahi and Chand dynasties. Along with Gorkha and
Mustang,
Bhaktapur,
Kantipur and
Lalitpur made up the remaining five states. .When Prithvi Narayan Shah ascended to the throne of Gorkha on 3 April 1743 A.D., it was still a small state. He then started to contemplate the methods for turning Gorkha into a huge and strong state. He went to
Varanasi to gain first-hand knowledge about the neighbouring states and about
India to the south. During those days, Varanasi was one of the largest trade centres in India where people from different places gathered. He met with different types of people and gained valuable understandings regarding the political and social conditions of the
Indian Sub-Continent. In Varanasi, his
father-in-law Abhiman Singh, a
Thakuri Chief, procured for him some
firearms and a quantity of
ammunition.
Nuwakot His first attempt at invasion of Nuwakot in 1743 CE failed and his reign began with an immediate military defeat. Conquering Nuwakot was essential for the unification, as it lay between Kathmandu and the Gorkha District, making it a vital trading route to
Tibet. On his return to Gorkha from Varanasi, Prithvi Narayan Shah first took steps to defeat
Nuwakot in the diplomatic field. He entered into friendly alliance with the chiefs of
Lamjung,
Tanahun and
Palpa. This done, Prithvi Narayan Shah sent an army against Nuwakot from three directions. The Chief of Nuwakot Kaji
Jayanta Rana Magar (former
Kaji of Gorkha) knowing that Gorkha is going to attack them in near future had gone to take help from
Jaya Prakash Malla, the king of Kantipur. Thus
Kaji Jayant Rana Magar, son Commander of Nuwakot Sankha Mani Rana Magar commanded the Nuwakot army representing his father. The Nuwakot army was defeated in 1744 CE and his country passed into the hands of Prithvi Narayan Shah's Gorkha. On the 6th of Jestha (28 May 1757), a severe battle was fought, which lasted from evening till 12 ''gharis (12 o' clock)
of the night. The Gorkhalis, having lost 131 men, retreated. The battle was renewed daily for fifteen days, without the Gorkhalis making any impression. On the 6th of Jeth Sudi a hardly contested battle was fought, which lasted till 14 gharis
of the night. At this time a soldier, getting behind Mahindra Sinha, killed him with a khoda'' and a lance and wounded Narasinha in the left shoulder with a
Khukuri, due to which he fell senseless to the ground. Seeing this, the Chaukotiyas fled, and the village was set on fire. In this battle, the Gorkhalis lost 201 men, which, with the 131 killed on the former day, gives the total of 332 men. Shah is said to have planned to annex the Kathmandu valley after seeing it from the Chandragiri Hill. After this, he intended to take possession of the
Kathmandu Valley. Prithvi Narayan Shah's conquest of the whole of Nepal was rendered easier by the internal dissensions among the Nepali rulers. Ranjit Malla, the chief of
Bhadgaon, invoked the assistance of the Gorkha Chief due to his feud with the chiefs of
Patan and Kathmandu. Prithvi Narayan Shah had previously gained over the
Satbahalyas of Ranjit Malla by promising to leave them the throne and the revenue to content himself with nominal sovereignty over the country. Prithvi Narayan Shah took possession of Bhadgaon and next he invested in Patan in 1767. The rapid expansion of the Gorkha dominions and the growth of the Gorkha power round the Nepal valley placed
Jaya Prakash Malla, the Chief of Kathmandu in a state of siege. All egress and ingress having been stopped, Kathmandu faced the danger of being starved into submission. The valley was completely cut off from the outside world and was controlled solely by Shah. Having understood that the Gorkhas cannot be defeated by his army alone, Jaya Prakash in this predicament sought military assistance from the
Bengal Presidency by sending one of his messengers to Patna in order to ask for help with the
East India Company. The officers in Patna of the East India Company sent the message to Bengal. The East India Company seized the opportunity and sent a warning to Prithvi Narayan Shah and decided to send an expedition to relieve Jaya Prakash. According to legends, when Prithvi Narayan Shah entered the durbar of Bhadgaon, he found the kings of three towns sitting together, whereat he and his companions laughed. Jaya Prakash was offended by this, and said, "O Gorkhalis, this has come to pass through the treachery of our servants, or else you would have had no cause for mirth." Prithvi Narayan Shah having conversed with Jaya Prakash Malla for a while then paid his respects to
Ranajit Malla, and respectfully asked him to continue to rule as he had hitherto done, although Prithvi Narayan Shah had conquered the country. Ranjit Malla said that Prithvi Narayan Shah had obtained the sovereignty by the favor of God and that all that he now asked for was to be sent to
Benaras. Shah entreated him to remain, but the recollection of the treachery of the servants was fresh in his memory and he would not be consent. Shah granted him the leave along with the expenses used for the journey. When Ranjit Malla reached the top of the Chandragiri Paa, he took a last view of Nepal, and with tears in his eyes exclaimed, " The
Satbahalyas have killed my son Bir Narsinha, and have caused me this sorrow. " He then bade farewell to
Taleju,
Pashupatinath, and
Guhyeshwari, and went to seek an asylum with Bisweswaranatha and
Ganga. He also occupied the Kuti Pass in circa 1756 CE, halting all trade through the pass and preventing communication with Tibet. == Kinloch expedition ==