A star is a constant explosion held together by gravity. For millions of years, the nuclear fire pushing OUT matches the gravity pulling IN. It is a perfect, violent balance.