THE AFL is investigating an alleged racist comment made by a member of the crowd during West Coast's two-point JLT Community Series win over Port Adelaide at Leederville Oval on Sunday.

Tensions threatened to boil over in the crowd in the moments following the final siren after a man allegedly racially abused a group of fans late in the final quarter.

It is understood the person left the ground immediately following the incident.

The man's friends, who were supporting Port Adelaide, apologised to the crowd around them for the alleged racial slur.

Full match coverage and statistics

But tensions remained high for the remainder of the match, and the man's friends were confronted by the group after the final siren.

The two groups were eventually separated, with no punches thrown.

An AFL spokesperson said: "The AFL does not tolerate anti-social behaviour on any level, and it will be dealt with as swiftly and quickly as possible."

The AFL's integrity department will take over the investigation on Monday, when it will speak with security staff at Leederville Oval, Port Adelaide, West Coast and any other relevant parties.

Just last year, Adelaide star Eddie Betts said racism was wrecking his enjoyment of the game after being subjected to racial abuse during the round three Showdown against Port Adelaide.

Power ruckman Paddy Ryder was also found to have been racially abused by an Adelaide supporter in the same game.

In the wake of those incidents in April, AFL CEO Gillon McLachlan urged supporters to keep "calling out bad behaviour".

"For the pockets that are not onboard, don't come to our games because we are welcoming of everyone," he said.

Two weeks later, police investigated allegations that a Brisbane trainer was racially vilified after incurring a 50m penalty during the third quarter against the Western Bulldogs at Etihad Stadium.