The present disclosure relates to a class of pyrimidine derivatives having immunomodulating properties that act via TLR7 which are useful in the treatment of viral infections and cancers. One aspect of the present disclosure relates to a compound represented by Formula 1: