空 is composed of 穴 (cave) and 工 (tool, work). 穴 is a pictograph of a cave, while 工 depicts a digging tool. Thus, 空 represents the act of digging inside a cave. After digging, the cave’s space becomes larger and more expansive, so 空 is used to describe emptiness or vastness.