Dipolar recoupling in solid‐state NMR is an essential method for establishing correlations between nuclei that are close in space. In applications on protein samples, the traditional experiments like ramped and adiabatic DCP suffer from the fact that dipolar recoupling occurs only within a limited volume of the sample. This selection is dictated by the radiofrequency (rf) field inhomogeneity profile of the excitation solenoidal coil. We employ optimal control strategies to design dipolar recoupling sequences with substantially larger responsive volume and increased sensitivity. We show that it is essential to compensate for additional temporal modulations induced by sample rotation in a spatially inhomogeneous rf field. Such modulations interfere with the pulse sequence and decrease its performance. Using large‐scale optimizations we developed pulse schemes for magnetization transfer from amide nitrogen to carbonyl (NCO) as well as aliphatic carbons (NCA). Our experiments yield a signal intensity increased by a factor of 1.5 and 2.0 for NCA and NCO transfers, respectively, compared to conventional ramped DCP sequences. Consistent results were obtained using several biological samples and NMR instruments.