Legendary actor Sean Connery, who became the first "James Bond," died nearly a month ago at the age of 90. 

He died in the early hours of Halloween at his home in the Bahamas, surrounded by his family. 

According to his wife, Micheline Roquebrune, Connery died in his sleep, but not many details are known. 

But TMZ recently was able to acquire the actor's death certificate and jotted down the factors of his death as pneumonia, respiratory failure, old age, and atrial fibrillation. This heart condition causes an irregular and fast heartbeat. 

It can also heighten the person's risks of heart failure and strokes.  

Sean Connery's family announced his death last month, with the death certificate indicating he died at 1:30 AM at his Nassau mansion and had an occupation of "retired actor."

The family confirmed his passing in a statement that Connery "died peacefully in his sleep surrounded by family."

Because of the coronavirus pandemic, a private ceremony was held. Still, a memorial is yet to be planned as the family only wants it to happen once the virus has ended. 

Connery left behind Roquebrune, his two sons Jason and Stefan. 

Jason also told the BBC during news of his dad's death, "We are all working at understanding this huge event as it only happened so recently, even though my dad has been unwell for some time."

"A sad day for all who knew and loved my dad and a sad loss for all people around the world who enjoyed the wonderful gift he had as an actor." 

Sean Connery as James Bond
(Photo : Roger Jackson/Central Press/Hulton Archive/Getty Images)

Sean Connery, whose entertainment career spanned five decades, is best known for being the first actor to portray" James Bond" from 1962 to 1971. 

The first 007 film he starred in was "Dr. No," and went on to star in seven more films across the franchise, which also include "Goldfinger" and "You Only Live Twice" and "Diamonds Are Forever." 

Later on, Sean Connery received an Oscar for his role as an Irish police officer for "The Untouchables."

Her Majesty Queen Elizabeth also knighted Connery in 2000 for his contributions to the entertainment industry. 

News of the first "James Bond" star's official cause of death comes after his widow, Micheline Roquebrune, revealed that he "would return home." 

Speaking at their luxurious home at Lyford Cay this month, she revealed that they were bringing Connery back to his home country in Scotland because it was his final wish.

Roquebrune further revealed that Connery wanted his ashes to be scattered in both the Bahamas and Scotland. 

Connery's widow, a 91-year-old Moroccan-French painter, who married the actor for about 50 years already, intended to carry out her husband's final wishes at the earliest opportunity. 

Micheline Roquebrune said, "Whenever it is possible and safe to travel again, then it is the family's intention to return to Scotland with him."

"We would like to organize a memorial service for him in Scotland - that is our hope. But we cannot say when this will happen exactly."

She also paid an emotional tribute to Sean Connery, describing him as a "gorgeous man" with whom she shared "a wonderful life" with.  

READ MORE: Jennifer Aniston 'An Old Dinosaur?' Star Is Still Single