The Puerta del Sol originated as one of the gates in the city wall that surrounded Madrid in the 15th century. Outside the wall, medieval suburbs began to grow around the Christian Wall of the 12th century. The name of the gate came from the rising sun which decorated the entry, since the gate was oriented to the east.