British Prime Minister Gordon Brown held private talks on Afghanistan with top US military commander General David Petraeus on Friday, Brown's office said, AFP reported.
Brown held a private meeting at his home in Scotland with the US central command chief, Downing Street said. The pair discussed Thursday's Afghan presidential elections.
Brown is spending his summer holiday at his constituency home in North Queensferry, near Edinburgh.
"The prime minister welcomed General Petraeus back to the UK earlier today," a spokesman said.
"They had a good meeting and discussed a wide range of issues including the latest situation in Afghanistan and in particular the elections.
"General Petraeus took the opportunity to praise the role UK forces are playing in Afghanistan."
Petraeus said: "British troops have been in a very tough place and they have done exceedingly well.
"It is enormously important we achieve our objective in Afghanistan, and ensure it does not again become a sanctuary for Al-Qaeda and other extremists," he told The Sun newspaper.
Britain's Ministry of Defence announced earlier that two British soldiers were killed in an explosion while on a routine foot patrol in southern Afghanistan's Helmand Province.
The deaths take the number of British fatalities since the US-led invasion of Afghanistan in 2001 to 206.
British losses have increased sharply since the start of July when elements of Britain's 9,150-strong force joined with Afghan counterparts to launch an operation against Taliban insurgents in Helmand.
The bodies of four soldiers were returned to Britain on Friday.
Foreign Secretary David Miliband praised the "enormous bravery" of Afghans who defied Taliban threats and voted.
"We were all braced for the worst after the very difficult six weeks in the run-up to the election," he told BBC radio.
"The worst did not happen but we don't yet know how good it was in terms of the ability of Afghans to come out and vote.
"What's vital is that there is a credible Afghan government to which Afghans can commit their loyalty."