Black Holes are huge concentrations of matter packed into very tiny spaces. A black hole is so dense that gravity just beneath its surface, the event horizon, is strong enough that nothing – light isn’t an exception – can leave.
To turn the Earth into a black hole, you would need to squeeze the whole Earth into a tiny marble.