Putin gave up his position in the KGB on August 20, 1991, during the putsch against Soviet President Mikhail Gorbachev. In 1994, he became First Deputy Chairman of the city of Saint Petersburg. In August 1996, he came to Moscow, and served in a variety of important positions in Boris Yeltsin's government. He was head of the FSB (a secret spy service in modern capitalist Russia) from July 1998 to August 1999, and he was Secretary of the Security Council from March to August 1999.