A special collimator was designed and developed to improve sensitivity for light elements in X-ray fluorescence analysis under atmospheric condition. Using 8 keV X-rays from SPring-8, trace impurities contained in Mg and Al at the ppm level can be determined with high sensitivity under atmospheric condition.