Stars with a mass up to a few solar masses are one of the main contributors to the enrichment of the interstellar medium in dust and heavy elements. However, while significant progress has been made, the process of the mass-loss responsible for this enrichment is still not exactly known and forces beyond radiation pressure might be required. Often, the mass lost in the last phases of the stars life will become a spectacular planetary nebula. The shaping process of often strongly a-spherical PNe is equally elusive. Both binaries and magnetic fields have been suggested to be possible agents although a combination of both might also be a natural explanation.
Here I review the current evidence for magnetic fields around AGB and post-AGB stars pre-Planetary Nebulae and PNe themselves. Magnetic fields appear to be ubiquitous in the envelopes of apparently single stars, challenging current ideas on its origin, although we have found that binary companions could easily be hidden from view. There are also strong indications of magnetically collimated outflows from post-AGB/pre-PNe objects supporting a significant role in shaping the circumstellar envelope.