The viewpoint takes its name from the Sun Gate in medieval Lisbon's Moorish wall. The gate was destroyed in the 1755 earthquake, but its name survives on this terrace above Alfama.