This study focuses on the in-nozzle flow characteristics and the primary spray breakup of diesel at the near-nozzle region under atmospheric conditions. A long working distance microscope and a Canon EOS 700D CCD Camera were employed to study the cavitation flow in the nozzle and the spray structure at near-nozzle region via photographic technique with backlighting. Images were obtained with short exposure time and sufficiently high spatial and temporal resolutions which allowed a detailed observation of the early phase of fuel injection from the nozzle orifice to near nozzle region. The images revealed that the formation of a variety of complex two-phase flow regimes. Stagnant bubbles were present inside the nozzle at the start of injection. The stagnant bubbles may have originated from the last injection because they have not been evacuated from the nozzle or sucked into the nozzle orifice as the needle valve opened. During the opening and closing stages of the needle valve, the cavitation occurred in the valve seat area. Subsequently, free cavitation was observed at the inlet orifice followed by film cavitation, cloud cavitation and string cavitation in the orifice. A dimensionless number S derived from the images of transparent nozzles was adopted to evaluate the cavitation intensity, which increased monotonically with the increase of injection pressure. In addition, mushroom shaped spray head was also found at the nozzle exit. A close inspection revealed that the stagnant bubbles or the fuel trapped in the injector orifice at the end of injection had an appreciable impact on the near nozzle spray structures. The spray angle, penetration length and the spray area also increased for every 10MPa rise by about 20%, 10% and 15% respectively.