Orthodontics is the branch of dentistry that focuses on diagnosing and treating imperfect positioning.