From left, Alba (Ivonne Coll), Jane (Gina Rodriguez) and Xiomara (Andrea Navedo) make up the core trio on “Jane the Virgin.” (Tyler Golden/CW)

This article contains spoilers for the current season of “Jane the Virgin.”

There is a scene in the Season 5 premiere of “Jane the Virgin” in which Jane (Gina Rodriguez) is trying to wrap her head around the show’s latest jaw-dropping twist: Her late husband, Michael (Brett Dier), is not actually dead. He has amnesia and goes by Jason, but he looks and smells like the sweet detective Jane married three seasons ago.

For just over seven minutes, Jane paces the kitchen as her mother and grandmother watch, unable to get a word in as she offers rapid-fire analysis of her predicament, punctuated with breathless asides: “I’m fine, I’m fine, it’s fine!” It’s a dizzying mix of emotions that is likely familiar to fans of the show, which began its fifth and final season last month .

“Jane the Virgin” is ending, but we’re fine, we’re fine, it’s fine! Inhala, exhala — as Jane would say.

Extended monologues aren’t typical for the CW dramedy, which thrives on meaningful, often hilarious dialogue and well-timed interruptions from the buttery baritone of its omniscient narrator, Anthony Mendez. But the scene captures the magic of the show and its candy-colored universe, in which telenovela fantasy is brought down to earth by good, old-fashioned real life.

“Jane the Virgin” premiered in 2014 with a head-spinning premise: Jane Gloriana Villanueva discovers she’s pregnant, despite never having had sex, after her scatterbrained gynecologist accidentally artificially inseminates the wrong patient. The father turns out to be Rafael Solano (Justin Baldoni), a local Miami businessman. Jane’s unlikely pregnancy throws her life, carefully planned to Type-A perfection with Michael, into chaos. Her mother, Xiomara (Andrea Navedo), and her devoutly Catholic abuela, Alba (Ivonne Coll), have differing opinions on what Jane should do.

A TV show could have crumbled under the weight of that conceit alone, but “Jane,” loosely based on a Venezuelan telenovela, leaned even harder into its soap-opera roots. Evil, secret twins who sometimes assumed the identity of their siblings. An elusive villain dubbed “Sin Rostro.” A baby kidnapped from the hospital. A dead husband who might not actually be dead.

But with every soapy twist, “Jane” has pushed past the tropes to explore the very human emotions underneath the melodrama.

The key to this approach is “taking these big swings and then taking them very seriously,” said creator and showrunner Jennie Snyder Urman. “So if you were accidentally artificially inseminated, how would you feel? And really dig into that in every layer.”

Michael’s death in Season 3 was a big (and unexpected) telenovela swing. The show, which jumped ahead in the aftermath, delved deeply into Jane’s grief, which lingered even as she published her first book (inspired by her romance with Michael) and reluctantly began dating again.

The show has also deftly subverted telenovela tropes. The first season established one of television’s most respectful love triangles between Jane, Michael and Rafael. Things were a bit more contentious between Jane and Rafael’s eventual ex-wife, Petra (Yael Grobglas), who was supposed to have been artificially inseminated on that fateful day. But over the years, Jane and Petra (a complex firecracker and a fan-favorite character) built a beautiful friendship.


Andrea Navedo and Jaime Camil play Jane’s parents, Xiomara and Rogelio. (Scott Everett White/CW)

Yael Grobglas, center, as Petra, and Justin Baldoni, right, as Rafael form a blended family with Jane. (Scott Everett White/CW)

Jane’s father, whom she meets for the first time in an early episode, turns out to be Rogelio de la Vega (Jaime Camil), the star of one of her favorite novelas. Rogelio is egotistical and extra. His favorite color is lavender (he doesn’t “pop in peach”). In a way, he personifies what makes “Jane” such a special show, reflecting its mix of comedy, pathos and drama. The character is also a credit to the show’s masterful casting.

Before he was cast as Rogelio, Camil was well known in Latin America as a singer and telenovela actor (he starred in Mexico’s version of “Ugly Betty”).

Camil cemented Rogelio’s penchant for over-the-top antics in the second episode, when a leopard runs loose on the set of “The Passions of Santos.” Camil said he went full-throttle with physical comedy. “And nobody told me not to do it.” In the scene, Rogelio leaps out of a prop boat and cowers next to it, screaming, “This is not in my contract!”

But Rogelio has offered more than just laughs. Despite being the first to tell you he’s a huge, international star, Rogelio eschews the stereotypical machismo of Latino men. He has a loving relationship with Xiomara, whom he eventually marries (Xogelio, for the win) and he consistently works on his relationship with his daughter.

But the show’s most significant relationship is the one among Jane, her mom and her grandmother — three generations of Latina women who support and love each other despite their vast differences. Alba speaks only Spanish on the show, with Jane and Xiomara typically answering her in English.

Coll, a veteran actress who has played abuela to characters on “Glee” and “Switched at Birth,” thinks the show’s focus on three Latinas as heads of the Villanueva house is a groundbreaking dynamic for television.

“You rarely see that,” Coll said. “You see the husband, the man of the house. And maybe the wife is like an appendix.”

The Villanueva women give the show its most poignant layer. They frequently swap stories and advice on a porch swing in front of their home — a tradition Urman said helped her “find the heart of the show.”

It was on that porch swing, in the second episode, that Xiomara encouraged Jane to talk about the emotional trauma of her unanticipated pregnancy. Jane, finally processing it, cries as her mother and grandmother hold and reassure her.


Jane’s love triangle involving Rafael (Justin Baldoni) and Michael (Brett Dier) has been a large source of drama on “Jane the Virgin.” (Michael Yarish/CW)

Jane’s Season 5 monologue harks back to that moment, bringing the show full circle. Jane’s life has been upended once more — this time putting her rekindled relationship with Rafael in jeopardy. Urman has known from the very beginning how Jane’s story will end, but viewers should expect a lot of twists along the way.

Inhala, exhala. Jane isn’t going away completely. The CW recently announced it ordered a pilot for a spinoff called “Jane the Novela”; the anthology series will tell stories written by Jane. Coll has already signed on to the project and Rodriguez, who is producing alongside Urman, will narrate the show as Jane.

Rodriguez (who directed the episode featuring her prolonged monologue) said in an email that the final season represents “a beautiful accomplishment” and “the perfect way to say goodbye” to the role that won her a Golden Globe in 2015. “This award is so much more than myself,” she said in her emotional acceptance speech. “It represents a culture that wants to see themselves as heroes.”

Four years later, Rodriguez says she hopes the show’s fans have learned the lessons that Jane taught her: “Trust hard. And love harder. She taught me how to ask questions and never be afraid to go after what I want.”

Jane the Virgin (1 hour) airs Wednesdays at 9 p.m. on CW. The series finale date has not been announced.