Ranjit Singh died in June 1839, marking the beginning of his empire’s decline.