Phenibut is similar to the neurotransmitter GABA (gamma-aminobutyric acid), which reduces the excitability of brain cells. That helps explain why people report feeling relaxed and happy when they take it.
People use phenibut for anxiety, alcohol use disorder, insomnia, depression, stress, and many other conditions, but there is no good scientific evidence to support these uses.