When quartz is stressed, it produces an electric current by the piezoelectric effect . Applying a voltage
across the crystal causes it to undergo vibrations with a frequency that resonates with the current frequency.
This behavior of quartz is why it can be used in watches and crystals used in electronic devices.