The definition of biodiversity refers to the amount of diversity between different plants, animals and other species in a given habitat at a particular time. Three main types of biodiversity includes diversity within species (genetic diversity), between species (species diversity) and between ecosystems (ecosystem diversity).