The name is borne by Don Juan, a character from Spanish legend who, after killing his lover's father, is dragged to hell by the father's ghost. The story was adapted into plays by Tirso de Molina (1630) and Molière (1665), an opera by Mozart (1787), and an epic poem by Byron (1824), among other works.
In the English-speaking world this name is more commonly given to girls. This is due to the American actress Alexis Smith (1921-1993), who began appearing in movies in the early 1940s. It got a boost in popularity in the 1980s from a character on the soap opera Dynasty.
According to Genesis in the Old Testament Adam was created from the earth by God (there is a word play on Hebrew אֲדָמָה (ʾaḏama) meaning "earth"). He and Eve were supposedly the first humans, living happily in the Garden of Eden until they ate the forbidden fruit from the tree of knowledge of good and evil. As a result they were expelled from Eden to the lands to the east, where they gave birth to the second generation, including Cain, Abel and Seth.
As an English Christian name, Adam has been common since the Middle Ages, and it received a boost after the Protestant Reformation. A famous bearer was Scottish economist Adam Smith (1723-1790).