castigation (n.)

"punishment, correction, chastisement," late 14c., castigacioun, from Latin castigationem (nominative castigatio) "a correcting, reproof, chastising," noun of action from past participle stem of castigare "to correct, set right; purify" (see castigate).