We present two approaches to the study of the cohomology of moduli spaces of curves. Together, they allow us to compute the rational cohomology of the moduli space (M) over bar (4) of stable complex curves of genus 4, with its Hodge structure.