The biodiversity crisis is one of our most urgent problems. This book develops the mathematics behind the measurement of diversity, spanning a great breadth of subjects: from geometry to logic, from algebra to probability theory. The mathematical prerequisites are few, accessible to mathematicians and biologists with a mathematical background.