Investigations are still ongoing but a police officer on a condition of anonymity told The Associated Press: "This is a local incident. It has nothing to do with Islamists or terrorism."
Forensic teams could be seen going in and out of the cafe collecting evidence.
The attack comes a day after the town concluded celebrations of Fasnacht, the largest carnival in Switzerland.
Two men shot dead two people and seriously injured a third today at a cafe in Basel, north-west Switzerland, police said as they hunt for the suspects.
“Two men came into Cafe 56” around 8.15 pm local time “and fired several rounds of shots,” police said in a statement, without providing information on a possible motive.
“Two customers were killed. Another is in a critical condition.”
The assailants were on the run following the shooting, according to police, who said they had headed in the direction of the railway station after the attack.
“The reason behind the attack is not yet known and will be investigated,” the Basel prosecutor's office said in a statement.
The road next to the cafe was closed and traffic redirected.
Shootings are rare in Switzerland, but men who have done military service are allowed to keep their weapons at home. This right has been controversial as sometimes weapons are used at home in domestic incidents.
The number of weapons held at home is believed to be two million for a population of eight million, according to Swiss press.
(With agency inputs)