Nazare was originally located up on the Promontorio de Sitio. The beach of Nazare didn’t exist back then, being underwater.
Then, sometime in the 18th century, the sea level dropped (or the tides deposited sand) and at that time the current site of Nazare beach appeared.