It was built by Su Song, one of the citizens. The device precisely indicated the time of day and allowed you to track constellations in the sky, so you could precisely set horoscopes.