Lord Wellesley served as the Governor-General of India from 1798 to 1805. He devised and widely used the Subsidiary Alliance system as a tool to bring Indian states under British control without direct annexation. Under this system, an Indian ruler would accept British paramountcy, agree to keep a British resident at their court, disband their own army and accept British troops for protection (paying for their maintenance), and not enter into alliances with other powers or engage in warfare without British permission. This system significantly expanded the territory and influence of the British East India Company.