They conquered a kingdom, Ai, by luring its soldiers into the open, and then ambushing them. Another kingdom, Gibeon, decided to trick the Israelites. They pretended to be poor by making their clothes ragged, and by carrying dry and moldy food. They lied, telling the Israelites that they were from far away. They asked to make a treaty with the Israelites because they were afraid of being ransacked by the Israelites. The Israelites agreed, even though God had warned them many times not to make treaties with other peoples.