Author Iain Banks has revealed that he has late stage cancer and is unlikely to live for more than a year.
The Scottish writer posted a message on his official website saying his next novel The Quarry, due to be published later this year, would be his last.
The 59-year-old's novels include The Wasp Factory, The Crow Road, Complicity and the Culture series.
The statement said his health problems came to light when he saw his doctor, suffering from a sore back.
He was diagnosed with jaundice, before further tests established the full extent of his illness.
In the personal statement on his website, Banks said he had asked his partner Adele to marry him and was now on a short honeymoon.
I'm too drunk to recall much of what I've said. Which, come to think of it, is probably just as well, judging by the way people who are normally quite sensible dissolve into gibbering, rude, opinionated and bombastic idiots once the alcohol molecules in their bloom-stream outnumber the neutrons, or whatever. Luckily, one only notices this if one stays sober oneself, so the solution is as pleasant (at the time, at least) as it is obvious
Author Iain Banks has died aged 59, two months after announcing he had terminal cancer, his family has said.
Banks, who was born in Dunfermline, Fife, revealed in April he had gall bladder cancer and was unlikely to live for more than a year.
He was best known for his novels The Wasp Factory, The Crow Road and Complicity.
In a statement, his publisher said he was "an irreplaceable part of the literary world".
A message posted on Banksophilia, a website set up to provide fans with updates on the author, quoted his wife Adele saying: "Iain died in the early hours this morning. His death was calm and without pain."
Publisher Little, Brown Book Group said the author was "one of the country's best-loved novelists" for both his mainstream and science fiction books.
"Iain Banks' ability to combine the most fertile of imaginations with his own highly distinctive brand of gothic humour made him unique," it said.
After announcing his illness in April, Banks asked his publishers to bring forward the release date of his latest novel, The Quarry, so he could see it on the shelves.