Clarithromycin is an antibiotic used to treat a wide range of bacterial infections. It can also be prescribed alongside anti-ulcer medications to treat specific types of stomach ulcers. Additionally, it may be used to prevent certain bacterial infections.