An image processing apparatus comprises a detection unit configured to detect a main subject from an image captured by an image sensor that captures a subject image, a position detection unit configured to detect a position, on a screen, of the main subject, and a correction unit configured to correct, based on the position of the main subject detected by the detection unit, at least one of a blur and a distortion of an image of a subject other than the main subject, the blur and the distortion occurring due to correction of a blur of an image of the main subject performed by an optical image stabilization unit configured to optically correct a blur, on the screen, of the image of the main subject.