In 1898 he published his first works and began Die Buddenbrooks influenced by work of Arthur Schopenhauer, published in 1901. In 1906 he married, although he was not clear about his sexual orientation. In the World War I, Mann agreed with the war, but not enthusiastically. In the time of the Weimar Republic he defended democratic ideas.