Question: what treaty  allowed the Eic in to the then kingdom of nepal?
Sentence: The aggressive policies of Lord Wellesley and the Marquis of Hastings led to the Company gaining control of all India (except for the Punjab and Sindh), and some part of the then kingdom of Nepal under the Sugauli Treaty.
Answer in sentence: yes