The physical processes driving the chemical evolution of galaxies in the last similar to 11Gyr cannot be understood without directly probing the dust-obscured phase of star-forming galaxies and active galactic nuclei. This phase, hidden to optical tracers, represents the bulk of the star formation and black hole accretion activity in galaxies at 1 < z < 3. Spectroscopic observations with a cryogenic infrared observatory like SPICA, will be sensitive enough to peer through the dust-obscured regions of galaxies and access the rest-frame mid- to far-infrared range in galaxies at high-z. This wavelength range contains a unique suite of spectral lines and dust features that serve as proxies for the abundances of heavy elements and the dust compo...