Updated 10.55am with the naming of successor.
Britain's Defence Secretary Ben Wallace, who last month announced he would step down in the next UK government cabinet reshuffle, has resigned, the prime minister's office said Thursday.
Grant Shapps was named as his successor.
In a letter to Wallace, 53, Prime Minister Rishi Sunak praised the "dedication and skill" he brought to the role that saw him take a leading role in Western allies' support for Ukraine against Russia.
"You have served our country with distinction," Sunak wrote, adding that he had seen "before others did what Vladimir Putin's true intentions in Ukraine were".
"Your determination to get Kiev weaponry before the Russians attacked had a material effect on the ability of the Ukrainians to thwart the invasion."
Wallace, a former army officer, had been the UK's pick to succeed Jens Stoltenberg as NATO secretary general.
But he failed to get crucial US backing to replace him, and Stoltenberg has now extended his term at the head of the alliance.
He said after announcing his intention to resign in July that the decision was not because he thought the ruling Conservatives -- currently trailing the main opposition Labour party in the polls -- would lose the next election, but because his constituency in northwest England was being scrapped under boundary changes.
Wallace has been in the UK parliament for 18 years, and is the longest-serving Conservative defence secretary since Winston Churchill.
He was the only minister in a senior post to remain in the turbulent transition from his political ally Boris Johnson to the short-lived Liz Truss and then Sunak.
He was security minister under Theresa May before becoming defence secretary in 2019.
He had enjoyed strong support among the Tories' grassroots membership and was regularly tipped to be party leader but never actively ran for the top job.
Grant Shapps named new UK defence secretary
Grant Shapps was on Thursday named as the UK's new defence secretary.
Prime Minister Rishi Sunak's office announced the appointment of Shapps, 54, who currently serves as energy security and net zero secretary, after he was seen arriving at number 10 Downing Street.