Jamie Lynn Spears came to prominence as a teenager when she portrayed the titular character Zoey Brooks in the Nickelodeon television series Zoey 101. However, in 2007, the sixteen-year-old generated controversy after announcing her pregnancy, before giving birth to daughter Maddie Aldridge the following year. This uptempo rocker finds Jamie Lynn recounting finding out about her pregnancy in a gas-station bathroom and her ensuing quick engagement to then-boyfriend, Casey Aldridge. (They never actually got married).
Spears wrote the track with Chris Tompkins (Florida Georgia Line, Martina McBride, Carrie Underwood) in 2008 or 2009. She cites it as one first songs she ever wrote and represents the beginning stage of her music career. Spears told Billboard magazine: "When I moved to Nashville, and was in a writing room with different writers, 'Shotgun Wedding' was one of the first songs we came up with. Chris says 'If that's what happened, you can sing it.' That made me feel so great – to be myself and who I am.' It makes me proud."