Biodiversity refers to the variety of different species of plants, animals, and microorganisms that live in an ecosystem or on Earth as a whole. It also includes the genetic diversity within each species, the variety of ecosystems, and the interactions between different species and their environment.