Pakistan's government and pro-Taliban militants on Tuesday signed an agreement to ensure "permanent peace" in a tribal region near the Afghan border, a move hoped to end years unrest in the region.

Senior army officers and militants hugged, and congratulated each other after inking the agreement at a school.

Under the pact -- signed by a militant leader, Azad Khan, and a government representative, Fakhr-e-Alam -- no militant in Pakistan's North Waziristan region will shelter foreign militants or cross the nearby border to attack the Afghan or coalition forces.

FOX CountryWatch: Pakistan