There are a lot of good suggestions for preventing or avoiding illness. Good water quality definitely helps. Careful selection when making a purchase . I also highly recommend having a quarantine/hospital tank (10 gallons is a good size) in case you buy a fish that isn't obviously sick when you first get it. Put new fish in there for three to four weeks before putting them in their permanent residence.