"I have made it clear that even as the US works with Pakistan to meet the threat of terrorism, safe havens within Pakistan are not acceptable and that those behind the Mumbai terrorist attack must face justice," Obama said in an interview to India Today magazine which has been published in the upcoming issue of the weekly.
He said those killed in the Sep 11, 2001 terror attacks in the US included Indians and there were Americans among those who were killed in the Nov 26, 2008 Mumbai terror attack.
Pakistan Thursday banned Mumbai attack mastermind Hafeez Saeed-led Jamaat-ud-Dawa and slapped foreign travel restrictions on Saeed.
"On my previous visit to India, my first stop was the memorial at the Taj Hotel to pay my respects to the victims, meet with survivors and send a strong message to the Indian people that we stand together in defence of our security and our way of life," he added.
The US president said that like other people across the world, Indians and Americans were horrified at the senseless slaughter of so many students and teachers at a school in Peshawar in Pakistan Dec 16 last year, which was "a painful reminder that terrorists threaten us all".
"We have deepened our cooperation against terrorism, and we work together to prevent the spread of nuclear weapons," he said.