what wud hold the cable of a space elevator up?

Would it be earth's gravity holding the cable of a space elevator up?

Do a search for Space Elevator