The complex formation of triscarbonatouranyl(VI) UO2(CO3)(3)(4-) with the alkaline earth metal ions Mg2+ and Ca2+ in 0.10 mol kg(w)(-1) NaCl was studied at variable temperatures: 5-30 degrees C for Mg2+ and 10-50 degrees C for Ca2+. Under appropriate conditions, the ternary complexes (MnUO2(CO3)(3)((4-2n)-) with n = 1 for Mg, n = {1; 2} for Ca) were identified by time-resolved laser-induced luminescence spectrometry. Their pure spectral components at 50 degrees C for CanUO2(CO3)(3)((4-2n)-) and 30 degrees C for MgUO2(CO3)(3)(2-) were recovered by multivariate curve resolution alternating least-squares analysis. Approximation models were tested to fit the experimental data-the equilibrium constants of complexation measured at different temperatures-and deduce the thermodynamic functions, i.e., enthalpy, entropy, and heat capacity. The weak influence of temperature on complexation constants induces large uncertainties in terms of thermodynamic functions. Assuming the enthalpy is constant with temperature using the Van't Hoff equation, the first stepwise complexation of UO2(CO3)(3)(4-) by Ca2+ is estimated to be slightly endothermic, with Delta H-VH(r)m degrees = (4.9 +/- 5.9) KJ mol(-1), while the second stepwise complexation of CaUO2(CO3)(3)(2-) by Ca2+ with is slightly exothermic, Delta H-VH(r)m degrees = -(6.2 +/- 13.3)KJ mol(-1). In contrast to Ca2+, the complexation of UO2(CO3)(3)(4-) by Mg2+ is slightly exothermic, with Delta H-VH(r)m degrees = -(11.7 +/- 10.3)KJ mol(-1). These values are not significantly different from zero inasmuch as the uncertainties are important due to a weak dependence of log(10) K degrees values. The entropic character of the complexation is verified as T Delta S-r(m)degrees = (36.5 +/- 6.0)kJ mol(-1) for the first stepwise complexation of UO2(CO3)(3)(4-) by Ca2+, T Delta S-r(m)degrees = (13.8 +/- 13.3) kJ mol(-1) for the second stepwise complexation of CaUO2(CO3)(3)(2-) by Ca2+, and T Delta S-r(m)degrees = (14.2 +/- 10.3)kJ mol(-1) for the complexation of UO2(CO3)(3)(4-) by Mg2+. The energetics of complexation and sensitivity analysis of the model estimates with temperature are discussed. The uranium speciation in the case of the safety of nuclear waste management, using the present thermodynamic functions, provides support to the assessment of underground nuclear waste repositories.