AMBOHIMIRARY, Madagascar — With fanfare befitting a parade, the shrouded remains of 17 bodies were removed from the family crypt, some sprayed with expensive perfume, others splashed with sparkling wine. Five brass bands took turns belting out cheerful melodies, and each emerging corpse was lifted onto the shoulders of its own set of revelers. The celebrators then joyously trotted about, dancing with the bones of the dead.

“It is good to thank the ancestors in person because we owe them everything,” said Rakotonarivo Henri, 52, an out-of-breath farmer who had just set down his dead grandfather and was moving toward the remains of his aunt. “We do not come from mud; we come from these bodies.”

Every society has its own customs regarding the deceased, an interplay between those who are and those who were. In many countries, a visit to the cemetery commonly satisfies an urge to be near a buried loved one. Flowers may be placed on the grave. Words may be whispered.

Here in the central highlands of Madagascar, that practice is taken much further. Ancestors are periodically taken from their tombs, and once the dancing stops and the bundled corpses are put on the ground, family members lovingly run their fingers across the skeletal outline protruding through the shrouds. Bones and dust are moved about in an effort to sustain a human shape. Elders tell children about the importance of those lying before them.