Ramshackle means badly made and ready to fall down. Nothing straight, and something missing from every side.
It describes buildings first — a ramshackle shed, a ramshackle cottage — and it always suggests neglect rather than deliberate design. The word extends nicely to organisations, so a ramshackle operation is one held together by luck. It carries a certain affection, which is worth noting, since a ramshackle house in a novel is charming and a derelict one is not. The word has nothing to do with rams or shackles.
1adjectiveramshackleBadly built or maintained and close to collapse.
“They lived in a ramshackle house by the river.”
Ramshackle has been ransacked. The word is a worn-down back-formation from ransackled, from ransack, to pillage, so a ramshackle house looks as though somebody has been through it.
Middle English
ransaken — to pillage
English, today
ramshackle
Built from
First attested in 1830, a a back-formation from ramshackled, from ransackled, past participle of ransackle (“to ransack”), frequentative of Middle English ransaken (“to pillage”).
Etymology from Wiktionary, CC BY-SA