quality:correction, stylistic:style_transfer, linguistic:translation
Death and legacy

King Prithvi Narayaṇ Shah was ultimately able to capture small principalities and annex them into the kingdom. This expansion was crucial to ensure the continued survival of the Kingdom of Nepal as the East India Company was already expanding into the Indian subcontinent from their base in Bengal. Shah was convinced that the company would eventually conquer the regions bordering Nepal to the south and approach Nepal. He believed that if Nepal remained a collection of fifty principalities, then it would easily be defeated and conquered in the event of a war with the company or any other foreign power. Expanding his kingdom ensured that Nepal would remain an independent state and be able to negotiate with a foreign power on equal terms.

In January 1775, at the age of 52, Prithvi Narayan Shah died at Devighat, Nuwakot on his birthday. Upon his death, his son, Pratap Singh Shah, succeeded him and his unification campaign was continued by his younger son, Bahadur Shah.