Genesis 26 describes Isaac living in the region of Gerar during a famine. As his household and possessions increased, conflict arose with local herdsmen over access to water.
Isaac's servants first dug a well that became the subject of contention, so Isaac named it Esek. A second disputed well was called Sitnah.
Isaac then moved from there and dug another well. Because no one quarreled over this one, he called it Rehoboth, saying that the Lord had now made room for them and that they would be fruitful in the land.
The episode presents Isaac responding to repeated conflict by moving peacefully until sufficient space and water were available for his household.