What’s the best way to detangle curly hair?

Should you detangle your curly hair when it’s wet, or dry? And what’s the best detangling brush?