Here we aim to absorb yellow GX anionic pigments through Mg-Fe layered-double-hydroxide nanoparticles, which were synthesized from Iron(III) nitrate nonahydrate and Manganese(II) nitrate hexahydrate with a molar ratio of Mg/Fe=2:1 by a hydrothermal process (>100℃). The synthesized nanoparticles were studied using the Fourier transform infrared spectroscopy, X-ray diffraction, and scanning electron microscope. The obtained data were analyzed by the Debye–Scherrer method. The absorption of yellow GX anionic pigments by these nanoparticles was investigated through UV-Vis photometry at different pH, reaction time, and temperatures. The results suggest that a rise in temperature leads to a gradual increase in absorption.