Indian astronomers studied the motions of the Sun, the Moon and the planets for well over a thousand years, and set out their methods in classical treatises (siddhāntas). Ujjain, the ancient Avantikā or Ujjayinī, was one of their great centres.
Sawai Jai Singh II (1688–1743), the Kachwaha ruler of Amber and founder of Jaipur, was a scholar of astronomy who set out to improve the astronomical tables in use in his time. He built five observatories: at Delhi, Jaipur, Ujjain, Varanasi and Mathura. The Ujjain observatory dates from his years as governor of Malwa, around 1725; the dates given in different sources range from 1719 to 1734.
The observatory was restored in 1923 under Maharaja Madhav Rao Scindia of Gwalior and is now the Government Jiwaji Observatory. It was renovated again in 2003. It is still in use: its five instruments of stone and masonry stand in working order, and the observatory publishes an ephemeris every year.