Much of Amsterdam and Florence is built on logs. Basically, just drive a bunch of poles in the ground until they "fill up" the swamp enough to create a stable platform. The anoxic nature of the boggy water greatly slows the decomposition of the logs.
There's definitely a metaphor, here. You don't have to completely fill the swamp, just fill it enough, with enough stable pieces to create a platform you can build on.