A eulogy serves to honor the deceased by sharing memories, stories, and reflections on their life. It can provide comfort to those in mourning and celebrate the person's accomplishments, values, and impact on the world.