The acquisition of the Nawab of Awadh's lands by the British East India Company brought the region of Gorakhpur into the close proximity of the raja(king) of Palpa – the last remaining independent town within the Nepalese heartlands.