As a result, Dublin grew rapidly as a city, meaning that lots of money was being made here in comparison to other Irish settlements, and many Irish and Scandanavian kings tried to conquer it to gain access to the city's growing wealth.
Access to water, particularly through the River Liffey, helped people to live there as they could use it for drinking, bathing, and transportation. Land is also a very important part of the environment as it provides area for dairy farming, livestock, and housing.
Dublin's location in the bay means that traders were not the only ones with easy access to Dublin-- so did invaders. Many different kinds of monarchs attempted to take control of key settlements in Ireland like Dublin and sailed into the same ports. Also, Dublin was under constant threat from other native Irish clans in the surrounding areas who sought to take over as well.
Now, since Dublin is an urban center, it faces the same environmental challenges as any major city, specifically air, water, and noise pollution. More people and companies produce more waste, and the city must then come up with solutions to deal with this increase in waste and reduce pollution. Additionally, like many cities, Dublin has a homelessness problem that comes as a result of more development in the city center that is driving the cost of living up.