Complex sentence: That plan was eventually achieved when the Sakalava Boena Kingdom came into his possession in 1837 when Queen Tsiomeko's army was defeated.
Split into simpler sentences: That plan was eventually achieved when the Sakalava Boeni Kingdom came into his possession. Towards 1837, Queen Tsiomeko's army was defeated.