In the 19th century, Maharaja Ranjit Singh established a Punjabi Sikh Empire based around the Punjab. The main geographical footprint of the country was the Punjab region to Khyber Pass in the west, to Kashmir in the north, to Sindh in the south, and Tibet in the east. The religious demography of the Kingdom was Muslim (70%), Sikh (17%), Hindu (13%). The population was 3.5 million, according to Amarinder Singh's The Last Sunset: The Rise and Fall of the Lahore Durbar. In 1799 Ranjit Singh moved the capital to Lahore from Gujranwala, where it had been established in 1763 by his grandfather, Charat Singh.