The song was written by Grande, Max Martin, Ilya, Savan Kotecha, Kandi Burruss, and Shekspere, while it was produced by Martin, Ilya, and Grande. It samples "It Makes Me Ill" by the American boy band *NSYNC.