The present talk is a gentle introduction to the theory of cohomological Hall algebras and their relevance in the study of the topology of moduli spaces, such as the Hilbert schemes of points on a smooth surface.