In the crime drama, Fillion played Richard Castle, a best-selling mystery novelist, and Katic is seen as Kate Beckett, an NYPD homicide detective, who together solve various unusual crimes in New York City.
"Castle has been one of the greatest joys of my creative life, and I hope the show continues on for years to come," Fillon said.
"Stana has been my partner all this time, and I thank her for creating the character of Beckett who will live on for all of us as one of the greatest police officers on television. I wish her well, and have no doubt she will succeed in everything she pursues. She will be missed," the actor added.
Although the show is named after his character, Katic's role as detective Beckett has been as a prominent one.
Also Read
While Beckett is going to be written off, two other detectives played by Seamus Dever and Jon Huertas are expected to return for more.
Katic, however, is not the only one getting the axe.
Tamala Jones who plays medical examiner and Beckett's close friend Lanie Parish is leaving the show as well.
According to Deadline, the show filmed two different endings for the Season 8 finale, one of which is a cliffhanger that will leave Castle and Beckett's lives hanging in the balance.