What do you do at the aciant ruins on Pokemon pearl?

You catch the legendary Poke mon. In platinum you catch GUIRETEINA, in pearl you catch PALKIA, in dimond you catch DIALGA