The medical specialty that is concerned with the mouth is stomatology.