Prince Charles began his summer tour of Wales on Monday by officially opening Swansea University's Bay Campus.
The prince took a tour of the site, chatted to students and was shown some of the engineering research taking place.
The Prince's Foundation worked closely with the university on the campus, which is on Fabian Way.
It wanted to transform the abandoned site owned by oil company BP into a centre for knowledge and innovation.
Prince Charles kicked off his tour by joking he had not expected anyone to be at the event because of Wales' Euro 2016 success.
"I must admit I'm surprised there's anybody here at all today bearing in mind that most of the principality seems to have gone to France for the football," he said.
The royal visit concluded with a short concert in the Great Hall and a plaque unveiling.
David Toman, chief executive of the Prince's Foundation for Building Community, said the campus would not have been built if it had not been for the "vision" of Prince Charles.
"The Prince's Foundation worked tirelessly with Swansea University, Neath Port Talbot council, BP plc and St Modwen plc to regenerate a derelict parcel of land into a world class exemplar of sustainable regeneration which is helping lead to jobs and growth for Wales," he said.
This will be Prince Charles' 12th annual summer visit to Wales, when he and the Duchess of Cornwall will spend the week visiting projects, charities and businesses across the country and staying at their Welsh residence at Llwynywermod in Carmarthenshire.