The Territorial Defense Forces of the Country (OTK) were established in Poland by the resolution of the
State Defense Committee of May 14, 1959, used to directly defend the country's territory against various threats (the external system consisted of operational troops intended to act as part of the
United Armed Forces of the Warsaw Pact, assumed to be outside the country's territory). to help defend Polish territory in situations where the Polish People's Army was engaged abroad under
Warsaw Pact obligations. Although their primary mission was defending the homeland, the OTK also had the
Warsaw Pact mission of transporting
Soviet forces and supplies across Poland in wartime. Formed mainly from units shifted from the
Ministry of Internal Affairs, the OTK went under a new Inspectorate for National Territorial Defense in the
Ministry of National Defense. On December 1965 took over as Chief Inspector of Territorial Defense Forces. The OTK included the
Internal Defense Forces (, the largest unit) and several smaller territorial defense units. Immediately after
World War II, the WOW's predecessor organization, the
Internal Security Corps () had suppressed the
Home Army, which had been loyal to the London government-in-exile; the KBW had also played a large part in
suppressing the Poznan workers in 1956. By 1990 the Territorial Defense Forces was not a credible military force. The organization included many nonmilitary patriotic and social groups, such as the boy scouts, and many military retirees found soft assignments in OTK units. Although the force had a military commander, it was not under the direct control of the
Ministry of National Defense. By 1991 budget cuts were reducing personnel significantly, and plans called for transforming many OTK units into civil defense formations that would support production and service in the civilian economy. The OTK units remaining armed and attached to districts as regional defense forces would count as part of the ground forces' planned mid-1990s allotment of about 150,000 troops. They were to function as cadre units reinforcing operational ground forces within their territorial boundaries. Reduction of OTK units continued, and the last units of the OTK were converted to mechanized infantry units of the Polish Army by 1 July 2008. The military
Border Protection Troops () was disbanded in 1991, and replaced by the , whose commander reports to the
Prime Minister. The change resulted in personnel reductions from 21,000 in 1991 to 13,500. On November 16, 2016, the Sejm of the Republic of Poland passed the act establishing
Territorial Defence Force from January 1, 2017. ==Organization and tasks==