This is an introduction to Hall algebras from the perspective of 2-Segal spaces or decomposition spaces, as introduced by Dyckerhoff and Kapranov and Gálvez-Carrillo, Kock and Tonks, respectively. We explain how linearizations of the 2-Segal space arising as the Waldhausen S∙-construction of a proto-exact category recover various previously known Hall algebras. We use the 2-Segal perspective to study functoriality of the Hall algebra construction and explain how relative variants of 2-Segal spaces lead naturally to representations of Hall algebras.