The corresponding term for the male lead (usually a castrato in the 17th and 18th centuries, later a tenor) is primo uomo.
[1] In 19th century Italy, the leading woman in an opera or commedia dell'arte company was known as the prima donna, literally the "first lady".
[5] At times, these prime donne had grand off-stage personalities and strict demands of fellow troupe members, musicians, set and wardrobe designers, producers, and other staff.
From this experience, the term prima donna has come into common usage in any field, denoting someone who behaves in a demanding, often temperamental fashion, revealing an inflated view of themselves, their talent, and their importance.
[6] Due to this association, the contemporary meaning of the word has taken on the negative connotation of a vain, undisciplined, egotistical, obnoxious, or temperamental person who finds it difficult to work under direction or as part of a team but whose contributions are essential to the success of the team.