Sulphur-rich minerals in intermediate to silicic magmas exert the most important control on the distribution of chalcophile elements during magma evolution.