In this review, the latest observational results on magnetic fields in main-sequence stars with radiative envelopes are summarised together with the theoretical works aimed at explaining them.