In the Star Trek universe, a Class M planet is one habitable by humans and similar life forms.
Earth, Vulcan, Romulus, and Qo'noS are examples of Class M planets.
[1] The planet needs an atmosphere of oxygen and nitrogen, should be close to a stable star, have fertile soil, a tolerable gravity, and a climate that is generally pleasant for humans.
As a story device, this allowed for easy filming without restriction by environmental suits,[3] but Science correspondent Gretchen Vogel called it a "failure of imagination" when thinking about the limits of the zone capable of supporting life.
[2] The origin of the term within the fictional universe is implied to be the Vulcan word Minshara.