 According to Herodotus, the appearance of a solar eclipse at the time of battle was interpreted as an omen, and interrupted the battle.Herodotus writes that in the sixth year of the war, the Lydians under King Alyattes and the Medes under Cyaxares were engaged in an indecisive battle when suddenly day turned into night, leading to both parties halting the fighting and negotiating a peace agreement.Herodotus also mentions that the loss of daylight had been predicted by Thales of Miletus.