Magnetic fields have been detected on stars across the H-R diagram and substellar objectseither directly by their effect on the formation of spectral lines, or through theactivity phenomena they power which can be observed across a large part of theelectromagnetic spectrum. Stars show a very wide variety of magnetic properties in termsof strength, geometry or variability. Cool stars generate their magnetic fields by dynamoeffect, and their properties appear to correlate – to some extent – with stellarparameters such as mass, rotation, and age. With the improvements of instrumentation anddata analysis techniques, magnetic fields can now be detected and studied down to thedomain of very-low-mass stars and brown dwarfs, triggering new theoretical works aimed, inparticular, at modelling dynamo action in these objects. After a brief discussion on theimportance of magnetic field in stellar physics, the basics of dynamo theory and magneticfield measurements are presented. The main results stemming from observational andtheoretical studies of magnetism are then detailed in two parts: the fully-convectivetransition, and the very-low mass stars and brown dwarfs domain.