When Ramavo was still a young girl, her father alerted King Andrianampoinimerina (1787–1810) to an assassination plot planned by Andrianjafy, the king's uncle, whom Andrianampoinimerina had forced from the throne at the royal city of Ambohimanga. In return for saving his life, Andrianampoinimerina betrothed Ramavo to his son, Prince Radama, whom the king designated as his heir. He furthermore declared that any child from this union would be first in the line of succession after Radama. Despite her elevated rank among the royal wives, Ramavo was not the preferred wife of Radama and did not bear him any children. Upon Andrianampoinimerina's death in 1810, Radama succeeded his father as king and followed royal custom by executing a number of potential opponents among Ramavo's relatives, an act that may have strained their relationship. Unable to find satisfaction in her loveless marriage, the neglected Ramavo and other court ladies spent most days socializing and drinking rum with David Griffiths and his fellow missionaries in Griffiths' home. These visits established a deep friendship between Ramavo and Griffiths that was to endure for three decades. When Radama died without leaving any descendants on July 27, 1828, according to local custom, the rightful heir was Rakotobe, the eldest son of Radama's eldest sister. An intelligent and amiable young man, Rakotobe was the first pupil to have studied at the first school established by the London Missionary Society in Antananarivo on the grounds of the royal palace. Radama died in the company of two trusted courtiers who were favorable to the succession of Rakotobe. However, they hesitated to report the news of Radama's death for several days, fearing possible reprisals against them for having been involved in denouncing one of the king's rivals, whose family had a stake in the succession after Radama. During this time, another courtier, a high-ranking military officer named Andriamamba, discovered the truth and collaborated with other powerful officers – Andriamihaja, Rainijohary and Ravalontsalama – to support Ramavo's claim to the throne. These officers hid Ramavo and one of her friends in a safe location, then secured the support of several influential power brokers, including judges and the keepers of the "sampy" (royal idols).