The sour is a class of cocktail made with a spirit, simple syrup, and citrus like lemon or lime juice. Use rum and lime juice, and you have a daiquiri.
Sour Cocktails: The Margarita
Use tequila and lime juice with a jalapeno simple syrup, and that's a spicy margarita.