Optical frequency combs consist of equally spaced discrete optical frequency components and are essential tools for optical communication, precision metrology, timing and spectroscopy1-9. At present, combs with wide spectra are usually generated by mode-locked lasers10 or dispersion-engineered resonators with third-order Kerr nonlinearity11. An alternative method of comb production uses electro-optic (EO) phase modulation in a resonator with strong second-order nonlinearity, resulting in combs with excellent stability and controllability12-14. Previous EO combs, however, have been limited to narrow widths by a weak EO interaction strength and a lack of dispersion engineering in free-space systems. Here we overcome these limitations by realizing an integrated EO comb generator in a thin-film lithium niobate photonic platform that features a large EO response, ultralow optical loss and highly co-localized microwave and optical fields15, while enabling dispersion engineering. Our measured EO comb spans more frequencies than the entire telecommunications L-band (over 900 comb lines spaced about 10 gigahertz apart), and we show that future dispersion engineering can enable octave-spanning combs. Furthermore, we demonstrate the high tolerance of our comb generator to modulation frequency detuning, with frequency spacing finely controllable over seven orders of magnitude (10 hertz to 100 megahertz), and we use this feature to generate dual-frequency combs in a single resonator. Our results show that integrated EO comb generators are capable of generating wide and stable comb spectra. Their excellent reconfigurability is a powerful complement to integrated Kerr combs, enabling applications ranging from spectroscopy16 to optical communications8.