The city of Jaipur was founded in 1726 by Jai Singh II, the Raja of Amer who ruled from 1699 to 1743. He planned to shift his capital from Amer, 11 kilometres (7 mi) from Jaipur to accommodate the growing population and increasing scarcity of water. Jai Singh consulted several books on architecture and architects while planning the layout of Jaipur. Under the architectural guidance of Vidyadhar Bhattacharya, Jaipur was planned based on the principles of Vastu shastra and Shilpa Shastra. The construction of the city began in 1726 and took four years to complete the major roads, offices and palaces.