How smoking and alcohol can affect fertility

Most people know that drinking alcohol and smoking while pregnant is a huge no-no, but do you know how it can affect female and male fertility?