In order to explore the modification effect of carbonization time on nano-MgO-modified cement soil, unconfined compressive strength tests of nano-MgO-modified cement soil with carbonization times of 0 h, 6 h, 1 d, 2 d and 4 d were carried out. A method for normalizing the stress–strain curve was proposed, and the influence of nano-MgO content and carbonization time was investigated from the three aspects of compressive strength, peak strain and energy dissipation. The test results show the following: (1) The compressive strength of the modified cement soil can be significantly improved by adding 1.0% nano-MgO and after 1 d carbonization. (2) Under the same nano-MgO content, the peak strain of the modified cement soil after 2 d carbonization reaches the maximum, which can significantly increase its ductility. However, the nano-MgO content has little influence on the peak strain of the modified cement soil. (3) Under the same nano-MgO content, the energy dissipation rate of the modified cement soil after 1 d carbonization reaches the maximum, which can better resist the damage of external load.