There is no official surfing law, but there is a good and a bad way to behave when out in the water.
If you take care of yourself, your equipment, your fellow surfers and the environment, I promise karma will reward you with good waves.
Infographic source: Total Surfing Fitness