What novel was the Water Margin written in?

The Water Margin is a novel written in ancient vernacular.

Ps: chainlife and wj86848 1 are incorrect. Romance of the Three Kingdoms is also written in ancient vernacular, so it is the first novel written in ancient vernacular in history.