Is the book war horse fiction or nonfiction?

the book war horse is fiction, although echos some real elements of the war, and what horses would have done in the war