A passively Q-switched dual-wavelength solid-state laser is presented. The two wavelengths are emitted by two different crystals in order to avoid gain competition, and the synchronization between the pulses is obtained by external triggering of the saturable absorber. Sum frequency mixing is demonstrated, proving the interest of this source for terahertz generation in the 0.3-0.4 THz range through difference frequency generation.