Posadas took inspiration from Mictecacihuatl, an Aztec goddess of death. She was a keeper of bones in the underworld and looked over the festivities to honor the dead.
These festivities were affected by Christianity once the Spaniards arrived to America and, thus, have evolved into what we now know as the Day of the Dead.