This episode sits in a stretch where Matthew groups powerful actions by Jesus that display his authority in public, concrete ways. Just before this, Jesus crosses the sea after calming a storm, linking the move into a new region with a display of control over danger and fear. Now the danger is not weather but violent, isolating spiritual affliction that blocks ordinary life. The story moves from confrontation, to a short exchange, to a decisive command, then to community reaction. The town’s request for Jesus to leave sets a contrast between deliverance for individuals and discomfort for the wider community.