White dwarfs are the remnants of medium-sized stars that have exhausted their nuclear fuel and shed their outer layers. These dense, compact objects represent the final stage in the lifecycle of stars like our Sun. Composed mostly of electron-degenerate matter, white dwarfs have masses comparable to the Sun but volumes similar to Earth, resulting in incredibly high densities.