An X-ray fluorescence analyzer comprising: a sample stage having a mounting surface on which a sample is mounted; an X-ray source configured to irradiate the sample with primary X-rays and disposed immediately above an irradiation position of the sample; a detector configured to detect fluorescent X-rays emitted from the sample irradiated with the primary X-rays; a shielding container configured to accommodate the sample stage, the X-ray source, and the detector and includes: a sample chamber configured to accommodate the sample stage; and a door provided at a top of the sample chamber and configured to open and close at least a front half of the sample chamber; a hood section disposed on the shielding container and at the rear half of the shielding container and connected to the shielding container, wherein the X-ray source and the detector are disposed at a rear half of the sample chamber, characterized in that the X-ray fluorescence analyzer further comprises: a vertical moving mechanism configured to vertically move the X-ray source and the detector and to move the X-ray source and the detector between a first position inside the shielding container and a second position inside the hood section; and a θ stage that is configured to have a rotation center at the center of the mounting surface of the sample stage and to rotate the sample stage around a rotation axis perpendicular to the mounting surface, wherein the sample stage is further configured to be movable in an X direction which is parallel to the mounting surface and in a Y direction which is parallel to the mounting surface and perpendicular to the X direction. a sample stage having a mounting surface on which a sample is mounted; an X-ray source configured to irradiate the sample with primary X-rays and disposed immediately above an irradiation position of the sample; a detector configured to detect fluorescent X-rays emitted from the sample irradiated with the primary X-rays; a shielding container configured to accommodate the sample stage, the X-ray source, and the detector and includes: a sample chamber configured to accommodate the sample stage; and a door provided at a top of the sample chamber and configured to open and close at least a front half of the sample chamber; a hood section disposed on the shielding container and at the rear half of the shielding container and connected to the shielding container, wherein a sample chamber configured to accommodate the sample stage; and a door provided at a top of the sample chamber and configured to open and close at least a front half of the sample chamber; a hood section disposed on the shielding container and at the rear half of the shielding container and connected to the shielding container, wherein a vertical moving mechanism configured to vertically move the X-ray source and the detector and to move the X-ray source and the detector between a first position inside the shielding container and a second position inside the hood section; and a θ stage that is configured to have a rotation center at the center of the mounting surface of the sample stage and to rotate the sample stage around a rotation axis perpendicular to the mounting surface, wherein the sample stage is further configured to be movable in an X direction which is parallel to the mounting surface and in a Y direction which is parallel to the mounting surface and perpendicular to the X direction.