I have this thing keep popping up in my garden then it dies and more reapears in diferent areas. Attached is a picture.
That is a Stinkhorn mushroom. There are many different types with many different looks, but they all share a similar quality. This would be their "egg" like structures under the soil and near the base. This article will help: https://www.gardeningknowhow.com/ornamental/fungus-lichen/removing-stinkhorn-fungi.htm