Abstract Diabatically generated low-level potential vorticity (PV) anomalies in extratropical cyclones enhance near-surface winds and influence the cyclone’s development. Positive and negative PV anomalies in the warm-frontal region of an extratropical cyclone, simulated with an idealized moist baroclinic channel model, are investigated to identify the microphysical processes that produce them. Using a novel method based on backward trajectories from the PV anomalies, the contribution of different microphysical processes to the formation of the anomalies is quantified. It is found that, for each anomaly, typically one specific microphysical process takes the leading role in its diabatic generation. A large but rather weak low- and midlevel positive anomaly is produced by depositional growth of ice and snow. Two smaller but stronger positive anomalies at lower levels are generated mainly by in-cloud condensational heating at the warm front and below-cloud rain evaporation and snow melting 200 km farther north. In addition, near-surface negative anomalies are produced by snow melting and snow sublimation. In summary, this idealized study reveals that (i) a variety of microphysical processes are involved in generating the complex mesoscale PV structures along the warm front; (ii) the model representation of these processes, some of them still insufficiently understood and parameterized, therefore matters for an accurate prediction of these features; (iii) below-cloud processes are also relevant for PV anomalies located in clouds, owing to accumulation of diabatic PV tendencies along ascending air parcels; and (iv) the diabatic history of the air parcels is essential in order to explain the observed PV pattern.