What is the difference between those two sentences?

> un Italien

> une Italienne

When do we use *un* and *une*? They both mean `a` in English, right? But, why are they used differently?