The last two decades have seen rapid developments in short-pulse x-ray sources, which have enabled the study of chemical dynamics by x-ray spectroscopies with unprecedented sensitivity to nuclear and electronic degrees of freedom on all relevant time scales. In this perspective, some of the major achievements in the study of chemical dynamics with x-ray pulses produced by high-harmonic, free-electron-laser and synchrotron sources on time scales from attoseconds to nanoseconds are reviewed. Major advantages of x-ray spectral probing of chemical dynamics are unprecedented time resolution, element and oxidation state specificity and-depending on the type of x-ray spectroscopy-sensitivity to both the electronic and nuclear structure of the investigated chemical system. Particular dynamic processes probed by x-ray radiation, which are highlighted in this perspective, are the measurement of electronic coherences on attosecond to femtosecond time scales, time-resolved spectroscopy of chemical reactions such as dissociations and pericyclic ring-openings, spin-crossover dynamics, ligand-exchange dynamics, and structural deformations in excited states. X-ray spectroscopic probing of chemical dynamics holds great promise for the future due to the ongoing developments of new types of x-ray spectroscopies such as four-wave mixing and the continuous improvements of the emerging laboratory-based high-harmonic sources, and large-scale facility-based free-electron lasers.