A hydraulic system for a construction machine having a pressure compensation valve is disclosed, which improves operability when a combined operation of a swing device and an attachment is performed. The hydraulic system includes a hydraulic pump, attachment and swing operation devices, an attachment actuator and a swing motor connected to the hydraulic pump, a first control valve controlling hydraulic fluid being supplied to the actuator, a second control valve controlling hydraulic fluid being supplied to the swing motor, a check valve installed on a flow path for detecting load pressures of the actuator to take a maximum pressure of the load pressures, a first pressure compensation valve having an opening amount that is controlled by a difference between the maximum load sensing pressure and the pressure of a discharge flow path of the first control valve, a second pressure compensation valve having an opening amount that is controlled by a difference between the maximum load sensing pressure and the press