How are new genes created?

From the mutation of existing genes only
From the duplication, and then the mutation of existing genes
From a different species
From duplicating existing genes

1 answer

and recombining them in a new way, or by horizontal gene transfer from a different species.