Genetic modification (GM, also called genetic engineering) involves taking a gene from one species and putting it into another species. It involves these steps:

selection of the desired characteristic isolation of the gene responsible for the characteristic insertion of the gene into another organism replication of the transgenic organism

This diagram shows how it works: