Also known as razor bumps, ingrown hairs occur when hair is cut (as in shaving) and then it grows back under the skin. Your body may eventually start to treat it as a foreign invasion and attack it, causing painful bumps to form.
In terms of treatment, I’ve found High Time Bump Stopper cream to be really effective. There should be a few products like this at your local pharmacy. I’ve read that 80% of black men suffer from ingrown hairs, so some of these products are targeted more towards them. Personally, I’ve seen most of my razor bumps disappear within 24 hours of applying this cream once, but different things work for different people. Ask at your local pharmacy what is a popular product, too.
In terms of prevention. Learning to wetshave and proper shaving would probably help. I’ve found it better when using a single blade rather than a multi-blade monster like the Quintippio (lol). You can either get single-blade disposables (which are also cheaper than normal cartridge razors) or a double-edged safety razor (also cheaper because replacement blades are ridiculously cheap) or a straight-edged Sweeny Todd-style killing machine.
Shaving out of a hot shower helps me,Â and having a shaving brush to brush some good shaving cream (I use Proraso. Its from Italia) helps too. Finally, do figure out which direction your hair grows in all over your face. Your hair has a natural grain and you can find out what it is by rubbing your hand in your stubble after a day or two of not shaving. There will be some surprises. For example, under my right jaw, my hair just suddenly starts going to the side rather than down.
The final element, I think, is not to touch your face after you have shaved. Be careful of rubbing your freshly shaved face, either, especially with a towel. I prefer to let my face air-dry or dab-dry it with paper towels or tissues.
Enjoy! Google will yield even more solutions, too.
Guide to proper, gourmet shaving, here.