ABC's Castle has always focused on crime solving exclusively, but now, for the first time, we're going to the courtroom!

How Will 'Castle' Deal With Rick's Previous 'Missing Time'?

Castle showrunners Alexi Hawley and Terence Paul Winter revealed this news to TVLine this week.

"For the first time ever in Castle history, you go into a courtroom, you actually see a trial based on a case," Hawley confirmed.

Will Rick Get 'Actively Involved' In LokSat Case Right Away On 'Castle'?

The trial will not be for a case that plays out onscreen, but it will feature Castle (Nathan Fillion) giving a testimony that brings up past memories.

"I think it will be a treat for our longtime fans, because it refers to several things that have happened in the last few years," Winter said.

As for how the typically goofy Castle will behave in court, Winter and Hawley alluded to him screwing things up a bit.

"He's an 'interesting' guy to give testimony. He has to take the stand- annnnnd it kind of goes sideways," Winter laughed, with Hawley adding, "So then there's fallout from that, some scrambling to do damage control!"

Hawley and Winter have experimented frequently with the police procedural in season 8, and this looks to be a continuation of that. They angered many fans earlier in the season by temporarily separating Castle and Beckett (Stana Katic), but that relationship is gradually building back up again.

Castle returns for the second half of season 8 Monday, Feb. 1 at 8 p.m. ET/PT on ABC.