A device for stopping a common rail diesel engine, the device for controlling a piston position in each cylinder to shorten a length of time to start the diesel engine next time when the engine is stopped, comprising: a crank angle detecting means for detecting a crank angle of a crank shaft; a camshaft angle detecting means for detecting an angle of a camshaft which opens and closes an intake and exhaust valve (17, 18); an engine phase determining means for determining an engine phase based on the crank angle sent from the crank angle detecting means and the angle of the camshaft sent from the camshaft angle detecting means; characterised by an engine stop position determining means for: storing a stopping time spent from an issuance of an engine stop request to the stop of the engine during which a motion of a flywheel is balanced against oscillation of pistons through a descent of a revolution number of the engine; and obtaining an engine phase when the engine is stopped based on the engine phase, which is inputted from the engine phase determining means when the engine stop request is made, and the stopping time; and the engine phase determining means is configured to specify the cylinder in which the piston is at the bottom dead center where an intake stroke transitions to the compression stroke from the engine phase obtained when the engine stop request is made, when the engine phase obtained when the engine stop request is made is an engine phase where there exists no cylinder in which the piston is staying at the bottom dead center where the intake stroke transitions to the compression stroke, the engine stop position determining means obtains a deviation amount of a phase of the specific cylinder from the engine stop request to position the piston in the specific cylinder, in the stopping time, at the bottom dead center where the intake stroke transitions to the compression stroke, an at-time-of-stopping injector control means for controlling fuel which is injected from a fuel injector to stop the piston in the specific cylinder at the bottom dead center of a compression stroke after the engine stop request is made based on the deviation amount of the engine phase of the specific cylinder during stopping of the engine obtained by the engine stop position determining means. a crank angle detecting means for detecting a crank angle of a crank shaft; a camshaft angle detecting means for detecting an angle of a camshaft which opens and closes an intake and exhaust valve (17, 18); an engine phase determining means for determining an engine phase based on the crank angle sent from the crank angle detecting means and the angle of the camshaft sent from the camshaft angle detecting means; characterised by an engine stop position determining means for: storing a stopping time spent from an issuance of an engine stop request to the stop of the engine during which a motion of a flywheel is balanced against oscillation of pistons through a descent of a revolution number of the engine; and obtaining an engine phase when the engine is stopped based on the engine phase, which is inputted from the engine phase determining means when the engine stop request is made, and the stopping time; and storing a stopping time spent from an issuance of an engine stop request to the stop of the engine during which a motion of a flywheel is balanced against oscillation of pistons through a descent of a revolution number of the engine; and obtaining an engine phase when the engine is stopped based on the engine phase, which is inputted from the engine phase determining means when the engine stop request is made, and the stopping time; and the engine phase determining means is configured to specify the cylinder in which the piston is at the bottom dead center where an intake stroke transitions to the compression stroke from the engine phase obtained when the engine stop request is made, when the engine phase obtained when the engine stop request is made is an engine phase where there exists no cylinder in which the piston is staying at the bottom dead center where the intake stroke transitions to the compression stroke, the engine stop position determining means obtains a deviation amount of a phase of the specific cylinder from the engine stop request to position the piston in the specific cylinder, in the stopping time, at the bottom dead center where the intake stroke transitions to the compression stroke, an at-time-of-stopping injector control means for controlling fuel which is injected from a fuel injector to stop the piston in the specific cylinder at the bottom dead center of a compression stroke after the engine stop request is made based on the deviation amount of the engine phase of the specific cylinder during stopping of the engine obtained by the engine stop position determining means.