On July 9, 2007 he submitted his resignation.[3] On July 18, President Putin accepted Ivanov's resignation and appointed Valentin Sobolev as acting secretary, followed shortly by the appointment of Sergey Lavrov as foreign minister.