Harvard University is promoting its next vice president and general counsel from within—a deputy who has been in-house at the school nearly as long as her predecessor.

Effective June 1, Diane Lopez is taking the legal reins from Robert Iuliano, who is leaving after 16 years in the top role to lead Gettysburg College, the university said in a statement.