In the years 1977–1978 he was a co-organiser of the Free Trade Unions of the Coast, "the cradle of Solidarity," established by Andrzej Gwiiazda, Krzysztof Wyszkowski and Antoni Sokolowski.
He was the point of contact for the opposition in Gdansk—a recruiting and networking role similar to Jacek Kuron in Warsaw—and a principal organiser of the August 1980 strike in the Gdańsk Shipyard which led to the formation of the Solidarity trade union, and a co-author of the strikers postulates.
After the institution of martial law by the regime on 13 December 1981, he spent more than four years hiding from the authorities and organising the underground structures of the then-outlawed Solidarity trade union.
In 1983, he secretly married fellow activist Alina Pienkowska, an underground event cited in Andrzej Wajda's Man of Iron starring Lech Walesa and Anna Walentynowicz.
He supported the May and August strikes in the Gdańsk Shipyard in that year but, along with many Solidarity leaders, he initially opposed the round table compromise believing communism would crumble.
In the first term (1991–1993), the leader of the Solidarity party, and the chairman of the commission studying the consequences of the Martial Law period.
During the third term (1997–2000) in the Jerzy Buzek government, he was the Deputy Minister of Internal Affairs and Administration (in charge of the police force).
He was chosen a senator in the 2005 parliamentary election, running as an independent but supported by both the Law and Justice (PiS) and Civic Platform (PO) parties.