But for at least six months now, there have been signs that their timidity is disappearing. The Taliban have become a force on the street, aggressively exerting their influence in the ethnic Pashtun quarters of the city.

Taliban tactics are most evident in Manghopir, an impoverished neighborhood of rough, cinder-block houses clustered around marble quarries on the northern edge of the city, where illegal housing settlements spill into the surrounding desert.

In recent months, Taliban militants have attacked the Manghopir police station three times, killing eight officers, said Muhammad Aadil Khan, a local member of Parliament.

In interviews, residents describe Taliban militants who roam on motorbikes or in jeeps with tinted windows, delivering extortion demands in the shape of two bullets wrapped in a piece of paper.

A factory owner in Manghopir, speaking on the condition of anonymity out of fear for his safety, said that several Pashtun businessmen had received demands for $10,000 to $50,000. The figure was negotiable, he said, but payment was not: resistance could result in an assault on the victim’s house or, in the worst case, a bullet to the head.

Mr. Khan said he had not dared to visit his constituency in months. “There is a personal threat against me,” he said, speaking at the headquarters of his party, the Muttahida Qaumi Movement, which represents ethnic Mohajirs, in the city center.

The militant drive has even distressed Manghopir’s most revered residents: the dozens of crocodiles who inhabit a pool near a Sufi shrine here.