What causes contamination in diesel tanks?

Water ingress, microbial growth (diesel bug), and sediment build-up are the most common causes.