Particle indicating the subject of a sentence or expressing 'but'.
Long explanation:
The ~が grammar point is a particle that is used to indicate the subject of a sentence or to express a contrast similar to 'but' in English. It has various functions depending on the context.