Correct option is B
The Maratha Confederacy was defeated by the British after a series of conflicts and wars, culminating in the Third Anglo-Maratha War (1817–1818).
The Marathas were finally defeated in 1819, and this marked the end of the Maratha resistance against British rule.
The war ended with the signing of the Treaty of Pune in 1818, which effectively brought the Maratha Confederacy under British control and led to the consolidation of British power in India.