Brazen Women. Scandalized Viewers. It’s ‘Sex and the City,’ Senegal Style.

“Are you Marème?!” they asked.

“People say that I am perverting the youth,” Ms. Gadji said in a moment away from the cameras. “But I don’t think so. I am only reminding them that everyone is free to do what they want with their own sexuality.”

Later, the crew moved to the new city outside Dakar to film more of the show’s final scenes. Racky is about to get married, but first a friend of her father’s wants to tell her a family secret. They meet in an isolated location, but (spoiler alert) when the man makes a move on her, she picks up a rock and kills him.

It is, in the end, a TV drama.

For all its success, it is unclear if the show will return for a second season. And Ms. Sy said that if it did, she feared she would lose control of the narrative to male producers. She wants to pair the second season with a magazine, she said, but it’s unclear how she would get the money to do that.

The show’s commercial director, Julia Cabrita Diatta, called funding a “constant challenge,” and said some major advertisers had backed away from the show after deciding it was too controversial.

The final episode aired just hours after filming wrapped, and in the neighborhood of Médina, the sandy streets began to quiet as families settled around televisions. “Salaam alaikum,” neighbors greeted one another, as they filed into living rooms and bedrooms to watch.

In one bedroom, Ms. Gueye, the 29-year-old fan, took the seat closest to the television. She barely moved her eyes from the characters for the next 70 minutes.

“It’s so good,” she said. “I will miss them and be lonely without them.”