capital was to serve as a microcosm of his kingdom and a model of urban planning that would be replicated in each new territory. In keeping with sacred Merina symbolism associated with height, space and cardinal orientation, he retained the royal compound - the Rova of Antananarivo - at the crest of the highest hill in the city, and in the center of the urban space that expanded around it. He also undertook significant expansion of the sacred rova compound and improved its venerable buildings. This included the reconstruction in 1800 of Besakana, the "throne of the kingdom" built by king Andrianjaka in the early 1600s as the first royal residence at Antananarivo - one of several houses used as residences by Andrianampoinimerina at the palace, the other principal residence being Mahitsielafanjaka after he moved his capital from Ambohimanga to Antananarivo. He implanted representatives of ethnic groups he had recently conquered in specified neighborhoods of the city. Each Merina social class had its designated districts: slaves lived south of the rova (a disfavored direction in Merina cosmology), the mainty (royal servant class) lived to the southeast in Amparihy, important hova clans were allotted the district to the west of the royal compound, and each of the seven sub-classes of andriana nobles were assigned to a district to the sacred north and northeast of the palace. Within this broad district structure, each clan (foko) was assigned a specific neighborhood in an orientation roughly corresponding to the orientation of their home village vis-a-vis the capital city. In the popular imagination of the residents of modern-day Antananarivo, the city in the time of Andrianampoinimerina is envisioned as a perfect and harmonious urban space embodying the best of Merina ingenuity and spiritual significance. The legitimacy of Andrianampoinimerina's reign was bolstered by his characterization of other Merina rulers' claims to power as fanjakana hova - rule by hova (commoners), whose lineages were only weakly tied to the line of succession relative to his own. In addition, like Merina kings before him, he consolidated the power of the sampy (royal idols) and attributed the success and legitimacy of his reign to the proper respect shown toward these conduits of supernatural power. He balanced this strengthening of the supernatural and ancestral legitimacy of his kingship against inclusiveness of the commoner class by making several hova from the Tsimiamboholahy and Tsimahafotsy clans into powerful and trusted advisers. He