This symbolizes the burning and keeping away of evil spirits.
One version of the legend states that Holika, the evil daughter of an evil ruler, was burned in a pyre while her devoted brother, Prahlad, was saved from it by Lord Vishnu.
The festival is named after Holika.