The article 'a' is used before words that start with a consonant sound, and 'an' is used before words that start with a vowel sound.