It is a sedative-hypnotic medicine, prescribed as a short-term treatment (1-2 weeks) for insomnia (sleep disorder).