Some liqueurs, particularly orange-flavoured ones (Cointreau or Grand Marnier, for example) are used in cooking, as in the classic Crêpes Suzette. Most, though, are used as aperitifs or digestifs, or to make cocktails.
If you’re making cocktails, be careful about substituting one liqueur for another, as the flavour and alcoholic strength can vary greatly according to style and brand.