Preet Bharara, the former United States attorney in Manhattan who was fired this month by the Trump administration, will join the New York University School of Law on April 1 as a distinguished scholar in residence, the school said on Tuesday.

Mr. Bharara, 48, who was abruptly dismissed on March 11 after he refused to tender his resignation to the Trump administration, said in a Twitter post that he was “thrilled for this opportunity to continue addressing the issues I so deeply care about — criminal and social justice, honest government, national security, civil rights and corporate accountability, to name a few.”

Mr. Bharara, a graduate of Harvard and Columbia Law School, served more than seven years as the United States attorney for the Southern District of New York, and was perhaps best known for his successful corruption prosecutions, including those of Sheldon Silver, the former Democratic speaker of the State Assembly, and Dean G. Skelos, the former Republican state senate majority leader. (Both men have appealed their convictions.)

Image Preet Bharara, who served as the United States attorney in Manhattan for more than seven years, was dismissed this month by the Trump administration. Credit... Bryan R. Smith for The New York Times

The law school’s dean, Trevor W. Morrison, said students and faculty members would benefit from Mr. Bharara’s “deep knowledge and experience in criminal justice.”