The Carajillo cocktail finds its roots in Spain, where it was traditionally consumed as a spirited coffee drink. It later became a beloved cocktail in Mexico, gaining popularity and undergoing its unique adaptations in the process.