Ambien is a prescription medication used in adults for the short-term treatment of insomnia (difficulty falling asleep). Ambien belongs to a group of drugs called hypnotics. It works by slowing down brain activity so you can fall asleep. Ambien comes in tablet form and is taken by mouth just before bedtime. Common side effects of Ambien include daytime drowsiness, dizziness, and diarrhea. Do not drive or operate heavy machinery until you know how Ambien affects you. Ambien 5mg is used to treat a certain sleep problem (insomnia) in adults. If you have trouble falling asleep, it helps you fall asleep faster, so you can get a better night’s rest. Ambien5mg belongs to a class of drugs called sedative-hypnotics. It acts on your brain to produce a calming effect.