A control device for an internal combustion engine that includes: an internal combustion engine main body; an intake channel connected to the internal combustion engine main body; an exhaust channel connected to the internal combustion engine main body; a turbocharger that includes a compressor arranged in the intake channel and a turbine arranged in the exhaust channel; an electrically driven compressor arranged at a part of the intake channel on a downstream side of the compressor of the turbocharger; a first pressure sensor configured to detect a first boost pressure which is boost pressure at a part of the intake channel between the compressor of the turbocharger and the electrically driven compressor; a second pressure sensor configured to detect a second boost pressure which is boost pressure at a part of the intake channel on a downstream side of the electrically driven compressor; and an exhaust gas flow rate adjusting device (5; 15a, 15b) configured to adjust a flow rate of exhaust gas supplied to the turbine, wherein the control device is programmed to control the exhaust gas flow rate adjusting device (5; 15a, 15b) based on a difference between a target value (P1trg) of the first boost pressure and a detection value of the first boost pressure with the first pressure sensor, wherein the control device is programmed to control the electrically driven compressor based on a difference between a target value (P2trg) of the second boost pressure and a detection value of the second boost pressure with the second pressure sensor, wherein the control device is programmed to calculate the target value (P2trg) of the second boost pressure based on an engine speed, an engine torque, and a first relationship between the engine speed, the engine torque and the target value (P2trg) of the second boost pressure, and wherein the control device is programmed to calculate the target value (P1trg) of the first boost pressure based on an amount (Ga) of air taken into the internal combustion engine main body, the target value (P2trg) of the second boost pressure and a second relationship between the air amount (Ga), the target value (P1trg) of the first boost pressure and the target value (P2trg) of the second boost pressure. an internal combustion engine main body; an intake channel connected to the internal combustion engine main body; an exhaust channel connected to the internal combustion engine main body; a turbocharger that includes a compressor arranged in the intake channel and a turbine arranged in the exhaust channel; an electrically driven compressor arranged at a part of the intake channel on a downstream side of the compressor of the turbocharger; a first pressure sensor configured to detect a first boost pressure which is boost pressure at a part of the intake channel between the compressor of the turbocharger and the electrically driven compressor; a second pressure sensor configured to detect a second boost pressure which is boost pressure at a part of the intake channel on a downstream side of the electrically driven compressor; and an exhaust gas flow rate adjusting device (5; 15a, 15b) configured to adjust a flow rate of exhaust gas supplied to the turbine, wherein the control device is programmed to control the exhaust gas flow rate adjusting device (5; 15a, 15b) based on a difference between a target value (P1trg) of the first boost pressure and a detection value of the first boost pressure with the first pressure sensor, wherein the control device is programmed to control the electrically driven compressor based on a difference between a target value (P2trg) of the second boost pressure and a detection value of the second boost pressure with the second pressure sensor, wherein the control device is programmed to calculate the target value (P2trg) of the second boost pressure based on an engine speed, an engine torque, and a first relationship between the engine speed, the engine torque and the target value (P2trg) of the second boost pressure, and wherein the control device is programmed to calculate the target value (P1trg) of the first boost pressure based on an amount (Ga) of air taken into the internal combustion engine main body, the target value (P2trg) of the second boost pressure and a second relationship between the air amount (Ga), the target value (P1trg) of the first boost pressure and the target value (P2trg) of the second boost pressure.