Selective synthesis of functionalized thia- and oxacalix[2]arene[2]pyrimidines.