Astronomy in China has a long history stretching from the Shang dynasty, being refined over a period of more than 3,000 years. The ancient Chinese people have identified stars from 1300 BCE, as Chinese star names later categorized in the twenty-eight mansions have been found on oracle bones unearthed at Anyang, dating back to the mid-Shang dynasty. The core of the "mansion" (宿 xiù) system also took shape around this period, by the time of King Wu Ding (1250–1192 BCE).
Detailed records of astronomical observations began during the Warring States period (fourth century BCE). They flourished during the Han period (202 BCE – 220 CE) and subsequent dynasties with the publication of star catalogues. Chinese astronomy was equatorial, centered on close observation of circumpolar stars, and was based on different principles from those in traditional Western astronomy, where heliacal risings and settings of zodiac constellations formed the basic ecliptic framework. Joseph Needham has described the ancient Chinese as the most persistent and accurate observers of celestial phenomena anywhere in the world before the Islamic astronomers.