“Agent Carter” has been cancelled at ABC after two seasons, Variety has learned.

However, “Agent Carter” star Hayley Atwell has landed another series at the network, the drama “Conviction,” which has officially been greenlit for the 2016-2017 season.

In “Conviction,” Atwell stars as a lawyer and the former First Daughter Hayes Morrison, who is about to accept a job offered from her sexy nemesis, NY District Attorney Wayne Wallis (Eddie Cahill), to avoid jail time for cocaine possession and avoid hurting her mother’s Senate campaign. Working with his team at the new Conviction Integrity Unit will let her use her brilliant mind to turn over cases where there is credible suspicion of wrongful conviction, and give her a chance to turn things around with her high-powered political family.

Shawn Ashmore, Merrin Dungey, Emily Kinney, Manny Montana and Daniel DiTomasso also star. The series was created by Liz Friedman (“Elementary,” “Marvel’s Jessica Jones”) and director Liz Friedlander (“The Following”), and will be exec produced by Mark Gordon and Nick Pepper. ABC Studios and The Mark Gordon Company are producing the drama. “Conviction” marks the second order for Mark Gordon Co. this week, following Kiefer Sutherland’s “Designated Survivor.” The company is also behind ABC’s “Quantico” and “Grey’s Anatomy.”

Airing as a bridge during “Marvel’s Agents of SHIELD” hiatus again this season, “Agent Carter” averaged a 1.4 rating in adults 18-49 and 4.4 million viewers overall in “live plus-7” estimates from Nielsen — down sharply from its first year.

Popular on Variety

Meanwhile, another Marvel project is in the works at ABC: “Marvel’s Most Wanted,” a spinoff of “Agents of SHIELD,” which has been renewed for Season 4.

Here’s the first look at Hayley Atwell in “Conviction,” which has been greenlight for the 2-16-2017 season:

CONVICTION - ABC's "Conviction" stars Hayley Atwell as Hayes Morrison. (ABC/Bob D'Amico)