What is recorded in the history books must be true. Every dynasty will have historians to record what happened at that time, including some scholars in society. They will record what happened at that time through different records and pass it on to future generations.
Another important point is archaeology. Many historical facts were discovered and rediscovered in the national archaeological department. History is far away from us, but sometimes it is close to us.