The best ways to prevent cavities is good home care, regular dental visits and avoiding excess sugar. Research shows us that sealants help protect back teeth from getting cavities. Back teeth naturally have deep grooves which are difficult to clean and bacteria can hide in these grooves. Sealants cover the grooves and prevent bacteria from forming a cavity.