Diazepam belongs to a class of medications known as benzodiazepines.It can be used for short-term treatment of insomnia (difficulty sleeping), anxiety or panic.It may also be used to control symptoms of acute alcohol withdrawal or for other conditions. Check with your healthcare professional if you are unsure why you are given this medication.