Around the city, the Trojans had built a strong wall so no enemy could attack them from the sea. During wars, the gates would be closed and the city would be like a strong fortress, safe from all attacks. It was protected by the walls surrounding it and the hills behind it.