Sneezing, or "sternutation" as it's also called, is your body's way of removing foreign matter from your nose and throat. There are other causes of sneezing, and a lot more to this seemingly simple act than you can imagine.
Sneezing isn't normally a sign that something serious is wrong with your body. It's commonly caused by allergies, irritants such as dust or smoke, using nasal sprays, drug withdrawal, and foreign objects in your nose.
Sneezing is a very big deal in terms of spreading virus, that's why we should cover our mouth when sneezing, or if we can, avoid sneezing in crowded places, to prevent others from being infected.