The Nonaggression Pact was instated by Germany and the Soviet Union in agreement that no military action would be made towards each other for ten years.
The reason Adolf Hitler had made this deal with Soviet Russia, was so that he would be able to easily execute an invasion into Poland.