At the beginning of Season 6, "In the Heat of the Night" moved from NBC to CBS. It was not publicly known at the time when Season 5 ended whether or not the show would continue. NBC had decided not to renew the series, although the ratings were still respectable and there were still some open ended plots that hadn't been resolved. A deal was made with rival network CBS to keep the show on the air. Originally, CBS opted to pick up the series for only a set of six two-hour movies. However, it was eventually picked up for a full 22-episode order.