The opposition objects to government plans to limit the number of journalists allowed to cover parliamentary proceedings.
The lawmakers’ protest delayed a budget vote, which was later held away from the main parliament chamber.
Hundreds of police surrounded protesters in a late-night stand-off.
Jaroslaw Kaczynski, leader of the right-wing Law and Justice party (PiS), earlier denounced the protest as “hooliganism”.
“We will not allow ourselves to be terrorized,” he said.
Jaroslaw Kaczynski left parliament with the PiS PM Beata Szydlo at about 03:00AM local time.
Opposition lawmaker Jerzy Meysztowicz told the TVN24 news channel that police used tear gas to clear a passage through protesters for their official vehicle.
The opposition accused the government of passing 2017 budget unlawfully on December 16 by transferring the key vote to a smaller hall and excluding the press.
It was the first since the restoration of democracy in 1989 that such a vote was held outside the main chamber of parliament.
Enough lawmakers were present for the budget vote to be valid, according to Jaroslaw Kaczynski and other PiS members, but the opposition demanded a rerun of the vote in the main parliament chamber next week.
“There is no proof that a quorum of lawmakers was present. We suspect that people who were not allowed to vote took part,” said leader of the opposition Nowoczesna party Ryszard Petru.
The ruling party has been accused of restricting press freedom since coming to power in 2015.
In 2017 only a few reporters will be allowed into parliament.
Only five selected Polish TV stations will be permitted to make recordings of parliamentary sessions.
The government argues that it does not believe the measures are restrictive.
Supporters of the move argue it will stop lawmakers from being accosted by journalists inside the parliamentary building.
Last night’s demonstration began when an opposition lawmaker held aloft a placard reading “free media”.
He was told by Speaker Marek Kuchcinski, who is a PiS member, that he would no longer be allowed to attend parliamentary proceedings.
However, by then other opposition lawmakers converged on the podium to demand press freedom and an end to censorship.
It is believed to be the first protest of its kind in the Polish parliament for 10 years.
The proposed new rules – due to be enforced in 2017 – ban all recording of parliamentary sessions except by the five selected television stations. They also restrict the number of reporters permitted to enter the building.
Human rights campaigners have also condemned the plans, with former dissident Seweryn Blumsztajn condemning them as a “return to communist-era practices”.
The US House Ethics Committee has voted to release its report on former Republican Representative…
ABC News has agreed to pay $15 million to President-elect Donald Trump to settle a…
South Korea’s parliament has voted to impeach President Yoon Suk Yeol over his failed attempt…
Israeli war planes have carried out more than 100 air strikes in Syria on December…
President-elect Donald Trump has threatened to impose 100% tariffs on the BRICS countries if they…
Syrian troops have withdrawn from the city of Aleppo following an offensive by rebels opposed…