A wavefunction is a fundamental concept in quantum mechanics, representing the quantum state of a particle or system and encapsulating all its probabilistic information. It is typically a complex-valued function, and its square modulus gives the probability density of finding a particle in a particular state or position.