If humanlike non-mechanoid raiders are unable to defeat your colony in time, they may give up.
Raiders will prioritise firing on colonists or turrets that are actively engaging, but will otherwise attack random objects, meaning you can put doors or walls near your defenses to temporarily distract them.
They also use thrown explosives on structures, and some use EMP grenades to stun your turrets. They will melee attack furniture, doors and walls. They usually set fire to crops in growing zones, power generation or conduits, and other production buildings. They will also attack prisoners if they are captured from their enemy factions. They will not attack natural rock walls not the case for sappersnon-hostile wild animals or unpowered turrets. Raiders will attack randomly chosen constructed objects, colonists and colony animals. This page details different tactics for defense and visualizations of them, applicable to most stages of the game. Defense against these attacks is one of the keys to having a successful colony. Getting attacked, whether by tribals, pirates or hordes of angry animals is a common event in the rimworlds.