The heads remained there for ten years until the end of the Mexican War of Independence to serve as a warning to other insurgents