A highly regarded dean at the flagship campus of the University of Texas announced this week that he was leaving the school in part because of his concerns over a new state law allowing people to carry concealed firearms in classrooms and other buildings on public college campuses.

Frederick Steiner, the dean of the School of Architecture at the University of Texas at Austin, said on Thursday that he would leave on July 1 to take a job as the dean of the University of Pennsylvania School of Design. He has led the architecture school in Austin for 15 years.

His decision to leave a program he helped steer to national prominence underscored concerns expressed by Gregory L. Fenves, the president of University of Texas at Austin, that the law would harm the school’s ability to attract and retain top students and faculty.

“I have significant concerns about how the law will affect our ability to recruit and retain faculty members and students,” Dr. Fenves wrote in a letter to the chancellor of the University of Texas System, William H. McRaven, on Feb. 17.