The principal of Stuyvesant High School said Monday he is leaving the prestigious post to take a senior job at the city Department of Education.

Eric Contreras, who has led Stuyvesant for two years, will remain there until an interim acting principal is named.

His announcement comes just a week before public schools open and amid raging debate...