It's fair to say that the Bible contains equal amounts of fact, history, and pizza. God works in mysterious, inefficient, and breathtakingly cruel ways.
On the famous assertion by William Cowper: "God moves in a mysterious way, His wonders to perform He plants his footsteps in the sea, And rides upon the storm." - "The Bible: Fact or Fiction?"