<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>
katy perry by the grace of god meaning
finding her strength standing up for herself conceived following Perry 's divorce