When talking about evolution, a good example is bacterial resistance to antibiotics.
We start with a bacteria colony, and in contact with antibiotics, most of them die.
Some of them in the colony do not die and took that antibiotic to create a mutation of its DNA to be resistance to that.
They evolved survive that antibiotic.