Quantum mechanics is the branch of physics that explains the behavior and interaction of subatomic particles.