The division of King Solomon's kingdom begins to take shape through an open confrontation between the king and one of his senior ministers. The background of Jeroboam's rebellion is deeply tied to the massive construction projects in Jerusalem. Chronologically, this uprising occurred after Jeroboam was appointed minister over the labor force and following the prophecy of Ahijah, who promised him the throne [חומת אנך].
The primary approach among commentators is that Jeroboam boldly rebuked Solomon in a public and disrespectful manner, even addressing him simply by his first name without his royal title [רד״ק, מצודת דוד, רש״י]. Alternatively, some suggest that the construction projects were not the actual subject of the rebuke. Instead, being placed in charge of these massive undertakings gave Jeroboam the power, status, and practical courage needed to rebel against the king [מלבי״ם].
Jeroboam's criticism focused on two specific actions taken by Solomon. First, the king built upon an area that was originally an open, empty square meant for public gatherings during times of need [רד״ק, מצודת דוד]. Jeroboam condemned him for developing this public land. Second, Jeroboam criticized Solomon for closing up the breaches in the city wall, a choice that contrasted sharply with the policies of his father, King David.
Commentators offer several explanations for why David originally left the wall open and why Solomon sealed it. One view suggests David left openings to allow easy access for pilgrims [רש״י, רד״ק] or to give the people quick, direct access to the king for justice [מצודת דוד]. By sealing these gaps, Solomon appeared to be isolating himself in his palace and ignoring the needs of the public. Furthermore, he confiscated these areas to build structures for Pharaoh's daughter and her servants [רש״י, רד״ק].
Another perspective explains that Solomon closed the space separating the City of David from the Temple Mount to unify Jerusalem into a single fortified city. Jeroboam argued that a holy city should not be turned into a military fortress [ביאור שטיינזלץ]. A completely different explanation proposes that the open gap was actually a secret escape route David prepared in case of a civil uprising. Driven by pride and overconfidence in his rule, Solomon sealed this exit to show that he feared no one [רד״ק].
Ultimately, Jeroboam was rewarded with the kingship simply because he had the courage to rebuke Solomon for his actions. However, he was punished for delivering this criticism publicly and in a disrespectful way [רד״ק, חומת אנך].