A compound for use in the treatment of an infection, wherein the compound has the following formula: wherein Z and W are O or S; X and Y are N; Cy is a triazole ring; and R 1 is independently selected from hydrogen, substituted or unsubstituted, linear, branched or cyclic alkyl, alkenyl, or alkynyl; substituted or unsubstituted aryl or heteroaryl; halogen, substituted or unsubstituted alkoxy; hydroxy, cyano, formyl, acyl, carboxylic acid (-COOH), carboxylate (-COO -), primary amide ( e.g. - CONH 2), secondary amide ( e.g. -CONHR 11), tertiary amide ( e.g. -CONR 11 R 11), secondary carbamate ( e.g. -OCONHR 11; -NHCOOR 11), tertiary carbamate ( e.g. -OCONR 11 R 11; - NR 14 COOR 11), urea ( e.g.NHCONHR 11; -NR 11 CONHR 11; -NHCONR 11 R 11, - NR 14 CONR 11 R 11), carbinol ( e.g. -CH 2 OH; -CHR 11 OH, -CR 11 R 11 OH), ester ( e.g. -COOR 11), thiol (-SH), primary amine (-NH 2), secondary amine (e.g. -NHR 11), tertiary amine (e.g. - NR 11 R 11), thioether ( e.g. -SR 11), sulfinyl group ( e.g. -SOR 11), and sulfonyl group ( e.g. - SOOR 11), wherein R 11 and R14 are defined the same as R 1; or Cy is a triazole or oxadiazole ring and R 1 is aryl; R 2 is a halogen; R 4 is substituted or unsubstituted aryl; R 3, is selected from hydrogen, substituted or unsubstituted, linear, branched or cyclic alkyl, alkenyl, or alkynyl; substituted or unsubstituted aryl or heteroaryl; halogen, substituted or unsubstituted alkoxy; hydroxy, cyano, formyl, acyl, carboxylic acid (-COOH), carboxylate (-COO -), primary amide ( e.g. -CONH 2), secondary amide ( e.g. -CONHR 11), tertiary amide ( e.g. -CONR 11 R 11), secondary carbamate ( e.g. -OCONHR 11; -NHCOOR 11), tertiary carbamate ( e.g. -OCONR 11 R 11; -NR 14 COOR 11), urea ( e.g.NHCONHR 11; -NR 11 CONHR 11; - NHCONR 11 R 11, -NR 14 CONR 11 R 11), carbinol ( e.g. -CH 2 OH; -CHR 11 OH, -CR 11 R 11 OH), ester ( e.g. -COOR 11), thiol (-SH), primary amine (-NH 2), secondary amine ( e.g. -NHR 11), tertiary amine ( e.g. -NR 11 R 11), thioether ( e.g. -SR 11), sulfinyl group ( e.g. -SOR 11), and sulfonyl group ( e.g. -SOOR 11), wherein R 11 and R 14 are defined the same as R 3; wherein the optional substituents of alkyl, alkenyl, alkynyl and alkoxy are selected from the group consisting of halogen, hydroxyl, carbonyl (such as a carboxyl, alkoxycarbonyl, formyl, or an acyl), thiocarbonyl (such as a thioester, a thioacetate, or a thioformate), alkoxyl, phosphoryl, phosphate, phosphonate, a phosphinate, amino, amido, amidine, imine, cyano, nitro, azido, sulfhydryl, alkylthio, sulfate, sulfonate, sulfamoyl, sulfonamido, sulfonyl, heterocyclyl, aralkyl, or an aromatic or heteroaromatic moiety; and wherein the optional substituents of aryl and heteroaryl are selected from halogen, azide, alkyl, aralkyl, alkenyl, alkynyl, cycloalkyl, hydroxyl, alkoxyl, amino, nitro, sulfhydryl, imino, amido, phosphonate, phosphinate, carbonyl, carboxyl, silyl, ether, alkythio, sulfonyl, sulfonamido, ketone, aldehyde, ester, hereocycyl, aromatic or heteroaromatic moieties, - CF 3 or -CN; or wherein the variables are as defined above for Formula X; or a pharmaceutically acceptable salt thereof. Z and W are O or S; X and Y are N; Cy is a triazole ring; and R 1 is independently selected from hydrogen, substituted or unsubstituted, linear, branched or cyclic alkyl, alkenyl, or alkynyl; substituted or unsubstituted aryl or heteroaryl; halogen, substituted or unsubstituted alkoxy; hydroxy, cyano, formyl, acyl, carboxylic acid (-COOH), carboxylate (-COO -), primary amide ( e.g. - CONH 2), secondary amide ( e.g. -CONHR 11), tertiary amide ( e.g. -CONR 11 R 11), secondary carbamate ( e.g. -OCONHR 11; -NHCOOR 11), tertiary carbamate ( e.g. -OCONR 11 R 11; - NR 14 COOR 11), urea ( e.g.NHCONHR 11; -NR 11 CONHR 11; -NHCONR 11 R 11, - NR 14 CONR 11 R 11), carbinol ( e.g. -CH 2 OH; -CHR 11 OH, -CR 11 R 11 OH), ester ( e.g. -COOR 11), thiol (-SH), primary amine (-NH 2), secondary amine (e.g. -NHR 11), tertiary amine (e.g. - NR 11 R 11), thioether ( e.g. -SR 11), sulfinyl group ( e.g. -SOR 11), and sulfonyl group ( e.g. - SOOR 11), wherein R 11 and R14 are defined the same as R 1; or Cy is a triazole or oxadiazole ring and R 1 is aryl; R 2 is a halogen; R 4 is substituted or unsubstituted aryl; R 3, is selected from hydrogen, substituted or unsubstituted, linear, branched or cyclic alkyl, alkenyl, or alkynyl; substituted or unsubstituted aryl or heteroaryl; halogen, substituted or unsubstituted alkoxy; hydroxy, cyano, formyl, acyl, carboxylic acid (-COOH), carboxylate (-COO -), primary amide ( e.g. -CONH 2), secondary amide ( e.g. -CONHR 11), tertiary amide ( e.g. -CONR 11 R 11), secondary carbamate ( e.g. -OCONHR 11; -NHCOOR 11), tertiary carbamate ( e.g. -OCONR 11 R 11; -NR 14 COOR 11), urea ( e.g.NHCONHR 11; -NR 11 CONHR 11; - NHCONR 11 R 11, -NR 14 CONR 11 R 11), carbinol ( e.g. -CH 2 OH; -CHR 11 OH, -CR 11 R 11 OH), ester ( e.g. -COOR 11), thiol (-SH), primary amine (-NH 2), secondary amine ( e.g. -NHR 11), tertiary amine ( e.g. -NR 11 R 11), thioether ( e.g. -SR 11), sulfinyl group ( e.g. -SOR 11), and sulfonyl group ( e.g. -SOOR 11), wherein R 11 and R 14 are defined the same as R 3;