In 1996 Putin moved to Moscow, where he joined the presidential staff as deputy to Pavel Borodin, the Kremlin’s chief administrator. Putin grew close to fellow Leningrader Anatoly Chubais and moved up in administrative positions. In July 1998 Pres. Boris Yeltsin made Putin director of the Federal Security Service (FSB; the KGB’s domestic successor), and shortly thereafter he became secretary of the influential Security Council. Yeltsin, who was searching for an heir to assume his mantle, appointed Putin prime minister in 1999.