During the crystalline-state photoreaction of 2-pyridone窶田arboxylic acid cocrystals, the 2-pyridone moieties were dimerized in the cocrystal with 2-naphthylacetic acid due to a stacking structure with a carbon-to-carbon distance appropriate for [4 + 4] cycloaddition.