Angry at the cancellation of the Lambert Charter and seeking to restore property taken from French citizens, France invaded Madagascar in 1883 in what became known as the First Franco-Hova War ("Hova" referring to the "andriana"). At the war's end, Madagascar ceded Antsiranana (Diégo Suarez) on the northern coast to France and paid 560,000 gold francs to the heirs of Joseph-François Lambert. Meanwhile, in Europe, diplomats partitioning the African continent worked out an agreement whereby Britain, in order to obtain the Sultanate of Zanzibar, ceded its rights over Heligoland to the German Empire and renounced all claims to Madagascar in favor of France. The agreement proved detrimental for the monarchy of Madagascar. Prime Minister Rainilaiarivory had succeeded in playing Great Britain and France against one another, but now France could meddle without fear of reprisals from Britain.