A Brooklyn man was beaten and slashed during an apparent bias attack in Sunset Park yesterday, police said.

The victim was jumped from behind by two unidentified men who punched him in the back of the head and shouted anti-Semitic remarks as he walked on Eighth Avenue, near 44th Street. The man, who also was slashed on the head, was treated at Maimonides Hospital after the attack.