What are genes and what role do they play?

Genes control the expression of (genetic) traits and are responsible for determining the inherited characters, they are therefore called units of inheritance.