Wrack and ruin. That's how I'd spell the phrase.

Here are some interesting definitions of the verb "to rack" since I use the phrase "racked my brain" occasionally:

"1 : to torture on the rack
2 : to cause to suffer torture, pain, or anguish
3 a : to stretch or strain violently <racked his brains> b : to raise (rents) oppressively c : to harass or oppress with high rents or extortions
4 : to work or treat (material) on a rack
5 : to work by a rack and pinion or worm so as to extend or contract <rack a camera>
6 : to seize (as parallel ropes of a tackle) together
7 : to place (as pool balls) in a rack
intransitive senses : to become forced out of shape or out of plumb"

From MW online.

Favorite definition of rack as a noun: a mass of usually broken-up wind driven clouds