By stacking thirds and sticking only with the notes of the major scale we get a chord that is spelled C E G. Comparing that to our knowledge of how triads are constructed we can see that because C to E is a major third and E to G is a minor third then this chord is a Major triad.