Coalescence has long been used to describe the production of light (anti)nuclei in heavy-ion collisions. The same underlying mechanism may also exist in jets when a proton and a neutron are close enough in phase space to form a deuteron. We model deuteron production in jets by applying an afterburner, which uses a coalescence mechanism to form deuterons from protons and neutrons produced in PYTHIA for p+p collisions at a center of mass energy √ s = 7 TeV. PYTHIA provides a reasonable description of the proton spectra and the shape of the deuteron spectrum predicted by the afterburner is in agreement with the data. We show that the rise in the coalescence parameter B 2 with momentum observed in data is consistent with coalescence in jets. We show that dihadron correlations can be used to separate the contributions from the jet and the underlying event. This model predicts that the conditional coalescence parameter in the jetlike correlation should be independent of the trigger momentum.