Shamir's Ratchet album is thematically focused on his experiences growing up in Las Vegas. This song offers an insight into the dark side of the singer's Nevada hometown, behind the neon lights and casinos. He told NME: "My aunt Amela is a songwriter, and she was like, 'You got any tracks? Maybe you could send me one and we can work from there.' So I sent the track to the first song on the album, and I'm super excited about it because it's about our hometown. We were both born and raised in Vegas, which is rare. It's about the clichés and paints the town in the very dark and real light."
Will.I.am, literally dreamt up "I Gotta Feelin'." Said the Black Eyed Pea: "Have you ever had a dream where there's a melody in your dream? I'll wake up out of my sleep and record that! 'I Gotta Feelin' was one of those songs."