Residents of Mali's famed desert town, newly free of the militants who imposed harsh Islamic rule, return to the life they enjoyed before the occupation.

TIMBUKTU, Mali — There were public protests and whispers of secret love affairs. Heroes of resistance everywhere: the female fishmonger who angrily knocked down one of the occupiers, the imam who sent them away from his mosque, the elderly sheep trader beaten for complaining about their ill treatment of others.

Residents of this legendary caravan crossing are free of the violent militants who tried for nine months to impose their extreme version of Islam. French and African forces are continuing to chase them farther north into the Sahara.

And although many doubt that they are gone for good, now is a time for sweeping up and storytelling, for the music, flirting, smoking, community meetings and other small joys that make life in a desert town pleasurable.

Two sisters in clothing as bright as parrot plumage mime out life under the extremists, falling all over each other with throaty, guttural laughter. One exaggerates the creeping terrified walk of women under militant rule, then acts out a woman fleeing, her clownish eyes wide and her bottom sticking out comically.

Azahara Abdou, 20, lashed in public 40 times by militants who accused her of fornication — and then raped her while she was in custody —tells her story wearing a low-cut, clingy red tank top and carefully applied eyeliner.

Timbuktu, pronounced "Tom-book-too" by residents, is a maze of sandy alleys between gray mud houses and mud brick mosques, where sad-looking donkeys stagger, heads down, searching for something to eat, and old men sit on benches surveying the street and drinking small glasses of tea.

It's a shell of what it was in its tourist heyday, before November 2011, when gunmen killed a German tourist and kidnapped three others, probably relinquishing them to Al Qaeda-linked extremists for a price. The incident wiped out tourism in a single blow. When the militants swept in five months later, most of the population fled. But the town's bedraggled, trash-strewn streets belie its reserves of quiet bravery.

The insurgents streamed into town in convoys of SUVs filled with heavily armed fighters, among them the Al Qaeda-linked groups Ansar Dine and Al Qaeda in the Islamic Maghreb. They said they were fighting the government and corruption, not the people, but soon plunged into a punitive campaign to impose their ways.

The extremists blotted out parts of advertising signs, targeting a mermaid, a cow and informational messages about mosquito nets and AIDS. They smashed bars and shops. And they visited Imam Abdelrahman Aqib at the famous Sankore Mosque, demanding to use it for Friday prayers.

"I didn't let them. I didn't even want to talk to them," said the elderly imam, wreathed in flowing white garments and seated beneath a portrait of his ancestor, the revered 16th and 17th century poet Ahmed Baba, author of some of Timbuktu's thousands of priceless manuscripts.

Aqib has a fearsome reputation in Timbuktu, where believers think that if you anger the old man, you'll meet a dreadful fate. He got his way.

The occupiers' violent, extreme form of Islam clashed sharply with a tolerant attitude here that allows dancing, men and women mixing socially, acceptance of those who smoke and drink, and the wearing of protective amulets. In Mali's capital, Bamako, women in tight-fitting, colorful costumes speed independently around on their motorcycles, a rare sight in Africa.

Timbuktu's religion is imbued with legends of the city's 333 saints. Prayers to them play an important role in daily life. At its height, in the 16th century, Timbuktu was a key post on the Sahel caravan routes, where salt, spices and fabrics were shipped by camel across Africa. It was also a legendary center of learning.

Mayor Ousmane Halle, one of the few government officials who did not flee, recalled that he went out to meet the militants when they arrived.

"I said if it's true that they came to Timbuktu to help the people of the north, why did they destroy everything?" For that he got an eye-glazing lecture on religion. Halle said that once the beatings started, he went back to the militants and complained.

"They said, 'There's a lot of people here who do things they should not do.' "

The zealots set up a base in the Ahmed Baba Center, opposite the Sankore Mosque, and used the square for floggings, meted out with a camel hide whip, with three salt-hardened strands at the end.

The head of the Islamic police, Mohamed Mossa, a Malian from a village outside Timbuktu, was known for the relish with which he ordered people to be flogged, particularly women.

Abdou said she came face to face with Mossa after she was picked up in the market wearing a diamante-studded hijab, or head covering, and accused of fornication. There was nothing more specific. When she denied the charge, he ordered 40 lashes, carried out that day, for her denial and an additional 100 two weeks later for the alleged crime.