What theory did Einstein come up with that begins to describe the existence of black holes

Einstein's theory of general relativity.