Farrah Fawcett, an actress and television star whose good looks and signature flowing hairstyle influenced a generation of women and bewitched a generation of men, beginning with a celebrated pinup poster, died Thursday morning in Santa Monica, Calif. She was 62 and lived in West Los Angeles.

Her death, at St. John’s Health Center, was caused by anal cancer, which she had been battling since 2006, said her spokesman, Paul Bloch.

To an extraordinary degree, Ms. Fawcett’s cancer battle was played out in public, generating enormous interest worldwide. Her face, often showing the ravages of cancer, became a tabloid fixture, and updates on her health became staples of television entertainment news.

In May, that battle was chronicled in a prime-time NBC documentary, “Farrah’s Story,” some of it shot with her own home video recorder. An estimated nine million people viewed it. Ms. Fawcett had initiated the project with a friend, the actress Alana Stewart, after she first learned of her cancer.