2 Timothy 3:16 says " All Scripture is God-breathed and is useful for teaching, rebuking, correcting and training in righteousness." Other translations say "inspired" by God. God used man to write down the words. So, yes, it was written by men, but what was written came from God.
If the Bible was NOT the Word of God, then I would have no reason to trust it, obey it, learn from it, etc.