Chief Administrative Judge Lawrence K. Marks, second in command of the New York court system, is retiring at month’s end—just three months after Chief Judge Janet DiFiore retired.

Marks is not due for mandatory retirement. After 31 years in the court system and 7 1/2 years as the second-longest-serving chief administrative judge, he felt it was time to move on, according to court system spokesman Lucian Chalfen.