Photo-induced force microscopy (PiFM) has emerged as a transformative technique in nanoscale imaging, providing insights into the chemical composition and spatial organization of materials at the nanometre scale. PiFM enables innovation in surface science, geological research, biological studies, materials science, photonics and beyond. Compared with other probe-based spectroscopic methods, the nature of tip–sample interaction in PiFM can offer superior spatial resolution and surface sensitivity. This Primer offers the reader an introduction to the fundamentals of PiFM, discusses the configuration of the method, as well as advanced modalities and modifications, such as ultrahigh vacuum and nonlinear techniques. Results and scenarios are summarized, including those in surface chemistry, biology, polymer science and nanophotonics, offering a unique perspective for researchers across multiple disciplines. The Primer concludes with a discussion of PiFM’s limitations and points of improvement, and it outlines the future developments of this versatile nanoscale spectroscopy technique.