A balk occurs when a pitcher makes an illegal motion on the mound while runners are on base, with an attempt to deceive them. The main purpose of the balk rule is to prevent unfair advantages and maintain the integrity of the game. Introduced in 1898, balk rules have evolved but maintain the essence of preventing deceitful actions by pitchers.