Matthew Morrison announced Friday that he will no longer be a judge for the show "So You Think You Can Dance" after he failed to adhere to competition production protocols.

He revealed his exit in a statement and explained that his violation of protocols prevented him from fairly judging the show's competition.

"Having the opportunity to be a judge on ‘So You Think You Can Dance’ was an incredible honor for me," Morrison said in a statement. "Therefore, it is my deepest regret to inform you that I will be leaving the show."

"After filming the audition rounds for the show and completing the selection of the 12 finalists, I did not follow competition production protocols, preventing me from being able to judge the competition fairly," he continued. "I cannot apologize enough to all involved and I will be watching alongside you all on what I know will be one of the best seasons yet."

ABBA DROPS 'VOYAGE,' FIRST ALBUM IN 40 YEARS

Matthew Morrison

Matthew Morrison on a show in New York City on March 13, 2020. (Photo by Dimitrios Kambouris/Getty Images)

‘BRIDGERTON’ EMMY WINNER MARC PILCHER DEAD AT 53 OF COVID-19

so you think you can dance

TV host Cat Deeley at the "So You Think You Can Dance" finale held at the Kodak Theater on August 6, 2009 in Hollywood, California.  (Photo by Alberto E. Rodriguez/Getty Images) (Photo by Alberto E. Rodriguez/Getty Images)

It remains unclear what competition protocols Morrison violated.

The former "Glee" star will still appear in four episodes of the dance competition show since programming has already started airing.

MAtthew Morrison in Beverly Hills

Actor Matthew Morrison arrives at Mancini Delivered  - A Musical Tribute To Ginny And Henry Manciniat the Wallis Annenberg Center for the Performing Arts on April 1, 2017 in Beverly Hills, California.  (Photo by Rich Fury/Getty Images) (Photo by Rich Fury/Getty Images)

HARRISON FORD INJURES SHOULDER ON SET OF ‘INDIANA JONES 5,' PRODUCTION EXPECTED TO CONTINUE

Morrison was announced as a judge in April along with singer JoJo Siwa, Hip-Hop dancer Stephen "tWitch" Boss and returning host Cat Deeley ahead of the show's 17th season, which premiered May 18. A new judge will be named for the next stage of the dance competition, which will begin June 15.

CLICK HERE TO GET THE FOX NEWS APP