In 1854 he relieved a garrison in Madagascar held by Merina troops that had come under threat by a coastal community rebelling against the rule of Queen Ranavalona I.
According to Lambert, the prince gave him the exclusive right to exploit all minerals, forests, and unoccupied land in Madagascar in exchange for a 10-percent royalty payable to the Merina monarchy, although the true events are far more complicated.
Queen Ranavalona executed the locals who were involved and banished the Europeans implicated, including Lambert, Laborde, and Pfeiffer.
After the Queen's death in 1861, prince Rakoto succeeded her as King Radama II, and Lambert saw his chance to have the agreement put in place.
The threat of permanently losing any part of sacred Malagasy soil to foreigners was deeply troubling and galvanized many in Radama's court against him.
As the situation in Madagascar had turned unfavourable after the death of Radama II, Lambert moved to the Comoro Islands in 1865 where he ruled as Regent of Mwali from 1868–71.