Then God appeared before Solomon again and thanked him for the snazzy house and told Solomon that if he’d always be true then It would bless him but that if he ever cheated, It would smite him but good and destroy Israel too.
Solomon spent twenty years on his building projects, revitalizing the city. Of course to do this required a lot of slaves, so Solomon decided that all those peoples God had commanded to be genocided but weren’t–the Perizzites, the Hivites, the Jebusties, the Ammonites, the Moabites, etc, you know who had been integrated and living peacefully within Israel for generations?–all of them were enslaved and forced to work construction and other hard labor, like making bricks and quarrying stones and cutting lumber, etc.
Solomon did so much building that he gave his Egyptian princess her own city.
He also decided that Israel needed to expand into maritime trade, so he built a fleet of ships too.