ankh-morpork is built on black loam, broadly, but is mostly built on itself; pragmatic citizens simply built on top of the existing buildings rather than excavate them out as the river flooded and the sediment grew too high. there are many unknown basements, including an entire "cave network" below ankh-morpork made up of old streets and abandoned sewers.