We report on the nonlinear coupling between the mechanical modes of a nanotube resonator. The coupling is revealed in a pump-probe experiment where a mode driven by a pump force is shown to modify the motion of a second mode measured with a probe force. In a second series of experiments, we actuate the resonator with only one oscillating force. Mechanical resonances feature exotic line shapes with reproducible dips, peaks, and jumps when the measured mode is commensurate with another mode with a frequency ratio of either 2 or 3. Conventional line shapes are recovered by detuning the frequency ratio using the voltage on a nearby gate electrode. The exotic line shapes are attributed to strong coupling between the mechanical modes. The possibility to control the strength of the coupling with the gate voltage holds promise for various experiments, such as quantum manipulation, mechanical signal processing, and the study of the quantum-to-classical transition.