The exact solution of the one-dimensional Hubbard model, both attractive and repulsive, is investigated in dependence of electron concentration n over a wide range of interaction strength U and magnetic field h. The magnetic phase diagram and the ground-state properties, including the total energy, the number of double occupied sites and the kinetic energy are studied for -infinity < U < infinity and 0 less than or equal to n less than or equal to 1.