William Shatner revealed he made a documentary about his life as he "doesn't have long left to live."
The 91-year-old actor is due to release the project about his fruitful career called You Can Call Me Bill.
He is famously known as Captain James T Kirk in the Star Trek franchise.
He wants to use the documentary as a way to "reach out to his grandchildren" after he dies.
"I've turned down a lot of offers to do documentaries before. But I don't have long to live," he revealed.
"Whether I keel over as I'm speaking to you or 10 years from now, my time is limited, so that's very much a factor."
Speaking to Variety, he added: "I've got grandchildren. This documentary is a way of reaching out after I die."
The film was directed by Alexandre O. Philippe and it will premiere at the SXSW Film Festival in Texas.
The Star Trek icon is the father to daughters Leslie, Lisabeth and Melanie. He also has five grandchildren.
He was previously asked whether he is a living legend both at work and at home, and he responded: "Well, I think getting out of bed every morning and breathing… I am, like, 'Wow'. I am a legend, I am breathing and I am still alive."
It comes a few months after William went back to his ex-wife three years after he handed her $2 million in a divorce deal.
He rekindled his relationship with Elizabeth Martin, 64, and admitted she is the critical factor in his burning passion for life.
The pair separated after 18 years of marriage in February 2019. Their divorce was finalised a year later.
Shatner and his fourth wife arrived arm-in-arm at the Living Legends of Aviation Awards in Beverly Hills in January. The event, which was hosted by John Travolta, marked Shatner's contributions to aerospace.
In an exclusive interview, he told the Mirror: "My wife… she is the zest of life. She brings the flavour." The pair then discussed how best he should describe that "spice".
William suggested: "Mustard?" before Elizabeth corrected him and said: "Cinnamon."
* Follow Mirror Celebs on Snapchat, Instagram, Twitter and Facebook.