Weber is known for his work in the sociology of religion . His most famous work is his essay The Protestant Ethic and the Spirit of Capitalism . Weber is most famous for the thesis in economic sociology which he elaborated in his book The Protestant Ethic and the Spirit of Capitalism .