Carmen Perez, 16, an urban dance devotee, said she was thrilled to take part.
"There is a very beautiful energy -- very joyful, a lot of joy," she said.
The event was organized by the Mexico City government, which had recruited such prominent figures as American actor Sylvester Stallone -- Rocky Balboa on the big screen -- and boxer Saul "Canelo" Alvarez to promote it.
Afterward, dozens of people swarmed the many professionals present to seek autographs.
Mexico City, with nine million residents, holds several Guinness records.
They include the biggest serving of packaged tacos (2,712 pounds or 1,230 kilograms), the largest number of free Wi-Fi hotspots in an urban area (21,500), and the largest number of people playing foosball simultaneously (1,080).