David Nunan argues that grammar has a central role in language teaching but should be taught through task-based and communicative activities rather than traditional drills. He provides examples of tasks like information gaps, surveys, role plays and dictoglosses that integrate grammar with vocabulary and pronunciation. The tasks focus on meaningful communication rather than repetitive practice and mimic real-world language use.