Provided is an electronic control device capable of preventing all of semiconductor relays from being forcibly controlled to be opened by a self-protection shutoff function. An electronic control device (E) controls semiconductor relays (D1-Dn) provided in a load control unit (U), which correspond to loads (L1-Ln) mounted in an automobile. The electronic control device includes a temperature measuring means (P1) which measures the ambient temperature of the semiconductor relays (D1-Dn). The electronic control device also includes an operation restricting means (P2) which, when the temperature measured by the temperature measuring means (P1) is higher than or equal to an operation restriction temperature threshold set within an ambient temperature range in which the self-protection shutoff function is not performed in the semiconductor relays (D1-Dn), performs control for opening semiconductor relays (Dj) that correspond to some loads (Lj) among the loads (L1-Ln).