How do nations qualify for the World Cup ؟

How do nations qualify for the World Cup ؟