Austin wrote this song with his friend Robert Villanueva in an unlikely place. "I like to write songs with my friend Robert. I was weird; we wrote it in my bathroom for some reason," he told MTV News. "I mean, it's a pretty random place to write a song, but I know my fans are gonna love it."
Robert Villanueva is a rapper who rose to fame by posting weekly YouNows with another of Austin's buddy's, Alex Constancio.
Austin also produced the song himself. "It's like a different vibe from all the other ones, but it's still pretty good," he told Billboard magazine.
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."