Antibiotics are prescribed for bacterial infections such as pneumonia, urinary tract infections, and strep throat. Antifungals are used for fungal infections like athlete’s foot, yeast infections, and systemic fungal infections. It's essential to correctly diagnose the type of infection to avoid misuse of these medications.