The complementarity principle states that objects like electrons and photons exhibit both particle-like and wave-like properties, depending on the experimental setup used to observe them. This principle plays a crucial role in quantum mechanics, emphasizing that different phenomena can be observed based on the nature of the measurement being performed.