A chord is major when the interval between the root and third is four half steps. It's minor when the interval is three half steps. This small difference changes the chord's mood, with major sounding happy and minor often sounding sad.