Where did the idea of dragons come from?

We just learned about the Middle Ages in world history AP and this question came up. When I think of dragons, I think of castles and knights and princesses. Did all these fairy tales originate in the the medieval age?

Just curious.
13 answers 13