I Write Sins Not Tragedies by Panic! at the Disco is not based on a true story. The song's lyrics were inspired by a recurring dream that the band's vocalist had and they created a fictional narrative around it.