A 3D inkjet printer includes an inkjet head and a medium holder configured to hold a medium having a three-dimensional shape. A Y-axial driving mechanism is capable of moving the inkjet head along a Y-axial. A Z-axial supporting mechanism supports the medium holder so as to be movable along a Z-axial direction. An X-axial driving mechanism is capable of moving the Z-axial supporting mechanism along an X-axial direction. A Z-axial driving mechanism is capable of moving the medium holder along the Z-axial direction. The medium holder includes an A-axial driving mechanism capable of swinging the medium along an A-axial direction. The A-axial direction is a rotational direction about a shaft disposed along the Y-axial direction. A B-axial driving mechanism is capable of rotating the medium along a B-axial direction. The B-axial direction is a rotational direction about a shaft disposed perpendicular to the Y-axial direction.