He also served as Justice Minister before he was elected Federal President in 1969 .
He was Mayor of the city of Essen from 1946 to 1949 , West German Minister of the Interior from 1949 to 1950 , Minister of Justice from 1966 to 1969 and President of the Federal Republic of Germany from 1969 to 1974 .