Trump praises Pakistan's role in 'progress' on Afghan peace
Trump was speaking from the Oval Office alongside Pakistan's Prime Minister Imran Khan, who is on his first official visit to Washington seeking to revive a fractured relationship.
Pakistan was the Taliban's chief sponsor when it took power in neighboring Afghanistan during the 1990s.
Its influence over the group, which has waged an insurgency since it was ousted from power by US-led forces in 2001, is seen as key in facilitating a political settlement with the government of President Ashraf Ghani.
"We've made a lot of progress over the last couple of weeks, and Pakistan has helped us with that progress," said Trump.
"A lot of things are happening for the United States, and I think a lot of great things are going to be happening for Pakistan under your leadership," he added as he turned to face his counterpart, in an encounter filled with smiles and mutual praise.
The warm words signaled a clear reversal for the Republican president, who has in the past accused Pakistan of being duplicitous and last year cut $300 million in security aid.
Trump took personal credit for the apparent revival of Pakistani cooperation, telling reporters: "I don't think Pakistan respected the United States, I don't think Pakistan respected its presidents."
'Wiped off face of Earth'
Khan, for his part, said: "I am one of those who always believed there was no military solution," adding: "I have to compliment President Trump, because he has now forced people to end the war."
Following an exchange with a reporter, Trump also said he had been asked to mediate the decades-long Kashmir conflict by Indian Prime Minister Narendra Modi and would be happy to help, but his claim was swiftly denied by New Delhi.
The United States is pressing for a political agreement with the Taliban before presidential voting in Afghanistan in late September. This would clear the way for most US troops to withdraw from Afghanistan and bring an end to America's longest war.
But Trump warned: "If we wanted to fight a war in Afghanistan and win it, I could win that war in a week... Afghanistan would be wiped off the face of the Earth."
The US and Afghanistan have in the past accused Islamabad of supporting armed extremist groups such as the Haqqani network, which is an ally of the Taliban.
The claims are denied by Pakistan and Washington has also softened its rhetoric amid the ongoing peace process.
Days before Khan's visit, Pakistani authorities detained Hafiz Saeed, the alleged mastermind of the 2008 Mumbai attacks, in a move hailed by Trump as a result of the pressure applied by his administration - though he has been arrested and let go in the past.
What Pakistan wants
Shamila Chaudhary, a senior fellow at the New America think tank and a former National Security Council official, told AFP that Khan's visit amounted to "a reward for good behavior for following through on the Taliban talks."
"It will boost Imran Khan's standing, both at home and internationally, (and) also opens up political space for him not to be seen as a pariah of the United States."
Islamabad want to shore up relations with Washington after years of discord following the discovery of 9/11 architect Osama Bin Laden on Pakistani soil, where he was killed in a US raid in 2011.
The IMF has just approved a $6 billion loan to help right Pakistan's faltering economy, and keeping the US onside is crucial in maintaining the flow of Western assistance, added Raza Rumi, a Pakistan expert at Ithaca College.
The interaction between the two leaders - both celebrities-turned-politicians whose love lives once made regular tabloid fare - had been the subject of much speculation.
But according to Chaudhary, the Trump-Khan encounter was in some ways a "formality" because it will be the meetings between the US and Pakistan's powerful army chief, General Qamar Javed Bajwa, who also traveled to Washington, where the "real substance... will be discussed."
Khan is seen as much closer to the army, which controls the country's foreign policy, than his recent predecessors, and the presence of Bajwa "gives a little more credibility to whatever message the Pakistanis are bringing," said Shuja Nawaz, a South Asia expert at the Atlantic Council.
A readout of the meeting by the White House said Trump hoped to "revive all aspects of the bilateral relationship," including new trade deals and "strong military-to-military ties."
The latter move would be welcomed by Pakistan's military, which is keen to access US military hardware and restart security aid, said the analysts.