Last weekend, Natasha, Pierre, and the Great Comet of 1812 — Dave Malloy’s electro-pop adaptation of Tolstoy’s War and Peace — closed on Broadway after a casting controversy: The show’s producers had asked the male lead, Hamilton’s Okieriete “Oak” Onaodowan, who is black, to step aside early to “make room” for the more established (and white) Mandy Patinkin, who later withdrew from the production after social media backlash. It was an ignominious end for one of the most exciting musicals of recent decades — one that reimagined Tolstoy’s epic classic for a new generation.

During its run — at least, until its final weeks — the show drew plenty of praise for its treatment of race: The production’s color-blind approach to casting meant that actors of color played roles, including both the titular Natasha and Pierre, normally reserved for white actors.

But less appreciated, though no less vital, was the nuanced and skillful way the show handled religion, treating questions of faith and doubt with as much gravity as more concrete questions of romantic attachment.

Comet’s central relationship is between Pierre and God — and it works

When I interviewed the show’s writer/composer (and original Pierre) Dave Malloy for the Village Voice last year, Malloy told me that the entire structure of Comet was designed to allow the show to parallel the story of the young Russian countess, Natasha, whose infidelity destroys her relationship with her absent fiancé Prince Andrei, with that of Andrei’s morose and disillusioned friend Pierre, looking for a way out from his existential malaise among the high society of Napoleon-era Moscow.

In a section of our interview that was edited down for length, Malloy talked about how a “traditional” romantic musical would have an “A” couple and a “B” couple, each of whose stories would complement the other. (Think, for example, of Guys and Dolls, where the more earnest relationship between Sky Masterson and Sarah is paralleled by the comic relationship between Nathan Detroit and Adelaide). But, Malloy said, the “romance” on Pierre’s side isn’t between Pierre and another person, but between Pierre and God (or the universe, or the big something, or whatever you want to call it).

The musical’s tight structure, which veers between Natasha’s romantic misdeeds with the dashing but ultimately selfish Anatole and Pierre’s increasingly futile attempts to “wake up” from his unhappy life, intensifies our sense that Pierre’s quest for fulfillment is no less valid than Natasha’s, despite his far less “sexy” plot line. But it also makes clear that the very thing Pierre is looking for — a sense of meaning and order to his life — is, to some extent, what Natasha is looking for, too.

When Natasha finally succumbs to Anatole’s charms, she does so because the narrative of the two of them as star-crossed lovers (rather than two people who just want to sleep together) helps her make sense of her otherwise fractured and conflicting emotions. “But I love you/Of that there is no doubt/How else could all of this have happened?” Natasha sings, 'How else could we have kissed?/It means that I have loved you from the first/It means that you are kind, noble, and splendid/And I could not help loving you.”

In a telling moment in the show’s opening sequence, the cast veers from a comic song introducing the numerous (and confusingly named) Russian characters by their attributes — Natasha is young, her cousin Sonia is good, her fiancé “isn’t here” — to a much more nuanced one. “What about Pierre?” they ask. Pierre, it seems, cannot be explained in a single word, so he gets a whole song to soliloquize about how he “cannot go on/living as I do.” Pierre is complicated and raw, contradictory: as lazy and self-indulgent as he is motivated by a desire for real change.

But as the show progresses, we learn that none of our characters can really be summed up in a word. Natasha may be “young” at the show’s opening, but by the time she’s screwed up not one but two romantic relationships, she’s an ingénue no longer, and she, too, has to deal with what it means to be a complicated, flawed, human being, living in the world without easy answers.

It’s fitting, then, that the climax of Comet isn’t a great dramatic scene — a reconciliation, a duel, a kiss — but a tiny, tender moment between the titular characters, in which Pierre reassures Natasha that she is worthy of forgiveness: that she has her “whole life ahead of you.” Pierre has gotten out of his head for once, and Natasha is able to engage with a man not as an idealized, romantic notion of what she wants, but as a fellow traveler on her road toward self-discovery.

Indeed, the show’s climax is an anti-climax. As the famous comet of 1812 crosses the sky in the show’s final number, Pierre finds relief in how he does not fear it: "The comet said to portend Untold horrors/And the end of the world/But for me/the comet brings no fear/No, I gaze joyfully.”

That’s not to say that Comet isn’t gorgeously romantic. Of course it is. But its romance is ultimately less about resolving a “marriage plot” — by the show’s end, nobody’s paired off happily — than exploring the undercurrent of what makes us want to love at all. It may not be “religion” in the traditional sense (although a mystical Christianity lies at the heart of Tolstoy’s novel), but Malloy and Tolstoy alike challenge the audience to ask what, once our illusions have been shattered, we still can have faith in.