Two people have been rescued from MM Beach near Port Kembla.
Meanwhile, a truck carrying snacks sparked two bushfires in Balranald in southern NSW.
Surf Life Saving volunteers are warning swimmers stay near patrolled beaches amid heatwave conditions across the NSW.
Bystanders have rescued two people at an unpatrolled beach south of Sydney and fires have broken out in the state's south-west as extreme heatwave conditions grip NSW.
A man in his 30s and a 17-year-old boy were pulled from the MM Beach near Port Kembla about 12:30pm today.
The rescue comes as temperatures soar above 40 degrees across eastern NSW, after a sudden heatwave marked the onset, prompting Surf Life Saving NSW to urge swimmers to stick to patrolled beaches.
Surfer Adam Halep said he was checking the surf at the unpatrolled beach when he heard screams from the water.
"I grabbed my board and started running down," he said.
"By the time I got halfway down there, another guy on a board had come to one person's aid, then I reached the second."
Mr Halep said a third bystander was nearly drowned after being pulled underwater during the rescue.
"Another two seconds and it would have been all over for them."
Both patients were treated by doctors who arrived via an ambulance helicopter a short time afterwards.