A hypnotic, also known as a somnifacient or soporific, and commonly known as sleeping pills, are a class of psychoactive drugs whose primary function is to induce sleep and to treat insomnia.
This group of drugs is related to sedatives. From Wikipedia