Walls are used to build a wooden house. In the current version, doors and windows are a bit glitchy. Walls are built using logs. If shutters are added it also requires boards.
WARNING: Wooden houses are extremely flammable. Do not build fires near them.
Edit v3.18: Avoid shutter walls, current bugs wont allow a suitable use.