The Second Main Directorate focused on domestic counterintelligence and acted as an internal security and political police force. The goal of this department was to combat foreign intelligence operations within the USSR and its territories. The Second Directorate worked mainly inside the country to combat foreign espionage and to study the forms and methods used by foreign intelligence services on the territory of the U.S.S.R. The work it did abroad aimed to organize operational-technical intelligence, i.e., the investigation of the forms, working methods and regulations of the intelligence, counterintelligence, and police and administrative organs of foreign countries.