Tom Roland of
Billboard described the song as "21st-century redneck disco, a four-on-the-four backbeat topped with a joyous melody, carefree lyrics and an unfettered country band". Tyler Hubbard, best known as one half of
Florida Georgia Line, wrote "Dancin' in the Country" at a songwriting session on November 3, 2021 with
Ross Copperman and
Jon Nite. The latter two invited
Keith Urban to the session as well, and none of them knew at the time that Hubbard was seeking material for a solo career. At the time they were writing, both Hubbard and Urban thought the song would be suitable for each other to record. Copperman composed the song's
rhythm section and Urban came up with the song's guitar riff, based around a C
suspended second chord. Of the composition, Roland states that the song has a "hip-hop-like pre-chorus." When recording the song in the studio, Hubbard co-produced with
Jordan Schmidt. Among the contributing musicians were bassist
Jimmie Lee Sloas, guitarist Rob McNelley,
steel guitarist Justin Schipper, and banjoist
Ilya Toshinsky. Nite said that the song's lyrics, of a romantic first encounter with a woman in a field, were inspired by his first date with his wife. ==''Dancin' in the Country'' EP track listing==