This Perspective provided an overview of the application of the exact factorization of the electron-nuclear wavefunction in the domain of photochemistry. After a brief presentation of the fundamental theory at the quantum-mechanical level, we introduced the concept of classical-like trajectories to be used to approximate the nuclear dynamics coupled to the quantum electronic dynamics and to derive algorithms for quantum molecular dynamics. Key concepts arising in the exact factorization are the time-dependent vector potential and time-dependent potential energy surface that completely account for the effect of the electronic ground and excited states on the nuclear dynamics. These time-dependent potentials can be interpreted classically such that the concept of classical nuclear force naturally arises. Another key ingredient of the exact-factorization equations is the quantum momentum, that tracks the spatial delocalization of the nuclear density, or equivalently of the distribution of classical trajectories, such that quantum-decoherence effects can be reproduced in the coupled-trajectory or auxiliary-trajectory schemes derived from the exact factorization. In this respect, we discussed previous work where the time-dependent potentials and the quantum momentum have shown their power in interpreting and simulating dynamical processes in the presence of strong nonadiabatic effects.