He said the US was mindful of Pakistani sovereignty but said the US could not allow “active plans to come to fruition without us taking some action”.
The killing of Bin Laden by US forces in a Pakistani garrison town on 2 May strained ties between the two allies.
President Obama was speaking to the BBC ahead of a European visit.
Asked what he would do if one of al-Qaeda’s top leaders, or the Taliban leader Mullah Omar, was tracked down to a location in Pakistan or another sovereign territory, he said the US would take unilateral action if required.
“Our job is to secure the United States,” he told the BBC’s Andrew Marr during a wide-ranging interview.
“We are very respectful of the sovereignty of Pakistan. But we cannot allow someone who is actively planning to kill our people or our allies’ people.
President Obama’s statement that he would be prepared to authorise further covert operations in Pakistan won’t go down well here.
Pakistanis were hugely embarrassed not just by the discovery of Osama Bin Laden in the country, but even more, it appears, by the fact it was a unilaterally US mission that killed him.
Since then, there have been demonstrations, particularly by religious parties, against American military attacks in Pakistan, including the drone strikes that continue to target militants near the Afghan border.
The government and the army have said Washington must involve Islamabad when they target high-profile al-Qaeda and Taliban figures in the future.
But many will feel the way the Bin Laden operation was carried out exposed the lack of trust the US president has in the Pakistani authorities. They may see his latest statement the same way.
Bin Laden, the Saudi-born leader of al-Qaeda, was killed in a raid by US Navy Seal commandos. They stormed the compound where he was living in Abbottabad, a town that is home to Pakistan’s main military academy.
The discovery that Bin Laden had been living there embarrassed the Pakistani military, and led to renewed suspicions that he had enjoyed protection from some members of the Pakistani security forces.
The Islamabad government strongly denied such suggestions and said the US raid had undermined the country’s sovereignty.
A resolution approved by Pakistani MPs earlier this month said the country would “no longer tolerate such actions and a repeat of unilateral measures could have dire consequences for peace and security in the region and the world”.
Pakistan has been a major ally in the war against militants in neighbouring Afghanistan.
But US-Pakistani relations have also been strained by drone strikes targeting militants in the border area in recent years.
Reflecting on the raid – which he and his aides followed from the White House – Mr Obama said “that was as long a 40 minutes as I care to experience during my presidency”.
He added that the killing of Bin Laden could be a “wake-up call where we start seeing a more effective co-
On Afghanistan, Mr Obama said that while the conflict could not be solved militarily, raising troop levels had put the Taliban “back on its heels” in a way that could facilitate the brokering of a political reconciliation.
President Obama on whether the Taliban have a future in Afghanistan
“Ultimately it means talking to the Taliban,” he said, adding that the “Taliban would have to cut all ties to al-Qaeda, renounce violence and they would have to respect the Afghan constitution”.
Afghan presidential spokesman Waheed Omar welcomed this suggestion, saying it reflected Kabul’s long-held view. “We’re glad that we now have clear words from the president of the United States about it,” Mr Omar told the BBC.
Restated that the 1967 border between Israel and the Palestinian territories must be the basis for negotiations to set up a future Palestinian state
Praised the popular uprisings across the Middle East, saying that as long as people struggled for democracy non-violently the US would be “strongly supportive of their efforts”
Described America’s economy as his “number-one focus” in the run-up to the 2012 presidential election; “My main concern day to day is how do we make sure the American economy is growing,” he said
President Obama is due to leave for Europe later on Sunday. He will first visit the Irish Republic, then the UK, France, and Poland.
He is expected to discuss a range of issues, including the upheavals in the Middle east and North Africa, the war in Afghanistan, and the downturn that has forced European governments to adopt austerity measures.