Genes that render antibiotic resistance to an organism are used as markers in plasmids. This way an organism containing the plasmid will have antibiotic resistance and will survive in medium containing antibiotics, while organisms that arent transformed and hence will not have the antibiotic resistance gene will perish.