Krausnick was elected Lord Mayor of Berlin in 1834 as the successor to Friedrich von Bärensprung. He served in this role for fourteen years, and was voted out of office on March 31, 1848 as part of the German revolutions of 1848–1849. In 1850, after the victory of the reaction, he became mayor for another 12 years and resigned from office in 1862.