The life history of a star