What is a pen nib?

In my primary schoodays we used dip pens. We had a pen with a nib fixed at the end, and we had to dip the nib into an inkwell after writing a few words ... From time to time the nib wore out and had to be replaced. Fountain pens also have nibs.