Treating water at or near the point where it is produced and used, rather than piping it to a single large plant and back. It avoids the cost and the losses of long networks, matches treatment to what the water will be used for, and keeps a failure local. It is the model greywater reuse depends on.