Evolution is a process of genetic change over time, causing a change in the frequency of certain genes from generation to generation. There are three mechanisms by which this genetic change occurs: natural selection, genetic drift, and gene flow.
Natural Selection is a process which sorts the beneficial from the harmful mutations, in the context of the environment and habitat of the species in question. In a given population, more offspring are produced than can survive on the available resources, and due to genetic variation they vary in their ability to thrive and reproduce. Offspring with beneficial mutations are more likely to survive and reproduce than are offspring without those mutations. (Similarly, offspring with harmful mutations are less likely to survive than non-mutated offspring.)
Genetic Drift is a change in the frequency of a particular gene over the generations. It occurs because the genetic material passed along to offspring is a more or less random sampling of those which came from the parents. In the absence of selective forces, gene frequencies ‘drift’ fairly randomly, halting only when the gene becomes fixed in the population or disappears entirely.
Gene Flow is an exchange of genetic material between two different populations of the same species. This occurs when, for example, a male lion leaves its own pride to mate with lionesses of a different pride.
The results of all this genetic mixing and shuffling is that organisms are able to adapt to their environments—a process which generally occurs very slowly, over long periods of time. In fact, approximately 4,000 million years has passed since organic molecules first appeared on the earth.
Evolution is by no means a fast-paced or even a progressive process (contrary to the idea that evolution has ‘concentrated’ on producing progressively more complex organisms, complex species are still far outnumbered by infinitely more simple species of microorganisms). There is no “end-goal” for evolution; it is not something that will ever stop.