Loperamide is used to treat diarrhoea. It works by slowing down the movement of stools in your bowels.