Investigating the formation and evolution of the most massive galaxies in the Universe