In 1919, Scharnagl was elected to the city council of Munich, 1925 vice mayor and in 1926 he was elected mayor of the city. As mayor, his attention was given to the expansion of the transport network as well as to housing. After the seizure of power by the Nazi Party in 1933, and after several clashes he resigned in office and returned to his learned profession as a baker.
