A compression-ignition engine comprising: a piston that is internally inserted in a cylinder of the engine and configured to move back and forth in the cylinder; a fuel injection valve that is disposed on a top surface of a combustion chamber formed by the cylinder and the piston, and configured to inject fuel spray along an injection axis; a measuring unit (SN1 to SN12) configured to output a measurement signal in accordance with various parameters relating to operation of the engine; and a controller (10, 19) configured to receive the measurement signal of the measuring unit (SN1 to SN12), output a control signal to the fuel injection valve in accordance with an operational state defined by a speed and a load of the engine, and increase an injection pressure of the fuel when a total injection amount of the fuel injected to the combustion chamber during one combustion cycle increases, wherein the piston comprises a lower cavity provided in a central portion of a top surface of the piston in a radial direction, an upper cavity that is provided around the lower cavity and is shallower than the lower cavity, and a lip portion between the lower cavity and the upper cavity, the controller is configured to cause the fuel injection valve to execute at least one pilot injection during a compression stroke and a main injection after the pilot injection, when the engine operates in a first state and a second state in which the load is higher than the load in the first state, and the main injection and the pilot injection distribute the fuel spray to the lower cavity and the upper cavity by directing the injection axis to the lip portion in at least one part of an injection period, wherein the controller is configured to cause a number of the pilot injections when the engine operates in the second state to be lower than a number of the pilot injections when the engine operates in the first state, and the controller is configured to cause a period of an initial pilot injection of the pilot injections when the engine operates in the second state to be later than a period of an initial pilot injection of the pilot injections when the engine operates in the first state. a piston that is internally inserted in a cylinder of the engine and configured to move back and forth in the cylinder; a fuel injection valve that is disposed on a top surface of a combustion chamber formed by the cylinder and the piston, and configured to inject fuel spray along an injection axis; a measuring unit (SN1 to SN12) configured to output a measurement signal in accordance with various parameters relating to operation of the engine; and a controller (10, 19) configured to receive the measurement signal of the measuring unit (SN1 to SN12), output a control signal to the fuel injection valve in accordance with an operational state defined by a speed and a load of the engine, and increase an injection pressure of the fuel when a total injection amount of the fuel injected to the combustion chamber during one combustion cycle increases, wherein receive the measurement signal of the measuring unit (SN1 to SN12), output a control signal to the fuel injection valve in accordance with an operational state defined by a speed and a load of the engine, and increase an injection pressure of the fuel when a total injection amount of the fuel injected to the combustion chamber during one combustion cycle increases, wherein the piston comprises a lower cavity provided in a central portion of a top surface of the piston in a radial direction, an upper cavity that is provided around the lower cavity and is shallower than the lower cavity, and a lip portion between the lower cavity and the upper cavity, a lower cavity provided in a central portion of a top surface of the piston in a radial direction, an upper cavity that is provided around the lower cavity and is shallower than the lower cavity, and a lip portion between the lower cavity and the upper cavity, the controller is configured to cause the fuel injection valve to execute at least one pilot injection during a compression stroke and a main injection after the pilot injection, when the engine operates in a first state and a second state in which the load is higher than the load in the first state, and the main injection and the pilot injection distribute the fuel spray to the lower cavity and the upper cavity by directing the injection axis to the lip portion in at least one part of an injection period, wherein the controller is configured to cause a number of the pilot injections when the engine operates in the second state to be lower than a number of the pilot injections when the engine operates in the first state, and the controller is configured to cause a period of an initial pilot injection of the pilot injections when the engine operates in the second state to be later than a period of an initial pilot injection of the pilot injections when the engine operates in the first state.