The pope consecrated the altar in the recently restored Cathedral of St. Mary the Ancient.
It was during a meeting in Panama with Scholas Citizenship students.
Pope Francis will visit one of the most historic cities in Latin America.
At the opening ceremony, Pope Francis invited the young people to send a wave to Benedict XVI.