The selectable marker, which in most cases confers antibiotic resistance to the organism it is expressed in, is needed to determine which cells are transformed with the new gene.
An alternative to a selectable marker is a screenable marker, which allows the researcher to distinguish between wanted and unwanted cells, e.g. between blue and white colonies.