Muggia is a small Italian community with just under 15,000 people near Trieste in the Friuli Venezia Giulia region.
It is the only part of Istria that remains under Italian administration even today.
It may have been a castelliere (a village with a fortress) and, following the foundation of Aquileia (181 BC) and the wars of conquest of Istria (178-177 BC) came under Roman rule. The Romans founded a camp here, Castrum Muglae, to protect the traffic routes of their colony from the attacks of the Histrians.
After the fall of the Roman Empire, Muggia came under the rule of the Goths, later the Lombards, the Avars and the Franks. In 931 Muggia was finally given to the Patriarchate of Aquileia by the kings of Italy.
Because of the constant plundering by robbers from the hinterland, the locals of Muggia moved from the hill of the ancient Castrum Muglae to the seashore, where the present town still stands.