Gunmen have stormed a popular cafe in the diplomatic area of the Bangladeshi capital, Dhaka, taking a number of hostages, officials say.
Several foreigners are among those being held by eight or nine armed men in the city's Gulshan district, they add.
Two police officers have been killed in a gun battle, a spokesman said, and about 30 others injured.
So-called Islamic State has said it carried out the attack.
A statement on the group's self-styled news agency Amaq said militants had attacked a restaurant "frequented by foreigners". It said that more than 20 people "of different nationalities" had been killed but this has not been confirmed.
Security forces say they are trying to negotiate the hostages' release.
Initial reports said that as many as 20 foreigners were among those taken captive.
Italian nationals are believed to be among them, a source at the Italian foreign ministry said, quoted by Reuters.
Image copyright AP Image caption Passers-by helped to carry the injured away from the Holey Artisan Bakery "We want to resolve this peacefully. We are trying to talk to the attackers," said Benazir Ahmed, chief of the Rapid Action Battalion, Bangladesh's elite police force.
"Our first priority is to save the lives of the people trapped inside."
Police said the gunmen burst into the Holey Artisan Bakery cafe at about 21:20 (13:20 GMT) and opened fire.
The cafe is described as being popular with expatriates, diplomats and middle-class families.
Image copyright Reuters Image caption A Dhaka hospital said about 30 police officers had been injured Image copyright Getty Images Image caption Police and officers of Bangladesh's Rapid Action Battalion are at the scene
Media reports quoted witnesses as saying that "Allahu Akbar", meaning "God is greatest", was heard as the attack took place.
An eyewitness said she heard a loud noise, followed by continuous gunfire.
"The glass of my drawing room shattered," Rashila Rahim said.
"My auntie, her daughter and two friends went there for Iftar (breaking of the Ramadan fasting) and they have not come back. We cannot even check where they are."
Another local resident, Tarique Mir, said he could hear sporadic gunfire nearly three hours after the attack began.
"It is chaos out there. The streets are blocked. There are dozens of police commandos," he said.
BBC South Asia editor Jill McGivering says that although high-profile gun attacks are rare in Bangladesh, the latest incident follows a series of murders widely blamed on Islamist extremists.
Are you in the area? Have you been affected? You can share your experience by emailing haveyoursay@bbc.co.uk.
Please include a contact number if you are willing to speak to a BBC journalist. You can also contact us in the following ways:
Or use the form below
Your contact details Name Your E-mail address (required) Town & Country Your telephone number Comments (required) If you are happy to be contacted by a BBC journalist please leave a telephone number that we can contact you on. In some cases a selection of your comments will be published, displaying your name as you provide it and location, unless you state otherwise. Your contact details will never be published. When sending us pictures, video or eyewitness accounts at no time should you endanger yourself or others, take any unnecessary risks or infringe any laws. Please ensure you have read the terms and conditions.
Terms and conditions
Share this story About sharing
More on this story
Asia
Thousands at HK pro-democracy protest
Full article Thousands at HK pro-democracy protest
Image gallery
Image gallery Mongolia snap bags top photography prize
Full article Mongolia snap bags top photography prize
One killed by Taiwan accidental missile
Full article One killed by Taiwan accidental missile
Top Stories
Hostage crisis in Bangladeshi capital Gunmen storm a cafe and seize hostages including foreigners in the Bangladeshi capital, Dhaka, in an attack claimed by Islamic State.
1 hour ago
EU, UK officials clash on Brexit talks 8 hours ago
Somme fallen honoured 100 years on 3 hours ago
Features & Analysis
Predicting the internet
What Alvin Toffler got right - and wrong
Video
What's in a label?
Vermont GM food law makes US-wide change
Settlement question
Blame and bitterness keeping Middle East peace at bay
Who are you again?
I can't recognise faces - even my Mum's
Aliens of Oz
PM reimagined as monsters from outer space
Video 1:38
'Iranian Hulk'
The giant Iranian social media star who wants to fight in Syria
7 days quiz
Who joined Chris Martin on stage at Glastonbury?
'Rest in peace'
Lives of the victims of attack on Istanbul airport
Paralysed politics
Haiti's healthcare in a vacuum
Most Popular popular
Most read
Several foreigners are among those being held by eight or nine armed men in the city's Gulshan district, they add.
Two police officers have been killed in a gun battle, a spokesman said, and about 30 others injured.
So-called Islamic State has said it carried out the attack.
A statement on the group's self-styled news agency Amaq said militants had attacked a restaurant "frequented by foreigners". It said that more than 20 people "of different nationalities" had been killed but this has not been confirmed.
Security forces say they are trying to negotiate the hostages' release.
Initial reports said that as many as 20 foreigners were among those taken captive.
Italian nationals are believed to be among them, a source at the Italian foreign ministry said, quoted by Reuters.
Image copyright AP Image caption Passers-by helped to carry the injured away from the Holey Artisan Bakery "We want to resolve this peacefully. We are trying to talk to the attackers," said Benazir Ahmed, chief of the Rapid Action Battalion, Bangladesh's elite police force.
"Our first priority is to save the lives of the people trapped inside."
Police said the gunmen burst into the Holey Artisan Bakery cafe at about 21:20 (13:20 GMT) and opened fire.
The cafe is described as being popular with expatriates, diplomats and middle-class families.
Image copyright Reuters Image caption A Dhaka hospital said about 30 police officers had been injured Image copyright Getty Images Image caption Police and officers of Bangladesh's Rapid Action Battalion are at the scene
Media reports quoted witnesses as saying that "Allahu Akbar", meaning "God is greatest", was heard as the attack took place.
An eyewitness said she heard a loud noise, followed by continuous gunfire.
"The glass of my drawing room shattered," Rashila Rahim said.
"My auntie, her daughter and two friends went there for Iftar (breaking of the Ramadan fasting) and they have not come back. We cannot even check where they are."
Another local resident, Tarique Mir, said he could hear sporadic gunfire nearly three hours after the attack began.
"It is chaos out there. The streets are blocked. There are dozens of police commandos," he said.
BBC South Asia editor Jill McGivering says that although high-profile gun attacks are rare in Bangladesh, the latest incident follows a series of murders widely blamed on Islamist extremists.
Are you in the area? Have you been affected? You can share your experience by emailing haveyoursay@bbc.co.uk.
Please include a contact number if you are willing to speak to a BBC journalist. You can also contact us in the following ways:
- Whatsapp: +44 7525 900971
- Send pictures/video to yourpics@bbc.co.uk
- Upload your pictures / video here
- Tweet: @BBC_HaveYourSay
- Send an SMS or MMS to +44 7624 800 100
Or use the form below
Your contact details Name Your E-mail address (required) Town & Country Your telephone number Comments (required) If you are happy to be contacted by a BBC journalist please leave a telephone number that we can contact you on. In some cases a selection of your comments will be published, displaying your name as you provide it and location, unless you state otherwise. Your contact details will never be published. When sending us pictures, video or eyewitness accounts at no time should you endanger yourself or others, take any unnecessary risks or infringe any laws. Please ensure you have read the terms and conditions.
Terms and conditions
Share this story About sharing
- Is violent extremism on the rise in Bangladesh?
5 May 2016
- Bangladesh: Lurching from secularism to sectarian terror?
1 December 2015
- Bangladesh profile - Overview
1 December 2015
Asia
Thousands at HK pro-democracy protest
- 1 July 2016
- From the section China
Full article Thousands at HK pro-democracy protest
Image gallery
Image gallery Mongolia snap bags top photography prize
- 1 July 2016
- From the section In Pictures
Full article Mongolia snap bags top photography prize
One killed by Taiwan accidental missile
- 1 July 2016
- From the section Asia
Full article One killed by Taiwan accidental missile
Top Stories
Hostage crisis in Bangladeshi capital Gunmen storm a cafe and seize hostages including foreigners in the Bangladeshi capital, Dhaka, in an attack claimed by Islamic State.
1 hour ago
EU, UK officials clash on Brexit talks 8 hours ago
Somme fallen honoured 100 years on 3 hours ago
Features & Analysis
Predicting the internet
What Alvin Toffler got right - and wrong
Video
What's in a label?
Vermont GM food law makes US-wide change
Settlement question
Blame and bitterness keeping Middle East peace at bay
Who are you again?
I can't recognise faces - even my Mum's
Aliens of Oz
PM reimagined as monsters from outer space
Video 1:38
'Iranian Hulk'
The giant Iranian social media star who wants to fight in Syria
7 days quiz
Who joined Chris Martin on stage at Glastonbury?
'Rest in peace'
Lives of the victims of attack on Istanbul airport
Paralysed politics
Haiti's healthcare in a vacuum
Most Popular popular
Most read
- 1 Hostage crisis in Bangladeshi capital
- 2 US strikes 'killed dozens of civilians'
- 3 Somme fallen honoured 100 years on
- 4 Gove: I want to be PM to change country
- 5 Indian official resigns over 'rape victim selfie'
- 6 EU, UK officials clash on Brexit talks
- 7 Court overturns Austria presidential poll
- 8 Rebels 'kill' Syria pilot after crash
- 9 Osborne abandons budget surplus target
- 10 US investigates fatal Tesla crash

Comment