An ensemble is a collection of states representing a macroscopic system in statistical mechanics. It corresponds to a set of points in phase space, with each point representing a microstate of the system. The classification of ensembles is based on the type of interactions with the surroundings, including energy and particle exchange.