I is subjective, which means it’s used when the speaker is the subject of the sentence or the doer of the action. Me is objective, which means it’s used when the speaker is the object of the sentence or the receiver of the action.