This will surround your entire settlement.
This consists of a large fortified wall with an overhang to keep spiders out, as well as a wet or dry moat (optional). This is the best choice if you wish to create a permanent base. You can make a cube house which is a shelter when you come back from mining or fighting, for example. The most common type of starter house is a hole dug into a hill or mountain (similar to the Cave House). They can be made of any material, in any biome, anywhere.
A basic house is anything from a 5×5 square to a castle the size of a Minecraft world.