* Pakistani, Afghan Taliban forge close ties
* Commander says explosives, fighters come from Pakistan
* Taliban strength questioned after peaceful election
By Maria Golovnina
CAMP THUNDER, Afghanistan, April 9 (Reuters) - Taliban militants in Pakistan have established an increasingly close relationship with insurgents from across the border in Afghanistan, supplying them with explosives and well-trained fighters, a senior Afghan army commander said on Wednesday.
The Taliban in Pakistan have always operated separately from their Afghan namesakes, fighting to topple the democratically elected government in Islamabad and establish a strict Islamic sharia state in the nuclear-armed nation of 180 million people.
But in recent weeks the two groups have secretly agreed to work together, with Pakistani militants announcing a ceasefire with their government in order to preserve militant bases used to stage cross-border attacks.
Major General Muhammad Shareef Yaftali, in charge of several eastern provinces on or near the Afghan border with Pakistan, said this relationship was growing stronger.
"They are working together now. They are going to hold this relationship. It helps them," Yaftali, commander of the 203rd Corps, said at a military base in Afghanistan's Paktia province.
"The Afghan and Pakistani Taliban have the same ideology. They are the same people. They are of the same school."
The alliance complicates the picture for Yaftali's troops as they try to bring law and order to some of the most violent and inaccessible areas of Afghanistan where militants linked to al Qaeda are believed to be holed up in remote mountain lairs.
But some are sceptical about the Taliban's current ability to inflict heavy losses, pointing to the fact that there were no major attacks during last weekend's presidential election in Afghanistan which the insurgents had vowed to disrupt.
Afghanistan has a notoriously bad relationship with Pakistan and often accuses its neighbour, as well as its ISI intelligence agency, of supporting militants and helping stage attacks on Afghan soil - a charge furiously denied by Pakistan.
Militant commanders have told Reuters the recent ceasefire was mainly imposed on the Taliban by the shadowy Pakistani Haqqani network which fears that an offensive by the Pakistani military in their North Waziristan stronghold could hamper their own push to carry out attacks in Afghanistan.
The changing nature of the war is a concern to commanders on the ground, particularly those like Yaftali who are deployed near Afghanistan's porous and lawless border with Pakistan where Taliban attacks on security forces and civilians occur daily.
It also comes at a worrying time when U.S.-led forces are preparing to pull out by the end of the year, leaving Afghan troops to tackle the insurgency largely on their own.
Operations are winding down across the country. At Camp Thunder, a sprawling base near the city of Gardez where Yaftali spoke to reporters, U.S. army officers are working with his men only as advisers and leave front-line fighting to Afghan forces.
Yaftali said many students brainwashed in strict Islamic religious schools, or madrassas, in Pakistan had crossed the border to join forces with the Taliban. He said some 30,000 madrassas were shut in Pakistan last year, prompting an exodus of radically minded fighters.
"If one group is defeated they bring new fighters and it is easy for them to do that," said Yaftali, whose command extends over an area of about 83,000 square kllometers with a population of five million people.
He said most of the explosive devices also came from Pakistan. "There are no explosives-making factories in Afghanistan," Yaftali said. "All the explosives enter Afghanistan from Pakistan. We are close to North Waziristan and there are Taliban training ground and funding sources." (Editing by Mark Heinrich)
Our Standards: The Thomson Reuters Trust Principles.