To ensure that only the bacteria transformed with the gene for antibiotic resistance grow, a selective medium is used. This medium contains antibiotics that inhibit the growth of non-transformed bacteria. Only the transformed bacteria, which carry the gene for antibiotic resistance, will be able to grow and survive on this medium.