Updates to this story
Tim Cook is to replace ailing Steve Jobs as CEO of Apple Inc, although Jobs will keep an honorary role in Cupertino.
In a brief statement from the board, Apple said Cook will take over from Jobs immediately and will be voted onto the board with immediate effect.
Jobs quit his job today but will carry on as chairman. Jobs said the job should go to Cook and the board agreed with Jobs' assessment.
Cook was the COO but with an extra K and has sold Apple kit for a long time.
This is what Jobs' said in a brief note to Cupertino:
"To the Apple Board of Directors and the Apple Community:
"I have always said if there ever came a day when I could no longer meet my duties and expectations as Apple's CEO, I would be the first to let you know. Unfortunately, that day has come.
"I hereby resign as CEO of Apple. I would like to serve, if the Board sees fit, as Chairman of the Board, director and Apple employee.
"As far as my successor goes, I strongly recommend that we execute our succession plan and name Tim Cook as CEO of Apple.
"I believe Apple's brightest and most innovative days are ahead of it. And I look forward to watching and contributing to its success in a new role.
"I have made some of the best friends of my life at Apple, and I thank you all for the many years of being able to work alongside you."