Though shylock is shown as a shrewd and cunning character and is the antagonist of the story, the punishment he got at the end makes the readers feel sorry for him. his daughter betrayed him and he lost most of his wealth. moreover, he was made to convert to Christianity. though his intentions to kill antonio were wrong, his reasons to loath him were justified. the punishment he got was more of a triumph of the christians over the jews which was a a very inhuman thing to do.
hope this ans helps you