Provided is a liquid crystal composition satisfying at least one of characteristics such as a high maximum temperature of a nematic phase, a low minimum temperature of the nematic phase, a small viscosity, a large optical anisotropy, a large dielectric anisotropy, a large specific resistance, a large elastic constant, a high stability to ultraviolet light and a high stability to heat, or having a suitable balance regarding at least two of the characteristics. Also provided is an AM device having a short response time, a large voltage holding ratio, a large contrast ratio, a long service life and so forth. The liquid crystal composition contains a specific compound having a large elastic constant as a first component, and a specific compound having a large dielectric anisotropy as a second component, and has a nematic phase, and a liquid crystal display device contains the composition.