A multifrequency study of the Magellanic Clouds