So Joshua and the Israelites defeated them completely, but a few survivors managed to reach their fortified cities.