After the First World War, Weber was among the founders of the liberal German Democratic Party. He also ran unsuccessfully for a seat in parliament and served as advisor to the committee that drafted the ill-fated democratic Weimar Constitution of 1919. After contracting Spanish flu, he died of pneumonia in 1920, aged 56.