A police operation to ensure drivers obey the rules at level crossings has been held for the first time in Sydney.

The campaign, aimed at increasing public safety and awareness around rail level crossings in the metropolitan area, had previously only happened in regional New South Wales.

During the initiative, police were on the lookout for motorists disobeying level crossing flashing lights and boom gates, vehicles queuing over the railway tracks, speeding near level crossings, and distracted drivers.

“It is essential that drivers, riders and pedestrians obey the road rules each time they reach a level crossing,” said Minister for Metropolitan Roads Natalie Ward.

“We have flashing lights, boom gates and road markings there for good reason, and saving yourself a few seconds by ignoring them can have tragic results and quite simply isn’t worth the risk.”