Answer:
While self-gravity pulls the star inward and tries to make it collapse, thermal pressure (heat created by fusion) pushes outward. These two forces cancel each other out in a main sequence star, thus making it stable.
Step-by-step explanation: