When asked how the world will end - "naturally" or whether man would destroy it first - Hawking said that increasingly, most of the threats humanity faces come from progress made in science and technology. They include nuclear war, catastrophic global warming and genetically engineered viruses, he said.
Hawking made the comments while recording the BBC's annual Reith Lectures on January 7. His lecture, on the nature of black holes, was split into two parts and will be broadcast on radio on January 26 and February 2.
The University of Cambridge professor said that a disaster on Earth - a "near certainty" in the next 1,000 to 10,000 years- will not spell the end of humanity because by that time humans are likely to have spread out into space and to other stars.
"However, we will not establish self-sustaining colonies in space for at least the next hundred years, so we have to be very careful in this period," he joked, provoking laughter from the audience.
"We are not going to stop making progress, or reverse it, so we have to recognize the dangers and control them. I'm an optimist, and I believe we can," he added.
For the latest tech news and reviews, follow Gadgets 360 on X, Facebook, WhatsApp, Threads and Google News. For the latest videos on gadgets and tech, subscribe to our YouTube channel. If you want to know everything about top influencers, follow our in-house Who'sThat360 on Instagram and YouTube.