Rendering ocean scene, but ends up as a cube
If you are using the ocean modifier, then it would be best to use a plane not a cube. Also, you need to subdivide the plane before you add the modifier. You can do this by adding a subdivision surface modifier, or subdividing in edit mode. You also may need to keyframe the ocean modifier, if you have not done so.