In the current research, the authors have attempted to improve the mechanical properties and creep behavior of the magnesium alloy Mg–9Al–1Zn (AZ91) in three different stress levels. To this end, the present study investigated experimentally the addition effects of different values of yttrium oxide nanoparticles to the AZ91. In this regard, weight percentages of 0.5%, 1%, 1.5%, and 2% nanoparticles were added to the material using the vortex casting method. Then, various test specimens were fabricated based on the ASTM standards by utilizing a Computer Numerical Control lathe machine. Different experiments were performed, and the results of different groups were compared with each other. The results revealed that the addition of yttrium oxide (Y2O3) nanoparticles increases the strength of AZ91 magnesium alloy until the nanoparticles do not clump in the microstructure. In other words, the tensile strength of the nanocomposite increased by adding nanoparticles up to 1.5%, but by adding 2% of nanoparticles, we found that the tensile strength is lower than that of pure magnesium. Moreover, one of the most important achievements of this study is that if the nanoparticles do not clump in the material microstructure, the addition of Y2O3 increases the rate of stable creep (the secondary creep stage). Also, the experimental results indicated that the highest stable creep rate is related to the nanocomposite with 1.5% yttrium oxide nanoparticles. Furthermore, the maximum hardness of the material was obtained in the same case. © IMechE 2022.