Ego was one'ssense of self-importance. Theterm was often used when this sense was over-inflated.
In2375,Tom Paris advisedKathryn Janeway,alias "QueenArachnia", to appeal toDoctor Chaotica's ego when attempting to win hisfavor, as he was amegalomaniac. (VOY: "Bride of Chaotica!")
