In grammar, "I" is a subject pronoun, meaning it's used when the speaker is the one performing the action in a sentence. For example, in the sentence "I am happy," "I" is the subject and is performing the action of being happy. In contrast, "me" is an object pronoun, used when the speaker is receiving the action.