We argue that editorial independence, through robust practice of publication ethics and research integrity, promotes good science and prevents bad science. We elucidate the concept of research integrity, and then discuss the dimensions of editorial independence. Best practice guidelines exist, but compliance with these guidelines varies. Therefore, we make recommendations for protecting and strengthening editorial independence.