Cleaning a country after a massive conflict requires a careful, coordinated effort between ordinary citizens and specialized teams. Because this sweeping process takes place seven months after the war, the remains scattered across the landscape are entirely reduced to bone [מלבי״ם]. The primary approach among commentators is that the people walking through the land during this time are simply regular travelers going about their journeys [רש״י, מצודת דוד, רד״ק]. However, another perspective suggests these are appointed patrollers given a specific mission to search the area for human remains [ביאור שטיינזלץ].
Whenever someone comes across a human bone, they must set up a visible marker, such as a prominent stone or a small pile of rocks, right next to it [רד״ק, מצודת ציון, ביאור שטיינזלץ]. This system serves two main purposes. First, it acts as a warning sign. It cautions other travelers and those maintaining ritual purity to keep their distance and avoid becoming impure [רש״י, צאינה וראינה]. Furthermore, it protects the public from the threat of disease, as the miraculous divine protection against plagues expires after the seven-month mark [מלבי״ם]. The requirement to mark these resting places even sparks a legal discussion regarding whether this duty is a direct law from the Torah or a later Rabbinic ruling [נחל שורק, חומת אנך].
The second purpose of the marker is highly practical. It ensures that the bones are not accidentally covered by dirt and lost over time [רד״ק], allowing the dedicated burial teams to locate them easily [מצודת דוד, ביאור שטיינזלץ]. These specialized teams are set apart specifically for the heavy task of gathering the remains [רש״י, מצודת דוד]. They follow the markers, collect the scattered bones, and bring them into a designated mass grave in the valley [רד״ק]. Concentrating all the remains in one central location prevents the country from turning into a vast graveyard. More importantly, this mass burial site stands as a permanent monument for future generations, serving as a lasting reminder of God's power and the great deeds He performed [רד״ק].