Let us talk of my pathetic back yard.
I had originally envisioned a lawn, suitable for croquet among the coconut trees.

Nope, there is too much shade for grass to grow. All I got were swampy mud puddles.
I don't remember why, but on the west end we have a drainage pipe running under the wall. Thus I constructed a network of perforated PVC pipes to take rainwater to this drainage pipe. Over these pipes, we laid down a layer of coconut-sized rocks, and over these rock, we have a layer of sand. The drainage works wonderfully.

It takes a prolonged downpour for us to get even temporary puddles. This gives my five dogs a place to poop.
Over the years, the sand had gotten thinner and thinner. This problem was recently repaired by bringing in 2 cubits of fresh sand and replenishing the sand layer.