I hate to say it as someone that has spent his whole life looking for purpose within the universe, but there isn’t one.
You can examine materialism to the extremes and you won’t find any reason for the universe being here. You can find out how it works, but not how it began. It’s also not possible to find a purpose to life, death or the universe.
The meaning of life is simply to exist, all other stuff is merely bunk.
This doesn’t mean that we have to fall into despair and suffer an existential crisis, quite the opposite in fact, we can enjoy and find our own purpose where it pleases us.