Put the tequila, cointreau, lime juice and sugar in a cocktail shaker with lots of ice cubes and shake well.
Put the salt and chilli powder into a spice grinder, grind to a fine powder and tip it out onto a plate. Wet the rims of four margarita glasses with a slice of lime, then dip the glasses into the chilli salt.