Digging up the mountains and the ground underneath them is a metaphor from digging out weeds or trees, an exaggeration that represents digging minerals out of the ground. AT: "he turns the mountains upside down by pulling out their roots" (See: [[rc://en/ta/man/translate/figs-hyperbole]] and [[rc://en/ta/man/translate/figs-metaphor]])