 He studied medicine in Munich and Leipzig, earning his MD from the University of Leipzig in 1874.Afterwards he served as a physician in the Bavarian Army.In 1880 be became a lecturer at the University of Munich, where in 1894 he succeeded Max von Pettenkofer (1818–1901) as professor and director of the institute of hygiene.