A star starts its life as a cloud of dust and gas called a nebula. This is pulled together by gravity which causes it to heat up. It also starts to spin and to look like a ball. When it gets hot enough, it starts to release energy through nuclear fusion, changing hydrogen to helium. This makes it shine very brightly and become what astronomers think of as a main-sequence star. It may stay a main-sequence star, looking about the same, for billions of years.