ISLAMABAD, Pakistan -- A Pakistani government team held direct talks with the Taliban after travelling Wednesday to a secret location in the country's northwest, part of a push by Prime Minister Nawaz Sharif to strike a peace deal to end an insurgency that has killed thousands of people in recent years.

Although previous Pakistani governments have spoken directly with Taliban representatives, these are the first such negotiations since Sharif took office last June. Over the past month or so, intermediaries representing the two sides have met and laid the groundwork for the talks.

Maulana Samiul Haq, one of the Taliban negotiators, said the discussions lasted for seven hours and would resume later in the week. Haq, a cleric, said the talks were fruitful and helped the two sides understand each other better.

The Taliban spokesman, Shahidullah Shahid, also cast the meeting in a positive light.

"The talks with the government team were held in a cordial atmosphere today. The two sides discussed all the issues, including how to exchange each other's prisoners and continue the cease-fire," he said. Shahid said the Taliban treated the government team as "guests" and that the team was on its way to a safe location.

Information Minister Pervaiz Rashid did not share any details, saying only that "the government team is there for the talks with the Taliban, and the peace process is progressing well."

Earlier, Ibrahim Khan, a professor and a cleric who has represented the Tehrik-e-Taliban Pakistan -- as the Pakistani Taliban is formally called -- told reporters that the face-to-face discussions were aimed at ending the violence.

The talks were originally to have taken place on Tuesday, but bad weather prevented the government team, headed by Secretary for Port and Shipping Habibullah Khan Khattak, from travelling by helicopter to the northwest.

The negotiations come at a sensitive time for Pakistan, where daily militant attacks challenge the government's authority.

The Taliban, who operate in the northwest, have announced a cease-fire during the talks, but attacks claimed by their splinter groups have continued. Shahid, the TTP spokesman, has denied the group's involvement in the recent violence.

The main challenges of negotiating a peace settlement are the many groups and factions behind the violence. Many groups operate independently of the Taliban, including both local and foreign al Qaeda-linked militant outfits.

Before Wednesday, the two sides held only indirect talks, with the Taliban represented by Khan and Haq.

The Pakistani and Afghan Taliban share a similar ideology, but the Pakistani Taliban have a separate leadership structure and focus their efforts on attacking the Pakistani government and trying to impose their harsh form of Islam in the country. The Afghan and U.S. governments have held indirect talks through intermediaries with the Afghan Taliban.