The house Rahab lived in was built on the city wall. So she used a rope to let the men down through a window.