It was after Pharaoh’s daughter ceremonially ascended from the City of David and took up residence in the house built especially for her that Solomon built the defense complex (the Millo).