This invention relates to novel purinyl derivatives and their use as potassium channel modulating agents. Moreover the invention is directed to pharmaceutical compositions useful for the treatment or alleviation of diseases or disorders associated with the activity of potassium channels.