Sexism was a belief that one gender was superior or inferior to another. Sexism could be an individual attitude or cultural dogma shared by an entire society. A society that was dominated by women was called matriarchal, and patriarchal if dominated by men.
Doctor Ira Graves displayed a degree of sexism in his remarks aimed at the objectification of women, which were probably intended to be old man charm. Upon the arrival of the USS Enterprise-D to Gravesworld in 2365, Dr. Selar began her medical scans, prompting him to warn that "[i]t's no secret that I don't like people much, and I like doctors even less," later adding "[a]lthough I will admit, for a doctor you're not a bad looking woman." During the same exchange, Deanna Troi, who also caught Graves attention, prompting him to divulge in another line of banter about her too, stating, "Well, well, well, what have we got here? Another lovely specimen of womanhood." When Troi reminded him of his mantra about not liking people, he replied, "[w]omen aren't people, they're women," before kissing her hand. (TNG: "The Schizoid Man")
In 2370, William T. Riker teased Worf for his "incredibly outmoded and sexist attitude" after the Klingon remarked that his dress uniform looked ridiculous, as it resembled a dress. He added that Worf looked good in a dress. (TNG: "Liaisons")