The purpose of a distribution box, also known as a D-box, is to evenly distribute wastewater into the leach, or drain field. Even distribution is important to use all of the available leaching areas, therefore avoiding flooding in one area of your yard.