They tend to work via one or more of these mechanisms:
reduce appetite, making you feel more full so that you eat fewer calories
reduce absorption of nutrients like fat, making you take in fewer calories
increase fat burning, making you burn more calories