Active dendrites provide neurons with powerful processing capabilities. However, little is known about the role of neuronal dendrites in behaviourally related circuit computations. Here we report that a novel global dendritic nonlinearity is involved in the integration of sensory and motor information within layer 5 pyramidal neurons during an active sensing behaviour. Layer 5 pyramidal neurons possess elaborate dendritic arborizations that receive functionally distinct inputs, each targeted to spatially separate regions1,2. At the cellular level, coincident input from these segregated pathways initiates regenerative dendritic electrical events that produce bursts of action potential output3,4and circuits featuring this powerful dendritic nonlinearity can implement computations based on input correlation5. To examine thisin vivowe recorded dendritic activity in layer 5 pyramidal neurons in the barrel cortex using two-photon calcium imaging in mice performing an object-localization task. Large-amplitude, global calcium signals were observed throughout the apical tuft dendrites when active touch occurred at particular object locations or whisker angles. Such global calcium signals are produced by dendritic plateau potentials that require both vibrissal sensory input and primary motor cortex activity. These data provide direct evidence of nonlinear dendritic processing of correlated sensory and motor information in the mammalian neocortex during active sensation.