The synthesis of compounds having triazole and selena/thiadiazole rings connected by a chain having sulfur and nitrogen in the link has been described. The resultant N‐heteroaryl‐2‐(heteroarylthio)acetamide may be biologically important as related compounds found application in the inhibition of HIV 1 replications.