Long-running ITV soap The Bill will end later this month with a "compelling" storyline about a teenage girl involved in a suspected gang member's murder.
Executive producer Johnathan Young said he hoped the final episodes would "respect the heritage of the show".
ITV decided to drop the long-running police drama after 27 years earlier this year after a major revamp failed to win back viewers.
The climactic episode is expected to be broadcast on ITV1 on 31 August.
Set around the fictional Sun Hill police station in London, The Bill began life as a one-off drama entitled Woodentop.
ITV was impressed enough to commission a weekly series that eventually became a thrice-weekly soap.
In an attempt to reverse declining viewing figures, The Bill was relaunched last year as a weekly drama in a post-watershed slot.
Young said the show would conclude with a two-part story that "tests our cops both physically and emotionally for one final time."
Many future stars have walked through Sun Hill's doors since they first opened in 1983.
Kiera Knightley, Martine McCutcheon and Russell Brand are among those to appear in the show in the early days of their respective careers.