Posthitis is inflammation of the foreskin. The foreskin is a thin layer of skin that covers the head of the penis. Inflammation of the foreskin may result from bacterial or fungal infections.