Two rare-earth-based quaternary chalcogenides EuCdGeQ4 (Q = S, Se) with strong second-harmonic generation.