Site prep and the base
The area is cleared of topsoil, grass and any soft organic material, which rots down and leaves voids if it is left in. The ground is then levelled and the base built up, usually compacted crushed rock, to give the slab a firm, even platform. On reactive black-soil clay that can mean a deeper, better-drained base and, for some slabs, a stiffer slab design to bridge the ground movement between the wet and the dry. On flood-prone low ground the finished level and the drainage around the slab get careful thought.
Formwork is set to the slab outline and levels, allowing for the falls the slab needs so water runs off rather than pooling, which matters when a wet-season storm can drop a lot of rain fast. Getting the finished height right matters where a slab meets an existing floor, a path or a driveway, so there is no step or dam.