Ultraviolet (UV) radiation, which comes from the sun, sunlamps and tanning booths, causes skin damage that can lead to skin cancer. Limit your time in the sun, use sun protection and avoid other sources of UV radiation.

Some chemicals and other substances can raise your risk of getting cancer. People who have certain jobs—such as painters, construction workers and those in the chemical industry—have an increased risk of cancer. You can be exposed to hazardous chemicals in your home as well. Follow instructions and safety tips to avoid or reduce contact with harmful substances such as pesticides, used engine oil, solvents and other chemicals.

Some bacteria and viruses may also increase the risk of developing cancer. If you have a stomach ulcer, it could be a sign that you have bacteria that can also cause stomach cancer. Human papillomaviruses (HPVs) are the main cause of cervical cancer and may also be a risk factor for other types of cancer. Hepatitis B or C infections can lead to liver cancer. HIV, the virus that causes AIDS, raises the risk of certain cancers. Don’t have unprotected sex or share needles, and consider getting the vaccines for hepatitis B and HPV.

It’s important to talk to a health professional about your specific cancer risks and what you can do to lower them. Make sure to discuss the cancers that people in your family have had. Your doctor can also help you figure out if you have particular risks because of your lifestyle. Together, you can put together a plan to lower your risk of getting cancer.