An image pickup device (IM1) comprising: a plurality of pixels each configured to output an analog signal (Vvl) based on electric charges produced in a photoelectric conversion unit (PD) of the pixel; a signal processing unit configured to process, by using a variable gain, the analog signal (Vv1) output from the pixel, the signal processing unit comprising: a comparison means (CMP, 108) configured to compare the analog signal (Vv1) or an amplified signal (Vamp) generated by amplifying the analog signal (Vv1) and a threshold signal (Vth) and supply a comparison signal (Vcmp, ATT) indicating the comparison result, and a control unit configured to control a gain applied to the analog signal to be one of at least a first gain and a second gain greater than the first gain in accordance with the signal (ATT) indicating the result of the comparison between a threshold value of the threshold signal (Vth) and a signal value of the analog signal to which the controlled gain is to be applied, wherein each of the plurality of pixels outputs, as the analog signal, a first signal based on electric charges produced in the photoelectric conversion unit in a first exposure period and a second signal based on electric charges produced in the photoelectric conversion unit in a second exposure period shorter than the first exposure period, and wherein the control unit controls the gain applied to the analog signal by selecting one from the first gain and the second gain in accordance with the signal value of the analog signal, for at least one of the first signal and the second signal. a plurality of pixels each configured to output an analog signal (Vvl) based on electric charges produced in a photoelectric conversion unit (PD) of the pixel; a signal processing unit configured to process, by using a variable gain, the analog signal (Vv1) output from the pixel, the signal processing unit comprising: a comparison means (CMP, 108) configured to compare the analog signal (Vv1) or an amplified signal (Vamp) generated by amplifying the analog signal (Vv1) and a threshold signal (Vth) and supply a comparison signal (Vcmp, ATT) indicating the comparison result, and a control unit configured to control a gain applied to the analog signal to be one of at least a first gain and a second gain greater than the first gain in accordance with the signal (ATT) indicating the result of the comparison between a threshold value of the threshold signal (Vth) and a signal value of the analog signal to which the controlled gain is to be applied, a comparison means (CMP, 108) configured to compare the analog signal (Vv1) or an amplified signal (Vamp) generated by amplifying the analog signal (Vv1) and a threshold signal (Vth) and supply a comparison signal (Vcmp, ATT) indicating the comparison result, and a control unit configured to control a gain applied to the analog signal to be one of at least a first gain and a second gain greater than the first gain in accordance with the signal (ATT) indicating the result of the comparison between a threshold value of the threshold signal (Vth) and a signal value of the analog signal to which the controlled gain is to be applied, wherein each of the plurality of pixels outputs, as the analog signal, a first signal based on electric charges produced in the photoelectric conversion unit in a first exposure period and a second signal based on electric charges produced in the photoelectric conversion unit in a second exposure period shorter than the first exposure period, and wherein the control unit controls the gain applied to the analog signal by selecting one from the first gain and the second gain in accordance with the signal value of the analog signal, for at least one of the first signal and the second signal. <EOS>