When attaching string lights to trees, fences, or pergolas, it's important to use appropriate clips, hooks, or adhesive clips designed for outdoor use. Avoid using nails or staples, as they can damage the lights and pose a safety hazard. Additionally, ensure that the attachments are secure and can withstand outdoor weather conditions.