He showed that magnetism is able to affect rays of light , as there is an underlying relationship between the two phenomena . He established that magnetism could affect rays of light and that there was an underlying relationship between the two phenomena .