Accidentals are the notation for 'this note is not what the key signature says.' A ♯ raises a note one semitone, a ♭ lowers it, and a ♮ cancels a previous accidental.
Frequent accidentals often signal something interesting harmonically: a secondary dominant, a modulation, or a borrowed chord from a parallel key.