A pandemic is an outbreak of a disease that spreads across multiple countries or continents, while an epidemic is an outbreak of a disease that affects a large number of people in a particular community or region.