Police have identified the attacker as a 25-year-old Polish man but have not confirmed his name. He was shot during the arrest, survived and was taken into custody.
The shooting happened in one of the largest medieval squares in Europe, a busy location and a popular destination for tourists.
The gunman was suspected of having ties to the far right. Polish media reported that he had a firearms permit and may have obtained the weapons from his family home.
Six people — four women and two men — were confirmed killed, including a foreign national. Polish authorities have not confirmed the names and ages of the other victims.
At least six people were killed and several others injured after a gunman opened fire in central Krakow, Poland's second-largest city.
A couple were outside St Mary's Basilica, in a corner of the square, when the shooting started.
Sixteen people, including five foreigners and the attacker, were taken to hospital.
Police said a man drove into the square before beginning to fire"at random people from his car". A police spokesperson said the suspect was wearing"military-style attire"and had a military-grade weapon. He was also described as being in military fatigues. A Polish government minister said one of the police officers was in a"very critical condition"after being shot three times while arresting the attacker.