And he built fenced cities in Judah: for the land had rest, and he had no war in those years; because the LORD had given him rest.
He constructed fortified towns in Judah when there was peace and no fighting. This happened because the Lord provided peace during that time.