Why is Ocean Water Blue?

Put some of the water in a glass and you will see that it is not blue. It is only a reflection of the sun and the sky that makes it look blue.