After the police moved in, one weeping woman was helped out by the officers and at least two other people were wheeled out on stretchers.
The dramatic scene unfolded shortly after the gunman was identified by local media as Iranian-born Man Haron Monis, who is facing charges including sexual assault and accessory to murder in separate cases.
Monis has long been on officials' radar. Last year, he was sentenced to 300 hours of community service for writing offensive letters to families of soldiers killed in Afghanistan. He was later charged with being an accessory to the murder of his ex-wife. Earlier this year, he was charged with the sexual assault of a woman in 2002. He has been out on bail on the charges.
"This is a one-off random individual. It's not a concerted terrorism event or act. It's a damaged goods individual who's done something outrageous," his former lawyer, Manny Conditsis, told Australian Broadcasting Corp.
"His ideology is just so strong and so powerful that it clouds his vision for common sense and objectiveness," Conditsis said.
Police storm cafe
An Associated Press photographer near the scene heard a loud bang and saw five or six hostages running out of the Lindt Chocolat Cafe in downtown Sydney early this morning.
Five other hostages ran out of the cafe earlier on Monday.
A man in a white shirt came out of the cafe with his arms raised. He dropped to the floor and was searched by police before being whisked away.
Meanwhile, a handful of hostages ran from the scene.
Seconds later, there were volleys of gunshots around the café.
Witnesses said several people had been carried out of the café on stretchers. Initial reports were that four people had been injured in the gun battle.
Sky News is reporting one of its journalists has seen an injured policeman being carried from the café and there is blood coming from his head.
Police reveal gunman is Iranian cleric
Police and media have named the gunman thought responsible for the Sydney siege as an unstable self-styled Iranian cleric who once sent poison letters to the family of Diggers who died in Afghanistan and has been charged over the murder of his wife.
Man Haron Monis, 49, a self-proclaimed sheik, became infamous after sending offensive letters to the grieving families of seven Australian soldiers killed in Afghanistan between 2007 and 2009.
Last year he was accused of assisting in the brutal killing of his ex-wife but was granted bail along with his current partner, who is accused of her murder.
Monis was charged with being an accessory before and after the fact to the murder of mother-of-two Noleen Hayson Pal.
His current partner, Amirah Droudis, 34, has been charged with the murder after 30-year-old Ms Pal was stabbed multiple times and set alight in a western Sydney unit block.
Recently he was charged with more than 50 counts of indecent and sexual assault from when he was a self-proclaimed "spiritual healer" in Sydney ten years ago.
He was born in Iran but came to Australia in 1996 and has been living in Sydney since.
The revelations made around 3am New Zealand Time came after an extraordinary day when a gunman, now believed to be Monis, seized hostages in a chocolate shop and cafe in central Sydney.
Five people have emerged from the Lindt Cafe in Martin Place but an unknown number remain inside.
They are being held by the gunman who has forced them to display an Islamic flag.
Police are still treating the incident as a hostage negotiation but have said they are responding to it as if it was a terrorist event and were prepared for anything that might eventuate.
Police: We want hostages out safely
Tonight, NSW Police Commissioner Andrew Scipione said: "Our only goal tonight and for as long as it takes is to get these people out safely."
He said police and security services were doing "absolutely all we can" and, speaking directly to the hostages, said they were doing "everything we can to set you free".
Mr Scipione would not say how many hostages remained inside the cafe and would not discuss police tactics to free them.
He repeated an earlier statement that the "best negotiators in the world" were working to get the hostages released.
The lights in the cafe were switched off, as night fell in the city.
Late on Monday Network Ten reported two women held inside the cafe had relayed demands from the gunman directly to the network.
The gunman, who calls himself "the brother", had reportedly demanded a flag of terrorist organisation Islamic State be delivered to the cafe and wants to speak with Prime Minister Tony Abbott.
The women reportedly said the man claimed to have four bombs - two in the cafe and two at other locations in the city.
Network Ten said the two women inside the cafe were "hysterical" and believed they were in "immediate danger".
Large numbers of heavily armed and armoured police are holding positions outside the cafe where a morning coffee turned into a terrifying ordeal for patrons at around 9.45am (11.45am NZT).
It is not clear whether the man released the five people or they escaped.
Three men ran from the Lindt chocolate cafe at around 3.30pm, two running from the front door and one scrambling through a fire exit, to take shelter behind a group of armed police.
Two women, both with fear visible on their faces, sprinted to waiting police about 90 minutes later.
7News journalist Chris Reason tweeted that from inside the Martin Place newsroom they could see the gunman rotating hostages and forcing them to stand against windows, for up to two hours at a time.
A short time ago, he said all the hostages were huddled at one end of the Lindt Cafe, with one covering the window at that end with an apron.
"From inside Martin Place newsroom, we've counted around 15 hostages - not 50 - mix of women, men, young, old - but no children.
"We can see the faces of hostages - pained, strained, eyes red and raw. One young am with head in hands."
New South Wales Police Deputy Commissioner Catherine Burn confirmed that the first three escapees were being checked for any injuries before they spoke to police.
"We do not have any information that suggests that anybody is harmed at this stage," she said.
Ms Burn said the number of hostages in the Martin Place cafe was not clear but it was fewer than 30.
Morning coffee stop horror
The development came hours after a gunman entered the Lindt Chocolat Cafe in Martin Place, a plaza in the heart of the city's financial and shopping district that is packed with holiday shoppers this time of year.
Many of those inside the cafe would have been taken hostage as they stopped in for their morning coffees.
Witnesses described how a man wearing a headband covered in Arabic walked into the Lindt cafe in Martin Place and produced a shotgun from a blue bag at around 9.45am.
Shortly afterwards hostages were seen with their hands pressed against the windows holding up the Shahada flag belonging to the extremist group Jabhat al-Nusra, which is fighting the Assad government in Syria.
There were claims that the hostage takers are also armed with a machete and may have explosives but this has not been confirmed by police.
Craig Stoker, a father of four from Eastlakes, told the Daily Telegraph newspaper he bumped into a man wearing a black T-shirt with white writing on it and a headband and carrying a blue bag.
"The bag bumped into me and there was something hard in it. I said 'watch where you are f**king going'.
"He turned round and said 'do you want me to shoot you too?.' I looked into his eyes and they were crazy. I was pretty freaked out."
Armed police patrol in Sydney. Photo / Getty Images
'I'm okay, can't talk'
The mother of a young man trapped inside the Lindt Cafe told radio station 2GB her son had texted her while being held hostage, the Daily Telegraph reported.
The woman said she received a text message from her son at 3pm that said: "Mum I'm in the Lindt cafe in Sydney."
She said her "heart stopped", the Daily Telegraph reported.
The woman said she then sent a text message back asking if he was okay.
He replied: "I'm okay mum, can't talk".
The fiancee of one of the hostages has spoken to the Guardian Australia, which has chosen not to name the man or his partner.
"She's the sweetest person ever, who thinks about everyone," the man said.
"She took some of my old shoes and made me wash them and she gave them to a homeless guy. She just cares about everyone."
The woman had worked at the cafe for six months, he said.
Photo / Channel 7 / Twitter
New Zealand's Ministry of Foreign Affairs and Trade said it remained unclear whether any New Zealanders were involved in the siege as of about 9pm today.
"As this is an evolving situation, it is unclear at this point whether any New Zealanders are involved," the ministry said in a statement.
"New Zealanders in central Sydney are advised to follow the advice of local authorities and keep their family in NZ informed of their well-being."
Earlier this afternoon, New South Wales police commissioner Andrew Scipione said it was unknown how many hostages had been taken.
"This is a difficult day for everyone who's involved. I can confirm that we have an armed offender in premises holding an undisclosed number of hostages in the city marketplace area.
"Police have been in attendance and have controlled the situation from very early this morning, shortly after it was advised.
"We are at this stage continuing to secure and make sure we're doing all that we can to bring this to a peaceful outcome, we want this matter resolved peacefully and we will do all we need to to ensure that.
"We will work as long as we need to to bring this to an outcome. The officers that are there are well trained and professional, they know what they're doing, they have trained for this and I'm sure that they will get through and this will be an outcome that will be positive."
A number of other incidents to occur in Sydney today were not connected with the hostage event, Mr Scipione said.
"The city is still operating and will continue to operate until we need to change that. At this stage, it is well contained. Our thoughts, our prayers go out to those who are caught up in this. We are doing absolutely everything we can to resolve it."
The Sydney Opera House, which was earlier evacuated, has been cleared by police, the Guardian Australia reported.
Police were not currently responding to any incidents at the famous Sydney landmark, a spokeswoman told the newspaper. However, it is still sealed off. Some contractors and performers have been allowed back inside.
It is still not clear why it was evacuated.
Armed police evacuates office staff next to a cafe in the central business district of Sydney. Photo / Getty Images
The cafe incident had yet to be tagged as a terrorist attack, but that had not been ruled out, Mr Scipione said. There was at least one offender, he said.
Lindt Australia CEO Steve Loane estimated there were up to 50 people being held.
Lindt Chocolate Cafe Australia has released a statement on the siege, saying it has closed all its cafes in Australia because of the "serious" situation.
"We would like to thank everyone for their thoughts and kind support over the current situation at the Lindt Chocolate Cafe at Martin Place," the statement said.
"We are deeply concerned over this serious incident and our thoughts and prayers are with the staff and customers involved and all their friends and families. The matter is being dealt with by the authorities and we are waiting for any updates from them."
Read more:
• Live updates
• Live stream
• Sydney siege photos
• Kiwis speak from Sydney siege scene
City centre shut down
Armed police sealed off streets around the cafe and shut Martin Place station. Planes have been diverted away from the city centre.
Martin Place was shut down and scores of police surrounded the building after the alarm was raised about 9.45am (11.45am NZT).
An Islamic flag - black with white writing on it - was held up to the glass.
Firemen are seen at a barricade on Castlereigh Street in Sydney. Photo / Getty Images
Australian Prime Minister Tony Abbott told a press conference this afternoon that it was unknown if the hostage situation was politically motivated "although obviously there are some indications that it could be".
"We have to appreciate that even in a society such as ours, there are people who would wish to do us harm. That's why we have police and security organisations of the utmost professionalism that are ready and able to respond to a whole range of situations and contingencies, including the situation that we are now seeing in Sydney.
"The whole point of politically motivated violence is to scare people out of being themselves. Australia is a peaceful, open, generous society - nothing should ever change that and that's why I would urge all Australians today to go about their business as usual."
Armed police are seen outside a cafe in the central business district of Sydney. Photo / Getty Images
Australia's National Security Committee of the Cabinet had been briefed on the incident, Mr Abbott said.
"This is an unfolding situation and as the situation unfolds there will be operational updates provided by the New South Wales police."
Australia's ordinary business of government would continue in spite of the hostage situation, he said.
"This is a very disturbing incident. I can understand the concerns and anxieties of the Australian people at a time like this, but our thoughts and prayers must above all go out to the individuals who are caught up in this.
"I can think of almost nothing more distressing, more terrifying than to be caught up in such a situation and our hearts go out to those people."
A man is surrounded by police and what appears to be a small gun underneath an officer's foot near the scene of a tense siege in Martin Place in Sydney. Photo / AAP
Automatic doors disabled
The Seven Network newsroom, which is in a building opposite the cafe, has also been evacuated.
Journalist Chris Kenny, who was in the shop about 20 minutes before the siege began, said he understood the automatic glass sliding doors had been disabled.
"I did speak to a couple of people who saw a bit more of this unfold than I did," he said.
"One woman said she tried to go into the shop just after I came out with my takeaway coffee but the doors wouldn't open.
"So obviously whoever is doing this has disabled the automatic glass sliding doors to stop anyone else going in and she said immediately she could see there was a weapon.
"She mentioned it being taken out of a blue bag and people were straight away asked to put up their hands."
Nathan Grivas, who works at Lindt Cafe, told the Guardian Australia that he arrived for work shortly after the siege started.
"It was already locked [when I got there]," he said. "I didn't get a good look at them. As soon as I saw the gun all I wanted to do was get out."
One of the hostages had looked at him, he said. He also saw one of his colleagues pressed up against a window.
"Luckily I didn't start at 9am today. Hopefully they'll be ok."
Another Lindt cafe employee, who was due to start her shift just an hour after the Sydney hostage drama unfolded, says she's "shaking with fear".
Kathryn Chee, a chocolatier at Lindt's Martin Place cafe says she meant to turn up early for her 11am shift because the business had been so busy in the lead