The Polish Border Guard (, also abbreviated as SG) is a state security agency tasked with patrolling the Polish border. It existed in the Second Republic era from 1928 to 1939 and was reestablished in the modern-day Third Republic in 1990, going into operation the following year. During the communist era lasting from 1945 to 1989, the role of the border guard was carried out by the Border Protection Troops (). History 1928–1939 The Straż Graniczna was founded in 1928. During the times of the Second Polish Republic, it was responsible for northern, western and southern border of Poland (with Germany, Free City of Danzig, sea border, Czechoslovakia and Romania). Eastern border, often raided by military bands supported by Soviet Union was under the jurisdiction of a separate, military formation (Border Protection Corps, ). Responsibilities of Straż Graniczna included: prevention of illegal crossing of the land and sea border by people and goods (smuggling) ensuring safety and public order in the border area combat any threats to national security in the border area Border Guard was organized in a military style, with uniformed and armed agents. It was controlled by the Ministry of Treasury, Ministry of Internal Affairs, and Ministry of Military Affairs. The highest level of organizational structure of the agency was Main Headquarters (), based in Warsaw. It was followed by Regional Inspectorates, Border Inspectorates, stations and posts. It carried out actions through patrols, manning border checkpoints, tracking, rouses and intelligence work. It had its own river and sea flotilla, intelligence academy, and the Main School of Border Guard (), which was located firstly in Góra Kalwaria (until 1928), then in Rawa Ruska. The school had a department of training of guard dogs, also located in Rawa Ruska. Each station of the agency was responsible for some 20 to 25 kilometers of the borderline. The stations oversaw posts of the first line and posts of the second line. In 1938, there were 129 stations of the Border Guard, 419 posts of the first line (these were located right along the border), and 212 posts of the second line (located in the interior of the country, right behind posts of the first line). Regional inspectorates in 1939 Mazovian Regional Inspectorate in Ciechanów, Pomeranian Regional Inspectorate in Bydgoszcz, Greater Poland Regional Inspectorate in Poznań, Silesian Regional Inspectorate in Katowice, Western Lesser Poland Regional Inspectorate in Kraków, Eastern Lesser Poland Regional