Already in Antiquity, Galen linked magnetic attraction, by way of an analogy, to the idea that animal parts are able to attract their own ‘specific quality’. For example, a kidney attracts urine just like the magnet attracts iron. In the Middle Ages, Averroes argued that foodstuff and iron possess a specific disposition which allows them to move themselves towards the body and a magnet respectively. Thus, the concepts of ‘specific attraction’ and ‘dispositional selfmovement’ were regarded as crucial to understanding the powers of both a magnet and a living body. Particularly in the early modern period, these concepts were spelled out differently by Aristotelians, Galenists and Paracelsians. During this period, the magnetism-nutrition analogy was also transformed into a vitalist principle in order to explain magnetic attraction itself. Natural philosophers such as Gerolamo Cardano suggested that a magnet, being alive in some way, seeks out iron as its foodstuff - a popular idea among alchemists as well. This paper aims to trace the complicated history of two intertwined concepts, ‘nutrition’ and ‘magnetism’, which were closely related in pre-modern times but appear to be unrelated from a modern perspective. By uncovering the historical origin(s) of this relation, its rationale, its subsequent transformation and its dissolution, the historical concept of ‘nutrition’ will come into sharper view from the perspective of the history of ideas. At the same time, from the perspective of the philosophy of science, this historical study presents a test case scenario for discussing the importance of metaphors and analogies in the formation of scientific theory.