Fresh human urine, after it is alkalized to prevent the enzymatic hydrolysis of urea, can be dehydrated to reduce its volume and to produce a solid fertilizer. In this study, we investigated the suitability of MgO to alkalize and dehydrate urine. We selected MgO due to its low solubility (90% and N recovery of 80%, and yielded products with high concentrations of macronutrients (7.8% N, 0.7% P and 3.9% K). By modeling the chemical speciation in urine, we also showed that ammonia stripping rather than urea hydrolysis limited the N recovery, since the urine used in our study was partially hydrolyzed. To maximize the recovery of N during alkaline urine dehydration using MgO, we recommend treating fresh/un-hydrolysed urine a temperature <40 degrees C, tailoring the drying substrate to capture NH4+ as struvite, and using co-substrates to limit the molecular diffusion of ammonia. Treating fresh urine by alkaline dehydration requires only 3.6 kg MgO cap(-1)y(-1) and a cost of US$ 1.1 cap(-1)y(-1). Therefore, the use of sparingly soluble alkaline compounds like MgO in urine-diverting sanitation systems holds much promise