There were two levels within the aristocracy of postmillenial Catalunya: an upper level consisting of counts and viscounts, who already formed an aristocracy before 1000; and a lower level consisting of castellans and knights, whose ascent into the ranks of the aristocracy began during the 11th century.