 Both times he was a candidate of the Law and Justice party.From 7 February 2007 until 16 November 2007 he was Minister of National Defence in the cabinet of Jarosław Kaczyński.From 15 January 2009 until his death he was the chief of the National Security Bureau.