Precise optics control is essential for safe and efficient operation of the LHC at CERN. Traditionally much attention has focused on the linear optics, however over the first two operational runs an increasing proportion of machine time has also been devoted to beam-based study and correction of nonlinear optics in the LHC. This talk will present some highlights of the nonlinear optics commissioning and machine development programs at the LHC.