Ranjit Singh was the founder and first maharaja of the Sikh Empire, in the northwest Indian subcontinent, ruling from 1801 until his death in 1839.