There are a few things you can use to line the bottom of a sandbox. One is landscape fabric, which allows water to drain through and keeps weed from growing within the box. For something sturdier, you can opt for wood, which will keep all of the sand inside, but may be difficult to empty and refill or drain if water gets inside.