This episode sits in the travel-and-conflict sections of Numbers where Israel moves around Edom and Moab toward the Jordan and faces repeated encounters with local powers. Just before, the narrative shows Israel’s movement in stages and the aftermath of earlier challenges; immediately after, the story continues with further contacts in the same region and additional conflicts and outcomes. The passage functions as a compact narrative: request, refusal, attack, counterattack, and settlement, followed by a brief historical note that clarifies why this area is associated with Sihon and Heshbon.