A crystal oscillator is an electronic oscillator circuit that uses the mechanical resonance of a vibrating crystal of piezoelectric material to create an electrical signal with a precise frequency. It is widely used in electronic devices for clock generation and frequency control, providing high stability and accuracy over a range of environmental conditions.