The wavefunction is a fundamental concept in quantum mechanics that describes the quantum state of a system. It is a mathematical function that encodes information about the probabilities of outcomes for measurements on the system.