What was the main target of German submarines?

German submarines targeted Allied shipping. Any merchant ship that carried fuel, stores, weapons and ammunition or any other goods that supported Allied military activity were targets. If you could take away fuel for tanks, you could idle those tanks. Take away aircraft fuel and planes sit on the ground. Deny an adversary ammunition and you will not be fired upon, but you've gotten the picture by now.