The sun belongs to category G of the stellar spectral classification. It is a star in the main sequence.