How do nodes reject/disconnect/ban one another

BitcoinBitcoin
$19,486.46
0.12%
21D Ago
self.Bitcoin
Can someone explain how nodes, when they discover a bad transaction from another node, “punish” the other node by disconnecting from them or other things.