Disclosed herein is a mammography device for X-ray photographing an object to be inspected. The mammography device includes: a device body movable in a vertical axis direction and rotatable around a first horizontal axis; a generator fixed to one end portion of the device body; a support part for the object including a detector; a first moving unit moving the device body in the vertical axis direction; a rotating unit rotating the device body around the first horizontal axis; and a controller controlling the first moving unit and the rotating unit, wherein the controller performs a control so that the rotating unit rotates the device body and the first moving unit moves the device body together with the rotation of the device body in order to position a center of an upper surface of the support part for the object on the same horizontal surface.