An ophthalmic apparatus (1) for examining an eye (E) of an examinee, comprises: optometry means (2) configured to examine the examinee's eye; drive means (4) for relatively moving the optometry means three-dimensionally with respect to the examinee's eye; first photographing means (3) configured to photograph a face of the examinee including at least one of right and left eyes of the examinee; and control means (70) configured to control the drive means.The control means is further configured to restrict a drive range of the drive means based on a two-dimensional position (P(xe, ye)) of the examinee's eye on a first image (Pi) photographed by the first photographing means, the two-dimensional position being specified by image processing on the first image, and information on the first photographing means.