Ailing leader Fidel Castro resigned as Cuba's president early Tuesday.

In a letter published in official online media, Castro said that he would not accept a new term when the newly elected parliament meets on Sunday.