The house Rahab lived in was part of the city wall. So she let the spies down by a rope through the window.