those are all actually ...side stories
gardens of the moon is the first book
https://www.goodreads.com/series/43493-malazan-book-of-the-fallen
each is a stand alone book, but basically people can become ascendents, which is the path to godhood, and two specific gods are trying to seize control of several aspects of the magic world for a specific reason that I cannot disclose prior to book 5 or 6
regular people become the incredible heroes that save the world from an attack on their world's magic system (which is one of the most original uses of magic I've ever seen in a fantasy book)
a foreign god from another planet is stuck on earth, and breeds disease and pestilence into the planet... but he may not be a malicious god after all
it's a very, very complex story, and one of the better high-epic fantasy series I've ever read