Mohamed Brahmi, 58, led the nationalist Movement of the People party.
It is the second time an opposition party leader has been killed this year.
In February, prominent secular politician Chokri Belaid was also shot outside his house in Tunis. His murder sparked protests and forced PM Hamadi Jebali to resign.
An uprising in Tunisia in late 2010 kick-started a series of revolutions that spread through the Middle East and became known as the Arab Spring.
Gunmen on a motorbike shot Mohamed Brahmi in his car in front of his wife and daughter on Thursday morning, Movement of the People party officials said.
Local media said the assailants fired 11 bullets at the politician. It is not known yet who was behind the attack.
Mohamed Brahmi’s wife, Mbarka, said a “criminal gang has killed the free voice of Brahmi”.
Mbarka Brahmi and her daughter Belkis were joined by angry Tunisians outside the hospital in Ariana where the politician died.
Large crowds also gathered outside the Ministry of Interior in Tunis in protest at the killing.
There are also reports of demonstrators converging in the city of Sidi Bouzid, Mohamed Brahmi’s hometown and the birthplace of the Arab Spring.
“People have blocked roads and set tyres alight,” a local resident told the Reuters news agency.
The governing Islamist Ennahda party expressed “sadness and shock” at the assassination, which it described as a “cowardly and despicable crime”.
The killing came as Tunisia celebrated the 56th anniversary of becoming a republic after gaining independence from France.
French President Francois Hollande condemned Mohamed Brahmi’s murder and called on Tunisians to unite behind the democratic transition.
Mohamed Brahmi founded the Movement of the People party after the 2011 revolution.
He was also a member of the National Constituent Assembly, which is drafting a new constitution.
The assembly announced Friday would be a day of mourning.
Mohamed Brahmi was not as big a political figure as Chokri Belaid, but he too was a leftist critical of Ennahda.
Ennahda came to power following the overthrow of long-term ruler Zine al-Abidine Ben Ali in January 2011.
The party has faced growing popular unrest over a faltering economy and a rising extremist Islamist movement.
After Chokri Belaid’s assassination in February, many Tunisians accused Ennahda of not doing enough to stamp out a rise in Islamist violence, with some critics saying the party was actively fomenting it, correspondents say.
The party denied the accusations.
KieyjV2OYzMImage source: Wikimedia Commons President-elect Donald Trump celebrated his election victory at the Ultimate Fighting…
Millions of voters across the US chose to return Donald Trump to the White House…
Donald Trump declares victory in the US election as he addresses jubilant supporters in Florida.…
Stocks around the world are rising as Donald Trump appears to be on the cusp…
Donald Trump has won Pennsylvania, North Carolina and Georgia and taken a lead over Kamala…
Quincy Jones, the celebrated musician and producer who worked with Michael Jackson, Frank Sinatra, Ray…