However, over the course of the planet's history, there has been a gradual increase in the total number of species through a process known as speciation. Speciation occurs when a new species is formed from an existing one through evolutionary divergence. This process has been ongoing for billions of years, resulting in the accumulation and diversification of different species into various forms of life.
Therefore, while there have been periods of species decline due to mass extinctions, the long-term trend over billions of years has been an increase in the overall number of species through the process of speciation.