The territory of Luxembourg has been ruled successively by counts, dukes and grand dukes. It was part of the medieval Kingdom of Germany, and later the Holy Roman Empire until it became a sovereign state in 1815.