An electric hydraulic brake comprising: a plurality of wheel brakes (w1, w2, w3, w4) configured to supply braking force to wheels of a vehicle; a reservoir storing brake oil; a master cylinder connected to the reservoir, and operated in conjunction with a main brake motor to generate pressure of the brake oil; a first controller configured to control the main brake motor according to brake input; a hydraulic controller comprising a pump (231, 232) configured to form pressure of the brake oil in conjunction with an auxiliary brake motor, and a hydraulic block configured to selectively transmit the pressure of the brake oil formed in the master cylinder or the pump (231, 232) to the plurality of wheel brakes (w1, w2, w3, w4); and a second controller configured to control the auxiliary brake motor when the master cylinder or the first controller malfunctions, wherein the hydraulic controller is provided with at least one auxiliary flow path (221, 222) to transmit the brake oil from the reservoir to the pump (231, 232) directly through the at least one auxiliary flow path (221, 222), characetized in that: the hydraulic block is provided with a first side in which a plurality of ports connected to the flow path are located, and a second side to which the auxiliary brake motor is attached, and at least one side of the hydraulic block is coupled to the master cylinder, and the master cylinder is fixedly coupled to the first side or the second side of the hydraulic block. a plurality of wheel brakes (w1, w2, w3, w4) configured to supply braking force to wheels of a vehicle; a reservoir storing brake oil; a master cylinder connected to the reservoir, and operated in conjunction with a main brake motor to generate pressure of the brake oil; a first controller configured to control the main brake motor according to brake input; a hydraulic controller comprising a pump (231, 232) configured to form pressure of the brake oil in conjunction with an auxiliary brake motor, and a hydraulic block configured to selectively transmit the pressure of the brake oil formed in the master cylinder or the pump (231, 232) to the plurality of wheel brakes (w1, w2, w3, w4); and a second controller configured to control the auxiliary brake motor when the master cylinder or the first controller malfunctions, wherein the hydraulic controller is provided with at least one auxiliary flow path (221, 222) to transmit the brake oil from the reservoir to the pump (231, 232) directly through the at least one auxiliary flow path (221, 222), characetized in that: the hydraulic block is provided with a first side in which a plurality of ports connected to the flow path are located, and a second side to which the auxiliary brake motor is attached, and at least one side of the hydraulic block is coupled to the master cylinder, and the master cylinder is fixedly coupled to the first side or the second side of the hydraulic block. the hydraulic block is provided with a first side in which a plurality of ports connected to the flow path are located, and a second side to which the auxiliary brake motor is attached, and at least one side of the hydraulic block is coupled to the master cylinder, and the master cylinder is fixedly coupled to the first side or the second side of the hydraulic block.