This is a bit of a tricky one because "a" doesn't have a gender in English, but in French, all nouns have a gender. The word for "a" in French is "un" for masculine nouns and "une" for feminine nouns. Since "un" is used before "a", it's considered masculine.