King Andrianjafy (before -1787) also known as Andrianjafinandriamanitra and Andrianjafinjanahary, was the king of Imerina Avaradrano, the northern part of the central highlands of Madagascar with its capital at Ambohimanga. His father Andriambelomasina bequeathed him the rule of Avaradrano while designating his nephew Ramboasalama to follow Andrianjafy in the order of succession. Andrianjafy did not accept this decree, instead preferring that his own son succeed him, and sought retribution against citizens of Avaradrano who acknowledged the latent authority of his nephew.

In order to prevent Ramboasalama from rising to power, Andrianjafy devised a series of failed plans to kill his nephew. The king's ineffectiveness as a ruler and despotic behavior contributed to declining popularity among the people of Avaradrano. Popular support for Ramboasalama produced a coup d'état in which he replaced Andrianjafy as King Andrianampoinimerina. Andrianjafy fled to Ilafy, where he rallied an army and tried unsuccessfully to recapture the throne. He was put to death in 1787 by followers of Andrianampoinimerina.

Andrianjafy

Early life

Andrianjafy was a son of King Andriambelomasina of Imerina Avaradrano and his first wife, Rasoherimananitany. When he was born, an astrologer made an unfavorable prediction, declaring, "This child will not possess what Andrianjakanavalomandimby and Andriantsimitoviaminiandriana left - he will fritter it away." As a young man he married Ranavalondrajaka of Ilafy, with whom he had two sons, Ralaitokana and Ratsiantahana, and one daughter, Ratsimiantanasoa.

Andrianjafy

Before his death, King Andriambelomasina assigned his sons to govern four fiefs within the territory, giving the largest and easternmost territory of Avaradrano to Andrianjafy. At the same time he designated his sister's son Ramboasalama to follow Andrianjafy in the order of succession, stating "Ramboasalama will succeed Andrianjafy, because today I give the right to rule to Andrianjafy, but tomorrow and at the end it will belong to Ramboasalama."

Andrianjafy

Reign

In 1770 Andrianjafy succeeded upon the death of his father, who was one of many victims of a major famine in Imerina. Oral histories recount that Andrianjafy felt his authority was threatened by his nephew Ramboasalama, who frequently made promises to the populace regarding his future reign. Andrianjafy's jealousy prompted him to put to death citizens of his territory who engaged his nephew in such promises. Andrianjafy occasionally displayed his power in despotic fashion, such as by engaging the armies of a Sakalava prince to attack Hiaramy and Faliary, two communities already under his control, and massacring the inhabitants without provocation.

Andrianjafy failed to consistently apply the law in his realm, particularly in regard to the punishment of criminals. The resulting increase in impunity and decline in security in Avaradrano contributed to declining popular support of his rule. The king's public image was further tarnished by his increasingly hostile behavior toward Ramboasalama, in disregard of the wishes of Andrianjafy's father, Andriambelomasina. Oral history describes him as prone to anger and violence, which he did not hesitate to inflict against women and children. He is also said to have frequently seized the property and valuables of his people for his own use without justification or compensation.

Dethronement

Initially, Andrianjafy may have been willing to accept his father's declared order of succession. This most likely changed when Ranavalondrazaka, Andrianjafy's wife, unexpectedly gave birth to a son. She persuaded Andrianjafy to disregard his father's decree and name their own son Ralaitokana as successor in place of Ramboasalama. Andrianjafy agreed to this proposal and devised a series of ruses to kill his nephew and clear the path to the throne for his son. In one instance, Andrianjafy invited his nephew to listen to music from a nearby cliff, intending to push him over the edge; Andriantsimitovizainitrimo, Andrianjafy's brother, warned his nephew of the plot, and Ramboasalama declined the invitation on the pretext of illness. In another instance, Andrianjafy claimed to be ill and sent for Ramboasalama with the intention of murdering him once they were alone together, but once again Andrianjafy's brother warned his nephew of the danger. The king then planned to have Ramboasalama murdered during a planned excursion through a nearby swamp, but Ramboasalama was warned and stayed behind.