Thanks to its unique capabilities, the LHCb experiment has had a large impact in recent years on exotic hadron spectroscopy involving charm quarks, which culminated this year with the discovery of J/psi p resonances consistent with pentaquark states. I will describe this measurement together with similar work concerned with tetraquark candidates.