Why did many Greek settlements develop around the coastlines?

To be farther from the mountains for protection
To escape the harsh Mediterranean climate inland
To avoid conflicts with neighboring city-states
Much of Greece is mountainous with poor soil for farming

The main reason many Greek settlements developed around the coastlines is that much of Greece is mountainous with poor soil for farming. The coastal areas provided access to the sea for trade and transportation, as well as fertile land for agriculture. Additionally, being located near the coast allowed for easier communication and interaction with other city-states and cultures, leading to the development of prosperous trading hubs.

so which one

Sorry for the confusion. The main reason many Greek settlements developed around the coastlines is that much of Greece is mountainous with poor soil for farming. This made coastal areas more attractive for settlement as they provided fertile land for agriculture and access to the sea for trade and transportation.