Byzantine (Mediaeval Eastern Roman) emperor
Leo V (r. 813-820) has been deemed
too clever by half by some students of history.
First he toppled the inept reigning emperor Michael I Rangabe by withdrawing his troops in the middle of an open field battle at
Versinikia against the Bulgars, a battle that the Byzantines were in the process of winning (for similar reasons of organization and drill that made the ancient Romans excel at open field battles against foes such as Celts, Iberians and Germans). This resulted in a great slaughter of Constantinople's army, whereupon Michael I resigned voluntarily, Leo seized power and had all Michaels' sons gelded. The triumphant Bulgar army marched to Constantinople, sacrificing in full view of the city walls and demanding negotiations. The Bulgar Khan Krum entered into a meeting with Leo V, but spotted a sign that betrayed how Leo had filled his retinue with assassins. The attempt at the Khan's life was botched, and fleeing slightly wounded back to his host, the enraged Khan burnt Constantinople's suburbs, massacred populations across the southern Balkans and ravaged Byzantine lands. Some years of external peace and internal iconoclam then followed.
In 820, Leo had his former friend and military commander Michael the Amorian
arrested on treason charges. Instead of just executing Michael swiftly, Leo concocted a scheme where Michael was to be tied to an ape and cast into a bathhouse furnace, to be either maimed by the monkey or die from burning or dehydration under the
heated bathhouse floor. However Christmas got in the way, and Leo delayed with Michael's punishment until after Christmas, whereupon Michael's supporters gathered and assassinated Leo V.
Then Michael II ascended the throne as a man who was not tied to an ape and cast into a furnace.