What led both Herodotus and Thucydides to write history?

They wanted to tell stories so people would honor the Gods.

They wanted to provide the reasons for war.

They wanted to explain legends and myths.

They wanted to present information that was accurate.