New York City Police Commissioner William Bratton is leaving the nation’s largest police force, after a tenure in which he received credit for keeping crime down and navigated tension between police and minority communities.

Mayor Bill de Blasio announced Tuesday that Bratton will retire next month to enter the private sector. A global consulting firm said the outgoing commissioner will head its new risk division this fall.