We study the electronic properties of the glide set of dislocations in diamond from first principles using hybrid exchange correlation functionals and find that the atomic-scale dislocation core states give rise to a prototypical one-dimensional (1D) band structure, i.e., natural quantum wires. The position and character of the core states varies strongly with local structure, where mixed dislocations with dangling bonds exhibit a 1D metallic band with a characteristic 1D density of states ($1/\sqrt{E}$). This 1D Fermi gas is spatially localized to a single atomic diameter orbital chain along the dislocation core. When the dangling bonds within the core are reconstructed, the 1D metallic band disappears. In contrast, pure edge dislocations in diamond reveal a 1D semiconductor with a direct band gap of 3.21 eV. These calculations provide a possible explanation to the long-standing observation of a blue luminescence band correlated with dislocations in diamond. This opens the door to using dislocations as 1D quantum phases with functional (electronic and optical) properties arising from the atomic-scale core states.