TITLE: What are some results that shook the foundations of one or more fields of mathematics?
QUESTION [21 upvotes]: An example would be the proof that $\sqrt{2}$ is not rational, which was a violation of some fundamental assumptions that mathematicians at the time made about numbers. Another would be Russell's paradox, which proved that naive set theory contains contradictions. I'm looking for a list of examples of similar results which forced mathematicians to change widely held beliefs and rebuild the foundations of their field. How did mathematicians at the time rearrange their foundations to account for newly proven results?
There must be lots of examples.
EDIT
The question was put on hold as too broad. Hopefully this narrows it a bit. I am looking for examples where most mathematicians believed that a certain foundational set of propositions was true, and then a result was proven that showed that it was false. Most theorems do not fit the bill. Wiles' proof of Fermat's last theorem was a historic achievement, but as far as I am aware, it did not force Wiles' contemporaries to reevaluate their fundamental assumptions or beliefs about mathematics. Gödel's incompleteness theorems, on the other hand, showed that Hilbert's program was unattainable, causing a fundamental shift in our understanding of notions like provability.
EDIT
I don't understand why this keeps being closed. It seems to be generating quality answers and the answerers seem to be able to tell what is being asked. Maybe some commenter could let me know?

REPLY [3 votes]: The first example (which quite possibly was the cause for mathematics to be studied as a "safe" subject in the first place, was Parmenides, who (reportedly: the original source is unreadable) showed that by naïve philosophical reasoning there could only be one thing in the world. The conclusion, there being more than one thing in the world, was that all natural philosophy up till then had been built on nonsense, since you could deduce rubbish. (Parmenides was Zeno's teacher, to give you a reference point you have heard of.) Here is also born the unreasonable, devastating skepticism we still use in science, and particularly mathematics, to test theories and results to this day.
The next quake in Greek mathematics that we know about is the discovery of non-comeasurable magnitudes. This is what you probably know as "irrational numbers". However, the Greek method of measuring line segments is to measure one with another, hence comeasure. You stack copies of one end-to-end, and copies of the other end-to-end, to find the point when they have a common length. (The actual algorithm is more complicated—look up anthyphairesis. Or, of course, Euclid's algorithm. Both give you the common unit measure-line, of which the line lengths are multiples) For the side and diagonal of a square, this process doesn't end, so the side and diagonal of the square are not comeasurable. This gives you serious problems when your number system is entirely based on comeasurability. (And nowhere has the word "irrational" been used. The Greeks could not have discovered "irrational numbers", because they had no way to express such an idea.) So does that mean there are different types of length? Well, eventually Eudoxus sorts that one out, by inventing the theory of proportion that we find in Euclid. Eudoxus is one of the smartest mathematicians ever, up there with Newton and Gauss, and this was a Big Deal.
Hindu numerals. No, really. Totally changed commercial arithmetic. Allowed the purchase and sale of debt, so banking is invented and the world comes to an early end.
Non-example: proving that the three classical problems (squaring the circle, doubling the cube, and trisecting the angle), cannot be done with ruler and compass. Even the Greeks suspected it was impossible (circle-squarer is used as a "Ha, what an idiot"-type insult in Aristophanes's play The Birds).
Non-example: Infinitesimals (I mean the old sort, used from basically the 15 century on) are paradoxical. Although everyone knows this from about 1550 on, they carry on using them (carefully...) anyway. Because you still get the right answer for anything physically reasonable that you are considering.
Curves are equations and equations are curves. This is the first revolution in geometry: Descartes's invention of algebraic geometry. Suddenly you can do geometry using algebra, and algebra using geometry. Before, they appeared to be two rather different things, algebra being far more suspicious and dodgy because it's not synthetic: you start with something unknown, then find it. After this, both can be used in tandem.
The second revolution in geometry is Riemann. Very little interest is shown in hyperbolic geometry: Gauss doesn't bother to publish it, and Boylai and Lobachevsky's work is almost completely ignored when it isn't rubbished. But Riemann takes Gauss's theory of surfaces and a) completely changes complex analysis and the theory of abelian functions, freeing it from the plane, and b) explains how to a geometry with intrinsic curvature can work. This circulates through the Italian school, until eventually some chap called Einstein happens upon it.