Erythromycin

Class Somatostatin analog
Chemistry
Macrolide antibiotic
Routes of administration

Oral and IV

Absorption
Degraded by gastric acids and enzymes; oral bioavailability 30-65%
Solubility
pKa = 8.8. Poorly soluble in water
Distribution
VOD = 0.9-1.5 L/kg; 70-90% protein-bound
Metabolism
Extensively metabolized by the liver (CYP3A4-mediated). But also a potent inhibitor of CYP3A4: may increase plasma levels of drugs metabolised by CYP3A4 (i.e. basically all of the important ones; notably statins, warfarin).
Elimination
Primarily excreted in bile; minimal renal clearance
Time course of action
Onset is rapid (within 30-60 minutes for prokinetic effects when given IV); lasts 6-8 hrs.
Target receptor

Motilin receptors in the GIT, which are G protein-coupled receptors that stimulate phospholipase C, which synthesizes IP3 and increases intracellular calcium to promote smooth muscle contraction in the gut. 

Also, the bacterial 50S ribosomal subunit, in the unlikely case that it is actually being used as an antibiotic.

Mechanism of action

The target cells of motilin are all the smooth muscle structures downstream starting with the lower oesophageal sphincter,  which also includes the gallbladder and the sphincter of Oddi. Motilin agonists act on the migrating motor complex, raise pepsin output and acid secretion, and seem to have their effects maximal in the small intestine.

Clinical effects

Abdominal cramps, diarrhoea, QT prolongation, rare risk of pyloric spasm. CYP3A4 inhibition. Tachyphylaxis can occur with prolonged use due to motilin receptor desensitisation.

Literature reference
CICM details of understanding Level 3
Mentioned around Deranged Physiology
Related SAQs