These are both types of supervised learning algorithms, but they serve different purposes.
Classification algorithms categorize input data into classes or categories. Imagine sorting photos of cats and dogs - the algorithm learns to recognize the features and place each photo in the right group.
Regression algorithms predict continuous numeric values, like predicting the price of a house based on features like the number of rooms, location, and so on. They handle problems with a continuous output space rather than distinct categories.