The Australian academic released by the Taliban in November after being kept hostage for more than three years said on Sunday hope helped him survive the ordeal.

Timothy Weeks and US citizen Kevin King were freed by the Taliban in return for the release of three Taliban commanders. The two were kidnapped in August 2016 outside Kabul’s American University of Afghanistan where they worked.

Speaking publicly for the first time since his release Mr Weeks said the “long and tortuous ordeal” had a profound effect on him.

“At times, I felt as if my death was imminent and that I would never return to see those that I loved again,” mr Weeks said in Sydney in remarks televised by the Australian Broadcasting Corp. “But, by the will of God, I am here. I am alive and I am safe. And I am free. There is nothing else in the world that I need.”

He said that he had never given up hope, although his freedom took longer than he expected.

“If you give up hope, there is very little left for you,” he added.

Kidnapping has been a major problem in Afghanistan for many years. Most victims are Afghans, and many kidnappers are criminal gangs seeking ransoms, but foreigners have also been abducted for political ends.

The teacher (50) from Wagga Wagga in New South Wales, who returned to Australia on Thursday, also said he believed that there were six attempts made to free him and Mr King, including one by US Navy Seal forces in at least one instance.

“We were woken in the morning at around 2am, and we were taken down into the tunnels. We were told by our guards that it was Daesh, and I’ve since learnt that I believe now that it was the Navy Seals coming in to get us,” he said.

He said although both were treated “as well as could be expected”, they were moved around various locations and sometimes kept in dark cells.

Mr Weeks said he does not hate the guards who were watching him.

“A lot of people don’t admit this, but for me, they were soldiers. And soldiers obey the commands of their commanders. Then don’t get a choice,” he said.

“Some of them were so compassionate and such lovely, lovely people. And it really led me to think about. . . . You know, how did they end up like this?” – Reuters