This really does seem to be a small miracle of tiny engineering. Below is what it looks like at 100x magnification. The walls of this are actually very solid, and each grain is perfectly fit to the adjacent ones. The sand, like the sand on the beach, is made up of bits of rock and shells.