On the ground firefighters work together to stop the first, one group digs a fire line. This is a long deep ditch. It is difficult for the fire to cross this line.
Then, while those firefighters dig, others start a backfire. They burn the dry grass and leaves between the wildfire and the fire line. When the wildfire comes, there is nothing for it to use as fuel.