The NKVD (People's Commissariat for Internal Affairs) was a government department in the Soviet Union. It was the law enforcement agency which did the will of the All Union Communist Party. The NKVD underwent many organizational changes; between 1938 and 1939 alone, the NKVD's structure changed three times.