The behaviour of an electromagnetic wave in a substance depends on its frequency. The differing behaviours of different groups in the electromagnetic spectrum make them suitable for a range of uses.