Maharaja Karam Singh who ruled from 1813 to 1845 (the Sikh Kingdom of Patiala in Punjab) joined the British East India Company and helped the British during the First Anglo Sikh wars against the Sikh Empire of Maharajah Ranjit Singh of Punjab which was larger and extended from Tibet Kashmir, plains of Punjab to Peshawar near the Afghan borders.