Despite trying to remain neutral in the early stages of the World War II, Yugoslavia was drawn into the conflict in April 1941, when it was invaded by the German-led Axis powers. At the time, "Dubrovnik" was still under Šaškijević's command and was assigned as the flagship of the 1st Torpedo Division, along with the three smaller "Beograd"-class destroyers, , and .