Dominic Raab has said he was "really worried" UK Prime Minister Boris Johnson could have died from Covid-19 after he was admitted to intensive care in the northern hemisphere spring.
The foreign secretary stood in for Johnson during his time in intensive care and while he recovered.
Speaking to the Conservative Party conference, Raab said the virus "nearly took the life" of the prime minister.
Raab also said he worried for the PM's fiancee Carrie Symonds but "always had faith" he would "pull through".
Johnson spent three nights in intensive care at London's St Thomas' Hospital in April after contracting coronavirus.
Raab told the virtual conference that coronavirus had "hit us hard, taking lives on a tragic scale".
"It nearly took the life of our prime minister, our friend as well as our leader.
"I get asked a lot how I felt, when I covered for him.
"Well, I really worried we might lose him, and I was worried for Carrie (Symonds), pregnant with baby Wilf.
"But I always had faith that with the outstanding NHS [National Health Service] care he received and his fighting spirit, he'd pull through."
Admitting there would be "lessons to be learnt" following the government's handling of the crisis, the foreign secretary added: "I have to say, for every hurdle we faced, with every heart-rending loss, there was also a tale of courage, a moment of inspiration."
Efforts continue for 'fair' Brexit deal
Raab also spoke about the prospect of a post-Brexit trade deal between the UK and the EU.
The UK and the EU have pledged to "work intensively" in order to resolve their differences and reach a deal.
But Raab said that although the government wanted a free trade deal with the EU, "any deal must be fair".
"The days of being held over a barrel by Brussels… are long gone," the foreign secretary said.
He added there was "no question the government will control our fisheries".
Both sides have been calling on the other to compromise on key issues, which include fishing and government subsidies.
Leeds to benefit from Civil Service move
Also speaking at the conference, Michael Gove outlined the government's plans to move more Civil Service jobs outside of London - part of its "levelling up" agenda to spread investment and opportunity beyond London and south-east England.
The Cabinet Office minister said "far too many government jobs" were based in Westminster and Whitehall.
Gove added: "We have an amazing Civil Service and it has drawn its resources and people from lots of different communities - I think we now need to give back to those communities as well."
Plans to open a second headquarters in Leeds were also announced.
The new headquarters will provide the party with "a base at the heart of the blue wall", party co-chairperson Amanda Milling said, referring to the northern constituencies who voted for the party for the first time at the general election in December.