The recent observation of superconductivity with critical temperatures (T c ) up to 55 K in the pnictide RFeAsO 1−x F x , where R is a lanthanide, marks the first discovery of a noncopper-oxide-based layered high-T c superconductor 1-3 . It has raised the suspicion that these new materials share a similar pairing mechanism to the cuprate superconductors, as both families exhibit superconductivity following charge doping of a magnetic parent material. In this context, it is important to follow the evolution of the microscopic magnetic properties of the pnictides with doping and hence to determine whether magnetic correlations coexist with superconductivity. Here, we present a muon spin rotation study on SmFeAsO 1−x F x , with x = 0-0.30 that shows that, as in the cuprates, static magnetism persists well into the superconducting regime. This analogy is quite surprising as the parent compounds of the two families have rather different magnetic ground states: itinerant spin density wave for the pnictides contrasted with the MottHubbard insulator in the cuprates. Our findings therefore suggest that the proximity to magnetic order and associated soft magnetic fluctuations, rather than strong electronic correlations in the vicinity of a Mott-Hubbard transition, may be the key ingredients of high-T c superconductors.Similar to the cuprates, the pnictide high-critical-temperature (T c ) superconductors (HTSCs) have a layered structure comprising alternating FeAs and LaO sheets, with the Fe arranged on a square lattice 1 . Theoretical calculations predict a quasi-twodimensional electronic structure, with LaO layers that mainly act as blocking layers and metallic FeAs layers that are responsible for superconductivity [4][5][6] , although these are multiband superconductors with up to five FeAs-related bands crossing the Fermi level [4][5][6][7] . Like the copper-oxide HTSCs, the superconducting state in the pnictides emerges on charge doping a magnetic parent compound [8][9][10] , with indications that the maximal T c occurs just as magnetism disappears [11][12][13] . The last point may well be of great significance, as the parent compounds in the two families are very different. For the pnictides, there are strong indications that they are itinerant systems with magnetism arising from a nesting-induced spin density wave (SDW). This is in contrast to the cuprates, where it is well established that the mother compounds are 'charge transfer insulators', where strongly repulsive electronic correlations yield an insulating and antiferromagnetic ground state despite a half-filled conduction band. It is therefore of great importance to obtain further insight into the differences and similarities of the pnictide and cuprate HTSCs. A particularly important question is how magnetism and superconductivity evolve on electron doping. In this context, muon spin rotation (μSR) is an ideal technique as it provides microscopic information corresponding to the bulk of a sample and there is a substantial body of μSR data that has been colle...