It originated in the Islam culture (Moors). The Spanish appropriated it then transported the song to Mexico during their colonization period.
A tune about beheading was created by Muslims. Shocking.
With reverence...the Souliot women and the dance of Zalongo
(with appropriate subtitles)