A four-dimensional race was a class of intelligent species.
After Harcourt Fenton Mudd demonstrated the ability to time travel using technology based on a time crystal, Michael Burnham deduced that the technology must have been perfected by a four-dimensional race, as it was too difficult for any Federation-aligned species. (DIS: "Magic to Make the Sanest Man Go Mad")