In pre-Hispanic times the Mexica (Aztec) civilization celebrated the birth of the god of war Huitzilopochtli by breaking terracotta containers which contained fruits, such as oranges & fragrant plants. The tradition of the Piñatas came from China, where they were breaking them to celebrate the New Year.
Arrived in Mexico, in the XVI century, after arriving in Itale and Spain, it was used by the Catholic missionaries to evangelize the New World:
To hit the Piñata with the eyes hidden by a band symbolizes faith; the content of sweets and fruits represents the bounties and riches of heaven.
The original shape of the Piñata is a star with 7 sides (peaks) that symbolize the original seven sins.
Have you already hit a Piñata?