A few questions:
How old is the water heater?
Is it gas or electric?
Did the noise start suddenly, or has it built up gradually?
If you Google {"water heater" noisy} you'll find a bunch of helpful advice; most of it points to scale buildup, with added complications for gas-fired heaters. General approach to fixing it is drain, clean, replace parts as needed. As Mark said, if it's an older unit, you may as well bite the bullet and replace it.