We find a new class of exact solutions in the Einstein-Maxwell theory by employing the Ernst magnetization process to the Kerr-Newman-Taub-NUT spacetimes. We study the solutions and find that they are regular everywhere. We also find the quasilocal conserved quantities for the spacetimes, the corresponding Smarr formula and the first law of thermodynamics.