Given a Riemann surface of genus with boundary components, the mapping class group is the group of diffeomorphisms of which fix the boundary pointwise, modulo the subgroup of diffeomorphisms isotopic to the identity. Equivalently, it is the group of connected components .