A goal is scored in soccer when…

the ball crosses the goal line between the goalposts and beneath the crossbar without any fouls or violations being committed by the attacking team.