This is the Temple of the Skulls. We overheard a tour guide saying that enemies' heads would be placed on stakes in neat rows with the carved skulls.