the course of the 17th century, the company secured a strong commercial presence in the Indian subcontinent through trade in indigo dye, saltpeter, and Indian textiles. Operations became more lucrative as the Mughal Empire entered into decline in the 18th century, giving the company opportunity to gain further advantages by intervening in regional politics. The vast financial resources of the firm and its superior military enabled it to defeat rival European trade companies and become the dominant power in India. The company itself ruled as the direct governing body from 1757 to 1858, though sovereignty was often shared with the Crown. Although legislation was enacted referencing British subjects in India, no comprehensive nationality statute existed to define which persons were subjects, leaving the status of native Indians ambiguous throughout this period. Legislation passed in 1852 allowed foreigners residing in territory governed by the East India Company to naturalise as British subjects by application to the government. There was no minimum residence requirement and candidates simply needed approval from a relevant official. The oath of allegiance administered to successful applicants required them to swear loyal service to the company, as well as allegiance to the British monarch. Direct imperial rule India was brought under direct rule of the British Empire in 1858. Territories were broadly divided between two political groupings: the provinces of British India, which were administered by the British government, and the princely states, which were areas ruled by local monarchs given limited autonomy in exchange for accepting British suzerainty. Provincial residents were British subjects, while subjects of princely state rulers were considered British protected persons instead. Although Britain held comprehensive jurisdiction in both types of holdings, domestic law treated the princely states as foreign territory. British protected persons were treated as aliens in the United Kingdom, but both Indian British subjects and protected persons could be issued British Indian passports. Protected persons could not travel to the UK without first requesting permission, but were afforded the same consular protection as British subjects when travelling outside of the Empire. A person with connections both to directly governed portions of British India and one of the princely states could be a British subject and British protected person simultaneously. British nationality law during this time was uncodified and did not have a standard set of regulations, relying instead on past precedent and common law. Until the mid-19th century, it was unclear