What basic property of a star determines where it lies on the main sequence?

What basic property of a star determines where it lies on the main sequence?