Medieval Amalfi was ruled, in the tenth and eleventh centuries, by a series of dukes (Latin: duces), sometimes called dogi (singular: doge), corresponding with the republic of Venice, a maritime rival throughout the Middle Ages. Before the title of Duke of Amalfi was formally established in 957, various patricians governed the territory. Amalfi established itself as one of the earliest maritime trading powers renowned throughout the Mediterranean, considered for two centuries, one of the most powerful of the maritime republics.
The time of the patricians (or judges) is not well known. The numbering of the rulers of Amalfi usually begins again with the judgeship. Mastalus was elected judge upon his succession in 914.
Mastalus was elected duke on his coming of age, but died the next year. A new dynasty was then inaugurated. It reigned uninterrupted for the next 115 years, except during the period 1039–1052, when the duke of Salerno conquered the duchy.
Amalfi was conquered by Robert Guiscard, duke of Apulia. Nevertheless, Amalfi rebelled twice, once electing the former prince of Salerno, Gisulf, and once electing a Neapolitan of that ducal family.
A certain Manso ruled Amalfi—minting his own currency—under the title of vicedux (Vice-duke) sometime between 1077 and 1096, most probably during the reign of Robert's son Roger Borsa. Manso recognised Norman overlordship and was most probably a Norman appointee.
The title of Duke of Amalfi (Duca di AmalfiinItalian) was revived under the Kingdom of Naples in the late 14th century, passing to the Piccolomini family in 1461.
1398–1405 Venceslao Sanseverino, also Count of Tricario and Chiaromonte, and Duke of Venosa
As with other Spanish noble titles, the dukedom of Amalfi initially descended according to cognatic primogeniture, meaning that females could inherit the title if they had no brothers (or if their brothers had no issue). That changed in 2006, since when the eldest child (regardless of gender) can automatically succeed to noble family titles.