France declared the island a protectorate in 1882 after reaching an agreement with Britain, which had been the first European power to establish a lasting influence and presence on the island that dated back to the arrival of London Missionary Society missionaries around 1820; Britain agreed to sanction French claims to Madagascar in exchange for French recognition of its claims to Zanzibar.
It was further justified through documents signed by King Radama II, including a letter he was possibly tricked into signing that entreated Napoleon III to support a coup d'état against Ranavalona I, and land ownership agreements with French industrialist Joseph-François Lambert that were revoked upon Radama's assassination in 1863.
In January 1897 France declared Madagascar a French colony and deported the prime minister to Algeria, where he died shortly afterward.
A popular resistance movement, called the Menalamba rebellion, arose in response to the perceived corruption and ineffectiveness of the monarchy, growing European presence and influence on the island, and the spread of Christianity.
After violently quelling the rebellion in 1897, the French executed key members of the royal family and sent the queen into exile first in Réunion and later Algeria, where she died in 1917.