Catonsville, Maryland: US President Barack Obama has made his first visit to a US mosque in an effort to allay the fears of Americans accustomed to pop culture portrayals of Muslims as terrorists, and to reassure Muslim American youth about their place in the nation.
Mr Obama, declaring that attacks on Islam were an attack on all religions, decried the "inexcusable political rhetoric" against Muslims from Donald Trump and other Republican presidential candidates.
Obama visits mosque to promote unity
President Barack Obama makes his first visit to a US mosque, a trip the White House admits is aimed at countering rhetoric from Republicans on the campaign trail.
"We have to understand that an attack on one faith is an attack on all our faiths," he said at the mosque on the outskirts of Baltimore.
He said the mosque had received threats twice in the past year.
"When any religious group is targeted, we all have a responsibility to speak up."
Mr Trump, the Republican front runner, called for a temporary ban on Muslims entering the United States after authorities described a California couple who killed 14 people last December as radicalised Muslims inspired by Islamic State militants.
Mr Obama's visit was aimed at showing Americans another side of Islam.
Before he spoke, Cub Scouts, who attend a school run by the mosque, carried the American and Maryland state flags into the prayer hall, a plain room save for three rows of window panes, 99 in all, each depicting one of the names of Allah in Arabic.
"Think of your own church or synagogue or temple, and a mosque like this will be very familiar," said the President, who, following Islamic custom, took off his shoes to enter the hall.
The children led the audience, with some men in prayer caps and most women in headscarves, in the Pledge of Allegiance. A man and a woman recited a verse from the Koran about tolerance and inclusion.
Mr Obama, a Christian, outlined the tenets of Islam, and gave a brief history of Muslims in America.
He noted that founding father Thomas Jefferson specifically mentioned Muslims when he spoke about the American right to freedom of religion.
"Thomas Jefferson's opponents tried to stir things up by suggesting he was a Muslim, so I was not the first," Mr Obama said to a roar of laugher.
He has long been accused of secretly being a Muslim.
"I'm in good company," he said.
Mr Obama asked a row of Muslim-American military service members to stand, as well as Ibtihaj Muhammad, a member of the US fencing team. She will be the first American Olympian to compete in a hijab, or headscarf, at this year's Rio Olympics.
The President touched on pop culture depictions of Muslims as terrorists.
"Our television shows should have some Muslim characters that are unrelated to national security," he said.
Turning to extremist groups such as Islamic State and what he characterised as perverted versions of Islam portrayed by them, Mr Obama urged regular Muslims to "show who you are".
"To use a little Christian expression – let your light shine."
Later, he told a crowd of cheering children, who had packed the mosque's gymnasium to watch his speech on large screens, that one day they, too, could become president.
Mr Obama urged young Muslims not to embrace a world view that required them to choose between faith and patriotism.
"You fit in here. Right here," he said. "You're not Muslim or American. You're Muslim and American."