Although court records and other independent records existed beforehand, the definitive work in early Chinese historical writing was the "Shiji", or "Records of the Grand Historian" written by Han Dynasty court historian Sima Qian (145 BC – 90 BC). This groundbreaking text laid the foundation for Chinese historiography and the many official Chinese historical texts compiled for each dynasty thereafter. Sima Qian is often compared to the Greek Herodotus in scope and method, because he covered Chinese history from the mythical Xia Dynasty until the contemporary reign of Emperor Wu of Han while retaining an objective and non-biased standpoint. This was often difficult for the official dynastic historians, who used historical works to justify the reign of the current dynasty. He influenced the written works of many Chinese historians, including the works of Ban Gu and Ban Zhao in the 1st and 2nd centuries, and even Sima Guang's 11th-century compilation of the "Zizhi Tongjian", presented to Emperor Shenzong of Song in 1084 AD. The overall scope of the historiographical tradition in China is termed the Twenty-Four Histories, created for each successive Chinese dynasty up until the Ming Dynasty (1368–1644); China's last dynasty, the Qing Dynasty (1644–1911), is not included.