International audienceWe present the second data release (DR2) of the X-shooter Spectral Library (XSL), which contains all the spectra obtained over the six semesters of that program. This release supersedes our first data release from Chen et al. (2014, A&A, 565, A117), with a larger number of spectra (813 observations of 666 stars) and with a more extended wavelength coverage as the data from the near-infrared arm of the X-shooter spectrograph are now included. The DR2 spectra then consist of three segments that were observed simultaneously and, if combined, cover the range between ˜300 nm and ˜2.45 μm at a spectral resolving power close to R = 10 000. The spectra were corrected for instrument transmission and telluric absorption, and the...