This generation of Algerian women has navigated a path between the secular state and the pull of extremist Islam, the two poles of the national crisis of recent years.

The women are more religious than previous generations, and more modern, sociologists here said. Women cover their heads and drape their bodies with traditional Islamic coverings. They pray. They go to the mosque — and they work, often alongside men, once considered taboo.

Sociologists and many working women say that by adopting religion and wearing the Islamic head covering called the hijab, women here have in effect freed themselves from moral judgments and restrictions imposed by men. Uncovered women are rarely seen on the street late at night, but covered women can be seen strolling the city after attending the evening prayer at a mosque.

“They never criticize me, especially when they see I am wearing the hijab,” said Denni Fatiha, 44, the first woman to drive a large city bus through the narrow, winding roads of Algiers.

The impact has been far-reaching and profound.

In some neighborhoods, for example, birthrates appear to have fallen and class sizes in elementary schools have dropped by nearly half. It appears that women are delaying marriage to complete their studies, though delayed marriage is also a function of high unemployment. In the past, women typically married at 17 or 18 but now marry on average at 29, sociologists said.

And when they marry, it is often to men who are far less educated, creating an awkward social reality for many women.

Khalida Rahman is a lawyer. She is 33 and has been married to a night watchman for five months. Her husband was a friend of her brothers who showed up one day and proposed. She immediately said yes, she recalled.