If they refuse to make peace and they engage you in battle, lay siege to that city.
If they accept and open their gates, all the people in it shall be subject to forced labor and shall work for you.
When the Lord your God delivers it into your hand, put to the sword all the men in it.