A photolabile hydrazine linker for the solid-phase synthesis of peptide hydrazides and hydrazine-derived heterocycles is presented. The developed protocols enable the efficient synthesis of structurally diverse peptide hydrazides derived from the standard amino acids, including those with side-chain protected residues at the C-terminal of the resulting peptide hydrazide, and are useful for the synthesis of dihydropyrano[2,3-c]pyrazoles. The linker is compatible with most commonly used coupling reagents and protecting groups for solid-phase peptide synthesis.