There was, as a result, an ancient custom of lighting candles for the dead to follow as they walk the earth.
(an ancient custom of lighting candles; to follow; T:as they walk the earth) (they; walk; the earth)
an ancient custom of lighting candles they
to follow walk
T:as they walk the earth
the earth