Preventative measures and extermination are the best way to eliminate rats permanently. To prevent the rats from returning, seal up any potential entry points around your home. You should also keep food sources cleaned up and inaccessible.