A hypothesis is an educated guess, but a theory is a well-substantiated explanation, repeatedly tested and confirmed through the scientific method - a process so rigorous it can sometimes be considered a fact.
As Charles Darwin put it: "I have steadily endeavoured to keep my mind free so as to give up any hypothesis, however much beloved... as soon as facts are shown to be opposed to it."