SARAROGHA, Pakistan (AP) -- Driving through high mountain passes with mud brick houses perched on cliffs overhead and caves down below where Taliban fighters used to hide, Brig. Hassan Hayat talks excitedly about the Pakistan army's latest operations in these long-hostile tribal areas.
"Now we are getting into the olives," he said as the road passed through groves of trees, explaining how the military has been bringing in Italian olive trees to graft onto local growers' trees to improve production. "Some 400 trees we've already done."
He had wanted to plant daffodils, he mentioned at another point in the trip. But it turned out the flowers would be too hard to export. Bee farms have proven more productive.
After battling Taliban militants in the tribal areas bordering Afghanistan for over a decade, the Pakistani military is engaged in a new fight, aiming to win over a population who are returning to their homes in the region after years living as refugees in their own country and who harbor a longstanding mistrust of the central government.
The military is rebuilding infrastructure and setting up economic and job projects for the population in South Waziristan, one of the seven tribal regions along the border with Afghanistan. It's a classic counterinsurgency tactic similar to that used by the U.S. military -- with mixed results -- in Iraq and Afghanistan. The aim is to decrease support for militants and bring peace to a troubled region -- in this case, tribal areas that have long been sanctuaries for the Taliban and other militant groups fueling instability in both Afghanistan and Pakistan.
"Once the people are more aware, more educated, they will not take up arms but go for the development and be a positive contributor in society," said Hayat.
With a month to go before nationwide elections that will see a transfer of power from one elected government to another for the first time in Pakistan's history, security will be a major campaign issue. Since many of Pakistan's security problems are linked to what happens in the tribal regions, the success or failure of the counterinsurgency campaign could have major repercussions for the rest of the country.
Pakistan's battle against the Taliban began after the U.S. invasion of neighboring Afghanistan in 2001, which pushed many militants across the border into the tribal regions of northwestern Pakistan. There, they found allies among a local population historically neglected by Pakistan's central government. Much of the population is Pashtun, the ethnic group which has been the backbone of the Taliban. Working out of the tribal areas, the Pakistani branch of the Taliban launched a campaign of attacks inside Pakistan.
South Waziristan became the main sanctuary for the Pakistani Taliban, until the army launched a large ground invasion in late 2009. Amid the assault, some 300,000 of the territory's 545,000 people fled to other parts of Pakistan. Entire villages and towns were left virtually empty, particularly in the eastern part of the territory where fighting was heaviest. But the offensive largely broke the Taliban hold, with many fighters who survived going into hiding or fleeing into Afghanistan or the neighboring Pakistani territory of North Waziristan, which remains a militant stronghold.
"The population was hostage to these people," said Hayat. "They had their own rule of law. Whatever they wanted they could do in this area."
But many residents have a softer recollection of Taliban rule. Many said they didn't have a problem with the Taliban and only fled because of the fighting.
"During the Taliban time the situation was good generally. The Taliban have not done anything wrong to anyone. Pakistan and Taliban have the problem," said Sami Ullah, who owns a hotel and restaurant that opened in late March in Sararogha, thanks to the army's rehabilitation efforts.
The army, which essentially runs South Waziristan now, launched the rehabilitation and rebuilding program in 2010. It has grown since, mostly in the eastern part of the territory.
But major challenges remain. Only about 15 percent of residents who fled have been allowed to return, as the military lets them back only at the rate that their towns are rebuilt.
Many of those who have returned complain about lack of compensation and services. They chafe against military restrictions. The army, for example, has stopped mobile phone services, likely to prevent the Taliban from using them to communicate or detonate bombs. No one is allowed to carry weapons, angering tribesmen who consider their rifles a symbol of independence and pride. Anyone entering or leaving South Waziristan is checked against a database of who is allowed in and who is not.