A variety of needle-motion profiles are used in diesel injectors. However, it is unclear what the underlying mechanism is to determine the needle-motion profiles and how they affect the spray dynamics. It has been of significant interest to examine how the spray dynamics will change if only altering the needle valve opening speed or closing speed while all other parameters are kept the same. The different needle-motion profiles were obtained using a piezo nozzle (Nozzle #P) and a solenoid nozzle (Nozzle #S), which have identical nozzle geometry. By utilizing the X-ray imaging technique, it was observed that the average needle valve speed of Nozzle #P was 51% higher at the opening stage but 17% lower at the closing stage than Nozzle #S. When the needle valve lift is low (approximately 200 μm), the needle valve opening speed has a crucial effect on spray dynamics. The faster needle valve opening of Nozzle #P results in a 42% larger spray spreading angle and 34% lower spray velocity at the downstream field. The spray dynamics may be controllable by properly designing the needle-motion profiles in the scenarios of the low needle lifts. However, when the needle valve is sufficiently open (approximately over 200 μm), almost identical spray characteristics were observed regardless of the needle-motion profiles.