1769, from Modern Latin analis "of the anus;" see anus. Anal-retentive first attested 1957, in psychological jargon. Anal sex attested as such from 1966.
anal a·nal (ā'nəl)
adj.
Of, relating to, or near the anus.
Of or relating to the second stage of psychosexual development in psychoanalytic theory, during which gratification is derived from sensations associated with the anus.
Relating to or being personality traits that originated during toilet training and are distinguished as anal-expulsive or anal-retentive.