The inscriptions were found on the walls of Dayu Cave in the Qinling Mountains of central China.
The information contained in the inscriptions, combined with detailed chemical analysis of stalagmites in the cave, together paint a picture of how societies are affected by droughts over time.
The results also point to potentially greatly reduced rainfall in the region in the near future.
The climate in the area around the cave is dominated by the summer monsoon, in which about 70 per cent of the year's rain falls during a few months, so when the monsoon is late or early, too short or too long, it has a major impact on the region's ecosystem.
According to the inscriptions in Dayu Cave, residents would come to the cave both to get water and to pray for rain in times of drought.
An inscription from 1891 reads, "On May 24th, 17th year of the Emperor Guangxu period, Qing Dynasty, the local mayor, Huaizong Zhu led more than 200 people into the cave to get water. A fortune-teller named Zhenrong Ran prayed for rain during the ceremony."
The droughts of the 1890s led to severe starvation and triggered local social instability, which eventually resulted in a fierce conflict between government and civilians in 1900.
The drought in 1528 also led to widespread starvation, and there were reports of cannibalism.
"There are examples of things like human remains, tools and pottery being found in caves, but it's exceptional to find something like these dated inscriptions," said lead author Liangcheng Tan of the Institute of Earth Environment at the Chinese Academy of Sciences.
Their model correlated with a drought that occurred in the 1990s and suggests another drought in the late 2030s.
The observed droughts also correspond with the El Nino-Southern Oscillation (ENSO) cycle. Due to the likelihood that climate change caused by humans will make ENSO events more severe, the region may be in for more serious droughts in the future, researchers said.
The study was published in the journal Scientific Reports.
