Ecclesiastes was written by Solomon upon his return to the one true God after a dalliance with the pagan gods of many of his numerous wives. The key verse is from 1:2, and is "Vanity of vanities,” says the Preacher; "Vanity of vanities, all is vanity." Much of the book deals with the uselessness of a life that is not God-centered.