Fostering a positive classroom community where students feel connected and valued can enhance motivation.