The Ministry of Public Security (Polish: Ministerstwo Bezpieczeństwa Publicznego), was the secret police, intelligence and counter-espionage agency operating in the Polish People's Republic. From 1945 to 1954 it was known as the Security Office (Urząd Bezpieczeństwa, UB), and from 1956 to 1990 as the Security Service (Służba Bezpieczeństwa, SB).
The initial UB was headed by Public Security General Stanisław Radkiewicz and supervised by Jakub Berman of the Polish Politburo. The main goal of the Department of Security was the swift eradication of anti-communist structures and socio-political base of the Polish Underground State, as well as the persecution of former underground soldiers of the Home Army (Armia Krajowa) and later anti-communist organizations like Freedom and Independence (WiN).