Once a very large star collapses in on itself towards the end of its life, there is so much gravitational pull on the material, that not even the atoms inside the star can stop it from collapsing. The star then collapses back in on itself to create a blackhole from which not even light can escape.