Always get this checked out by your health visitor or GP. Sometimes it can be related to constipation and result from a tiny anal fissure caused by dry stools, but it can also be a sign of other more serious conditions so is best checked out.
Metanium Nappy Rash Ointment is a medicine. Always read the label.