The outflow of gas and particles from a star, which can affect the evolution of the star and its surroundings.