Complex sentence: The heads remained hanging for ten years, until Mexico had achieved its independence; after which, they were taken to Mexico City and put to rest under "el Ángel de la Independencia".
Split into simpler sentences: The heads remained hanging for ten years, until Mexico achieved its independence. They were then taken to Mexico City and put to rest under "el Ángel de la Independencia".