Using high-reactivity fuels to enhance the reactivity of ammonia (NH 3 ) is an effective way to achieve efficient and clean combustion of ammonia-based engines. Based on an optical engine fueled with NH 3 and n-heptane, this study investigates the potential of a pilot injection strategy compared to the traditional single injection, maintaining a constant ammonia energy fraction at 70% while varying pilot injection timings (−100 to −70 °CA ATDC) and energy ratios (30 and 50%) across three main injection timings (−40, −50, and −60 °CA ATDC). Results show that compared with the single injection strategy, the pilot injection strategy can reduce the peak in-cylinder pressure, optimize combustion phasing, and shorten combustion duration. Consequently, the indicated thermal efficiency is increased by up to 8.97% and cyclic variations are reduced by 22.2%. Combustion visualization shows an easy transition toward sequential autoignition as the pilot injection timing is advanced, facilitating more homogeneous combustion processes. Meanwhile, pilot injection timing exhibits a significant impact on combustion stabilities and flame evolutions. The improved flame development caused by the pilot injection strategy is ascribed to the enhanced mixing of the preinjected nheptane with ammonia. Regarding nitrogen-based emissions, advancing injection timing facilitates more homogeneous combustion for the single injection strategy, resulting in a decrease in unburned NH 3 by up to 64% and an increase in NO and N 2 O emissions by up to 37 and 3.6%, respectively. Conversely, the pilot injection strategy significantly reduces unburned NH 3 , N 2 O, and NOx emissions by 44.6, 57, and 32%, respectively. This study offers valuable insights into the optimization and control of the combustion and emission performance of ammonia/diesel engines.