I Kings 16:24 has a king of North Israel buying some empty-ish land and building a new city on it to serve as the capital.
If I understand the laws of Yovel ("jubilee year") correctly, then the city of Shomron/Samaria was not walled in the times of Joshua, and thus reverts to its ancestral owner every 50 years or so.
How did that work, having a full capital city of the kingdom revert back every few decades? Was there a halachic reason why the Yovel wasn't observed? Or perhaps it was supposed to be observed, but simply wasn't as they people were worshiping idols anyhow?