Activity of sensory and motor cortices is essential for sensorimotor integration. In particular, coherence between these areas may indicate binding of critical functions like perception, motor planning, action, or sleep. Evidence is accumulating that cerebellar output modulates cortical activity and coherence, but how, when, and where it does so is unclear. We studied activity in and coherence between S1 and M1 cortices during whisker stimulation in the absence and presence of optogenetic Purkinje cell stimulation in crus 1 and 2 of awake mice, eliciting strong simple spike rate modulation. Without Purkinje cell stimulation, whisker stimulation triggers fast responses in S1 and M1 involving transient coherence in a broad spectrum. Simultaneous stimulation of Purkinje cells and whiskers affects amplitude and kinetics of sensory responses in S1 and M1 and alters the estimated S1–M1 coherence in theta and gamma bands, allowing bidirectional control dependent on behavioral context. These effects are absent when Purkinje cell activation is delayed by 20 ms. Focal stimulation of Purkinje cells revealed site specificity, with cells in medial crus 2 showing the most prominent and selective impact on estimated coherence, i.e., a strong suppression in the gamma but not the theta band. Granger causality analyses and computational modeling of the involved networks suggest that Purkinje cells control S1–M1 phase consistency predominantly via ventrolateral thalamus and M1. Our results indicate that activity of sensorimotor cortices can be dynamically and functionally modulated by specific cerebellar inputs, highlighting a widespread role of the cerebellum in coordinating sensorimotor behavior.