This meaning is about bothering someone again and again with things they do not want. It makes the person unhappy or uncomfortable. People often use it when talking about bad behavior.
He was harassed by loud noises all night.
She feels harassed at work every day.
In this meaning, to harass means to attack someone or a group many times in a fight or war. It is to cause problems or make it hard for the enemy by doing quick attacks often.
The soldiers harass the enemy during the night.
Small groups harassed the main force all day.
Here, harass means to cause someone to feel worried or stressed by giving too many problems or causing trouble over and over. It can be work or personal worries.
She was harassed by many questions all day.
The boss harasses employees with too much work.
This meaning means to bother someone by unwanted sexual behavior or words. It is often illegal and serious. People use it to talk about bad actions in work or school.
He was fired for harassing his coworker.
She reported being harassed at school.
As a noun, harass is less common but means the action of bothering or troubling someone again and again. It describes the problem or trouble itself.
The harass made her unhappy at work.
He complained about the harass from neighbors.