<Table> <Tr> <Td> "Double Rainbow" (12) </Td> <Td> "By the Grace of God" (13) </Td> <Td> "Spiritual" (14) </Td> </Tr> </Table> <Tr> <Td> "Double Rainbow" (12) </Td> <Td> "By the Grace of God" (13) </Td> <Td> "Spiritual" (14) </Td> </Tr> <P> "By the Grace of God" is a song by American singer Katy Perry from her fourth studio album, Prism (2013), included as its closing track . The song was written and produced by Perry and Canadian record producer Greg Wells . It was conceived following Perry's divorce from English actor and comedian Russell Brand . This initially made Perry consider making a "darker" album, but instead was channeled into the song . Throughout its autobiographical lyrics, Perry is depicted finding her strength and standing up for herself . </P> <P> The track was first unveiled at Perry's headlining set at the 2013 iTunes Festival . Upon the release of Prism, "By the Grace of God" received generally favorable reviews from music critics, who appreciated its vulnerability and picked it as one of the musical highlights from the album, but criticized its placement on the record . Following the album's release, it has entered various musical charts due to strong digital downloads . </P>

Katy perry by the grace of god meaning